From 85503e26ed4127e28ebfa45c32eed5fe4f60a7d0 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 11:42:24 +0530 Subject: [PATCH 01/24] A compiler tier the tree calls for runs beside the producers an entry names Signed-off-by: Vanshaj Poonia --- server/code/app/index/mirrors.py | 16 ++--- server/code/app/index/producer_inference.py | 60 +++++++++++-------- server/code/domain/index/repos.py | 4 ++ tests/unit/test_code_repo_indexing_knobs.py | 49 +++++++++++---- tests/unit/test_code_scip_extra_producers.py | 37 ++++++++++-- tests/unit/test_mirrors.py | 17 ++++-- .../unit/test_run_python_delta_upload_mode.py | 34 +++++++---- 7 files changed, 150 insertions(+), 67 deletions(-) diff --git a/server/code/app/index/mirrors.py b/server/code/app/index/mirrors.py index 2ee108b1f03..27bc57287c3 100644 --- a/server/code/app/index/mirrors.py +++ b/server/code/app/index/mirrors.py @@ -42,7 +42,7 @@ restrict_if_restricted, ) from server.code.app.index.mirror_locks import fetch_lock_path, partial_mirror, try_lock -from server.code.app.index.producer_inference import PRODUCERS +from server.code.app.index.producer_inference import PRODUCERS, runnable_producers from server.code.domain.index import repos from server.code.store import index as code_store from server.core import readiness @@ -476,17 +476,9 @@ async def _named_paths() -> tuple[set[str], set[str]] | None: logger.info("mirror sweep skipped: registry unreadable (%s)", e) return None mirrors = {c.git_dir for c in cfgs} | {repo_registry.git_dir_for(str(r["repo"])) for r in rows} - # An entry naming no producer runs whichever tiers its tree calls for, so every - # tier's tree is named; one naming its producer runs that tier and its extras. - checkouts = { - repos.checkout_for(c, p) - for c in cfgs - for p in ( - (c.scip_producer, *c.scip_extra_producers) - if c.scip_producer - else (*PRODUCERS, *c.scip_extra_producers) - ) - } + # An entry runs the tiers it names and whichever others its tree calls for, so each + # tier's tree is named but a tier the entry excludes. + checkouts = {repos.checkout_for(c, p) for c in cfgs for p in runnable_producers(c)} for r in rows: base = repo_registry.checkout_dir_for(str(r["namespace"])) checkouts |= {base, *(repos.sibling_checkout(base, p) for p in PRODUCERS)} diff --git a/server/code/app/index/producer_inference.py b/server/code/app/index/producer_inference.py index 4ff90d09fdd..d55074c4146 100644 --- a/server/code/app/index/producer_inference.py +++ b/server/code/app/index/producer_inference.py @@ -1,11 +1,8 @@ -"""Which compiler tier a repository's tree calls for. +"""Which compiler tiers a repository entry runs. -An entry that names no producer (the default, from the page or from -LOOM_CODE_REPOS_JSON) leaves it to its tree: the workers that keep the compiler tiers -current (`code_scip_delta` for scip-clang, the TypeScript, Go and Python workers) ask -the tree. The rule is the languages' own build manifests, read from the namespace's -live paths — one membership read of a handful of basenames — never a guess from file -counts: +An entry runs the tiers it names and the tiers its tree calls for. The tree's rule is +the languages' own build manifests, read from the namespace's live paths (one +membership read of a handful of basenames), never a guess from file counts: go.mod → go tsconfig.json / jsconfig.json / package.json → typescript (scip-typescript @@ -13,9 +10,10 @@ CMakeLists.txt at the root → clang pyproject.toml / setup.py / requirements.txt → python -A tree with several manifests calls for several tiers, and each worker -answers only for its own; an explicit `scip_producer` on the entry wins -over every inference, and `scip_extra_producers` adds tiers beside it. +A tree with several manifests calls for several tiers, and each worker answers only for +its own. `scip_producer` names the primary tier and its checkout, `scip_extra_producers` +adds a tier the tree does not call for, and `scip_excluded_producers` drops a tier the +tree calls for. A tier the entry names runs even when it also excludes it. """ from __future__ import annotations @@ -49,12 +47,25 @@ def infer_producers(paths: Iterable[str], *, root_only_clang: bool = True) -> li return [prod for prod, marks in MARKERS.items() if any(m in names for m in marks)] -def applies(entry_producer: str, worker_producer: str, tree_producers: Iterable[str]) -> bool: - """Does a compiler-tier worker own this entry? An explicit producer - decides alone; an empty one defers to the tree.""" - if entry_producer: - return entry_producer == worker_producer - return worker_producer in set(tree_producers) +def selected_by(cfg: RepoConfig, producer: str, tree: Iterable[str]) -> str: + """The rule that runs `producer` on the entry: `scip_producer`, `scip_extra_producers` + or `tree` (the tree calls for it and the entry does not exclude it). '' when no rule + does.""" + if producer == cfg.scip_producer: + return "scip_producer" + if producer in cfg.scip_extra_producers: + return "scip_extra_producers" + if producer in cfg.scip_excluded_producers: + return "" + return "tree" if producer in set(tree) else "" + + +def runnable_producers(cfg: RepoConfig) -> tuple[str, ...]: + """Every tier the entry may run: the ones it names, then each other tier it does not + exclude, since its tree can come to call for any of them.""" + named = tuple(p for p in (cfg.scip_producer, *cfg.scip_extra_producers) if p) + rest = (p for p in PRODUCERS if p not in named and p not in cfg.scip_excluded_producers) + return (*named, *rest) async def tree_producers(repo: object, org: str, ns: str) -> list[str]: @@ -74,22 +85,23 @@ async def worker_owns( cfg: RepoConfig, worker_producer: str, ) -> bool: - """The compiler-tier worker's ownership test — the entry's explicit producer, else - (an entry naming none, `''`) the tree's manifests.""" - if worker_producer in cfg.scip_extra_producers: - return True # a further tier the entry names beside its primary one - if cfg.scip_producer: - return cfg.scip_producer == worker_producer + """The compiler-tier worker's ownership test: the entry names the tier, or its tree + calls for it and the entry does not exclude it.""" + if selected_by(cfg, worker_producer, ()): + return True # named: no tree read + if worker_producer in cfg.scip_excluded_producers: + return False tree = await tree_producers(repo, cfg.org, cfg.namespace) - return applies("", worker_producer, tree) + return bool(selected_by(cfg, worker_producer, tree)) __all__ = [ "ALL_MARKERS", "MARKERS", "PRODUCERS", - "applies", "infer_producers", + "runnable_producers", + "selected_by", "tree_producers", "worker_owns", ] diff --git a/server/code/domain/index/repos.py b/server/code/domain/index/repos.py index 061b4e1da37..82ee484d12a 100644 --- a/server/code/domain/index/repos.py +++ b/server/code/domain/index/repos.py @@ -73,6 +73,9 @@ class RepoConfig: # (`checkout_for`) so two producers never move one working tree under each other: # a Python repository with a TypeScript frontend runs both. scip_extra_producers: tuple[str, ...] = () + # Tiers the entry never runs although its tree calls for them (a build file that only + # serves tooling). Every other tier the tree calls for runs beside the named ones. + scip_excluded_producers: tuple[str, ...] = () # The scip-typescript projects when the root is not one (no root tsconfig or # workspace): directories, each with its own tsconfig or indexed through one the # harness writes for its JavaScript. '' = the harness's own inference at the root. @@ -607,6 +610,7 @@ def _configured_from_env(config: Settings, errors: dict[str, str]) -> list[RepoC ), scip_producer=str(e.get("scip_producer") or base.scip_producer), scip_extra_producers=_globs(e.get("scip_extra_producers")), + scip_excluded_producers=_globs(e.get("scip_excluded_producers")), scip_ts_projects=_globs(e.get("scip_ts_projects")), embed_reuse_from=str(e.get("embed_reuse_from") or ""), git_extra_branches=( diff --git a/tests/unit/test_code_repo_indexing_knobs.py b/tests/unit/test_code_repo_indexing_knobs.py index 60990b4fa74..16160012d25 100644 --- a/tests/unit/test_code_repo_indexing_knobs.py +++ b/tests/unit/test_code_repo_indexing_knobs.py @@ -33,12 +33,20 @@ def test_manifests_name_their_producers() -> None: assert pi.infer_producers(["README.md", "docs/a.md"]) == [] -def test_explicit_producer_wins_and_empty_defers_to_the_tree() -> None: - assert pi.applies("clang", "clang", ["go"]) is True # an .env entry's default - assert pi.applies("clang", "go", ["go"]) is False - assert pi.applies("", "go", ["go", "typescript"]) is True - assert pi.applies("", "typescript", ["go"]) is False - assert pi.applies("", "clang", []) is False +def test_a_named_tier_runs_and_a_detected_one_runs_unless_excluded() -> None: + named = _Entry(scip_producer="clang", scip_extra_producers=("typescript",)) + assert pi.selected_by(named, "clang", ["go"]) == "scip_producer" + assert pi.selected_by(named, "typescript", []) == "scip_extra_producers" + assert pi.selected_by(named, "go", ["go"]) == "tree" + assert pi.selected_by(named, "python", ["go"]) == "" + excluding = _Entry(scip_producer="clang", scip_excluded_producers=("python",)) + assert pi.selected_by(excluding, "python", ["python"]) == "" + # naming a tier beats excluding it + both = _Entry(scip_producer="python", scip_excluded_producers=("python",)) + assert pi.selected_by(both, "python", ["python"]) == "scip_producer" + # an entry naming none defers to its tree + assert pi.selected_by(_Entry(), "go", ["go", "typescript"]) == "tree" + assert pi.selected_by(_Entry(), "clang", []) == "" @pytest.mark.asyncio @@ -61,7 +69,7 @@ def _Entry(**kw: Any) -> Any: @pytest.mark.asyncio -async def test_worker_ownership_by_explicit_producer_or_by_marker() -> None: +async def test_worker_ownership_by_name_or_by_marker() -> None: repo = AsyncMock() repo.live_paths_present.return_value = {"go.mod"} repo.live_paths_named.return_value = [] @@ -69,9 +77,30 @@ async def test_worker_ownership_by_explicit_producer_or_by_marker() -> None: assert await pi.worker_owns(repo, _Entry(), "typescript") is False assert await pi.worker_owns(repo, _Entry(), "clang") is False - assert await pi.worker_owns(repo, _Entry(scip_producer="clang"), "clang") is True - assert await pi.worker_owns(repo, _Entry(scip_producer="clang"), "go") is False - repo.live_paths_present.assert_awaited() # only the inferred entry read the tree + # a named tier owns its entry without a tree read + quiet = AsyncMock() + assert await pi.worker_owns(quiet, _Entry(scip_producer="clang"), "clang") is True + quiet.live_paths_present.assert_not_awaited() + # a tier the tree calls for runs beside the named one + assert await pi.worker_owns(repo, _Entry(scip_producer="clang"), "go") is True + assert await pi.worker_owns(repo, _Entry(scip_producer="clang"), "typescript") is False + + +@pytest.mark.asyncio +async def test_an_excluded_tier_does_not_run_though_the_tree_calls_for_it() -> None: + repo = AsyncMock() + repo.live_paths_present.return_value = {"go.mod", "pyproject.toml"} + repo.live_paths_named.return_value = [] + cfg = _Entry(scip_producer="clang", scip_excluded_producers=("python",)) + assert await pi.worker_owns(repo, cfg, "go") is True + repo.live_paths_present.reset_mock() + assert await pi.worker_owns(repo, cfg, "python") is False + repo.live_paths_present.assert_not_awaited() # the entry's answer needs no tree read + # an entry naming no producer can exclude too + assert await pi.worker_owns(repo, _Entry(scip_excluded_producers=("go",)), "go") is False + # a tier the entry names runs even when it is also excluded + both = _Entry(scip_extra_producers=("python",), scip_excluded_producers=("python",)) + assert await pi.worker_owns(repo, both, "python") is True def test_registry_row_carries_the_knobs_and_defaults_them_for_old_rows() -> None: diff --git a/tests/unit/test_code_scip_extra_producers.py b/tests/unit/test_code_scip_extra_producers.py index dc3edaa2a8f..75e3e4b8498 100644 --- a/tests/unit/test_code_scip_extra_producers.py +++ b/tests/unit/test_code_scip_extra_producers.py @@ -1,12 +1,14 @@ """A repository entry can run more than one compiler tier: `scip_extra_producers` -names the tiers beside its primary `scip_producer`, each in its own checkout, and -`scip_ts_projects` names the TypeScript projects of a tree whose root is not one.""" +names the tiers beside its primary `scip_producer`, each in its own checkout, a tier its +tree calls for runs too unless `scip_excluded_producers` drops it, and `scip_ts_projects` +names the TypeScript projects of a tree whose root is not one.""" from __future__ import annotations import asyncio import json from pathlib import Path +from unittest.mock import AsyncMock import pytest @@ -32,11 +34,36 @@ def _cfg(**kw) -> RepoConfig: return RepoConfig(**base) +def _tree(*manifests: str) -> AsyncMock: + """A repository whose live tree holds these build files (a `go.mod` at the root).""" + repo = AsyncMock() + repo.live_paths_present.return_value = set(manifests) + repo.live_paths_named.return_value = [] + return repo + + def test_extra_producers_are_owned_beside_the_primary_one() -> None: cfg = _cfg(scip_extra_producers=("typescript",)) - owned = {p: asyncio.run(worker_owns(None, cfg, p)) for p in ("python", "typescript", "go")} + bare = _tree() + owned = {p: asyncio.run(worker_owns(bare, cfg, p)) for p in ("python", "typescript", "go")} assert owned == {"python": True, "typescript": True, "go": False} - assert not asyncio.run(worker_owns(None, _cfg(), "typescript")) + assert not asyncio.run(worker_owns(bare, _cfg(), "typescript")) + + +def test_a_tier_the_tree_calls_for_runs_beside_the_named_ones() -> None: + cfg = _cfg(scip_extra_producers=("typescript",)) + tree = _tree("pyproject.toml", "go.mod", "CMakeLists.txt") + owned = { + p: asyncio.run(worker_owns(tree, cfg, p)) for p in ("python", "typescript", "go", "clang") + } + assert owned == {"python": True, "typescript": True, "go": True, "clang": True} + + +def test_an_excluded_tier_stays_off_though_the_tree_calls_for_it() -> None: + cfg = _cfg(scip_producer="clang", scip_excluded_producers=("python",)) + tree = _tree("CMakeLists.txt", "pyproject.toml", "go.mod") + owned = {p: asyncio.run(worker_owns(tree, cfg, p)) for p in ("clang", "python", "go")} + assert owned == {"clang": True, "python": False, "go": True} def test_each_extra_producer_indexes_its_own_checkout() -> None: @@ -65,11 +92,13 @@ def test_the_entry_json_carries_the_extra_producers_and_the_projects(monkeypatch "repo": "o/x", "scip_producer": "python", "scip_extra_producers": ["typescript"], + "scip_excluded_producers": ["clang", "go"], "scip_ts_projects": "frontend, sdk/typescript", } monkeypatch.setattr(settings, "code_repos_json", json.dumps([entry])) (cfg,) = repos._configured_from_env(settings, {}) assert cfg.scip_extra_producers == ("typescript",) + assert cfg.scip_excluded_producers == ("clang", "go") assert cfg.scip_ts_projects == ("frontend", "sdk/typescript") diff --git a/tests/unit/test_mirrors.py b/tests/unit/test_mirrors.py index fcd47e152b6..03e05e7edb3 100644 --- a/tests/unit/test_mirrors.py +++ b/tests/unit/test_mirrors.py @@ -23,6 +23,7 @@ def __init__(self, git_dir: str, ns: str = "code-r", source: str = "config") -> self.source, self.git_fetch_pr_heads = source, True self.scip_producer = "" self.scip_extra_producers: tuple[str, ...] = () + self.scip_excluded_producers: tuple[str, ...] = () self.scip_checkout_dir = "" @@ -424,17 +425,23 @@ async def registry_rows(self) -> list[dict[str, Any]]: @pytest.mark.asyncio -async def test_the_sweep_removes_a_tier_checkout_an_explicit_entry_no_longer_names( +async def test_the_sweep_keeps_every_tier_checkout_an_explicit_entry_does_not_exclude( monkeypatch, tmp_path ) -> None: - """An entry that names its producer runs that tier and its extras only, so the - old checkout of a tier dropped from the extras goes while the named ones stay.""" + """An entry that names its producer also runs the tiers its tree calls for, so the + sweep keeps each tier's checkout but a tier the entry excludes.""" from server.code.store import index as store root = tmp_path / "self" monkeypatch.setattr(settings, "code_repos_root", str(root)) monkeypatch.setattr(settings, "code_self_service_enabled", True) - for name in ("checkout-code-go", "checkout-code-go.python", "checkout-code-go.typescript"): + names = ( + "checkout-code-go", + "checkout-code-go.python", + "checkout-code-go.typescript", + "checkout-code-go.clang", + ) + for name in names: _old(root / name) class _Repo: @@ -445,12 +452,14 @@ async def registry_rows(self) -> list[dict[str, Any]]: cfg.scip_producer = "go" cfg.scip_checkout_dir = str(root / "checkout-code-go") cfg.scip_extra_producers = ("python",) + cfg.scip_excluded_producers = ("typescript",) monkeypatch.setattr(store, "CodeRepo", _Repo) _repos(monkeypatch, [cfg]) removed = {os.path.basename(p) for p in await mirrors.sweep()} assert removed == {"checkout-code-go.typescript"} assert sorted(p.name for p in root.iterdir() if p.is_dir()) == [ "checkout-code-go", + "checkout-code-go.clang", "checkout-code-go.python", ] diff --git a/tests/unit/test_run_python_delta_upload_mode.py b/tests/unit/test_run_python_delta_upload_mode.py index 893390c6c56..34476f8f9ab 100644 --- a/tests/unit/test_run_python_delta_upload_mode.py +++ b/tests/unit/test_run_python_delta_upload_mode.py @@ -178,22 +178,26 @@ def _ident_snippet() -> str: @pytest.mark.parametrize( - ("tree", "producer", "extras", "py_worker", "owner"), + ("tree", "producer", "extras", "excluded", "py_worker", "owner"), [ - (["go.mod"], "", (), False, "none"), - (["go.mod", "pyproject.toml"], "", (), False, "manual"), - (["pyproject.toml"], "", (), False, "manual"), - (["CMakeLists.txt"], "", (), False, "none"), - (["go.mod", "pyproject.toml"], "go", (), False, "go"), - (["go.mod", "pyproject.toml"], "go", ("python",), False, "go"), - (["CMakeLists.txt"], "clang", (), False, "manual"), - (["go.mod"], "", (), True, "none"), - (["go.mod", "pyproject.toml"], "", (), True, "worker"), - (["go.mod", "pyproject.toml"], "go", ("python",), True, "worker"), + (["go.mod"], "", (), (), False, "none"), + (["go.mod", "pyproject.toml"], "", (), (), False, "manual"), + (["pyproject.toml"], "", (), (), False, "manual"), + (["CMakeLists.txt"], "", (), (), False, "none"), + (["go.mod", "pyproject.toml"], "go", (), (), False, "go"), + (["go.mod", "pyproject.toml"], "go", ("python",), (), False, "go"), + (["CMakeLists.txt"], "clang", (), (), False, "manual"), + (["go.mod"], "", (), (), True, "none"), + (["go.mod", "pyproject.toml"], "", (), (), True, "worker"), + (["go.mod", "pyproject.toml"], "go", ("python",), (), True, "worker"), + # a tier the tree calls for runs beside the named one, unless the entry drops it + (["go.mod", "pyproject.toml"], "go", (), (), True, "worker"), + (["go.mod", "pyproject.toml"], "go", (), ("python",), True, "go"), + (["go.mod", "pyproject.toml"], "", (), ("python",), True, "none"), ], ) def test_the_manual_python_pass_goes_where_the_entry_and_its_tree_say( - monkeypatch, capsys, tree, producer, extras, py_worker, owner + monkeypatch, capsys, tree, producer, extras, excluded, py_worker, owner ) -> None: """The Python worker takes what it owns; a Go or TypeScript entry's worker moves its checkout; an entry naming no producer gets the manual pass only where its tree has a @@ -214,7 +218,11 @@ def test_the_manual_python_pass_goes_where_the_entry_and_its_tree_say( monkeypatch.setattr(ch, "get_client", lambda: AsyncMock()) monkeypatch.setattr(settings, "code_scip_py_delta_enabled", py_worker) cfg = repo_config( - org="org", namespace="code-x", scip_producer=producer, scip_extra_producers=extras + org="org", + namespace="code-x", + scip_producer=producer, + scip_extra_producers=extras, + scip_excluded_producers=excluded, ) monkeypatch.setattr(repos, "configured_repos", lambda: [cfg]) monkeypatch.setattr(repo_registry, "read_registry", AsyncMock(return_value=True)) From 71820385a9b39576ad6939d4ba9e4a0db34e37c2 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 11:42:29 +0530 Subject: [PATCH 02/24] code.index_status names the rule behind each compiler tier Signed-off-by: Vanshaj Poonia --- docs/reference/operations/code.md | 1 + sdk/go/wire/models.gen.go | 3 +- sdk/python/loom/ops.py | 1 + sdk/rust/src/wire_models.rs | 7565 ++++++++++--------- sdk/rust/tests/registry_contracts.rs | 5 + sdk/typescript/src/generated/ops.ts | 1 + server/code/api/models_status.py | 3 + server/code/app/index/producer_inference.py | 14 + server/code/app/index_status.py | 12 +- tests/unit/test_code_repo_indexing_knobs.py | 18 + tests/unit/test_code_status_ops.py | 40 + 11 files changed, 3877 insertions(+), 3786 deletions(-) diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index 98e4e663587..6f09c07a19a 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -958,6 +958,7 @@ Health of the code index: indexed head commit, compiler-tier commit, row counts, | `provider` | `str` | | | `profile` | `str` | | | `compiler_candidates` | `list[str]` | Compiler tiers inferred from the indexed tree, even before a compiler worker has produced its first watermark. | +| `compiler_tier_rules` | `dict[str, str]` | Why each tier runs, by producer: `scip_producer`, `scip_extra_producers`, `tree` (a build file in the tree) or `scip_excluded_producers` (the entry drops it, so it is off). | | `quality_warnings` | `list[str]` | Actionable readiness gaps. | | `git_head` | `str` | The fast tier's watermark: the last commit whose files are ingested; '' before the first pass. | | `scip_commit` | `str` | `scip_commit` / `scip_lag` are the ENTRY'S compiler tier — the one `scip_producer` names — not the C++ key by name; a TypeScript repository reports its scip-typescript watermark here. | diff --git a/sdk/go/wire/models.gen.go b/sdk/go/wire/models.gen.go index 321d46f364c..b552fd6a7af 100644 --- a/sdk/go/wire/models.gen.go +++ b/sdk/go/wire/models.gen.go @@ -1,5 +1,5 @@ // Code generated by scripts/codegen/sdk_go_gen.py; DO NOT EDIT. -// Registry model schema SHA-256: c49d5433ecfdb2f14a5582bedcbcb01c84d68e2ac14553aa35c1c660c7c6f514 +// Registry model schema SHA-256: 6c17a8e906376639d8cfb84115ad89c3ffb8ba5ea707cb2219b34cb787c35926 // Package wire contains the Go requests and responses for Loom operations. package wire @@ -1612,6 +1612,7 @@ type CodeIndexStatusOutput struct { Provider *string `json:"provider,omitempty"` Profile *string `json:"profile,omitempty"` CompilerCandidates *[]string `json:"compiler_candidates,omitempty"` + CompilerTierRules *map[string]string `json:"compiler_tier_rules,omitempty"` QualityWarnings *[]string `json:"quality_warnings,omitempty"` GitHead *string `json:"git_head,omitempty"` ScipCommit *string `json:"scip_commit,omitempty"` diff --git a/sdk/python/loom/ops.py b/sdk/python/loom/ops.py index 875a69830dc..d204393fba4 100644 --- a/sdk/python/loom/ops.py +++ b/sdk/python/loom/ops.py @@ -7034,6 +7034,7 @@ class CodeIndexStatusOutput(TypedDict, total=False): provider: NotRequired[str] profile: NotRequired[str] compiler_candidates: NotRequired[list[str]] + compiler_tier_rules: NotRequired[dict[str, str]] quality_warnings: NotRequired[list[str]] git_head: NotRequired[str] scip_commit: NotRequired[str] diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs index ed2ea1c3108..ad4a0e66049 100644 --- a/sdk/rust/src/wire_models.rs +++ b/sdk/rust/src/wire_models.rs @@ -11324,17 +11324,17 @@ pub struct CodeCompilerTier { pub tool: String, pub label: String, pub watermark_key: String, - #[serde(default = "default_620")] - pub commit: String, #[serde(default = "default_621")] - pub lag: Integer, + pub commit: String, #[serde(default = "default_622")] - pub updated_at: String, + pub lag: Integer, #[serde(default = "default_623")] - pub primary: bool, + pub updated_at: String, #[serde(default = "default_624")] - pub workers: Vec, + pub primary: bool, #[serde(default = "default_625")] + pub workers: Vec, + #[serde(default = "default_626")] pub note: String, } @@ -11342,42 +11342,42 @@ pub struct CodeCompilerTier { #[non_exhaustive] pub struct CodeTierHealth { pub tier: String, - #[serde(default = "default_627")] - pub state: String, #[serde(default = "default_628")] - pub kind: String, + pub state: String, #[serde(default = "default_629")] - pub error: String, + pub kind: String, #[serde(default = "default_630")] - pub fix: String, + pub error: String, #[serde(default = "default_631")] - pub failing_since: String, + pub fix: String, #[serde(default = "default_632")] - pub last_failed_at: String, + pub failing_since: String, #[serde(default = "default_633")] - pub failed_passes: Integer, + pub last_failed_at: String, #[serde(default = "default_634")] - pub last_ok_at: String, + pub failed_passes: Integer, #[serde(default = "default_635")] + pub last_ok_at: String, + #[serde(default = "default_636")] pub lag_commits: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeWorkerStatus { - #[serde(default = "default_651")] - pub enabled: bool, #[serde(default = "default_652")] - pub interval_seconds: Integer, + pub enabled: bool, #[serde(default = "default_653")] - pub last_run_at: String, + pub interval_seconds: Integer, #[serde(default = "default_654")] - pub last_duration_ms: Integer, + pub last_run_at: String, #[serde(default = "default_655")] - pub consecutive_failures: Integer, + pub last_duration_ms: Integer, #[serde(default = "default_656")] - pub total_runs: Integer, + pub consecutive_failures: Integer, #[serde(default = "default_657")] + pub total_runs: Integer, + #[serde(default = "default_658")] pub last_error: String, } @@ -11396,74 +11396,76 @@ pub struct CodeIndexStatusOutput { #[serde(default = "default_614")] pub compiler_candidates: Vec, #[serde(default = "default_615")] - pub quality_warnings: Vec, + pub compiler_tier_rules: std::collections::HashMap, #[serde(default = "default_616")] - pub git_head: String, + pub quality_warnings: Vec, #[serde(default = "default_617")] - pub scip_commit: String, + pub git_head: String, #[serde(default = "default_618")] - pub scip_commit_py: String, + pub scip_commit: String, #[serde(default = "default_619")] + pub scip_commit_py: String, + #[serde(default = "default_620")] pub scip_producer: String, - #[serde(default = "default_626")] + #[serde(default = "default_627")] pub compiler_tiers: Vec, - #[serde(default = "default_636")] - pub tier_health: Vec, #[serde(default = "default_637")] - pub pr_cursor: String, + pub tier_health: Vec, #[serde(default = "default_638")] - pub commit_coverage: Option, + pub pr_cursor: String, #[serde(default = "default_639")] - pub clone_head: String, + pub commit_coverage: Option, #[serde(default = "default_640")] - pub clone_fetched_at: String, + pub clone_head: String, #[serde(default = "default_641")] - pub fetch_overdue: bool, + pub clone_fetched_at: String, #[serde(default = "default_642")] - pub fast_tier_lag: Integer, + pub fetch_overdue: bool, #[serde(default = "default_643")] - pub scip_lag: Integer, + pub fast_tier_lag: Integer, #[serde(default = "default_644")] - pub scip_py_lag: Integer, + pub scip_lag: Integer, #[serde(default = "default_645")] - pub last_refresh_at: String, + pub scip_py_lag: Integer, #[serde(default = "default_646")] - pub last_refresh_detail: String, + pub last_refresh_at: String, #[serde(default = "default_647")] - pub org_readable: bool, + pub last_refresh_detail: String, #[serde(default = "default_648")] - pub path_prefixes: Vec, + pub org_readable: bool, #[serde(default = "default_649")] - pub counts: std::collections::HashMap, + pub path_prefixes: Vec, #[serde(default = "default_650")] + pub counts: std::collections::HashMap, + #[serde(default = "default_651")] pub state: std::collections::HashMap>, - #[serde(default = "default_658")] - pub workers: std::collections::HashMap, #[serde(default = "default_659")] - pub build_commit: String, + pub workers: std::collections::HashMap, #[serde(default = "default_660")] - pub ops: Vec, + pub build_commit: String, #[serde(default = "default_661")] - pub request_fields: std::collections::HashMap>, + pub ops: Vec, #[serde(default = "default_662")] - pub op_maturity: std::collections::HashMap, + pub request_fields: std::collections::HashMap>, #[serde(default = "default_663")] - pub op_reach: std::collections::HashMap>, + pub op_maturity: std::collections::HashMap, #[serde(default = "default_664")] - pub op_toolsets: std::collections::HashMap>, + pub op_reach: std::collections::HashMap>, #[serde(default = "default_665")] - pub symbol_stats_rows: Integer, + pub op_toolsets: std::collections::HashMap>, #[serde(default = "default_666")] - pub symbol_stats_at: String, + pub symbol_stats_rows: Integer, #[serde(default = "default_667")] - pub unit_risk_rows: Integer, + pub symbol_stats_at: String, #[serde(default = "default_668")] - pub unit_risk_at: String, + pub unit_risk_rows: Integer, #[serde(default = "default_669")] - pub chunks_total: Integer, + pub unit_risk_at: String, #[serde(default = "default_670")] - pub chunks_embedded: Integer, + pub chunks_total: Integer, #[serde(default = "default_671")] + pub chunks_embedded: Integer, + #[serde(default = "default_672")] pub embedding_coverage: f64, } @@ -11587,9 +11589,9 @@ impl CodeIndexStatusInput { pub struct CodeMapOutput { pub map: String, pub tokens_used: Integer, - #[serde(default = "default_672")] - pub commit_sha: String, #[serde(default = "default_673")] + pub commit_sha: String, + #[serde(default = "default_674")] pub trace_run_id: String, } @@ -11860,32 +11862,32 @@ impl CodeOutcomeInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeOutlineOutput { - #[serde(default = "default_674")] - pub lessons: Vec>, #[serde(default = "default_675")] + pub lessons: Vec>, + #[serde(default = "default_676")] pub lessons_left_out: Integer, pub path: String, pub entries: Vec>, pub total: Integer, pub returned: Integer, pub elided: Integer, - #[serde(default = "default_676")] - pub next: String, #[serde(default = "default_677")] - pub indexed: bool, + pub next: String, #[serde(default = "default_678")] - pub verdict: String, + pub indexed: bool, #[serde(default = "default_679")] - pub tokens_returned: Integer, + pub verdict: String, #[serde(default = "default_680")] - pub took_ms: Integer, + pub tokens_returned: Integer, #[serde(default = "default_681")] - pub head: String, + pub took_ms: Integer, #[serde(default = "default_682")] - pub head_truncated: bool, + pub head: String, #[serde(default = "default_683")] - pub as_of: std::collections::HashMap, + pub head_truncated: bool, #[serde(default = "default_684")] + pub as_of: std::collections::HashMap, + #[serde(default = "default_685")] pub trace_run_id: String, } @@ -12037,19 +12039,19 @@ pub enum CodePathGuardsOutputEpistemic { #[non_exhaustive] pub struct CodePathGuardsOutput { pub verdict: CodePathGuardsOutputVerdict, - #[serde(default = "default_685")] - pub causes: Vec, #[serde(default = "default_686")] - pub epistemic: CodePathGuardsOutputEpistemic, + pub causes: Vec, #[serde(default = "default_687")] - pub explanation: String, + pub epistemic: CodePathGuardsOutputEpistemic, #[serde(default = "default_688")] - pub hops: Vec>, + pub explanation: String, #[serde(default = "default_689")] - pub named_at: Vec, + pub hops: Vec>, #[serde(default = "default_690")] - pub visited_symbols: Integer, + pub named_at: Vec, #[serde(default = "default_691")] + pub visited_symbols: Integer, + #[serde(default = "default_692")] pub trace_run_id: String, } @@ -12155,21 +12157,21 @@ impl CodePathGuardsInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodePrCheckOutput { - #[serde(default = "default_692")] - pub verdict: String, #[serde(default = "default_693")] - pub items: Vec>, + pub verdict: String, #[serde(default = "default_694")] - pub undecided: bool, + pub items: Vec>, #[serde(default = "default_695")] - pub epistemic: String, + pub undecided: bool, #[serde(default = "default_696")] - pub thresholds: std::collections::HashMap, + pub epistemic: String, #[serde(default = "default_697")] - pub legs: std::collections::HashMap, + pub thresholds: std::collections::HashMap, #[serde(default = "default_698")] - pub draft: std::collections::HashMap, + pub legs: std::collections::HashMap, #[serde(default = "default_699")] + pub draft: std::collections::HashMap, + #[serde(default = "default_700")] pub trace_run_id: String, } @@ -12358,22 +12360,22 @@ pub struct CodeReadRange { pub start_line: Integer, pub end_line: Integer, pub status: CodeReadRangeStatus, - #[serde(default = "default_702")] - pub indexed_commit: String, #[serde(default = "default_703")] + pub indexed_commit: String, + #[serde(default = "default_704")] pub windows: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeReadOutput { - #[serde(default = "default_700")] - pub lessons: Vec>, #[serde(default = "default_701")] + pub lessons: Vec>, + #[serde(default = "default_702")] pub lessons_left_out: Integer, pub results: Vec, pub as_of: std::collections::HashMap, - #[serde(default = "default_704")] + #[serde(default = "default_705")] pub trace_run_id: String, } @@ -12616,15 +12618,15 @@ impl CodeReadInput { #[non_exhaustive] pub struct CodeRecentCommitRow { pub commit: String, - #[serde(default = "default_705")] - pub subject: String, #[serde(default = "default_706")] - pub committed_at: String, + pub subject: String, #[serde(default = "default_707")] - pub ingested_at: String, + pub committed_at: String, #[serde(default = "default_708")] - pub files: Integer, + pub ingested_at: String, #[serde(default = "default_709")] + pub files: Integer, + #[serde(default = "default_710")] pub pr_number: Integer, } @@ -12727,11 +12729,11 @@ impl CodeRecentCommitsInput { #[non_exhaustive] pub struct CodeRefreshOutput { pub triggered: bool, - #[serde(default = "default_710")] - pub already_running: bool, #[serde(default = "default_711")] - pub head_before: String, + pub already_running: bool, #[serde(default = "default_712")] + pub head_before: String, + #[serde(default = "default_713")] pub head_after: String, } @@ -12934,22 +12936,22 @@ pub struct CodeRepoAddOutput { pub org: String, pub namespace: String, pub repo: String, - #[serde(default = "default_713")] - pub remote: String, #[serde(default = "default_714")] + pub remote: String, + #[serde(default = "default_715")] pub provider: String, pub branch: String, pub join_policy: String, pub classification: String, - #[serde(default = "default_715")] - pub index_stage: String, #[serde(default = "default_716")] - pub my_role: String, + pub index_stage: String, #[serde(default = "default_717")] - pub remote_head: String, + pub my_role: String, #[serde(default = "default_718")] - pub also: Vec>, + pub remote_head: String, #[serde(default = "default_719")] + pub also: Vec>, + #[serde(default = "default_720")] pub skipped: Vec>, } @@ -13177,29 +13179,29 @@ impl CodeRepoAddBranchInput { pub struct CodeRepoRemoteBranchesOutput { pub org: String, pub repo: String, - #[serde(default = "default_720")] - pub remote: String, #[serde(default = "default_721")] - pub provider: String, + pub remote: String, #[serde(default = "default_722")] - pub warnings: Vec, + pub provider: String, #[serde(default = "default_723")] - pub default_branch: String, + pub warnings: Vec, #[serde(default = "default_724")] - pub branches: Vec>, + pub default_branch: String, #[serde(default = "default_725")] - pub suggested: Vec, + pub branches: Vec>, #[serde(default = "default_726")] - pub indexed: Vec>, + pub suggested: Vec, #[serde(default = "default_727")] - pub cap: Integer, + pub indexed: Vec>, #[serde(default = "default_728")] - pub total: Integer, + pub cap: Integer, #[serde(default = "default_729")] - pub matched: Integer, + pub total: Integer, #[serde(default = "default_730")] - pub truncated: bool, + pub matched: Integer, #[serde(default = "default_731")] + pub truncated: bool, + #[serde(default = "default_732")] pub query: String, } @@ -13290,11 +13292,11 @@ pub struct CodeRepoRemoveOutput { pub registry_deactivated: bool, pub directory_deactivated: bool, pub purged_tables: Integer, - #[serde(default = "default_732")] - pub erasure_id: String, #[serde(default = "default_733")] - pub mirror_removed: bool, + pub erasure_id: String, #[serde(default = "default_734")] + pub mirror_removed: bool, + #[serde(default = "default_735")] pub sources_deactivated: Vec, } @@ -13428,14 +13430,14 @@ impl CodeRepoSetAccessInput { pub struct CodeRepoSetSourceOutput { pub org: String, pub namespace: String, - #[serde(default = "default_735")] - pub tracker_namespaces: Vec, #[serde(default = "default_736")] + pub tracker_namespaces: Vec, + #[serde(default = "default_737")] pub previous_tracker_namespaces: Vec, pub effective_within_s: Integer, - #[serde(default = "default_737")] - pub not_covering: Vec, #[serde(default = "default_738")] + pub not_covering: Vec, + #[serde(default = "default_739")] pub warning: String, } @@ -13867,47 +13869,47 @@ pub enum CodeReviewBriefOutputLedger { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeReviewBriefOutput { - #[serde(default = "default_739")] - pub verdict: CodeReviewBriefOutputVerdict, #[serde(default = "default_740")] - pub verdict_causes: Vec, + pub verdict: CodeReviewBriefOutputVerdict, #[serde(default = "default_741")] - pub pr_number: Integer, + pub verdict_causes: Vec, #[serde(default = "default_742")] - pub merge_sha: String, + pub pr_number: Integer, #[serde(default = "default_743")] - pub source: CodeReviewBriefOutputSource, + pub merge_sha: String, #[serde(default = "default_744")] - pub ledger: CodeReviewBriefOutputLedger, + pub source: CodeReviewBriefOutputSource, #[serde(default = "default_745")] - pub stored: bool, + pub ledger: CodeReviewBriefOutputLedger, #[serde(default = "default_746")] - pub provenance: std::collections::HashMap, + pub stored: bool, #[serde(default = "default_747")] - pub overlay: bool, + pub provenance: std::collections::HashMap, #[serde(default = "default_748")] - pub overlay_head_sha: String, + pub overlay: bool, #[serde(default = "default_749")] - pub overlay_added: Integer, + pub overlay_head_sha: String, #[serde(default = "default_750")] - pub overlay_note: String, + pub overlay_added: Integer, #[serde(default = "default_751")] - pub tier: String, + pub overlay_note: String, #[serde(default = "default_752")] - pub built_at: String, + pub tier: String, #[serde(default = "default_753")] - pub indexed_commit: String, + pub built_at: String, #[serde(default = "default_754")] - pub build_ms: Integer, + pub indexed_commit: String, #[serde(default = "default_755")] - pub tokens_used: Integer, + pub build_ms: Integer, #[serde(default = "default_756")] - pub token_budget: Integer, + pub tokens_used: Integer, #[serde(default = "default_757")] - pub decisions: std::collections::HashMap, + pub token_budget: Integer, #[serde(default = "default_758")] - pub sections: std::collections::HashMap>, + pub decisions: std::collections::HashMap, #[serde(default = "default_759")] + pub sections: std::collections::HashMap>, + #[serde(default = "default_760")] pub trace_run_id: String, } @@ -14292,11 +14294,11 @@ pub struct CodeScipStatusOutput { pub status: String, pub parts_received: Integer, pub total_parts: Integer, - #[serde(default = "default_760")] - pub error: String, #[serde(default = "default_761")] - pub commit_sha: String, + pub error: String, #[serde(default = "default_762")] + pub commit_sha: String, + #[serde(default = "default_763")] pub applied_at: String, } @@ -14455,63 +14457,63 @@ pub enum CodeSearchOutputEpistemic { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeSearchOutput { - #[serde(default = "default_763")] - pub lessons: Vec>, #[serde(default = "default_764")] + pub lessons: Vec>, + #[serde(default = "default_765")] pub lessons_left_out: Integer, pub results: Vec, pub route: String, - #[serde(default = "default_765")] - pub next_cursor: String, #[serde(default = "default_766")] - pub has_more: bool, + pub next_cursor: String, #[serde(default = "default_767")] - pub history: std::collections::HashMap, + pub has_more: bool, #[serde(default = "default_768")] - pub abstain: bool, + pub history: std::collections::HashMap, #[serde(default = "default_769")] - pub abstain_code: CodeSearchOutputAbstainCode, + pub abstain: bool, #[serde(default = "default_770")] - pub abstain_reason: String, + pub abstain_code: CodeSearchOutputAbstainCode, #[serde(default = "default_771")] - pub retrieval_risk: CodeSearchOutputRetrievalRisk, + pub abstain_reason: String, #[serde(default = "default_772")] - pub retrieval_confidence: f64, + pub retrieval_risk: CodeSearchOutputRetrievalRisk, #[serde(default = "default_773")] - pub pick_confidence: CodeSearchOutputPickConfidence, + pub retrieval_confidence: f64, #[serde(default = "default_774")] - pub route_agreement: f64, + pub pick_confidence: CodeSearchOutputPickConfidence, #[serde(default = "default_775")] - pub calibration_explanation: String, + pub route_agreement: f64, #[serde(default = "default_776")] - pub tokens_returned: Integer, + pub calibration_explanation: String, #[serde(default = "default_777")] - pub constrained: bool, + pub tokens_returned: Integer, #[serde(default = "default_778")] - pub matched_files: Integer, + pub constrained: bool, #[serde(default = "default_779")] - pub as_of: std::collections::HashMap, + pub matched_files: Integer, #[serde(default = "default_780")] - pub score_explanation: String, + pub as_of: std::collections::HashMap, #[serde(default = "default_781")] - pub retrieval_work: std::collections::HashMap, + pub score_explanation: String, #[serde(default = "default_782")] - pub trace_run_id: String, + pub retrieval_work: std::collections::HashMap, #[serde(default = "default_783")] - pub top_similarity: f64, + pub trace_run_id: String, #[serde(default = "default_784")] - pub tracked: std::collections::HashMap, + pub top_similarity: f64, #[serde(default = "default_785")] - pub fanout: std::collections::HashMap, + pub tracked: std::collections::HashMap, #[serde(default = "default_786")] - pub note: String, + pub fanout: std::collections::HashMap, #[serde(default = "default_787")] - pub legs_timed_out: Vec, + pub note: String, #[serde(default = "default_788")] - pub epistemic: CodeSearchOutputEpistemic, + pub legs_timed_out: Vec, #[serde(default = "default_789")] - pub partial: bool, + pub epistemic: CodeSearchOutputEpistemic, #[serde(default = "default_790")] + pub partial: bool, + #[serde(default = "default_791")] pub partial_reason: String, } @@ -15029,23 +15031,23 @@ impl CodeSearchInput { #[non_exhaustive] pub struct CodeSettingFactsOutput { pub name: String, - #[serde(default = "default_791")] - pub verdict: String, #[serde(default = "default_792")] - pub causes: Vec, + pub verdict: String, #[serde(default = "default_793")] - pub declaration: std::collections::HashMap, + pub causes: Vec, #[serde(default = "default_794")] - pub tier: String, + pub declaration: std::collections::HashMap, #[serde(default = "default_795")] - pub history: Vec>, + pub tier: String, #[serde(default = "default_796")] - pub randomized_in_ci: std::collections::HashMap, + pub history: Vec>, #[serde(default = "default_797")] - pub tests_total: Integer, + pub randomized_in_ci: std::collections::HashMap, #[serde(default = "default_798")] - pub control: std::collections::HashMap, + pub tests_total: Integer, #[serde(default = "default_799")] + pub control: std::collections::HashMap, + #[serde(default = "default_800")] pub trace_run_id: String, } @@ -15467,31 +15469,31 @@ impl CodeSymbolInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeSymbolHistoryOutput { - #[serde(default = "default_800")] - pub verdict: String, #[serde(default = "default_801")] - pub causes: Vec, + pub verdict: String, #[serde(default = "default_802")] - pub epistemic: String, + pub causes: Vec, #[serde(default = "default_803")] - pub symbol: std::collections::HashMap, + pub epistemic: String, #[serde(default = "default_804")] - pub ambiguous: bool, + pub symbol: std::collections::HashMap, #[serde(default = "default_805")] - pub candidates: Vec, + pub ambiguous: bool, #[serde(default = "default_806")] - pub prs: Vec>, + pub candidates: Vec, #[serde(default = "default_807")] - pub review_comments: Vec>, + pub prs: Vec>, #[serde(default = "default_808")] - pub open_issues_naming: Vec>, + pub review_comments: Vec>, #[serde(default = "default_809")] - pub summary: std::collections::HashMap, + pub open_issues_naming: Vec>, #[serde(default = "default_810")] - pub tracker_namespace: String, + pub summary: std::collections::HashMap, #[serde(default = "default_811")] - pub tracker_unavailable: bool, + pub tracker_namespace: String, #[serde(default = "default_812")] + pub tracker_unavailable: bool, + #[serde(default = "default_813")] pub trace_run_id: String, } @@ -15609,43 +15611,43 @@ impl CodeSymbolHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeTestGateOutput { - #[serde(default = "default_813")] - pub tests: Vec>, #[serde(default = "default_814")] - pub untested: Vec>, + pub tests: Vec>, #[serde(default = "default_815")] - pub unlinked: Vec>, + pub untested: Vec>, #[serde(default = "default_816")] - pub changed_files: Vec, + pub unlinked: Vec>, #[serde(default = "default_817")] - pub touched_symbols: Vec>, + pub changed_files: Vec, #[serde(default = "default_818")] - pub obligations: bool, + pub touched_symbols: Vec>, #[serde(default = "default_819")] - pub tests_total: Integer, + pub obligations: bool, #[serde(default = "default_820")] - pub tests_unnamed: Integer, + pub tests_total: Integer, #[serde(default = "default_821")] - pub untested_total: Integer, + pub tests_unnamed: Integer, #[serde(default = "default_822")] - pub unlinked_total: Integer, + pub untested_total: Integer, #[serde(default = "default_823")] - pub tests_capped: bool, + pub unlinked_total: Integer, #[serde(default = "default_824")] - pub untested_capped: bool, + pub tests_capped: bool, #[serde(default = "default_825")] - pub unlinked_capped: bool, + pub untested_capped: bool, #[serde(default = "default_826")] - pub counts_floor: bool, + pub unlinked_capped: bool, #[serde(default = "default_827")] - pub epistemic: String, + pub counts_floor: bool, #[serde(default = "default_828")] - pub causes: Vec, + pub epistemic: String, #[serde(default = "default_829")] - pub by_hop_counts: std::collections::HashMap, + pub causes: Vec, #[serde(default = "default_830")] - pub at_commit: std::collections::HashMap, + pub by_hop_counts: std::collections::HashMap, #[serde(default = "default_831")] + pub at_commit: std::collections::HashMap, + #[serde(default = "default_832")] pub trace_run_id: String, } @@ -15785,21 +15787,21 @@ impl CodeTestGateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeTestHomeOutput { - #[serde(default = "default_832")] - pub verdict: String, #[serde(default = "default_833")] - pub home: String, + pub verdict: String, #[serde(default = "default_834")] - pub candidates: Vec>, + pub home: String, #[serde(default = "default_835")] - pub parts: Vec, + pub candidates: Vec>, #[serde(default = "default_836")] - pub src_paths: Vec, + pub parts: Vec, #[serde(default = "default_837")] - pub next_free_stateless_number: Integer, + pub src_paths: Vec, #[serde(default = "default_838")] - pub control: std::collections::HashMap, + pub next_free_stateless_number: Integer, #[serde(default = "default_839")] + pub control: std::collections::HashMap, + #[serde(default = "default_840")] pub trace_run_id: String, } @@ -15939,29 +15941,29 @@ impl CodeTestHomeInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeTestsForOutput { - #[serde(default = "default_840")] - pub tests: Vec>, #[serde(default = "default_841")] - pub total: Integer, + pub tests: Vec>, #[serde(default = "default_842")] - pub truncated: bool, + pub total: Integer, #[serde(default = "default_843")] - pub facets: Vec>, + pub truncated: bool, #[serde(default = "default_844")] - pub verdict: String, + pub facets: Vec>, #[serde(default = "default_845")] - pub abstain: bool, + pub verdict: String, #[serde(default = "default_846")] - pub uncovered_kinds: Vec, + pub abstain: bool, #[serde(default = "default_847")] - pub as_of: std::collections::HashMap, + pub uncovered_kinds: Vec, #[serde(default = "default_848")] - pub at_commit: std::collections::HashMap, + pub as_of: std::collections::HashMap, #[serde(default = "default_849")] - pub tokens_returned: Integer, + pub at_commit: std::collections::HashMap, #[serde(default = "default_850")] - pub took_ms: Integer, + pub tokens_returned: Integer, #[serde(default = "default_851")] + pub took_ms: Integer, + #[serde(default = "default_852")] pub trace_run_id: String, } @@ -16078,9 +16080,9 @@ impl CodeTestsForInput { pub struct CodeTraceOutput { pub frames: Vec>, pub definitions: Vec, - #[serde(default = "default_852")] - pub tokens_returned: Integer, #[serde(default = "default_853")] + pub tokens_returned: Integer, + #[serde(default = "default_854")] pub trace_run_id: String, } @@ -16196,16 +16198,16 @@ pub enum CodeVerifyOutputVerdict { #[non_exhaustive] pub struct CodeVerifyOutput { pub verdict: CodeVerifyOutputVerdict, - #[serde(default = "default_854")] + #[serde(default = "default_855")] pub reason: String, pub explanation: String, - #[serde(default = "default_855")] - pub evidence: Vec>, #[serde(default = "default_856")] - pub floors: std::collections::HashMap, + pub evidence: Vec>, #[serde(default = "default_857")] - pub index_verdict: String, + pub floors: std::collections::HashMap, #[serde(default = "default_858")] + pub index_verdict: String, + #[serde(default = "default_859")] pub trace_run_id: String, } @@ -16327,29 +16329,29 @@ impl CodeVerifyInput { #[non_exhaustive] pub struct CodeVerifyCitationsOutput { pub verdict: String, - #[serde(default = "default_859")] - pub counts: std::collections::HashMap, #[serde(default = "default_860")] - pub citations: Vec>, + pub counts: std::collections::HashMap, #[serde(default = "default_861")] - pub skipped: Vec>, + pub citations: Vec>, #[serde(default = "default_862")] - pub truncated: bool, + pub skipped: Vec>, #[serde(default = "default_863")] - pub epistemic: std::collections::HashMap, + pub truncated: bool, #[serde(default = "default_864")] - pub at_commit: std::collections::HashMap, + pub epistemic: std::collections::HashMap, #[serde(default = "default_865")] - pub pr_diff: std::collections::HashMap, + pub at_commit: std::collections::HashMap, #[serde(default = "default_866")] - pub namespaces: Vec, + pub pr_diff: std::collections::HashMap, #[serde(default = "default_867")] - pub took_ms: Integer, + pub namespaces: Vec, #[serde(default = "default_868")] - pub as_of: std::collections::HashMap, + pub took_ms: Integer, #[serde(default = "default_869")] - pub note: String, + pub as_of: std::collections::HashMap, #[serde(default = "default_870")] + pub note: String, + #[serde(default = "default_871")] pub trace_run_id: String, } @@ -16608,7 +16610,7 @@ pub struct CollectionCreateOutput { pub namespace: String, pub parent: String, pub created: bool, - #[serde(default = "default_871")] + #[serde(default = "default_872")] pub title: String, } @@ -16706,9 +16708,9 @@ impl CollectionCreateInput { pub struct CollectionDeleteOutput { pub namespace: String, pub deleted: bool, - #[serde(default = "default_872")] - pub erasure_id: String, #[serde(default = "default_873")] + pub erasure_id: String, + #[serde(default = "default_874")] pub erasure_status: String, } @@ -16750,11 +16752,11 @@ pub struct CollectionEntry { pub parent: String, pub personal: bool, pub role: String, - #[serde(default = "default_874")] - pub description: String, #[serde(default = "default_875")] - pub title: String, + pub description: String, #[serde(default = "default_876")] + pub title: String, + #[serde(default = "default_877")] pub document_count: Option, } @@ -16762,7 +16764,7 @@ pub struct CollectionEntry { #[non_exhaustive] pub struct CollectionListOutput { pub collections: Vec, - #[serde(default = "default_877")] + #[serde(default = "default_878")] pub next_cursor: Option, } @@ -17104,13 +17106,13 @@ pub struct ConflictRow { #[non_exhaustive] pub struct ConflictsListOutput { pub rows: Vec, - #[serde(default = "default_878")] - pub next_before_version: Option, #[serde(default = "default_879")] - pub total: Option, + pub next_before_version: Option, #[serde(default = "default_880")] - pub proposals: Option, + pub total: Option, #[serde(default = "default_881")] + pub proposals: Option, + #[serde(default = "default_882")] pub keys: Option>, } @@ -17262,7 +17264,7 @@ pub struct ConflictRevisionSuggestion { pub target_local_id: Integer, pub peer_local_ids: Vec, pub rationale: String, - #[serde(default = "default_883")] + #[serde(default = "default_884")] pub apply_operation: String, } @@ -17270,11 +17272,11 @@ pub struct ConflictRevisionSuggestion { #[non_exhaustive] pub struct ConflictsProposeRevisionOutput { pub found: bool, - #[serde(default = "default_882")] + #[serde(default = "default_883")] pub memories: Vec, - #[serde(default = "default_884")] - pub suggestions: Vec, #[serde(default = "default_885")] + pub suggestions: Vec, + #[serde(default = "default_886")] pub note: String, } @@ -17354,9 +17356,9 @@ pub struct ConflictsResolveOutput { pub resolved: bool, pub decision: ConflictsResolveOutputDecision, pub affected_memory_ids: Vec, - #[serde(default = "default_886")] - pub resolved_at: Option, #[serde(default = "default_887")] + pub resolved_at: Option, + #[serde(default = "default_888")] pub total: Option, } @@ -17513,13 +17515,13 @@ pub enum ConnectionEntryKind { pub struct ConnectionEntry { pub kind: ConnectionEntryKind, pub connected: bool, - #[serde(default = "default_888")] - pub connect_available: bool, #[serde(default = "default_889")] - pub stored: bool, + pub connect_available: bool, #[serde(default = "default_890")] - pub account_email: Option, + pub stored: bool, #[serde(default = "default_891")] + pub account_email: Option, + #[serde(default = "default_892")] pub scopes: Vec, pub connect_url: String, } @@ -17694,23 +17696,23 @@ impl ConsolidationsListInput { pub struct ContextFetchOutput { pub found: bool, pub blob_key: String, - #[serde(default = "default_892")] - pub content: String, #[serde(default = "default_893")] - pub content_type: String, + pub content: String, #[serde(default = "default_894")] - pub summary: String, + pub content_type: String, #[serde(default = "default_895")] - pub total_chars: Integer, + pub summary: String, #[serde(default = "default_896")] - pub total_lines: Integer, + pub total_chars: Integer, #[serde(default = "default_897")] - pub offset: Integer, + pub total_lines: Integer, #[serde(default = "default_898")] - pub next_offset: Integer, + pub offset: Integer, #[serde(default = "default_899")] - pub matched_lines: Integer, + pub next_offset: Integer, #[serde(default = "default_900")] + pub matched_lines: Integer, + #[serde(default = "default_901")] pub expires_at: Option, } @@ -18004,9 +18006,9 @@ pub enum ConversationAppendOutputReason { pub struct ConversationAppendOutput { pub msg_id: String, pub ts: String, - #[serde(default = "default_901")] - pub stored: bool, #[serde(default = "default_902")] + pub stored: bool, + #[serde(default = "default_903")] pub reason: ConversationAppendOutputReason, } @@ -18155,13 +18157,13 @@ impl ConversationAppendInput { pub struct ConversationCompactOutput { pub compacted: bool, pub messages_summarized: Integer, - #[serde(default = "default_903")] - pub summary_msg_id: String, #[serde(default = "default_904")] - pub tokens_in: Integer, + pub summary_msg_id: String, #[serde(default = "default_905")] - pub tokens_out: Integer, + pub tokens_in: Integer, #[serde(default = "default_906")] + pub tokens_out: Integer, + #[serde(default = "default_907")] pub reason: String, } @@ -18425,7 +18427,7 @@ pub enum ConversationEntryRole { #[non_exhaustive] pub struct ConversationEntry { pub msg_id: String, - #[serde(default = "default_915")] + #[serde(default = "default_916")] pub agent: String, pub role: ConversationEntryRole, pub content: String, @@ -18442,25 +18444,25 @@ pub struct ConversationEntry { pub struct ConversationGetOutput { pub found: bool, pub thread_id: String, - #[serde(default = "default_907")] - pub title: String, #[serde(default = "default_908")] - pub metadata: std::collections::HashMap, + pub title: String, #[serde(default = "default_909")] - pub run_id: String, + pub metadata: std::collections::HashMap, #[serde(default = "default_910")] - pub user_id: String, + pub run_id: String, #[serde(default = "default_911")] - pub agent: String, + pub user_id: String, #[serde(default = "default_912")] - pub created_at: Option, + pub agent: String, #[serde(default = "default_913")] - pub updated_at: Option, + pub created_at: Option, #[serde(default = "default_914")] + pub updated_at: Option, + #[serde(default = "default_915")] pub msg_count: Integer, - #[serde(default = "default_916")] - pub messages: Vec, #[serde(default = "default_917")] + pub messages: Vec, + #[serde(default = "default_918")] pub next_cursor: Option, } @@ -18574,7 +18576,7 @@ impl ConversationGetInput { #[non_exhaustive] pub struct ConversationListOutput { pub rows: Vec, - #[serde(default = "default_918")] + #[serde(default = "default_919")] pub next_cursor: Option, } @@ -18720,7 +18722,7 @@ pub struct SavedMessageHit { #[non_exhaustive] pub struct ConversationListSavedMessagesOutput { pub rows: Vec, - #[serde(default = "default_919")] + #[serde(default = "default_920")] pub next_cursor: Option, } @@ -18860,7 +18862,7 @@ pub struct ConversationSaveMessageOutput { pub conversation_id: String, pub message_id: String, pub indexed: bool, - #[serde(default = "default_920")] + #[serde(default = "default_921")] pub reason: ConversationSaveMessageOutputReason, pub ts: String, } @@ -19033,7 +19035,7 @@ pub struct ConversationHit { pub role: ConversationHitRole, pub content_excerpt: String, pub ts: String, - #[serde(default = "default_921")] + #[serde(default = "default_922")] pub namespace: String, } @@ -19041,7 +19043,7 @@ pub struct ConversationHit { #[non_exhaustive] pub struct ConversationSearchOutput { pub hits: Vec, - #[serde(default = "default_922")] + #[serde(default = "default_923")] pub namespaces_skipped: Vec, } @@ -19574,7 +19576,7 @@ pub struct ConversationUnsaveMessageOutput { pub conversation_id: String, pub message_id: String, pub found: bool, - #[serde(default = "default_923")] + #[serde(default = "default_924")] pub removed: bool, pub ts: String, } @@ -19647,7 +19649,7 @@ impl ConversationUnsaveMessageInput { pub struct ConversationUpdateOutput { pub updated: bool, pub thread_id: String, - #[serde(default = "default_924")] + #[serde(default = "default_925")] pub updated_at: Option, } @@ -19752,17 +19754,17 @@ impl ConversationUpdateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CostAgentSummaryRow { - #[serde(default = "default_925")] - pub namespace: Option, #[serde(default = "default_926")] - pub agent: Option, + pub namespace: Option, #[serde(default = "default_927")] - pub day: Option, + pub agent: Option, #[serde(default = "default_928")] - pub model: Option, + pub day: Option, #[serde(default = "default_929")] - pub consumer: Option, + pub model: Option, #[serde(default = "default_930")] + pub consumer: Option, + #[serde(default = "default_931")] pub session_id: Option, pub turns: Integer, pub sessions: Integer, @@ -19911,18 +19913,18 @@ pub enum BudgetStatusOutputCapSource { #[non_exhaustive] pub struct BudgetStatusOutput { pub namespace: String, - #[serde(default = "default_931")] + #[serde(default = "default_932")] pub user_id: Option, #[serde(deserialize_with = "required_nullable")] pub spent_24h_usd: Option, pub cap_usd: f64, pub cap_source: BudgetStatusOutputCapSource, pub over_cap: bool, - #[serde(default = "default_932")] - pub namespace_over_cap: Option, #[serde(default = "default_933")] - pub pct_of_cap: Option, + pub namespace_over_cap: Option, #[serde(default = "default_934")] + pub pct_of_cap: Option, + #[serde(default = "default_935")] pub namespaces_with_spend: Integer, } @@ -19995,11 +19997,11 @@ impl BudgetStatusInput { pub struct CostRecordTurnsOutput { pub recorded: Integer, pub priced: Integer, - #[serde(default = "default_935")] - pub unpriced_models: Vec, #[serde(default = "default_936")] - pub cost_usd: f64, + pub unpriced_models: Vec, #[serde(default = "default_937")] + pub cost_usd: f64, + #[serde(default = "default_938")] pub turns_dated_ahead: Integer, } @@ -20170,25 +20172,25 @@ impl CostRecordTurnsInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CostSummaryRow { - #[serde(default = "default_938")] - pub namespace: Option, #[serde(default = "default_939")] - pub agent: Option, + pub namespace: Option, #[serde(default = "default_940")] - pub day: Option, + pub agent: Option, #[serde(default = "default_941")] - pub operation: Option, + pub day: Option, #[serde(default = "default_942")] - pub memory_key: Option, + pub operation: Option, #[serde(default = "default_943")] - pub user_id: Option, + pub memory_key: Option, #[serde(default = "default_944")] - pub model: Option, + pub user_id: Option, #[serde(default = "default_945")] - pub traffic_class: Option, + pub model: Option, #[serde(default = "default_946")] - pub instance_label: Option, + pub traffic_class: Option, #[serde(default = "default_947")] + pub instance_label: Option, + #[serde(default = "default_948")] pub build_commit: Option, pub ops: Integer, pub errors: Integer, @@ -20198,9 +20200,9 @@ pub struct CostSummaryRow { pub latency_p50_ms: f64, pub latency_p95_ms: f64, pub latency_p99_ms: f64, - #[serde(default = "default_948")] - pub cache_hits: Integer, #[serde(default = "default_949")] + pub cache_hits: Integer, + #[serde(default = "default_950")] pub cache_saved_usd: f64, } @@ -20211,9 +20213,9 @@ pub struct CostSummaryOutput { pub total_ops: Integer, pub total_errors: Integer, pub total_cost_usd: f64, - #[serde(default = "default_950")] - pub cache_hits: Integer, #[serde(default = "default_951")] + pub cache_hits: Integer, + #[serde(default = "default_952")] pub cache_saved_usd: f64, } @@ -20400,31 +20402,31 @@ pub enum DecisionRowStage { #[non_exhaustive] pub struct DecisionRow { pub memory_key: String, - #[serde(default = "default_952")] - pub category: String, #[serde(default = "default_953")] - pub scenario: String, + pub category: String, #[serde(default = "default_954")] - pub reasoning: String, + pub scenario: String, #[serde(default = "default_955")] - pub outcome: String, + pub reasoning: String, #[serde(default = "default_956")] - pub alternatives: Vec, + pub outcome: String, #[serde(default = "default_957")] - pub confidence: Option, + pub alternatives: Vec, #[serde(default = "default_958")] - pub decision_maker: String, + pub confidence: Option, #[serde(default = "default_959")] - pub run_id: String, + pub decision_maker: String, #[serde(default = "default_960")] - pub realized_outcome: String, + pub run_id: String, #[serde(default = "default_961")] - pub success: Option, + pub realized_outcome: String, #[serde(default = "default_962")] - pub made_at: String, + pub success: Option, #[serde(default = "default_963")] - pub stage: DecisionRowStage, + pub made_at: String, #[serde(default = "default_964")] + pub stage: DecisionRowStage, + #[serde(default = "default_965")] pub similarity: f64, } @@ -20436,7 +20438,7 @@ pub struct ChainNodeRow { pub relation: String, pub direction: String, pub via: String, - #[serde(default = "default_966")] + #[serde(default = "default_967")] pub decision: Option, } @@ -20444,7 +20446,7 @@ pub struct ChainNodeRow { #[non_exhaustive] pub struct DecisionChainOutput { pub seed: String, - #[serde(default = "default_965")] + #[serde(default = "default_966")] pub seed_decision: Option, pub nodes: Vec, } @@ -20529,7 +20531,7 @@ impl DecisionChainInput { pub struct DecisionOutcomeOutput { pub memory_key: String, pub updated: bool, - #[serde(default = "default_967")] + #[serde(default = "default_968")] pub memories_credited: Integer, } @@ -20607,7 +20609,7 @@ impl DecisionOutcomeInput { #[non_exhaustive] pub struct DecisionPrecedentsOutput { pub precedents: Vec, - #[serde(default = "default_968")] + #[serde(default = "default_969")] pub embedding_model: String, } @@ -20702,11 +20704,11 @@ impl DecisionPrecedentsInput { pub struct DecisionRecordOutput { pub memory_key: String, pub record_id: String, - #[serde(default = "default_969")] - pub superseded_prior: bool, #[serde(default = "default_970")] - pub edges_written: Integer, + pub superseded_prior: bool, #[serde(default = "default_971")] + pub edges_written: Integer, + #[serde(default = "default_972")] pub next: String, } @@ -20982,7 +20984,7 @@ pub enum ErasureExportOutputScopeType { pub struct ErasureExportSection { pub rows: Vec>, pub count: Integer, - #[serde(default = "default_972")] + #[serde(default = "default_973")] pub truncated: bool, } @@ -21095,17 +21097,17 @@ pub struct ErasureListRow { pub requester: String, pub status: ErasureListRowStatus, pub requested_at: String, - #[serde(default = "default_973")] - pub completed_at: Option, #[serde(default = "default_974")] - pub failure_reason: String, + pub completed_at: Option, #[serde(default = "default_975")] - pub steps_completed_count: Integer, + pub failure_reason: String, #[serde(default = "default_976")] - pub reversals_count: Integer, + pub steps_completed_count: Integer, #[serde(default = "default_977")] - pub residue_count: Integer, + pub reversals_count: Integer, #[serde(default = "default_978")] + pub residue_count: Integer, + #[serde(default = "default_979")] pub verified_at: Option, } @@ -21202,7 +21204,7 @@ pub enum ErasureRequestOutputStatus { pub struct ErasureStepResult { pub step: String, pub rows_affected: Integer, - #[serde(default = "default_979")] + #[serde(default = "default_980")] pub notes: String, } @@ -21213,21 +21215,21 @@ pub struct ErasureRequestOutput { pub status: ErasureRequestOutputStatus, pub steps: Vec, pub requested_at: String, - #[serde(default = "default_980")] - pub completed_at: Option, #[serde(default = "default_981")] - pub residue_count: Integer, + pub completed_at: Option, #[serde(default = "default_982")] - pub residue: std::collections::HashMap, + pub residue_count: Integer, #[serde(default = "default_983")] - pub verified_at: Option, + pub residue: std::collections::HashMap, #[serde(default = "default_984")] - pub census: Option>, + pub verified_at: Option, #[serde(default = "default_985")] - pub purge: bool, + pub census: Option>, #[serde(default = "default_986")] - pub failure_reason: String, + pub purge: bool, #[serde(default = "default_987")] + pub failure_reason: String, + #[serde(default = "default_988")] pub steps_completed: Vec, } @@ -21339,33 +21341,33 @@ pub enum ErasureStatusOutputStatus { pub struct ErasureStatusOutput { pub found: bool, pub erasure_id: String, - #[serde(default = "default_988")] - pub org: Option, #[serde(default = "default_989")] - pub scope_type: Option, + pub org: Option, #[serde(default = "default_990")] - pub scope_value: Option, + pub scope_type: Option, #[serde(default = "default_991")] - pub requester: Option, + pub scope_value: Option, #[serde(default = "default_992")] - pub status: Option, + pub requester: Option, #[serde(default = "default_993")] - pub current_step: Option, + pub status: Option, #[serde(default = "default_994")] - pub requested_at: Option, + pub current_step: Option, #[serde(default = "default_995")] - pub completed_at: Option, + pub requested_at: Option, #[serde(default = "default_996")] - pub failure_reason: Option, + pub completed_at: Option, #[serde(default = "default_997")] - pub residue_count: Integer, + pub failure_reason: Option, #[serde(default = "default_998")] - pub residue: std::collections::HashMap, + pub residue_count: Integer, #[serde(default = "default_999")] - pub verified_at: Option, + pub residue: std::collections::HashMap, #[serde(default = "default_1000")] - pub census: Option>, + pub verified_at: Option, #[serde(default = "default_1001")] + pub census: Option>, + #[serde(default = "default_1002")] pub purge: bool, } @@ -21402,9 +21404,9 @@ pub enum ExtractionPolicyOutputScope { #[non_exhaustive] pub struct NamespacePolicy { pub namespace: String, - #[serde(default = "default_1007")] - pub updated_by: String, #[serde(default = "default_1008")] + pub updated_by: String, + #[serde(default = "default_1009")] pub updated_at: Option, } @@ -21413,17 +21415,17 @@ pub struct NamespacePolicy { pub struct ExtractionPolicyOutput { pub org: String, pub scope: ExtractionPolicyOutputScope, - #[serde(default = "default_1002")] - pub namespace: String, #[serde(default = "default_1003")] - pub policy: String, + pub namespace: String, #[serde(default = "default_1004")] - pub updated_by: String, + pub policy: String, #[serde(default = "default_1005")] - pub updated_at: Option, + pub updated_by: String, #[serde(default = "default_1006")] + pub updated_at: Option, + #[serde(default = "default_1007")] pub effective: String, - #[serde(default = "default_1009")] + #[serde(default = "default_1010")] pub namespace_policies: Vec, } @@ -21657,13 +21659,13 @@ pub struct FactRow { pub object: String, pub co_occur: Integer, pub last_seen: String, - #[serde(default = "default_1010")] - pub provenance: String, #[serde(default = "default_1011")] - pub source_keys: Vec, + pub provenance: String, #[serde(default = "default_1012")] - pub sources: Vec, + pub source_keys: Vec, #[serde(default = "default_1013")] + pub sources: Vec, + #[serde(default = "default_1014")] pub stale: bool, } @@ -21671,7 +21673,7 @@ pub struct FactRow { #[non_exhaustive] pub struct FactsListOutput { pub rows: Vec, - #[serde(default = "default_1014")] + #[serde(default = "default_1015")] pub truncated: bool, } @@ -21890,14 +21892,14 @@ impl FactsListInput { pub struct PathEdge { pub entity_a: String, pub entity_b: String, - #[serde(default = "default_1015")] - pub relation: String, #[serde(default = "default_1016")] + pub relation: String, + #[serde(default = "default_1017")] pub direction: String, pub co_occur: Integer, - #[serde(default = "default_1017")] - pub valid_from: Option, #[serde(default = "default_1018")] + pub valid_from: Option, + #[serde(default = "default_1019")] pub valid_to: Option, } @@ -22128,23 +22130,23 @@ pub struct TraversalNode { pub hop: Integer, pub cumulative_weight: f64, pub via_co_occur: Integer, - #[serde(default = "default_1020")] - pub hub: bool, #[serde(default = "default_1021")] - pub degree: Integer, + pub hub: bool, #[serde(default = "default_1022")] - pub via_relation: String, + pub degree: Integer, #[serde(default = "default_1023")] - pub via_direction: String, + pub via_relation: String, #[serde(default = "default_1024")] - pub via_provenance: String, + pub via_direction: String, #[serde(default = "default_1025")] - pub valid_from: String, + pub via_provenance: String, #[serde(default = "default_1026")] - pub valid_to: String, + pub valid_from: String, #[serde(default = "default_1027")] - pub community_id: Option, + pub valid_to: String, #[serde(default = "default_1028")] + pub community_id: Option, + #[serde(default = "default_1029")] pub path: Vec, } @@ -22152,12 +22154,12 @@ pub struct TraversalNode { #[non_exhaustive] pub struct FactsTraverseOutput { pub seed: String, - #[serde(default = "default_1019")] + #[serde(default = "default_1020")] pub seed_community_id: Option, pub nodes: Vec, - #[serde(default = "default_1029")] - pub truncated: bool, #[serde(default = "default_1030")] + pub truncated: bool, + #[serde(default = "default_1031")] pub hubs: Vec, } @@ -22366,7 +22368,7 @@ pub struct GrantsApproveOutput { pub subject: String, pub namespace: String, pub decision: GrantsApproveOutputDecision, - #[serde(default = "default_1031")] + #[serde(default = "default_1032")] pub role: Option, pub decided_at: String, } @@ -22645,9 +22647,9 @@ pub struct GrantEntry { #[non_exhaustive] pub struct GrantsListOutput { pub rows: Vec, - #[serde(default = "default_1032")] - pub next_cursor: Option, #[serde(default = "default_1033")] + pub next_cursor: Option, + #[serde(default = "default_1034")] pub truncated: bool, } @@ -22763,12 +22765,12 @@ pub enum PendingForMeEntryRequestedRole { #[non_exhaustive] pub struct PendingForMeEntry { pub namespace: String, - #[serde(default = "default_1034")] + #[serde(default = "default_1035")] pub kind: String, pub subject: String, pub current_role: PendingForMeEntryCurrentRole, pub requested_role: PendingForMeEntryRequestedRole, - #[serde(default = "default_1035")] + #[serde(default = "default_1036")] pub pending_since: Option, } @@ -22827,7 +22829,7 @@ impl GrantsPendingForMeInput { #[non_exhaustive] pub struct GrantsRevokeOutput { pub revoked: bool, - #[serde(default = "default_1036")] + #[serde(default = "default_1037")] pub revoked_at: Option, } @@ -22957,7 +22959,7 @@ impl GrantsShareAgentInput { #[non_exhaustive] pub struct GrantsUnshareAgentOutput { pub revoked: bool, - #[serde(default = "default_1037")] + #[serde(default = "default_1038")] pub revoked_at: Option, } @@ -23017,7 +23019,7 @@ pub enum HelpGetOutputAudience { pub struct HelpOutlineEntry { pub section: String, pub anchor: String, - #[serde(default = "default_1045")] + #[serde(default = "default_1046")] pub heading: String, } @@ -23027,21 +23029,21 @@ pub struct HelpGetOutput { pub available: bool, pub found: bool, pub path: String, - #[serde(default = "default_1038")] - pub title: String, #[serde(default = "default_1039")] - pub section: String, + pub title: String, #[serde(default = "default_1040")] - pub anchor: String, + pub section: String, #[serde(default = "default_1041")] - pub audience: HelpGetOutputAudience, + pub anchor: String, #[serde(default = "default_1042")] - pub text: String, + pub audience: HelpGetOutputAudience, #[serde(default = "default_1043")] - pub truncated: bool, + pub text: String, #[serde(default = "default_1044")] + pub truncated: bool, + #[serde(default = "default_1045")] pub next_offset: Integer, - #[serde(default = "default_1046")] + #[serde(default = "default_1047")] pub sections: Vec, } @@ -23186,21 +23188,21 @@ pub struct InboxPayload { pub inbox: String, pub owner_agent: String, pub owner_namespace: String, - #[serde(default = "default_1047")] - pub description: String, #[serde(default = "default_1048")] - pub posters: Vec, + pub description: String, #[serde(default = "default_1049")] + pub posters: Vec, + #[serde(default = "default_1050")] pub accept_disclosure: Vec, pub default_lease_seconds: Integer, pub max_attempts: Integer, pub max_defers: Integer, pub triage_escalate_after_seconds: Integer, - #[serde(default = "default_1050")] - pub webhook_url: String, #[serde(default = "default_1051")] - pub created_by: String, + pub webhook_url: String, #[serde(default = "default_1052")] + pub created_by: String, + #[serde(default = "default_1053")] pub owner_subject: String, pub created_at: String, pub updated_at: String, @@ -23310,9 +23312,9 @@ pub struct PolicyPayload { pub poster: String, pub kind: String, pub mode: PolicyPayloadMode, - #[serde(default = "default_1053")] - pub require_evidence: Vec, #[serde(default = "default_1054")] + pub require_evidence: Vec, + #[serde(default = "default_1055")] pub set_by: String, pub set_at: String, pub version: Integer, @@ -23382,7 +23384,7 @@ impl InboxPolicyListInput { pub struct InboxPolicySetOutput { #[serde(deserialize_with = "required_nullable")] pub policy: Option, - #[serde(default = "default_1055")] + #[serde(default = "default_1056")] pub removed: bool, } @@ -23511,15 +23513,15 @@ pub struct Principal { pub subject: String, pub label: String, pub kind: PrincipalKind, - #[serde(default = "default_1056")] - pub namespaces: Vec, #[serde(default = "default_1057")] - pub roles: Vec, + pub namespaces: Vec, #[serde(default = "default_1058")] - pub last_seen: Option, + pub roles: Vec, #[serde(default = "default_1059")] - pub can_already_post: bool, + pub last_seen: Option, #[serde(default = "default_1060")] + pub can_already_post: bool, + #[serde(default = "default_1061")] pub listed: bool, } @@ -23881,15 +23883,15 @@ pub struct AnalysisColumn { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InsightsQueryOutput { - #[serde(default = "default_1061")] - pub columns: Vec, #[serde(default = "default_1062")] - pub rows: Vec>, + pub columns: Vec, #[serde(default = "default_1063")] - pub row_count: Integer, + pub rows: Vec>, #[serde(default = "default_1064")] - pub truncated: bool, + pub row_count: Integer, #[serde(default = "default_1065")] + pub truncated: bool, + #[serde(default = "default_1066")] pub sql_digest: String, } @@ -24188,32 +24190,32 @@ pub struct DatasetOut { pub dataset_id: String, pub source_uri: String, pub name: String, - #[serde(default = "default_1066")] - pub sheet: String, #[serde(default = "default_1067")] - pub row_start: Integer, + pub sheet: String, #[serde(default = "default_1068")] + pub row_start: Integer, + #[serde(default = "default_1069")] pub row_end: Integer, pub revision: Integer, pub snapshot_id: String, pub schema_state: String, pub columns: Vec, - #[serde(default = "default_1069")] + #[serde(default = "default_1070")] pub clarifications: Vec, pub row_count: Integer, - #[serde(default = "default_1070")] - pub rejected_rows: Integer, #[serde(default = "default_1071")] - pub rejected: Vec, + pub rejected_rows: Integer, #[serde(default = "default_1072")] - pub complete: bool, + pub rejected: Vec, #[serde(default = "default_1073")] - pub approved_by: String, + pub complete: bool, #[serde(default = "default_1074")] - pub approved_at: Option, + pub approved_by: String, #[serde(default = "default_1075")] - pub created_at: Option, + pub approved_at: Option, #[serde(default = "default_1076")] + pub created_at: Option, + #[serde(default = "default_1077")] pub rows: Vec>, } @@ -24221,9 +24223,9 @@ pub struct DatasetOut { #[non_exhaustive] pub struct KnowledgeDatasetApproveOutput { pub found: bool, - #[serde(default = "default_1077")] - pub dataset: Option, #[serde(default = "default_1078")] + pub dataset: Option, + #[serde(default = "default_1079")] pub retyped: bool, } @@ -24317,9 +24319,9 @@ impl KnowledgeDatasetApproveInput { #[non_exhaustive] pub struct KnowledgeDatasetGetOutput { pub found: bool, - #[serde(default = "default_1079")] - pub revision: Integer, #[serde(default = "default_1080")] + pub revision: Integer, + #[serde(default = "default_1081")] pub datasets: Vec, } @@ -24392,7 +24394,7 @@ impl KnowledgeDatasetGetInput { pub struct KnowledgeDocCluster { pub content_sha256: String, pub doc_count: Integer, - #[serde(default = "default_1081")] + #[serde(default = "default_1082")] pub docs: Vec>, } @@ -24402,16 +24404,16 @@ pub struct KnowledgeChunkCluster { pub content_sha256: String, pub chunk_count: Integer, pub uri_count: Integer, - #[serde(default = "default_1083")] + #[serde(default = "default_1084")] pub samples: Vec>, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeDedupListOutput { - #[serde(default = "default_1082")] + #[serde(default = "default_1083")] pub doc_clusters: Vec, - #[serde(default = "default_1084")] + #[serde(default = "default_1085")] pub chunk_clusters: Vec, } @@ -24488,7 +24490,7 @@ pub struct KnowledgeDedupResolveOutput { pub canonical_uri: String, pub duplicate_uri: String, pub decision: String, - #[serde(default = "default_1085")] + #[serde(default = "default_1086")] pub superseded_uri: String, } @@ -24607,24 +24609,24 @@ impl KnowledgeDeleteInput { #[non_exhaustive] pub struct KnowledgeFormat { pub format: String, - #[serde(default = "default_1086")] - pub extensions: Vec, #[serde(default = "default_1087")] - pub media_types: Vec, + pub extensions: Vec, #[serde(default = "default_1088")] + pub media_types: Vec, + #[serde(default = "default_1089")] pub available: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeFormatsOutput { - #[serde(default = "default_1089")] - pub formats: Vec, #[serde(default = "default_1090")] - pub max_upload_bytes: Integer, + pub formats: Vec, #[serde(default = "default_1091")] - pub refused_extensions: Vec, + pub max_upload_bytes: Integer, #[serde(default = "default_1092")] + pub refused_extensions: Vec, + #[serde(default = "default_1093")] pub default_format: String, } @@ -24726,7 +24728,7 @@ impl KnowledgeGapsDraftInput { pub struct KnowledgeGap { pub gap_id: String, pub head: String, - #[serde(default = "default_1093")] + #[serde(default = "default_1094")] pub samples: Vec, pub askers: Integer, pub asks: Integer, @@ -24736,13 +24738,13 @@ pub struct KnowledgeGap { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeGapsListOutput { - #[serde(default = "default_1094")] - pub gaps: Vec, #[serde(default = "default_1095")] - pub built_at: Option, + pub gaps: Vec, #[serde(default = "default_1096")] - pub capturing: Option, + pub built_at: Option, #[serde(default = "default_1097")] + pub capturing: Option, + #[serde(default = "default_1098")] pub enabled: bool, } @@ -24808,7 +24810,7 @@ pub struct KnowledgeIngestOutput { pub ingestion_id: String, pub state: String, pub source_uri: String, - #[serde(default = "default_1098")] + #[serde(default = "default_1099")] pub namespace: String, } @@ -25027,9 +25029,9 @@ impl KnowledgeIngestInput { #[non_exhaustive] pub struct KnowledgeIngestCancelOutput { pub found: bool, - #[serde(default = "default_1099")] - pub state: String, #[serde(default = "default_1100")] + pub state: String, + #[serde(default = "default_1101")] pub cancelled: bool, } @@ -25080,39 +25082,39 @@ impl KnowledgeIngestCancelInput { pub struct KnowledgeIngestStatusOutput { pub found: bool, pub ingestion_id: String, - #[serde(default = "default_1101")] - pub source_uri: String, #[serde(default = "default_1102")] - pub state: String, + pub source_uri: String, #[serde(default = "default_1103")] - pub stage: String, + pub state: String, #[serde(default = "default_1104")] - pub attempts: Integer, + pub stage: String, #[serde(default = "default_1105")] - pub error_code: String, + pub attempts: Integer, #[serde(default = "default_1106")] - pub error_message: String, + pub error_code: String, #[serde(default = "default_1107")] - pub format: String, + pub error_message: String, #[serde(default = "default_1108")] - pub coverage: Option>, + pub format: String, #[serde(default = "default_1109")] - pub warnings: Vec, + pub coverage: Option>, #[serde(default = "default_1110")] - pub chunks: Integer, + pub warnings: Vec, #[serde(default = "default_1111")] - pub revision: Integer, + pub chunks: Integer, #[serde(default = "default_1112")] - pub expected_revision: Option, + pub revision: Integer, #[serde(default = "default_1113")] - pub filename: String, + pub expected_revision: Option, #[serde(default = "default_1114")] - pub retrieval: String, + pub filename: String, #[serde(default = "default_1115")] - pub cancel_requested: bool, + pub retrieval: String, #[serde(default = "default_1116")] - pub created_at: Option, + pub cancel_requested: bool, #[serde(default = "default_1117")] + pub created_at: Option, + #[serde(default = "default_1118")] pub updated_at: Option, } @@ -25169,21 +25171,21 @@ pub struct DocumentCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct DocumentTotals { - #[serde(default = "default_1118")] - pub live: Option, #[serde(default = "default_1119")] - pub deleted: Option, + pub live: Option, #[serde(default = "default_1120")] - pub newest_ingested_at: Option, + pub deleted: Option, #[serde(default = "default_1121")] - pub by_format: Vec, + pub newest_ingested_at: Option, #[serde(default = "default_1122")] - pub by_source_scheme: Vec, + pub by_format: Vec, #[serde(default = "default_1123")] - pub earlier_revisions: Option, + pub by_source_scheme: Vec, #[serde(default = "default_1124")] - pub unnumbered: Option, + pub earlier_revisions: Option, #[serde(default = "default_1125")] + pub unnumbered: Option, + #[serde(default = "default_1126")] pub retired_versions: Option, } @@ -25198,15 +25200,15 @@ pub struct ChunkModelCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ChunkTotals { - #[serde(default = "default_1126")] - pub embedder_model: String, #[serde(default = "default_1127")] - pub live: Option, + pub embedder_model: String, #[serde(default = "default_1128")] - pub searchable: Option, + pub live: Option, #[serde(default = "default_1129")] - pub unembedded: Option, + pub searchable: Option, #[serde(default = "default_1130")] + pub unembedded: Option, + #[serde(default = "default_1131")] pub by_model: Vec, } @@ -25231,9 +25233,9 @@ pub struct DocumentDecisions { #[non_exhaustive] pub struct DecisionTotals { pub definition: String, - #[serde(default = "default_1131")] - pub refs: Vec, #[serde(default = "default_1132")] + pub refs: Vec, + #[serde(default = "default_1133")] pub all_documents: Option, } @@ -25248,7 +25250,7 @@ pub struct DocumentChunks { pub min_chars: Integer, pub median_chars: Integer, pub max_chars: Integer, - #[serde(default = "default_1135")] + #[serde(default = "default_1136")] pub models: Vec, } @@ -25298,11 +25300,11 @@ pub struct IngestJob { pub failure_class: IngestJobFailureClass, pub queued_at: String, pub updated_at: String, - #[serde(default = "default_1140")] - pub ended_at: Option, #[serde(default = "default_1141")] - pub next_attempt_at: Option, + pub ended_at: Option, #[serde(default = "default_1142")] + pub next_attempt_at: Option, + #[serde(default = "default_1143")] pub stalled: bool, } @@ -25312,11 +25314,11 @@ pub struct SourceJobs { pub source_uri: String, pub jobs: Integer, pub open_jobs: Integer, - #[serde(default = "default_1139")] + #[serde(default = "default_1140")] pub open_ingestion_id: String, pub latest: IngestJob, pub current: IngestJob, - #[serde(default = "default_1143")] + #[serde(default = "default_1144")] pub replaced: bool, } @@ -25329,18 +25331,18 @@ pub struct InspectDocument { pub source_scheme: String, pub version: Integer, pub revision: Integer, - #[serde(default = "default_1133")] + #[serde(default = "default_1134")] pub ingestion_id: String, pub ingested_at: String, - #[serde(default = "default_1134")] + #[serde(default = "default_1135")] pub retired_versions: Option, - #[serde(default = "default_1136")] - pub chunks: Option, #[serde(default = "default_1137")] - pub decisions: Option, + pub chunks: Option, #[serde(default = "default_1138")] + pub decisions: Option, + #[serde(default = "default_1139")] pub extraction: Option, - #[serde(default = "default_1144")] + #[serde(default = "default_1145")] pub jobs: Option, } @@ -25385,40 +25387,40 @@ pub struct DocumentFinding { pub kind: DocumentFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1147")] - pub window_seconds: Option, #[serde(default = "default_1148")] + pub window_seconds: Option, + #[serde(default = "default_1149")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1149")] - pub evidence: Vec, #[serde(default = "default_1150")] - pub exceptions: String, + pub evidence: Vec, #[serde(default = "default_1151")] + pub exceptions: String, + #[serde(default = "default_1152")] pub uncertainty: String, pub code: String, pub severity: DocumentFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1152")] - pub samples: Vec, #[serde(default = "default_1153")] - pub ingested: Integer, + pub samples: Vec, #[serde(default = "default_1154")] + pub ingested: Integer, + #[serde(default = "default_1155")] pub ingested_samples: Vec, pub detail: String, pub remedy: String, - #[serde(default = "default_1155")] + #[serde(default = "default_1156")] pub refs: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ReportCoverage { - #[serde(default = "default_1157")] - pub rules_run: Vec, #[serde(default = "default_1158")] + pub rules_run: Vec, + #[serde(default = "default_1159")] pub rules_skipped: Vec, pub complete: bool, } @@ -25426,43 +25428,43 @@ pub struct ReportCoverage { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct IngestionTotals { - #[serde(default = "default_1159")] - pub sources: Option, #[serde(default = "default_1160")] - pub without_document: Option, + pub sources: Option, #[serde(default = "default_1161")] - pub replaced: Option, + pub without_document: Option, #[serde(default = "default_1162")] - pub pending: Option, + pub replaced: Option, #[serde(default = "default_1163")] - pub processing: Option, + pub pending: Option, #[serde(default = "default_1164")] - pub stalled: Option, + pub processing: Option, #[serde(default = "default_1165")] - pub ready: Option, + pub stalled: Option, #[serde(default = "default_1166")] - pub partial: Option, + pub ready: Option, #[serde(default = "default_1167")] - pub failed: Option, + pub partial: Option, #[serde(default = "default_1168")] - pub cancelled: Option, + pub failed: Option, #[serde(default = "default_1169")] + pub cancelled: Option, + #[serde(default = "default_1170")] pub oldest_open_queued_at: Option, pub worker_enabled: bool, - #[serde(default = "default_1170")] - pub extractor_configured: Option, #[serde(default = "default_1171")] + pub extractor_configured: Option, + #[serde(default = "default_1172")] pub without_document_listed: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ExtractionTotals { - #[serde(default = "default_1172")] - pub documents: Option, #[serde(default = "default_1173")] - pub incomplete: Option, + pub documents: Option, #[serde(default = "default_1174")] + pub incomplete: Option, + #[serde(default = "default_1175")] pub lost: Vec, } @@ -25492,31 +25494,31 @@ pub struct IngestFinding { pub kind: IngestFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1175")] - pub window_seconds: Option, #[serde(default = "default_1176")] + pub window_seconds: Option, + #[serde(default = "default_1177")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1177")] - pub evidence: Vec, #[serde(default = "default_1178")] - pub exceptions: String, + pub evidence: Vec, #[serde(default = "default_1179")] + pub exceptions: String, + #[serde(default = "default_1180")] pub uncertainty: String, pub code: String, pub severity: IngestFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1180")] - pub samples: Vec, #[serde(default = "default_1181")] - pub ingestion_ids: Vec, + pub samples: Vec, #[serde(default = "default_1182")] + pub ingestion_ids: Vec, + #[serde(default = "default_1183")] pub without_document: Integer, pub detail: String, pub remedy: String, - #[serde(default = "default_1183")] + #[serde(default = "default_1184")] pub refs: Vec, } @@ -25543,20 +25545,20 @@ pub struct KnowledgeInspectOutput { pub documents: DocumentTotals, pub chunks: ChunkTotals, pub decisions: DecisionTotals, - #[serde(default = "default_1145")] - pub listed: Vec, #[serde(default = "default_1146")] + pub listed: Vec, + #[serde(default = "default_1147")] pub listed_complete: bool, - #[serde(default = "default_1156")] + #[serde(default = "default_1157")] pub findings: Vec, pub coverage: ReportCoverage, pub ingestions: IngestionTotals, pub extraction: ExtractionTotals, - #[serde(default = "default_1184")] - pub ingest_findings: Vec, #[serde(default = "default_1185")] - pub memory_findings: Vec, + pub ingest_findings: Vec, #[serde(default = "default_1186")] + pub memory_findings: Vec, + #[serde(default = "default_1187")] pub skipped: Vec, } @@ -25703,7 +25705,7 @@ pub struct KnowledgeListEntry { #[non_exhaustive] pub struct KnowledgeListOutput { pub rows: Vec, - #[serde(default = "default_1187")] + #[serde(default = "default_1188")] pub next_cursor: Option, } @@ -25869,9 +25871,9 @@ pub enum KnowledgeMoveResultReason { #[non_exhaustive] pub struct KnowledgeMoveResult { pub source_uri: String, - #[serde(default = "default_1189")] - pub moved: bool, #[serde(default = "default_1190")] + pub moved: bool, + #[serde(default = "default_1191")] pub reason: KnowledgeMoveResultReason, } @@ -25879,9 +25881,9 @@ pub struct KnowledgeMoveResult { #[non_exhaustive] pub struct KnowledgeMoveOutput { pub found: bool, - #[serde(default = "default_1188")] + #[serde(default = "default_1189")] pub to_namespace: String, - #[serde(default = "default_1191")] + #[serde(default = "default_1192")] pub results: Vec, } @@ -25947,17 +25949,17 @@ pub struct OutlineEntry { pub struct KnowledgeOutlineOutput { pub found: bool, pub source_uri: String, - #[serde(default = "default_1192")] - pub title: String, #[serde(default = "default_1193")] - pub structured: bool, + pub title: String, #[serde(default = "default_1194")] - pub chunk_count: Integer, + pub structured: bool, #[serde(default = "default_1195")] - pub sections: Vec, + pub chunk_count: Integer, #[serde(default = "default_1196")] - pub section_content: Option, + pub sections: Vec, #[serde(default = "default_1197")] + pub section_content: Option, + #[serde(default = "default_1198")] pub section_chunk_idxs: Vec, } @@ -26064,12 +26066,12 @@ pub struct QueryReceipt { pub struct KnowledgeQueryOutput { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1198")] - pub row_ids: Vec>, #[serde(default = "default_1199")] + pub row_ids: Vec>, + #[serde(default = "default_1200")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1200")] + #[serde(default = "default_1201")] pub incomplete: Vec, pub receipt: QueryReceipt, } @@ -26742,9 +26744,9 @@ pub struct QueryHistoryListOutputQueryHistorySource { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct QueryHistoryListOutput { - #[serde(default = "default_1201")] - pub enabled: bool, #[serde(default = "default_1202")] + pub enabled: bool, + #[serde(default = "default_1203")] pub sources: Vec, } @@ -26875,7 +26877,7 @@ impl QueryHistoryRemoveInput { #[non_exhaustive] pub struct KnowledgeReadsOutput { pub window_days: Integer, - #[serde(default = "default_1203")] + #[serde(default = "default_1204")] pub reads: Vec>, } @@ -26978,15 +26980,15 @@ pub enum KnowledgeRestoreOutputOriginal { #[non_exhaustive] pub struct KnowledgeRestoreOutput { pub restored: bool, - #[serde(default = "default_1204")] - pub reason: KnowledgeRestoreOutputReason, #[serde(default = "default_1205")] - pub doc_id: String, + pub reason: KnowledgeRestoreOutputReason, #[serde(default = "default_1206")] - pub revision: Option, + pub doc_id: String, #[serde(default = "default_1207")] - pub chunks_restored: Integer, + pub revision: Option, #[serde(default = "default_1208")] + pub chunks_restored: Integer, + #[serde(default = "default_1209")] pub original: KnowledgeRestoreOutputOriginal, } @@ -27059,35 +27061,35 @@ pub struct KnowledgeSourceCrawlProof { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceProbe { - #[serde(default = "default_1213")] - pub documents: Integer, #[serde(default = "default_1214")] - pub more: bool, + pub documents: Integer, #[serde(default = "default_1215")] - pub sample: Vec, + pub more: bool, #[serde(default = "default_1216")] - pub checked: Integer, + pub sample: Vec, #[serde(default = "default_1217")] + pub checked: Integer, + #[serde(default = "default_1218")] pub sampled: bool, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceAddOutput { - #[serde(default = "default_1209")] + #[serde(default = "default_1210")] pub crawl_proof: Option, pub name: String, pub kind: String, pub namespace: String, - #[serde(default = "default_1210")] - pub items: Vec>, #[serde(default = "default_1211")] - pub include: Vec, + pub items: Vec>, #[serde(default = "default_1212")] + pub include: Vec, + #[serde(default = "default_1213")] pub config: std::collections::HashMap, - #[serde(default = "default_1218")] - pub probe: KnowledgeSourceProbe, #[serde(default = "default_1219")] + pub probe: KnowledgeSourceProbe, + #[serde(default = "default_1220")] pub dry_run: bool, } @@ -27304,21 +27306,21 @@ impl KnowledgeSourceAddInput { #[non_exhaustive] pub struct KnowledgeSourceCheckOutput { pub name: String, - #[serde(default = "default_1220")] - pub reachable: bool, #[serde(default = "default_1221")] - pub documents: Integer, + pub reachable: bool, #[serde(default = "default_1222")] - pub more: bool, + pub documents: Integer, #[serde(default = "default_1223")] - pub sample: Vec, + pub more: bool, #[serde(default = "default_1224")] - pub checked: Integer, + pub sample: Vec, #[serde(default = "default_1225")] - pub sampled: bool, + pub checked: Integer, #[serde(default = "default_1226")] - pub summary: String, + pub sampled: bool, #[serde(default = "default_1227")] + pub summary: String, + #[serde(default = "default_1228")] pub checked_at: String, } @@ -27367,37 +27369,37 @@ impl KnowledgeSourceCheckInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceSync { - #[serde(default = "default_1238")] - pub requested_at: String, #[serde(default = "default_1239")] - pub last_synced_at: String, + pub requested_at: String, #[serde(default = "default_1240")] - pub status: String, + pub last_synced_at: String, #[serde(default = "default_1241")] - pub documents_seen: Integer, + pub status: String, #[serde(default = "default_1242")] - pub changed: Integer, + pub documents_seen: Integer, #[serde(default = "default_1243")] - pub removed: Integer, + pub changed: Integer, #[serde(default = "default_1244")] - pub unconverted: Integer, + pub removed: Integer, #[serde(default = "default_1245")] - pub unconverted_reasons: std::collections::HashMap, + pub unconverted: Integer, #[serde(default = "default_1246")] - pub skipped: Integer, + pub unconverted_reasons: std::collections::HashMap, #[serde(default = "default_1247")] - pub error: String, + pub skipped: Integer, #[serde(default = "default_1248")] - pub pending_extract: Integer, + pub error: String, #[serde(default = "default_1249")] - pub last_extracted_at: String, + pub pending_extract: Integer, #[serde(default = "default_1250")] - pub extracted: Integer, + pub last_extracted_at: String, #[serde(default = "default_1251")] - pub flagged_pinned: Integer, + pub extracted: Integer, #[serde(default = "default_1252")] - pub unextracted: Integer, + pub flagged_pinned: Integer, #[serde(default = "default_1253")] + pub unextracted: Integer, + #[serde(default = "default_1254")] pub extract_error: String, } @@ -27405,11 +27407,11 @@ pub struct KnowledgeSourceSync { #[non_exhaustive] pub struct KnowledgeSourceDocument { pub source_uri: String, - #[serde(default = "default_1255")] - pub title: String, #[serde(default = "default_1256")] - pub source_revision: String, + pub title: String, #[serde(default = "default_1257")] + pub source_revision: String, + #[serde(default = "default_1258")] pub ingested_at: String, } @@ -27418,29 +27420,29 @@ pub struct KnowledgeSourceDocument { pub struct KnowledgeSourceInspectOutput { pub name: String, pub kind: String, - #[serde(default = "default_1228")] - pub credential_mode: String, #[serde(default = "default_1229")] - pub owned_by_caller: bool, + pub credential_mode: String, #[serde(default = "default_1230")] - pub access: String, + pub owned_by_caller: bool, #[serde(default = "default_1231")] - pub crawl_options: std::collections::HashMap, + pub access: String, #[serde(default = "default_1232")] - pub owner_subject: String, + pub crawl_options: std::collections::HashMap, #[serde(default = "default_1233")] - pub items: Vec>, + pub owner_subject: String, #[serde(default = "default_1234")] - pub include: Vec, + pub items: Vec>, #[serde(default = "default_1235")] - pub config: std::collections::HashMap, + pub include: Vec, #[serde(default = "default_1236")] - pub created_by: String, + pub config: std::collections::HashMap, #[serde(default = "default_1237")] + pub created_by: String, + #[serde(default = "default_1238")] pub created_at: String, - #[serde(default = "default_1254")] + #[serde(default = "default_1255")] pub sync: KnowledgeSourceSync, - #[serde(default = "default_1258")] + #[serde(default = "default_1259")] pub documents: Vec, } @@ -27493,40 +27495,40 @@ impl KnowledgeSourceInspectInput { pub struct KnowledgeSourceEntry { pub name: String, pub kind: String, - #[serde(default = "default_1259")] - pub credential_mode: String, #[serde(default = "default_1260")] - pub owned_by_caller: bool, + pub credential_mode: String, #[serde(default = "default_1261")] - pub access: String, + pub owned_by_caller: bool, #[serde(default = "default_1262")] - pub crawl_options: std::collections::HashMap, + pub access: String, #[serde(default = "default_1263")] - pub owner_subject: String, + pub crawl_options: std::collections::HashMap, #[serde(default = "default_1264")] - pub items: Vec>, + pub owner_subject: String, #[serde(default = "default_1265")] - pub include: Vec, + pub items: Vec>, #[serde(default = "default_1266")] - pub config: std::collections::HashMap, + pub include: Vec, #[serde(default = "default_1267")] - pub created_by: String, + pub config: std::collections::HashMap, #[serde(default = "default_1268")] - pub created_at: String, + pub created_by: String, #[serde(default = "default_1269")] + pub created_at: String, + #[serde(default = "default_1270")] pub sync: KnowledgeSourceSync, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceListOutput { - #[serde(default = "default_1270")] - pub sources: Vec, #[serde(default = "default_1271")] - pub enabled: bool, + pub sources: Vec, #[serde(default = "default_1272")] - pub accepts_sources: bool, + pub enabled: bool, #[serde(default = "default_1273")] + pub accepts_sources: bool, + #[serde(default = "default_1274")] pub self_service: bool, } @@ -27621,7 +27623,7 @@ impl std::fmt::Debug for KnowledgeSourceLiveDocument { #[non_exhaustive] pub struct KnowledgeSourceLiveOutput { pub status: KnowledgeSourceLiveOutputStatus, - #[serde(default = "default_1274")] + #[serde(default = "default_1275")] pub document: Option, } impl std::fmt::Debug for KnowledgeSourceLiveOutput { @@ -27689,18 +27691,18 @@ impl KnowledgeSourceLiveInput { #[non_exhaustive] pub struct KnowledgeSourceParsedLink { pub link: String, - #[serde(default = "default_1275")] - pub kind: String, #[serde(default = "default_1276")] - pub item: std::collections::HashMap, + pub kind: String, #[serde(default = "default_1277")] + pub item: std::collections::HashMap, + #[serde(default = "default_1278")] pub unreadable: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceParseLinksOutput { - #[serde(default = "default_1278")] + #[serde(default = "default_1279")] pub links: Vec, } @@ -27751,25 +27753,25 @@ impl KnowledgeSourceParseLinksInput { #[derive(Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct PushStatusOutput { - #[serde(default = "default_1279")] - pub enabled: bool, #[serde(default = "default_1280")] - pub status: String, + pub enabled: bool, #[serde(default = "default_1281")] - pub provider: String, + pub status: String, #[serde(default = "default_1282")] - pub generation: String, + pub provider: String, #[serde(default = "default_1283")] - pub callback_url: String, + pub generation: String, #[serde(default = "default_1284")] - pub provider_id: String, + pub callback_url: String, #[serde(default = "default_1285")] - pub challenge_fingerprint: String, + pub provider_id: String, #[serde(default = "default_1286")] - pub verification_token: String, + pub challenge_fingerprint: String, #[serde(default = "default_1287")] - pub channels: Integer, + pub verification_token: String, #[serde(default = "default_1288")] + pub channels: Integer, + #[serde(default = "default_1289")] pub expires_at: f64, } impl std::fmt::Debug for PushStatusOutput { @@ -28014,7 +28016,7 @@ impl PushStatusInput { #[non_exhaustive] pub struct KnowledgeSourceRemoveOutput { pub name: String, - #[serde(default = "default_1289")] + #[serde(default = "default_1290")] pub documents_pending: Integer, } @@ -28076,12 +28078,12 @@ impl KnowledgeSourceRemoveInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceRotateOutput { - #[serde(default = "default_1290")] + #[serde(default = "default_1291")] pub crawl_proof: Option, pub name: String, - #[serde(default = "default_1291")] - pub probe: KnowledgeSourceProbe, #[serde(default = "default_1292")] + pub probe: KnowledgeSourceProbe, + #[serde(default = "default_1293")] pub rotated_at: String, } @@ -28133,7 +28135,7 @@ impl KnowledgeSourceRotateInput { #[non_exhaustive] pub struct KnowledgeSourceSyncNowOutput { pub name: String, - #[serde(default = "default_1293")] + #[serde(default = "default_1294")] pub enabled: bool, } @@ -28195,20 +28197,20 @@ impl KnowledgeSourceSyncNowInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceUpdateOutput { - #[serde(default = "default_1294")] + #[serde(default = "default_1295")] pub crawl_proof: Option, pub name: String, - #[serde(default = "default_1295")] - pub items: Vec>, #[serde(default = "default_1296")] - pub include: Vec, + pub items: Vec>, #[serde(default = "default_1297")] - pub config: std::collections::HashMap, + pub include: Vec, #[serde(default = "default_1298")] - pub added: Vec>, + pub config: std::collections::HashMap, #[serde(default = "default_1299")] - pub removed: Vec>, + pub added: Vec>, #[serde(default = "default_1300")] + pub removed: Vec>, + #[serde(default = "default_1301")] pub probe: KnowledgeSourceProbe, } @@ -28339,9 +28341,9 @@ impl KnowledgeSourceUpdateInput { pub struct CitedChunk { pub source_uri: String, pub chunk_idx: Integer, - #[serde(default = "default_1302")] - pub revision: Integer, #[serde(default = "default_1303")] + pub revision: Integer, + #[serde(default = "default_1304")] pub locator: Option>, } @@ -28350,12 +28352,12 @@ pub struct CitedChunk { pub struct SynthesizeCalculation { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1310")] - pub row_ids: Vec>, #[serde(default = "default_1311")] + pub row_ids: Vec>, + #[serde(default = "default_1312")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1312")] + #[serde(default = "default_1313")] pub incomplete: Vec, pub receipt: QueryReceipt, pub citation: String, @@ -28369,23 +28371,23 @@ pub struct KnowledgeSynthesizeOutput { pub chunks_read: Integer, pub documents: Integer, pub reduce_rounds: Integer, - #[serde(default = "default_1301")] + #[serde(default = "default_1302")] pub citations: Vec, - #[serde(default = "default_1304")] - pub cited_chunks: Vec, #[serde(default = "default_1305")] - pub unsupported_citations: Vec, + pub cited_chunks: Vec, #[serde(default = "default_1306")] - pub truncated: bool, + pub unsupported_citations: Vec, #[serde(default = "default_1307")] - pub abstain: bool, + pub truncated: bool, #[serde(default = "default_1308")] - pub abstain_reason: String, + pub abstain: bool, #[serde(default = "default_1309")] + pub abstain_reason: String, + #[serde(default = "default_1310")] pub clarification: String, - #[serde(default = "default_1313")] - pub calculations: Vec, #[serde(default = "default_1314")] + pub calculations: Vec, + #[serde(default = "default_1315")] pub model: String, } @@ -28501,13 +28503,13 @@ impl KnowledgeSynthesizeInput { #[non_exhaustive] pub struct KnowledgeUpdateMetadataOutput { pub updated: bool, - #[serde(default = "default_1315")] - pub title: String, #[serde(default = "default_1316")] - pub description: String, + pub title: String, #[serde(default = "default_1317")] - pub tags: Vec, + pub description: String, #[serde(default = "default_1318")] + pub tags: Vec, + #[serde(default = "default_1319")] pub chunks_reindexed: Integer, } @@ -28619,13 +28621,13 @@ pub struct KnowledgeUpsertOutput { pub chunks_superseded: Integer, pub embedding_model: String, pub embedding_dim: Integer, - #[serde(default = "default_1319")] - pub duplicate_of_uri: String, #[serde(default = "default_1320")] - pub duplicate_chunk_count: Integer, + pub duplicate_of_uri: String, #[serde(default = "default_1321")] - pub namespace: String, + pub duplicate_chunk_count: Integer, #[serde(default = "default_1322")] + pub namespace: String, + #[serde(default = "default_1323")] pub source_uri: String, } @@ -28810,26 +28812,26 @@ pub struct LearningEntry { pub memory_type: String, pub proposed_value: Value, pub supporter_count: Integer, - #[serde(default = "default_1323")] - pub supporter_sessions: Integer, #[serde(default = "default_1324")] + pub supporter_sessions: Integer, + #[serde(default = "default_1325")] pub supporter_writers: Integer, pub confidence_avg: f64, pub supporters: Vec, pub rationale: String, - #[serde(default = "default_1325")] - pub source_kind: String, #[serde(default = "default_1326")] - pub source_resource_id: String, + pub source_kind: String, #[serde(default = "default_1327")] + pub source_resource_id: String, + #[serde(default = "default_1328")] pub agent: String, pub status: LearningEntryStatus, pub proposed_at: String, - #[serde(default = "default_1328")] - pub decided_at: Option, #[serde(default = "default_1329")] - pub decided_by: String, + pub decided_at: Option, #[serde(default = "default_1330")] + pub decided_by: String, + #[serde(default = "default_1331")] pub decision_reason: String, } @@ -29032,11 +29034,11 @@ pub enum LearningsReviewOutputNewStatus { pub struct LearningsReviewOutput { pub candidate_id: String, pub new_status: LearningsReviewOutputNewStatus, - #[serde(default = "default_1331")] - pub promoted_to_shared: bool, #[serde(default = "default_1332")] - pub promoted_to_knowledge: bool, + pub promoted_to_shared: bool, #[serde(default = "default_1333")] + pub promoted_to_knowledge: bool, + #[serde(default = "default_1334")] pub knowledge_source_uri: String, pub decided_at: String, } @@ -29240,7 +29242,7 @@ impl MemoryAgentsListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct AggregateRow { - #[serde(default = "default_1334")] + #[serde(default = "default_1335")] pub group: std::collections::HashMap, pub metric: f64, } @@ -29248,9 +29250,9 @@ pub struct AggregateRow { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAggregateOutput { - #[serde(default = "default_1335")] - pub rows: Vec, #[serde(default = "default_1336")] + pub rows: Vec, + #[serde(default = "default_1337")] pub sql_executed: String, } @@ -29418,15 +29420,15 @@ impl MemoryAggregateInput { pub struct BulkSetResult { pub memory_key: String, pub version: Integer, - #[serde(default = "default_1337")] - pub memory_id: String, #[serde(default = "default_1338")] - pub conflict_verdict: String, + pub memory_id: String, #[serde(default = "default_1339")] - pub peers: Vec, + pub conflict_verdict: String, #[serde(default = "default_1340")] - pub next: String, + pub peers: Vec, #[serde(default = "default_1341")] + pub next: String, + #[serde(default = "default_1342")] pub pinned_blocker_id: String, } @@ -29434,29 +29436,29 @@ pub struct BulkSetResult { #[non_exhaustive] pub struct MemoryBulkSetOutput { pub written: Vec, - #[serde(default = "default_1342")] - pub skipped_pinned: Vec, #[serde(default = "default_1343")] - pub skipped_locked: Vec, + pub skipped_pinned: Vec, #[serde(default = "default_1344")] - pub skipped_blacklisted: Vec, + pub skipped_locked: Vec, #[serde(default = "default_1345")] - pub merged: Vec, + pub skipped_blacklisted: Vec, #[serde(default = "default_1346")] - pub value_updates_linked: Integer, + pub merged: Vec, #[serde(default = "default_1347")] - pub rejected_pinned: Vec, + pub value_updates_linked: Integer, #[serde(default = "default_1348")] - pub duplicates: Vec, + pub rejected_pinned: Vec, #[serde(default = "default_1349")] - pub conflicted: Vec, + pub duplicates: Vec, #[serde(default = "default_1350")] - pub unchecked: Integer, + pub conflicted: Vec, #[serde(default = "default_1351")] - pub retyped: Vec, + pub unchecked: Integer, #[serde(default = "default_1352")] - pub identity_duplicates: std::collections::HashMap, + pub retyped: Vec, #[serde(default = "default_1353")] + pub identity_duplicates: std::collections::HashMap, + #[serde(default = "default_1354")] pub stage_ms: std::collections::HashMap, } @@ -29606,18 +29608,18 @@ pub enum ApplyRowStatus { #[non_exhaustive] pub struct ApplyRow { pub memory_key: String, - #[serde(default = "default_1361")] - pub memory_id: String, #[serde(default = "default_1362")] - pub agent: String, + pub memory_id: String, #[serde(default = "default_1363")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1364")] + pub user_id: String, + #[serde(default = "default_1365")] pub session_id: String, pub status: ApplyRowStatus, - #[serde(default = "default_1365")] - pub version: Option, #[serde(default = "default_1366")] + pub version: Option, + #[serde(default = "default_1367")] pub detail: String, } @@ -29627,21 +29629,21 @@ pub struct MemoryApplyOutput { pub action: String, pub dry_run: bool, pub target: String, - #[serde(default = "default_1354")] - pub matched: Integer, #[serde(default = "default_1355")] - pub applied: Integer, + pub matched: Integer, #[serde(default = "default_1356")] - pub would_apply: Integer, + pub applied: Integer, #[serde(default = "default_1357")] - pub refused: Integer, + pub would_apply: Integer, #[serde(default = "default_1358")] - pub noop: Integer, + pub refused: Integer, #[serde(default = "default_1359")] - pub failed: Integer, + pub noop: Integer, #[serde(default = "default_1360")] + pub failed: Integer, + #[serde(default = "default_1361")] pub truncated: bool, - #[serde(default = "default_1367")] + #[serde(default = "default_1368")] pub rows: Vec, } @@ -30375,137 +30377,137 @@ pub enum MemoryAskOutputDeepFirst { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAskOutput { - #[serde(default = "default_1368")] - pub answer: String, #[serde(default = "default_1369")] - pub source: MemoryAskOutputSource, + pub answer: String, #[serde(default = "default_1370")] - pub abstain: bool, + pub source: MemoryAskOutputSource, #[serde(default = "default_1371")] - pub abstain_reason: String, + pub abstain: bool, #[serde(default = "default_1372")] - pub memory_keys: Vec, + pub abstain_reason: String, #[serde(default = "default_1373")] - pub results: Vec, + pub memory_keys: Vec, #[serde(default = "default_1374")] - pub cited_sessions: Vec, + pub results: Vec, #[serde(default = "default_1375")] - pub next: String, + pub cited_sessions: Vec, #[serde(default = "default_1376")] - pub synth_model: String, + pub next: String, #[serde(default = "default_1377")] - pub route_tier: MemoryAskOutputRouteTier, + pub synth_model: String, #[serde(default = "default_1378")] - pub route_reason: String, + pub route_tier: MemoryAskOutputRouteTier, #[serde(default = "default_1379")] - pub llm_cache_hits: Integer, + pub route_reason: String, #[serde(default = "default_1380")] - pub llm_cache_misses: Integer, + pub llm_cache_hits: Integer, #[serde(default = "default_1381")] - pub llm_cache: bool, + pub llm_cache_misses: Integer, #[serde(default = "default_1382")] - pub llm_cache_saved_usd: f64, + pub llm_cache: bool, #[serde(default = "default_1383")] - pub temporal_consistency: Option, + pub llm_cache_saved_usd: f64, #[serde(default = "default_1384")] - pub citation_concentration: Option, + pub temporal_consistency: Option, #[serde(default = "default_1385")] - pub escalated: bool, + pub citation_concentration: Option, #[serde(default = "default_1386")] - pub gate_mode: String, + pub escalated: bool, #[serde(default = "default_1387")] - pub gate_kept: Integer, + pub gate_mode: String, #[serde(default = "default_1388")] - pub gate_dropped: Integer, + pub gate_kept: Integer, #[serde(default = "default_1389")] - pub pending_extraction: Integer, + pub gate_dropped: Integer, #[serde(default = "default_1390")] - pub pending_evidence: Integer, + pub pending_extraction: Integer, #[serde(default = "default_1391")] - pub retrieval_query: String, + pub pending_evidence: Integer, #[serde(default = "default_1392")] - pub facets: Vec, + pub retrieval_query: String, #[serde(default = "default_1393")] - pub facet_memories_added: Integer, + pub facets: Vec, #[serde(default = "default_1394")] - pub consistency: MemoryAskOutputConsistency, + pub facet_memories_added: Integer, #[serde(default = "default_1395")] - pub consistency_score: f64, + pub consistency: MemoryAskOutputConsistency, #[serde(default = "default_1396")] - pub consistency_note: String, + pub consistency_score: f64, #[serde(default = "default_1397")] - pub identifier_chase_hops: Integer, + pub consistency_note: String, #[serde(default = "default_1398")] - pub identifier_chase_added: Integer, + pub identifier_chase_hops: Integer, #[serde(default = "default_1399")] - pub premise_conflict: String, + pub identifier_chase_added: Integer, #[serde(default = "default_1400")] - pub premise_note: String, + pub premise_conflict: String, #[serde(default = "default_1401")] - pub premise_verdict: String, + pub premise_note: String, #[serde(default = "default_1402")] - pub attribution_note: String, + pub premise_verdict: String, #[serde(default = "default_1403")] - pub depth: MemoryAskOutputDepth, + pub attribution_note: String, #[serde(default = "default_1404")] - pub deep_fired: bool, + pub depth: MemoryAskOutputDepth, #[serde(default = "default_1405")] - pub decomposed: Vec, + pub deep_fired: bool, #[serde(default = "default_1406")] - pub decomposed_parts: Integer, + pub decomposed: Vec, #[serde(default = "default_1407")] - pub superseded_dropped: Integer, + pub decomposed_parts: Integer, #[serde(default = "default_1408")] - pub stale_sentences_masked: Integer, + pub superseded_dropped: Integer, #[serde(default = "default_1409")] - pub entity_followed: Vec, + pub stale_sentences_masked: Integer, #[serde(default = "default_1410")] - pub when_evidence_turns: Integer, + pub entity_followed: Vec, #[serde(default = "default_1411")] - pub decompose_failed: Integer, + pub when_evidence_turns: Integer, #[serde(default = "default_1412")] - pub pool_k: Integer, + pub decompose_failed: Integer, #[serde(default = "default_1413")] - pub grounding: MemoryAskOutputGrounding, + pub pool_k: Integer, #[serde(default = "default_1414")] - pub deep_reason: String, + pub grounding: MemoryAskOutputGrounding, #[serde(default = "default_1415")] - pub deep_keys: Vec, + pub deep_reason: String, #[serde(default = "default_1416")] - pub deep_chars: Integer, + pub deep_keys: Vec, #[serde(default = "default_1417")] - pub code_hits: Integer, + pub deep_chars: Integer, #[serde(default = "default_1418")] - pub pool_facts: Integer, + pub code_hits: Integer, #[serde(default = "default_1419")] - pub pool_chunks: Integer, + pub pool_facts: Integer, #[serde(default = "default_1420")] - pub prompt_blocks: std::collections::HashMap, + pub pool_chunks: Integer, #[serde(default = "default_1421")] - pub deep_selector: MemoryAskOutputDeepSelector, + pub prompt_blocks: std::collections::HashMap, #[serde(default = "default_1422")] - pub deep_first: MemoryAskOutputDeepFirst, + pub deep_selector: MemoryAskOutputDeepSelector, #[serde(default = "default_1423")] - pub synth_calls: Integer, + pub deep_first: MemoryAskOutputDeepFirst, #[serde(default = "default_1424")] - pub synth_input_tokens: Integer, + pub synth_calls: Integer, #[serde(default = "default_1425")] - pub synth_cached_input_tokens: Integer, + pub synth_input_tokens: Integer, #[serde(default = "default_1426")] - pub synth_cache_write_tokens: Integer, + pub synth_cached_input_tokens: Integer, #[serde(default = "default_1427")] - pub synth_cost_usd: f64, + pub synth_cache_write_tokens: Integer, #[serde(default = "default_1428")] - pub context_tokens_est: Integer, + pub synth_cost_usd: f64, #[serde(default = "default_1429")] - pub context_trimmed: Integer, + pub context_tokens_est: Integer, #[serde(default = "default_1430")] - pub summary_hits: Integer, + pub context_trimmed: Integer, #[serde(default = "default_1431")] - pub knowledge_hits: Integer, + pub summary_hits: Integer, #[serde(default = "default_1432")] - pub timeline_rows: Integer, + pub knowledge_hits: Integer, #[serde(default = "default_1433")] + pub timeline_rows: Integer, + #[serde(default = "default_1434")] pub count_recomputed: bool, } @@ -31460,36 +31462,36 @@ pub struct MemoryAutoRetirement { pub reason: String, pub memory_id: String, pub memory_key: String, - #[serde(default = "default_1434")] - pub agent: String, #[serde(default = "default_1435")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1436")] - pub session_id: String, + pub user_id: String, #[serde(default = "default_1437")] - pub superseded_by: String, + pub session_id: String, #[serde(default = "default_1438")] - pub superseded_by_key: String, + pub superseded_by: String, #[serde(default = "default_1439")] - pub label: String, + pub superseded_by_key: String, #[serde(default = "default_1440")] - pub unconfirmed: bool, + pub label: String, #[serde(default = "default_1441")] - pub judge_verdict: String, + pub unconfirmed: bool, #[serde(default = "default_1442")] - pub judge_confidence: Option, + pub judge_verdict: String, #[serde(default = "default_1443")] - pub judge_model: String, + pub judge_confidence: Option, #[serde(default = "default_1444")] + pub judge_model: String, + #[serde(default = "default_1445")] pub judge_prompt_version: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAutoRetirementsOutput { - #[serde(default = "default_1445")] - pub rows: Vec, #[serde(default = "default_1446")] + pub rows: Vec, + #[serde(default = "default_1447")] pub next_cursor: Option, } @@ -31583,9 +31585,9 @@ impl MemoryAutoRetirementsInput { #[non_exhaustive] pub struct BacklinkVersion { pub version: Integer, - #[serde(default = "default_1448")] - pub status: String, #[serde(default = "default_1449")] + pub status: String, + #[serde(default = "default_1450")] pub created_at: String, } @@ -31593,7 +31595,7 @@ pub struct BacklinkVersion { #[non_exhaustive] pub struct BacklinkDigest { pub session_id: String, - #[serde(default = "default_1451")] + #[serde(default = "default_1452")] pub date: String, } @@ -31601,9 +31603,9 @@ pub struct BacklinkDigest { #[non_exhaustive] pub struct BacklinkEdge { pub memory_key: String, - #[serde(default = "default_1453")] - pub relation: String, #[serde(default = "default_1454")] + pub relation: String, + #[serde(default = "default_1455")] pub created_at: String, } @@ -31611,7 +31613,7 @@ pub struct BacklinkEdge { #[non_exhaustive] pub struct BacklinkRelated { pub memory_key: String, - #[serde(default = "default_1458")] + #[serde(default = "default_1459")] pub shared_entities: Vec, } @@ -31619,19 +31621,19 @@ pub struct BacklinkRelated { #[non_exhaustive] pub struct MemoryBacklinksOutput { pub memory_key: String, - #[serde(default = "default_1447")] + #[serde(default = "default_1448")] pub found: bool, - #[serde(default = "default_1450")] + #[serde(default = "default_1451")] pub versions: Vec, - #[serde(default = "default_1452")] + #[serde(default = "default_1453")] pub digests: Vec, - #[serde(default = "default_1455")] - pub links_in: Vec, #[serde(default = "default_1456")] - pub links_out: Vec, + pub links_in: Vec, #[serde(default = "default_1457")] + pub links_out: Vec, + #[serde(default = "default_1458")] pub evidence_count: Integer, - #[serde(default = "default_1459")] + #[serde(default = "default_1460")] pub related: Vec, } @@ -31736,36 +31738,36 @@ impl MemoryBacklinksInput { #[non_exhaustive] pub struct BriefEvidence { pub memory_key: String, - #[serde(default = "default_1464")] - pub source: String, #[serde(default = "default_1465")] - pub source_class: String, + pub source: String, #[serde(default = "default_1466")] - pub verified: bool, + pub source_class: String, #[serde(default = "default_1467")] - pub when: String, + pub verified: bool, #[serde(default = "default_1468")] - pub session_id: String, + pub when: String, #[serde(default = "default_1469")] + pub session_id: String, + #[serde(default = "default_1470")] pub excerpt: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBriefOutput { - #[serde(default = "default_1460")] - pub query: String, #[serde(default = "default_1461")] - pub answer: String, + pub query: String, #[serde(default = "default_1462")] - pub abstained: bool, + pub answer: String, #[serde(default = "default_1463")] + pub abstained: bool, + #[serde(default = "default_1464")] pub grounding: String, - #[serde(default = "default_1470")] - pub evidence: Vec, #[serde(default = "default_1471")] - pub unknowns: Vec, + pub evidence: Vec, #[serde(default = "default_1472")] + pub unknowns: Vec, + #[serde(default = "default_1473")] pub next_reads: Vec, } @@ -32179,9 +32181,9 @@ pub struct MemoryBulkGetOutputMemoryGetOutput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBulkGetOutput { - #[serde(default = "default_1473")] - pub results: std::collections::HashMap, #[serde(default = "default_1474")] + pub results: std::collections::HashMap, + #[serde(default = "default_1475")] pub missing: Vec, } @@ -32694,7 +32696,7 @@ pub struct MemoryClearOutput { pub cleared_at: String, pub rows_affected: std::collections::HashMap, pub total: Integer, - #[serde(default = "default_1475")] + #[serde(default = "default_1476")] pub locked_skipped: Integer, } @@ -32782,21 +32784,21 @@ pub struct MemoryConsolidateResult { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryConsolidateOutput { - #[serde(default = "default_1476")] - pub consolidated: Vec, #[serde(default = "default_1477")] - pub examined: Integer, + pub consolidated: Vec, #[serde(default = "default_1478")] - pub clusters_found: Integer, + pub examined: Integer, #[serde(default = "default_1479")] - pub clusters_failed: Integer, + pub clusters_found: Integer, #[serde(default = "default_1480")] - pub clusters_refused_lossy: Integer, + pub clusters_failed: Integer, #[serde(default = "default_1481")] - pub skipped_in_flight: Integer, + pub clusters_refused_lossy: Integer, #[serde(default = "default_1482")] - pub tokens_in: Integer, + pub skipped_in_flight: Integer, #[serde(default = "default_1483")] + pub tokens_in: Integer, + #[serde(default = "default_1484")] pub tokens_out: Integer, } @@ -32937,7 +32939,7 @@ impl MemoryConsolidateInput { #[non_exhaustive] pub struct MemoryCopyToOutput { pub copied: bool, - #[serde(default = "default_1484")] + #[serde(default = "default_1485")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, @@ -33048,11 +33050,11 @@ impl MemoryCopyToInput { #[non_exhaustive] pub struct MemoryCrossPromoteOutput { pub promoted: bool, - #[serde(default = "default_1485")] + #[serde(default = "default_1486")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, - #[serde(default = "default_1486")] + #[serde(default = "default_1487")] pub cross_promoted_from_memory_id: String, } @@ -33135,23 +33137,23 @@ pub struct DedupCollapsePair { #[non_exhaustive] pub struct MemoryDedupCollapseOutput { pub namespace: String, - #[serde(default = "default_1487")] - pub prefix: String, #[serde(default = "default_1488")] - pub dry_run: bool, + pub prefix: String, #[serde(default = "default_1489")] - pub pairs: Integer, + pub dry_run: bool, #[serde(default = "default_1490")] - pub canonical_live: Integer, + pub pairs: Integer, #[serde(default = "default_1491")] - pub orphans: Integer, + pub canonical_live: Integer, #[serde(default = "default_1492")] - pub mirror_stale: Integer, + pub orphans: Integer, #[serde(default = "default_1493")] - pub restamped: Integer, + pub mirror_stale: Integer, #[serde(default = "default_1494")] - pub truncated: bool, + pub restamped: Integer, #[serde(default = "default_1495")] + pub truncated: bool, + #[serde(default = "default_1496")] pub sample: Vec, } @@ -33250,7 +33252,7 @@ pub struct DedupDuplicate { pub memory_id: String, pub memory_key: String, pub agent: String, - #[serde(default = "default_1498")] + #[serde(default = "default_1499")] pub created_at: Option, } @@ -33258,12 +33260,12 @@ pub struct DedupDuplicate { #[non_exhaustive] pub struct DedupCluster { pub canonical_id: String, - #[serde(default = "default_1496")] - pub canonical_key: String, #[serde(default = "default_1497")] + pub canonical_key: String, + #[serde(default = "default_1498")] pub canonical_agent: String, pub dup_count: Integer, - #[serde(default = "default_1499")] + #[serde(default = "default_1500")] pub duplicates: Vec, } @@ -33335,11 +33337,11 @@ pub struct MemoryDedupResolveOutput { pub canonical_key: String, pub duplicate_key: String, pub decision: String, - #[serde(default = "default_1500")] - pub canonical_tombstoned: bool, #[serde(default = "default_1501")] - pub duplicate_tombstoned: bool, + pub canonical_tombstoned: bool, #[serde(default = "default_1502")] + pub duplicate_tombstoned: bool, + #[serde(default = "default_1503")] pub ignored_args: Vec, } @@ -33477,17 +33479,17 @@ pub struct LostName { pub struct DefinitionEntry { pub memory_key: String, pub promoted_at: String, - #[serde(default = "default_1503")] - pub capped: bool, #[serde(default = "default_1504")] - pub term: Option, + pub capped: bool, #[serde(default = "default_1505")] - pub aliases: Vec, + pub term: Option, #[serde(default = "default_1506")] - pub verdict: Option, + pub aliases: Vec, #[serde(default = "default_1507")] - pub lapse_reason: Option, + pub verdict: Option, #[serde(default = "default_1508")] + pub lapse_reason: Option, + #[serde(default = "default_1509")] pub lost: Vec, } @@ -33548,15 +33550,15 @@ impl MemoryDefinitionsListInput { #[non_exhaustive] pub struct MemoryDeleteVersionOutput { pub tombstoned: bool, - #[serde(default = "default_1509")] - pub version: Integer, #[serde(default = "default_1510")] - pub found: bool, + pub version: Integer, #[serde(default = "default_1511")] - pub reason: String, + pub found: bool, #[serde(default = "default_1512")] - pub dependents_tombstoned: Integer, + pub reason: String, #[serde(default = "default_1513")] + pub dependents_tombstoned: Integer, + #[serde(default = "default_1514")] pub dependents_downgraded: Integer, } @@ -33683,21 +33685,21 @@ pub struct DemonstrationRow { pub struct MemoryDemonstrateOutput { pub query: String, pub demonstrations: Vec, - #[serde(default = "default_1514")] - pub votes: std::collections::HashMap, #[serde(default = "default_1515")] - pub predicted_label: String, + pub votes: std::collections::HashMap, #[serde(default = "default_1516")] - pub margin: f64, + pub predicted_label: String, #[serde(default = "default_1517")] - pub abstain: bool, + pub margin: f64, #[serde(default = "default_1518")] - pub abstain_reason: String, + pub abstain: bool, #[serde(default = "default_1519")] - pub few_shot_block: String, + pub abstain_reason: String, #[serde(default = "default_1520")] - pub examined: Integer, + pub few_shot_block: String, #[serde(default = "default_1521")] + pub examined: Integer, + #[serde(default = "default_1522")] pub labelled: Integer, } @@ -33837,7 +33839,7 @@ impl MemoryDemonstrateInput { pub struct MemoryDemoteOutput { pub demoted: bool, pub was_reversible: bool, - #[serde(default = "default_1522")] + #[serde(default = "default_1523")] pub tombstoned_at: Option, } @@ -33899,15 +33901,15 @@ impl MemoryDemoteInput { pub struct DigestRow { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1523")] - pub key_facts: Vec, #[serde(default = "default_1524")] - pub derived_from: Vec, + pub key_facts: Vec, #[serde(default = "default_1525")] - pub valid_at: Option, + pub derived_from: Vec, #[serde(default = "default_1526")] - pub created_at: Option, + pub valid_at: Option, #[serde(default = "default_1527")] + pub created_at: Option, + #[serde(default = "default_1528")] pub version: Integer, } @@ -33915,7 +33917,7 @@ pub struct DigestRow { #[non_exhaustive] pub struct MemoryDigestsOutput { pub rows: Vec, - #[serde(default = "default_1528")] + #[serde(default = "default_1529")] pub truncated: bool, } @@ -34040,17 +34042,17 @@ pub struct MemoryEvidenceItem { pub evidence_id: String, pub support_type: String, pub scope: MemoryEvidenceItemScope, - #[serde(default = "default_1532")] - pub role: String, #[serde(default = "default_1533")] - pub observed_at: Option, + pub role: String, #[serde(default = "default_1534")] - pub content: String, + pub observed_at: Option, #[serde(default = "default_1535")] - pub char_start: Integer, + pub content: String, #[serde(default = "default_1536")] - pub char_end: Integer, + pub char_start: Integer, #[serde(default = "default_1537")] + pub char_end: Integer, + #[serde(default = "default_1538")] pub span: String, } @@ -34058,23 +34060,23 @@ pub struct MemoryEvidenceItem { #[non_exhaustive] pub struct MemoryEvidenceOutput { pub found: bool, - #[serde(default = "default_1529")] - pub memory_key: String, #[serde(default = "default_1530")] - pub memory_id: String, + pub memory_key: String, #[serde(default = "default_1531")] + pub memory_id: String, + #[serde(default = "default_1532")] pub value: String, - #[serde(default = "default_1538")] - pub items: Vec, #[serde(default = "default_1539")] - pub truncated: bool, + pub items: Vec, #[serde(default = "default_1540")] - pub cited: Integer, + pub truncated: bool, #[serde(default = "default_1541")] - pub lexical: Integer, + pub cited: Integer, #[serde(default = "default_1542")] - pub window: Integer, + pub lexical: Integer, #[serde(default = "default_1543")] + pub window: Integer, + #[serde(default = "default_1544")] pub derived: Integer, } @@ -34179,26 +34181,26 @@ impl MemoryEvidenceInput { #[non_exhaustive] pub struct EvidenceChunk { pub session_id: String, - #[serde(default = "default_1544")] + #[serde(default = "default_1545")] pub chunk_index: Integer, pub content: String, - #[serde(default = "default_1545")] - pub content_sha256: String, #[serde(default = "default_1546")] - pub agent: String, + pub content_sha256: String, #[serde(default = "default_1547")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1548")] - pub parent_memory_key: String, + pub user_id: String, #[serde(default = "default_1549")] - pub memory_keys: Vec, + pub parent_memory_key: String, #[serde(default = "default_1550")] - pub line_start: Integer, + pub memory_keys: Vec, #[serde(default = "default_1551")] - pub line_end: Integer, + pub line_start: Integer, #[serde(default = "default_1552")] - pub created_at: String, + pub line_end: Integer, #[serde(default = "default_1553")] + pub created_at: String, + #[serde(default = "default_1554")] pub source_url: String, } @@ -34207,17 +34209,17 @@ pub struct EvidenceChunk { pub struct EvidenceDigest { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1555")] - pub agent: String, #[serde(default = "default_1556")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1557")] - pub key_facts: Vec, + pub user_id: String, #[serde(default = "default_1558")] - pub derived_from: Vec, + pub key_facts: Vec, #[serde(default = "default_1559")] - pub valid_at: String, + pub derived_from: Vec, #[serde(default = "default_1560")] + pub valid_at: String, + #[serde(default = "default_1561")] pub created_at: String, } @@ -34227,28 +34229,28 @@ pub struct EvidenceEdge { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1562")] - pub confidence: f64, #[serde(default = "default_1563")] - pub explanation: String, + pub confidence: f64, #[serde(default = "default_1564")] + pub explanation: String, + #[serde(default = "default_1565")] pub created_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExportEvidenceOutput { - #[serde(default = "default_1554")] + #[serde(default = "default_1555")] pub chunks: Vec, - #[serde(default = "default_1561")] + #[serde(default = "default_1562")] pub digests: Vec, - #[serde(default = "default_1565")] - pub edges: Vec, #[serde(default = "default_1566")] - pub has_more: bool, + pub edges: Vec, #[serde(default = "default_1567")] - pub next_cursor: String, + pub has_more: bool, #[serde(default = "default_1568")] + pub next_cursor: String, + #[serde(default = "default_1569")] pub held_high: Integer, } @@ -34441,15 +34443,15 @@ impl ExposureSummaryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionRetryMineOutput { - #[serde(default = "default_1569")] - pub requeued: Vec, #[serde(default = "default_1570")] - pub not_failed: Vec, + pub requeued: Vec, #[serde(default = "default_1571")] - pub model_calls_off: Vec, + pub not_failed: Vec, #[serde(default = "default_1572")] - pub expired: Vec, + pub model_calls_off: Vec, #[serde(default = "default_1573")] + pub expired: Vec, + #[serde(default = "default_1574")] pub unknown: Vec, } @@ -34510,20 +34512,20 @@ pub struct ExtractionQueueRow { pub content_chars: Integer, pub written: Integer, pub last_error: String, - #[serde(default = "default_1574")] - pub enqueued_at: Option, #[serde(default = "default_1575")] + pub enqueued_at: Option, + #[serde(default = "default_1576")] pub updated_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusOutput { - #[serde(default = "default_1576")] - pub batches: Vec, #[serde(default = "default_1577")] - pub pending: Integer, + pub batches: Vec, #[serde(default = "default_1578")] + pub pending: Integer, + #[serde(default = "default_1579")] pub failed: Integer, } @@ -34671,13 +34673,13 @@ impl MemoryExtractionStatusInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusMineOutput { - #[serde(default = "default_1579")] - pub batches: Vec, #[serde(default = "default_1580")] - pub unknown: Vec, + pub batches: Vec, #[serde(default = "default_1581")] - pub pending: Integer, + pub unknown: Vec, #[serde(default = "default_1582")] + pub pending: Integer, + #[serde(default = "default_1583")] pub failed: Integer, } @@ -34798,39 +34800,39 @@ pub struct MemoryForFileHit { pub memory_key: String, pub memory_type: String, pub value: String, - #[serde(default = "default_1583")] - pub value_truncated: bool, #[serde(default = "default_1584")] - pub tags: Vec, + pub value_truncated: bool, #[serde(default = "default_1585")] - pub confidence: f64, + pub tags: Vec, #[serde(default = "default_1586")] - pub pinned: bool, + pub confidence: f64, #[serde(default = "default_1587")] - pub status: String, + pub pinned: bool, #[serde(default = "default_1588")] - pub agent: String, + pub status: String, #[serde(default = "default_1589")] - pub updated_at: Option, + pub agent: String, #[serde(default = "default_1590")] - pub namespace: String, + pub updated_at: Option, #[serde(default = "default_1591")] - pub actor: String, + pub namespace: String, #[serde(default = "default_1592")] - pub supersedes_key: String, + pub actor: String, #[serde(default = "default_1593")] - pub supersedes: String, + pub supersedes_key: String, #[serde(default = "default_1594")] - pub supersedes_kind: MemoryForFileHitSupersedesKind, + pub supersedes: String, #[serde(default = "default_1595")] - pub matched_files: Vec, + pub supersedes_kind: MemoryForFileHitSupersedesKind, #[serde(default = "default_1596")] - pub source_resource_id: String, + pub matched_files: Vec, #[serde(default = "default_1597")] - pub verification: MemoryForFileHitVerification, + pub source_resource_id: String, #[serde(default = "default_1598")] - pub code_state: MemoryForFileHitCodeState, + pub verification: MemoryForFileHitVerification, #[serde(default = "default_1599")] + pub code_state: MemoryForFileHitCodeState, + #[serde(default = "default_1600")] pub code_moved: Vec, } @@ -34840,7 +34842,7 @@ pub struct MemoryForFilePrintedRow { pub namespace: String, pub memory_key: String, pub line: String, - #[serde(default = "default_1603")] + #[serde(default = "default_1604")] pub binding: bool, } @@ -34850,13 +34852,13 @@ pub struct MemoryForFileOutput { pub path: String, pub total: Integer, pub hits: Vec, - #[serde(default = "default_1600")] - pub rendered: String, #[serde(default = "default_1601")] - pub tokens_estimate: Integer, + pub rendered: String, #[serde(default = "default_1602")] + pub tokens_estimate: Integer, + #[serde(default = "default_1603")] pub truncated: bool, - #[serde(default = "default_1604")] + #[serde(default = "default_1605")] pub printed: Vec, } @@ -34964,61 +34966,61 @@ impl MemoryForFileInput { #[non_exhaustive] pub struct MemoryGetByIdOutput { pub found: bool, - #[serde(default = "default_1605")] - pub memory_id: String, #[serde(default = "default_1606")] - pub namespace: String, + pub memory_id: String, #[serde(default = "default_1607")] - pub agent: String, + pub namespace: String, #[serde(default = "default_1608")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1609")] - pub session_id: String, + pub user_id: String, #[serde(default = "default_1610")] - pub memory_key: String, + pub session_id: String, #[serde(default = "default_1611")] - pub memory_type: Option, + pub memory_key: String, #[serde(default = "default_1612")] - pub value: Value, + pub memory_type: Option, #[serde(default = "default_1613")] - pub confidence: Option, + pub value: Value, #[serde(default = "default_1614")] - pub version: Option, + pub confidence: Option, #[serde(default = "default_1615")] - pub created_at: Option, + pub version: Option, #[serde(default = "default_1616")] - pub expires_at: Option, + pub created_at: Option, #[serde(default = "default_1617")] - pub valid_at: Option, + pub expires_at: Option, #[serde(default = "default_1618")] - pub valid_to: Option, + pub valid_at: Option, #[serde(default = "default_1619")] - pub pinned: bool, + pub valid_to: Option, #[serde(default = "default_1620")] - pub content_sha256: String, + pub pinned: bool, #[serde(default = "default_1621")] - pub verified_by: String, + pub content_sha256: String, #[serde(default = "default_1622")] - pub verified_at: Option, + pub verified_by: String, #[serde(default = "default_1623")] - pub verification: String, + pub verified_at: Option, #[serde(default = "default_1624")] - pub sensitivity: String, + pub verification: String, #[serde(default = "default_1625")] - pub actor: String, + pub sensitivity: String, #[serde(default = "default_1626")] - pub source_class: String, + pub actor: String, #[serde(default = "default_1627")] - pub lock_mode: String, + pub source_class: String, #[serde(default = "default_1628")] - pub lock_reason: String, + pub lock_mode: String, #[serde(default = "default_1629")] - pub lock_until: Option, + pub lock_reason: String, #[serde(default = "default_1630")] - pub locked_by: String, + pub lock_until: Option, #[serde(default = "default_1631")] - pub on_expire: String, + pub locked_by: String, #[serde(default = "default_1632")] + pub on_expire: String, + #[serde(default = "default_1633")] pub expire_reason: String, } @@ -35094,41 +35096,41 @@ pub struct MemoryHealthTopRow { pub memory_type: String, pub recall_count: Integer, pub used_count: Integer, - #[serde(default = "default_1635")] - pub harm_count: Integer, #[serde(default = "default_1636")] + pub harm_count: Integer, + #[serde(default = "default_1637")] pub last_recalled_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthStaleness { - #[serde(default = "default_1638")] - pub by_age: std::collections::HashMap, #[serde(default = "default_1639")] - pub with_validity_end: Integer, + pub by_age: std::collections::HashMap, #[serde(default = "default_1640")] - pub with_validity_end_share: f64, + pub with_validity_end: Integer, #[serde(default = "default_1641")] - pub with_expiry: Integer, + pub with_validity_end_share: f64, #[serde(default = "default_1642")] - pub expiring_7d: Integer, + pub with_expiry: Integer, #[serde(default = "default_1643")] - pub pinned: Integer, + pub expiring_7d: Integer, #[serde(default = "default_1644")] - pub days_since_reinforced_p50: Integer, + pub pinned: Integer, #[serde(default = "default_1645")] + pub days_since_reinforced_p50: Integer, + #[serde(default = "default_1646")] pub days_since_reinforced_p90: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthFootprint { - #[serde(default = "default_1647")] - pub value_chars: Integer, #[serde(default = "default_1648")] - pub value_tokens_est: Integer, + pub value_chars: Integer, #[serde(default = "default_1649")] + pub value_tokens_est: Integer, + #[serde(default = "default_1650")] pub tokens_per_row_est: f64, } @@ -35138,19 +35140,19 @@ pub struct MemoryHealthOutput { pub live: Integer, pub recalled_ever: Integer, pub used_ever: Integer, - #[serde(default = "default_1633")] + #[serde(default = "default_1634")] pub harmed_ever: Integer, pub silent: Integer, pub silent_older: Integer, pub silent_share: f64, pub silent_after_days: Integer, - #[serde(default = "default_1634")] + #[serde(default = "default_1635")] pub by_type: Vec, - #[serde(default = "default_1637")] + #[serde(default = "default_1638")] pub top_recalled: Vec, - #[serde(default = "default_1646")] + #[serde(default = "default_1647")] pub staleness: MemoryHealthStaleness, - #[serde(default = "default_1650")] + #[serde(default = "default_1651")] pub footprint: MemoryHealthFootprint, } @@ -35270,51 +35272,51 @@ impl MemoryHealthInput { pub struct MemoryHistoryRow { pub memory_id: String, pub version: Integer, - #[serde(default = "default_1651")] - pub version_text: String, #[serde(default = "default_1652")] + pub version_text: String, + #[serde(default = "default_1653")] pub value: Value, pub confidence: f64, - #[serde(default = "default_1653")] - pub source_trace: String, #[serde(default = "default_1654")] + pub source_trace: String, + #[serde(default = "default_1655")] pub pinned: bool, pub created_at: String, - #[serde(default = "default_1655")] - pub expires_at: Option, #[serde(default = "default_1656")] - pub tombstoned_at: Option, + pub expires_at: Option, #[serde(default = "default_1657")] - pub redacted_at: Option, + pub tombstoned_at: Option, #[serde(default = "default_1658")] - pub redaction_reason: String, + pub redacted_at: Option, #[serde(default = "default_1659")] - pub content_sha256: String, + pub redaction_reason: String, #[serde(default = "default_1660")] - pub actor: String, + pub content_sha256: String, #[serde(default = "default_1661")] - pub source_class: String, + pub actor: String, #[serde(default = "default_1662")] - pub agent: String, + pub source_class: String, #[serde(default = "default_1663")] - pub written_at: Option, + pub agent: String, #[serde(default = "default_1664")] - pub status: String, + pub written_at: Option, #[serde(default = "default_1665")] - pub conflict_with: Vec, + pub status: String, #[serde(default = "default_1666")] - pub tags: Vec, + pub conflict_with: Vec, #[serde(default = "default_1667")] - pub verified_at: Option, + pub tags: Vec, #[serde(default = "default_1668")] - pub verified_by: String, + pub verified_at: Option, #[serde(default = "default_1669")] - pub verified_sha256: String, + pub verified_by: String, #[serde(default = "default_1670")] - pub lock_mode: String, + pub verified_sha256: String, #[serde(default = "default_1671")] - pub lock_reason: String, + pub lock_mode: String, #[serde(default = "default_1672")] + pub lock_reason: String, + #[serde(default = "default_1673")] pub lock_until: Option, } @@ -35424,13 +35426,13 @@ impl MemoryHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportTotals { - #[serde(default = "default_1673")] - pub written: Integer, #[serde(default = "default_1674")] - pub held: Integer, + pub written: Integer, #[serde(default = "default_1675")] - pub skipped: Integer, + pub held: Integer, #[serde(default = "default_1676")] + pub skipped: Integer, + #[serde(default = "default_1677")] pub refused: Integer, } @@ -35513,11 +35515,11 @@ pub struct MemoryImportResult { pub index: Integer, pub key: String, pub outcome: MemoryImportResultOutcome, - #[serde(default = "default_1677")] - pub reason: MemoryImportResultReason, #[serde(default = "default_1678")] - pub held_by: String, + pub reason: MemoryImportResultReason, #[serde(default = "default_1679")] + pub held_by: String, + #[serde(default = "default_1680")] pub note: MemoryImportResultNote, } @@ -35526,7 +35528,7 @@ pub struct MemoryImportResult { pub struct MemoryImportOutput { pub totals: MemoryImportTotals, pub results: Vec, - #[serde(default = "default_1680")] + #[serde(default = "default_1681")] pub dry_run: bool, } @@ -35719,9 +35721,9 @@ pub struct MemoryImportCuratedRow { pub section_heading: String, pub bytes_written: Integer, pub verdict: String, - #[serde(default = "default_1681")] - pub rejection_reason: String, #[serde(default = "default_1682")] + pub rejection_reason: String, + #[serde(default = "default_1683")] pub pinned_blocker_id: Option, } @@ -35813,21 +35815,21 @@ impl MemoryImportCuratedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportEvidenceOutput { - #[serde(default = "default_1683")] - pub chunks_written: Integer, #[serde(default = "default_1684")] - pub links_written: Integer, + pub chunks_written: Integer, #[serde(default = "default_1685")] - pub digests_written: Integer, + pub links_written: Integer, #[serde(default = "default_1686")] - pub embedding_model: String, + pub digests_written: Integer, #[serde(default = "default_1687")] - pub embedding_dim: Integer, + pub embedding_model: String, #[serde(default = "default_1688")] - pub edited: Vec, + pub embedding_dim: Integer, #[serde(default = "default_1689")] - pub skipped: Integer, + pub edited: Vec, #[serde(default = "default_1690")] + pub skipped: Integer, + #[serde(default = "default_1691")] pub unchecked: Integer, } @@ -36164,7 +36166,7 @@ pub struct InspectRow { pub memory_key: String, pub memory_id: String, pub version: Integer, - #[serde(default = "default_1700")] + #[serde(default = "default_1701")] pub content_sha256: String, pub memory_type: String, pub status: String, @@ -36175,9 +36177,9 @@ pub struct InspectRow { pub actor: String, pub updated_at: String, pub sensitivity: String, - #[serde(default = "default_1701")] - pub versions: Integer, #[serde(default = "default_1702")] + pub versions: Integer, + #[serde(default = "default_1703")] pub excerpt: String, } @@ -36185,27 +36187,27 @@ pub struct InspectRow { #[non_exhaustive] pub struct InspectView { pub definition: String, - #[serde(default = "default_1691")] - pub refs: Vec, #[serde(default = "default_1692")] - pub live_rows: Integer, + pub refs: Vec, #[serde(default = "default_1693")] - pub by_type: Vec, + pub live_rows: Integer, #[serde(default = "default_1694")] - pub by_status: Vec, + pub by_type: Vec, #[serde(default = "default_1695")] - pub by_source_class: Vec, + pub by_status: Vec, #[serde(default = "default_1696")] - pub top_tags: Vec, + pub by_source_class: Vec, #[serde(default = "default_1697")] - pub categories: Vec, + pub top_tags: Vec, #[serde(default = "default_1698")] - pub first_updated_at: Option, + pub categories: Vec, #[serde(default = "default_1699")] + pub first_updated_at: Option, + #[serde(default = "default_1700")] pub last_updated_at: Option, - #[serde(default = "default_1703")] - pub newest: Vec, #[serde(default = "default_1704")] + pub newest: Vec, + #[serde(default = "default_1705")] pub complete: bool, } @@ -36221,32 +36223,32 @@ pub struct InspectCall { #[non_exhaustive] pub struct InspectActivity { pub window_seconds: Integer, - #[serde(default = "default_1705")] - pub calls: Vec, #[serde(default = "default_1706")] - pub first_at: Option, + pub calls: Vec, #[serde(default = "default_1707")] - pub last_at: Option, + pub first_at: Option, #[serde(default = "default_1708")] + pub last_at: Option, + #[serde(default = "default_1709")] pub gap: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InspectSettings { - #[serde(default = "default_1709")] - pub guide_revision: Integer, #[serde(default = "default_1710")] - pub guide_summary: String, + pub guide_revision: Integer, #[serde(default = "default_1711")] - pub categories_registered: Integer, + pub guide_summary: String, #[serde(default = "default_1712")] - pub extraction_policy: Option, + pub categories_registered: Integer, #[serde(default = "default_1713")] - pub extraction_policy_unavailable: String, + pub extraction_policy: Option, #[serde(default = "default_1714")] - pub extraction_instructions: String, + pub extraction_policy_unavailable: String, #[serde(default = "default_1715")] + pub extraction_instructions: String, + #[serde(default = "default_1716")] pub extraction_instructions_refs: Vec, } @@ -36262,7 +36264,7 @@ pub struct MemoryInspectOutput { pub others: InspectView, pub activity: InspectActivity, pub settings: InspectSettings, - #[serde(default = "default_1716")] + #[serde(default = "default_1717")] pub skipped: Vec, } @@ -36356,7 +36358,7 @@ pub struct MemoryKeyRef { #[non_exhaustive] pub struct MemoryKeysOutput { pub keys: Vec, - #[serde(default = "default_1717")] + #[serde(default = "default_1718")] pub truncated: bool, } @@ -36459,9 +36461,9 @@ pub struct LineageCandidate { pub decided_at: String, pub decided_by: String, pub match_confidence: LineageCandidateMatchConfidence, - #[serde(default = "default_1726")] - pub seeded_from_thread_id: String, #[serde(default = "default_1727")] + pub seeded_from_thread_id: String, + #[serde(default = "default_1728")] pub seeded_from_msg_id: String, } @@ -36479,25 +36481,25 @@ pub struct LineageAuditEvent { pub struct MemoryLineageOutput { pub found: bool, pub memory_key: String, - #[serde(default = "default_1718")] - pub promotion_event: String, #[serde(default = "default_1719")] - pub promoted_by: String, + pub promotion_event: String, #[serde(default = "default_1720")] - pub promoted_at: Option, + pub promoted_by: String, #[serde(default = "default_1721")] - pub rationale: String, + pub promoted_at: Option, #[serde(default = "default_1722")] - pub source_trace: String, + pub rationale: String, #[serde(default = "default_1723")] - pub source_resource_id: String, + pub source_trace: String, #[serde(default = "default_1724")] - pub mechanism: MemoryLineageOutputMechanism, + pub source_resource_id: String, #[serde(default = "default_1725")] + pub mechanism: MemoryLineageOutputMechanism, + #[serde(default = "default_1726")] pub supporters: Vec, - #[serde(default = "default_1728")] - pub candidate: Option, #[serde(default = "default_1729")] + pub candidate: Option, + #[serde(default = "default_1730")] pub audit_chain: Vec, } @@ -36626,11 +36628,11 @@ pub struct MemoryLinkOutput { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1730")] - pub confidence: f64, #[serde(default = "default_1731")] - pub conflict_opened: bool, + pub confidence: f64, #[serde(default = "default_1732")] + pub conflict_opened: bool, + #[serde(default = "default_1733")] pub relation_defaulted: bool, } @@ -36944,17 +36946,17 @@ pub struct MemoryListEntry { pub struct MemoryListOutput { pub entries: Vec, pub truncated: bool, - #[serde(default = "default_1733")] - pub total: Integer, #[serde(default = "default_1734")] - pub today: Integer, + pub total: Integer, #[serde(default = "default_1735")] - pub namespace_version: String, + pub today: Integer, #[serde(default = "default_1736")] - pub unchanged: bool, + pub namespace_version: String, #[serde(default = "default_1737")] - pub hidden: Integer, + pub unchanged: bool, #[serde(default = "default_1738")] + pub hidden: Integer, + #[serde(default = "default_1739")] pub hidden_hint: String, } @@ -37340,19 +37342,19 @@ impl MemoryListInput { #[non_exhaustive] pub struct MemoryLockOutput { pub locked: bool, - #[serde(default = "default_1739")] - pub reason: String, #[serde(default = "default_1740")] - pub memory_id: String, + pub reason: String, #[serde(default = "default_1741")] - pub version: Option, + pub memory_id: String, #[serde(default = "default_1742")] - pub lock_mode: String, + pub version: Option, #[serde(default = "default_1743")] - pub lock_until: Option, + pub lock_mode: String, #[serde(default = "default_1744")] - pub locked_by: String, + pub lock_until: Option, #[serde(default = "default_1745")] + pub locked_by: String, + #[serde(default = "default_1746")] pub previous_mode: String, } @@ -37511,21 +37513,21 @@ pub struct MemoryMoveOutput { pub from_key: String, pub to_key: String, pub redirected: bool, - #[serde(default = "default_1746")] - pub memory_id: String, #[serde(default = "default_1747")] - pub version: Integer, + pub memory_id: String, #[serde(default = "default_1748")] - pub content_sha256: String, + pub version: Integer, #[serde(default = "default_1749")] - pub advisories: Vec, + pub content_sha256: String, #[serde(default = "default_1750")] - pub dry_run: bool, + pub advisories: Vec, #[serde(default = "default_1751")] - pub memory_type: String, + pub dry_run: bool, #[serde(default = "default_1752")] - pub value_preview: String, + pub memory_type: String, #[serde(default = "default_1753")] + pub value_preview: String, + #[serde(default = "default_1754")] pub sensitivity: String, } @@ -37737,7 +37739,7 @@ impl MemoryMoveInput { pub struct MemoryOutcomeOutput { pub recorded: bool, pub evidence_count_after: Integer, - #[serde(default = "default_1754")] + #[serde(default = "default_1755")] pub quarantined: bool, } @@ -37980,13 +37982,13 @@ impl MemoryOutcomeRunInput { #[non_exhaustive] pub struct OutlineSession { pub session_id: String, - #[serde(default = "default_1756")] - pub date: String, #[serde(default = "default_1757")] - pub headline: String, + pub date: String, #[serde(default = "default_1758")] - pub key_facts: Integer, + pub headline: String, #[serde(default = "default_1759")] + pub key_facts: Integer, + #[serde(default = "default_1760")] pub rows: Integer, } @@ -37994,7 +37996,7 @@ pub struct OutlineSession { #[non_exhaustive] pub struct OutlineHub { pub entity: String, - #[serde(default = "default_1762")] + #[serde(default = "default_1763")] pub degree: Integer, } @@ -38002,28 +38004,28 @@ pub struct OutlineHub { #[non_exhaustive] pub struct OutlineCommunity { pub community_id: Integer, - #[serde(default = "default_1764")] - pub label: String, #[serde(default = "default_1765")] - pub size: Integer, + pub label: String, #[serde(default = "default_1766")] + pub size: Integer, + #[serde(default = "default_1767")] pub computed_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryOutlineOutput { - #[serde(default = "default_1755")] + #[serde(default = "default_1756")] pub rows_by_type: std::collections::HashMap, - #[serde(default = "default_1760")] - pub sessions: Vec, #[serde(default = "default_1761")] + pub sessions: Vec, + #[serde(default = "default_1762")] pub sessions_total: Integer, - #[serde(default = "default_1763")] + #[serde(default = "default_1764")] pub hubs: Vec, - #[serde(default = "default_1767")] - pub communities: Vec, #[serde(default = "default_1768")] + pub communities: Vec, + #[serde(default = "default_1769")] pub profile_chars: Integer, } @@ -38175,7 +38177,7 @@ pub struct OwnerUsageRow { pub recalls: Integer, pub used: Integer, pub harm: Integer, - #[serde(default = "default_1769")] + #[serde(default = "default_1770")] pub last_recalled: Option, } @@ -38662,7 +38664,7 @@ pub struct MemoryPromoteOutput { pub shared_memory_key: String, pub promotion_event: String, pub reversible_until: String, - #[serde(default = "default_1770")] + #[serde(default = "default_1771")] pub ignored_args: Vec, } @@ -38831,18 +38833,18 @@ impl MemoryPromoteInput { pub struct MemoryProposalDecision { pub memory_key: String, pub decided: bool, - #[serde(default = "default_1772")] - pub status: String, #[serde(default = "default_1773")] + pub status: String, + #[serde(default = "default_1774")] pub reason: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalDecideOutput { - #[serde(default = "default_1771")] + #[serde(default = "default_1772")] pub decided: Integer, - #[serde(default = "default_1774")] + #[serde(default = "default_1775")] pub results: Vec, } @@ -38943,33 +38945,33 @@ pub enum MemoryProposalReady { pub struct MemoryProposal { pub memory_key: String, pub memory_id: String, - #[serde(default = "default_1775")] - pub content_sha256: String, #[serde(default = "default_1776")] - pub agent: String, + pub content_sha256: String, #[serde(default = "default_1777")] - pub memory_type: String, + pub agent: String, #[serde(default = "default_1778")] - pub value_preview: String, + pub memory_type: String, #[serde(default = "default_1779")] - pub sensitivity: String, + pub value_preview: String, #[serde(default = "default_1780")] - pub tags: Vec, + pub sensitivity: String, #[serde(default = "default_1781")] - pub created_at: String, + pub tags: Vec, #[serde(default = "default_1782")] - pub graded_passes: Integer, + pub created_at: String, #[serde(default = "default_1783")] - pub graded_fails: Integer, + pub graded_passes: Integer, #[serde(default = "default_1784")] - pub last_graded_at: String, + pub graded_fails: Integer, #[serde(default = "default_1785")] - pub used_count: Integer, + pub last_graded_at: String, #[serde(default = "default_1786")] - pub harm_count: Integer, + pub used_count: Integer, #[serde(default = "default_1787")] - pub ready: MemoryProposalReady, + pub harm_count: Integer, #[serde(default = "default_1788")] + pub ready: MemoryProposalReady, + #[serde(default = "default_1789")] pub conflict_with: Vec, } @@ -38985,24 +38987,24 @@ pub enum ProposalPolicyMode { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProposalPolicy { - #[serde(default = "default_1791")] - pub mode: ProposalPolicyMode, #[serde(default = "default_1792")] - pub min_passes: Integer, + pub mode: ProposalPolicyMode, #[serde(default = "default_1793")] - pub max_fails: Integer, + pub min_passes: Integer, #[serde(default = "default_1794")] + pub max_fails: Integer, + #[serde(default = "default_1795")] pub reject_after_fails: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalsOutput { - #[serde(default = "default_1789")] - pub proposals: Vec, #[serde(default = "default_1790")] + pub proposals: Vec, + #[serde(default = "default_1791")] pub total: Integer, - #[serde(default = "default_1795")] + #[serde(default = "default_1796")] pub policy: ProposalPolicy, } @@ -39120,19 +39122,19 @@ impl MemoryProposalsInput { pub struct MemoryProvenanceLink { pub direction: String, pub memory_key: String, - #[serde(default = "default_1809")] - pub relation: String, #[serde(default = "default_1810")] - pub label: String, + pub relation: String, #[serde(default = "default_1811")] - pub explanation: String, + pub label: String, #[serde(default = "default_1812")] - pub evidence: Vec, + pub explanation: String, #[serde(default = "default_1813")] - pub confidence: f64, + pub evidence: Vec, #[serde(default = "default_1814")] - pub author: String, + pub confidence: f64, #[serde(default = "default_1815")] + pub author: String, + #[serde(default = "default_1816")] pub run_id: String, } @@ -39140,33 +39142,33 @@ pub struct MemoryProvenanceLink { #[non_exhaustive] pub struct MemoryProvenanceOutput { pub found: bool, - #[serde(default = "default_1796")] - pub source_trace: String, #[serde(default = "default_1797")] - pub source_kind: String, + pub source_trace: String, #[serde(default = "default_1798")] - pub actor: String, + pub source_kind: String, #[serde(default = "default_1799")] - pub source_class: String, + pub actor: String, #[serde(default = "default_1800")] - pub source_label: String, + pub source_class: String, #[serde(default = "default_1801")] - pub thread_id: String, + pub source_label: String, #[serde(default = "default_1802")] - pub thread_exists: bool, + pub thread_id: String, #[serde(default = "default_1803")] - pub thread_title: String, + pub thread_exists: bool, #[serde(default = "default_1804")] - pub agent: String, + pub thread_title: String, #[serde(default = "default_1805")] - pub session_id: String, + pub agent: String, #[serde(default = "default_1806")] - pub run_id: String, + pub session_id: String, #[serde(default = "default_1807")] - pub written_at: String, + pub run_id: String, #[serde(default = "default_1808")] + pub written_at: String, + #[serde(default = "default_1809")] pub source_resource_id: String, - #[serde(default = "default_1816")] + #[serde(default = "default_1817")] pub links: Vec, } @@ -39261,17 +39263,17 @@ impl MemoryProvenanceInput { pub struct RecallTurn { pub evidence_id: String, pub session_id: String, - #[serde(default = "default_1817")] - pub role: String, #[serde(default = "default_1818")] - pub actor: String, + pub role: String, #[serde(default = "default_1819")] - pub observed_at: String, + pub actor: String, #[serde(default = "default_1820")] - pub content: String, + pub observed_at: String, #[serde(default = "default_1821")] - pub truncated: bool, + pub content: String, #[serde(default = "default_1822")] + pub truncated: bool, + #[serde(default = "default_1823")] pub matched_tokens: Integer, } @@ -39288,21 +39290,21 @@ pub enum MemoryRecallOutputOrder { #[non_exhaustive] pub struct MemoryRecallOutput { pub turns: Vec, - #[serde(default = "default_1823")] - pub total_matched: Integer, #[serde(default = "default_1824")] - pub returned: Integer, + pub total_matched: Integer, #[serde(default = "default_1825")] - pub has_more: bool, + pub returned: Integer, #[serde(default = "default_1826")] - pub next_cursor: String, + pub has_more: bool, #[serde(default = "default_1827")] - pub next_offset: Integer, + pub next_cursor: String, #[serde(default = "default_1828")] - pub order: MemoryRecallOutputOrder, + pub next_offset: Integer, #[serde(default = "default_1829")] - pub query_tokens: Vec, + pub order: MemoryRecallOutputOrder, #[serde(default = "default_1830")] + pub query_tokens: Vec, + #[serde(default = "default_1831")] pub tokens_returned: Integer, } @@ -39584,19 +39586,19 @@ pub struct MemoryRecordConflictRow { pub schema_name: String, pub memory_key: String, pub field_name: String, - #[serde(default = "default_1831")] - pub prior_value: Value, #[serde(default = "default_1832")] + pub prior_value: Value, + #[serde(default = "default_1833")] pub incoming_value: Value, pub prior_record_id: String, pub incoming_record_id: String, - #[serde(default = "default_1833")] - pub prior_memory_id: String, #[serde(default = "default_1834")] - pub incoming_memory_id: String, + pub prior_memory_id: String, #[serde(default = "default_1835")] - pub detected_at: Option, + pub incoming_memory_id: String, #[serde(default = "default_1836")] + pub detected_at: Option, + #[serde(default = "default_1837")] pub resolved_at: Option, } @@ -39604,7 +39606,7 @@ pub struct MemoryRecordConflictRow { #[non_exhaustive] pub struct MemoryRecordConflictsOutput { pub rows: Vec, - #[serde(default = "default_1837")] + #[serde(default = "default_1838")] pub truncated: bool, } @@ -39714,19 +39716,19 @@ pub enum MemoryRecordRowStatus { #[non_exhaustive] pub struct MemoryRecordRow { pub record_id: String, - #[serde(default = "default_1838")] - pub memory_key: String, #[serde(default = "default_1839")] - pub memory_id: String, + pub memory_key: String, #[serde(default = "default_1840")] - pub record: std::collections::HashMap, + pub memory_id: String, #[serde(default = "default_1841")] - pub field_states: std::collections::HashMap, + pub record: std::collections::HashMap, #[serde(default = "default_1842")] - pub status: MemoryRecordRowStatus, + pub field_states: std::collections::HashMap, #[serde(default = "default_1843")] - pub valid_at: Option, + pub status: MemoryRecordRowStatus, #[serde(default = "default_1844")] + pub valid_at: Option, + #[serde(default = "default_1845")] pub valid_to: Option, } @@ -39793,7 +39795,7 @@ impl MemoryRecordHistoryInput { #[non_exhaustive] pub struct MemoryRecordQueryOutput { pub rows: Vec, - #[serde(default = "default_1845")] + #[serde(default = "default_1846")] pub truncated: bool, } @@ -40017,15 +40019,15 @@ pub enum MemoryRecordWriteOutputKeySource { pub struct MemoryRecordWriteOutput { pub record_id: String, pub field_count: Integer, - #[serde(default = "default_1846")] - pub memory_key: String, #[serde(default = "default_1847")] - pub key_source: MemoryRecordWriteOutputKeySource, + pub memory_key: String, #[serde(default = "default_1848")] - pub fold: std::collections::HashMap, + pub key_source: MemoryRecordWriteOutputKeySource, #[serde(default = "default_1849")] - pub superseded_record_id: String, + pub fold: std::collections::HashMap, #[serde(default = "default_1850")] + pub superseded_record_id: String, + #[serde(default = "default_1851")] pub conflicts: Integer, } @@ -40268,13 +40270,13 @@ impl MemoryRecordWriteInput { #[non_exhaustive] pub struct MemoryRedactOutput { pub redacted: bool, - #[serde(default = "default_1851")] - pub refused_head: bool, #[serde(default = "default_1852")] - pub redacted_at: Option, + pub refused_head: bool, #[serde(default = "default_1853")] - pub cache_rows_deleted: Integer, + pub redacted_at: Option, #[serde(default = "default_1854")] + pub cache_rows_deleted: Integer, + #[serde(default = "default_1855")] pub precedent_rows_deleted: Integer, } @@ -40434,7 +40436,7 @@ impl MemoryReindexInput { #[non_exhaustive] pub struct MemoryRejectOutput { pub rejected: bool, - #[serde(default = "default_1855")] + #[serde(default = "default_1856")] pub rejected_at: Option, } @@ -40550,7 +40552,7 @@ pub struct MemoryRelatedHit { pub struct MemoryRelatedOutput { pub results: Vec, pub source_entities: Vec, - #[serde(default = "default_1856")] + #[serde(default = "default_1857")] pub reason: String, } @@ -40665,13 +40667,13 @@ impl MemoryRelatedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryResolveOrphanDuplicatesOutput { - #[serde(default = "default_1857")] - pub candidates: Integer, #[serde(default = "default_1858")] - pub reactivated: Integer, + pub candidates: Integer, #[serde(default = "default_1859")] - pub dry_run: bool, + pub reactivated: Integer, #[serde(default = "default_1860")] + pub dry_run: bool, + #[serde(default = "default_1861")] pub memory_ids: Vec, } @@ -40748,15 +40750,15 @@ impl MemoryResolveOrphanDuplicatesInput { #[non_exhaustive] pub struct MemoryRestoreOutput { pub restored: bool, - #[serde(default = "default_1861")] - pub memory_id: Option, #[serde(default = "default_1862")] - pub version: Option, + pub memory_id: Option, #[serde(default = "default_1863")] - pub expired: bool, + pub version: Option, #[serde(default = "default_1864")] - pub redacted: bool, + pub expired: bool, #[serde(default = "default_1865")] + pub redacted: bool, + #[serde(default = "default_1866")] pub from_status: String, } @@ -40876,13 +40878,13 @@ pub struct SearchTraceHit { pub content_excerpt: String, pub distance: f64, pub similarity: f64, - #[serde(default = "default_1866")] + #[serde(default = "default_1867")] pub entity_boost: f64, pub rank_score: f64, pub rank: Integer, - #[serde(default = "default_1867")] - pub source: String, #[serde(default = "default_1868")] + pub source: String, + #[serde(default = "default_1869")] pub parent_memory_key: String, } @@ -40892,11 +40894,11 @@ pub struct MemorySearchTraceOutput { pub results: Vec, pub embedding_model: String, pub entity_filter: Vec, - #[serde(default = "default_1869")] - pub query_spellings: std::collections::HashMap, #[serde(default = "default_1870")] - pub query_spellings_skipped: bool, + pub query_spellings: std::collections::HashMap, #[serde(default = "default_1871")] + pub query_spellings_skipped: bool, + #[serde(default = "default_1872")] pub stale_dropped: Integer, } @@ -42099,7 +42101,7 @@ pub struct SearchTraceLogRow { pub embedding_model: String, pub latency_ms: Integer, pub run_id: String, - #[serde(default = "default_1872")] + #[serde(default = "default_1873")] pub operation: String, } @@ -42208,71 +42210,71 @@ pub struct RefusedFact { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySetFromMessagesOutput { - #[serde(default = "default_1873")] - pub written: Vec, #[serde(default = "default_1874")] - pub refused: Vec, + pub written: Vec, #[serde(default = "default_1875")] - pub tokens_in: Integer, + pub refused: Vec, #[serde(default = "default_1876")] - pub tokens_out: Integer, + pub tokens_in: Integer, #[serde(default = "default_1877")] - pub llm_provider: String, + pub tokens_out: Integer, #[serde(default = "default_1878")] - pub llm_model: String, + pub llm_provider: String, #[serde(default = "default_1879")] - pub segments: Integer, + pub llm_model: String, #[serde(default = "default_1880")] - pub foresight: Integer, + pub segments: Integer, #[serde(default = "default_1881")] - pub forgotten: Integer, + pub foresight: Integer, #[serde(default = "default_1882")] - pub forgotten_keys: Vec, + pub forgotten: Integer, #[serde(default = "default_1883")] - pub forget_requests: Integer, + pub forgotten_keys: Vec, #[serde(default = "default_1884")] - pub about_other: Integer, + pub forget_requests: Integer, #[serde(default = "default_1885")] - pub premise_facts: Integer, + pub about_other: Integer, #[serde(default = "default_1886")] - pub learning_candidates: Integer, + pub premise_facts: Integer, #[serde(default = "default_1887")] - pub ignored_args: Vec, + pub learning_candidates: Integer, #[serde(default = "default_1888")] - pub segmenter: String, + pub ignored_args: Vec, #[serde(default = "default_1889")] - pub cached_tokens_in: Integer, + pub segmenter: String, #[serde(default = "default_1890")] - pub ontology_warnings: Vec, + pub cached_tokens_in: Integer, #[serde(default = "default_1891")] - pub evidence_ids: Vec, + pub ontology_warnings: Vec, #[serde(default = "default_1892")] - pub belief_source_links: Integer, + pub evidence_ids: Vec, #[serde(default = "default_1893")] - pub pipeline_errors: Vec, + pub belief_source_links: Integer, #[serde(default = "default_1894")] - pub value_updates_linked: Integer, + pub pipeline_errors: Vec, #[serde(default = "default_1895")] - pub stubbed_fields: Vec, + pub value_updates_linked: Integer, #[serde(default = "default_1896")] - pub degraded: Vec, + pub stubbed_fields: Vec, #[serde(default = "default_1897")] - pub deferred: bool, + pub degraded: Vec, #[serde(default = "default_1898")] - pub queue_id: String, + pub deferred: bool, #[serde(default = "default_1899")] - pub deferred_by: String, + pub queue_id: String, #[serde(default = "default_1900")] - pub stage_ms: std::collections::HashMap, + pub deferred_by: String, #[serde(default = "default_1901")] - pub observation_date_source: String, + pub stage_ms: std::collections::HashMap, #[serde(default = "default_1902")] - pub under_operator_policy: bool, + pub observation_date_source: String, #[serde(default = "default_1903")] - pub extract_prompt_keys: Vec, + pub under_operator_policy: bool, #[serde(default = "default_1904")] - pub llm_cache_hits: Integer, + pub extract_prompt_keys: Vec, #[serde(default = "default_1905")] + pub llm_cache_hits: Integer, + #[serde(default = "default_1906")] pub llm_cache_misses: Integer, } @@ -42727,22 +42729,22 @@ pub enum StackEntrySection { #[non_exhaustive] pub struct StackEntry { pub section: StackEntrySection, - #[serde(default = "default_1906")] - pub memory_key: String, #[serde(default = "default_1907")] - pub memory_type: String, + pub memory_key: String, #[serde(default = "default_1908")] + pub memory_type: String, + #[serde(default = "default_1909")] pub value: String, pub tokens: Integer, - #[serde(default = "default_1909")] - pub pinned: bool, #[serde(default = "default_1910")] - pub recall_count: Integer, + pub pinned: bool, #[serde(default = "default_1911")] - pub last_recalled_at: Option, + pub recall_count: Integer, #[serde(default = "default_1912")] - pub actor: String, + pub last_recalled_at: Option, #[serde(default = "default_1913")] + pub actor: String, + #[serde(default = "default_1914")] pub namespace: String, } @@ -42927,14 +42929,14 @@ impl MemoryStackInput { pub struct MemoryStatus { pub memory_id: String, pub status: String, - #[serde(default = "default_1914")] + #[serde(default = "default_1915")] pub superseded_by: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryStatusesOutput { - #[serde(default = "default_1915")] + #[serde(default = "default_1916")] pub rows: Vec, } @@ -42983,23 +42985,23 @@ impl MemoryStatusesInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySweepExpiredOutput { - #[serde(default = "default_1916")] - pub scanned: Integer, #[serde(default = "default_1917")] - pub tombstoned: Integer, + pub scanned: Integer, #[serde(default = "default_1918")] - pub demoted: Integer, + pub tombstoned: Integer, #[serde(default = "default_1919")] - pub anonymized: Integer, + pub demoted: Integer, #[serde(default = "default_1920")] - pub locked_skipped: Integer, + pub anonymized: Integer, #[serde(default = "default_1921")] - pub moved_skipped: Integer, + pub locked_skipped: Integer, #[serde(default = "default_1922")] - pub dry_run: bool, + pub moved_skipped: Integer, #[serde(default = "default_1923")] - pub sample: Vec>, + pub dry_run: bool, #[serde(default = "default_1924")] + pub sample: Vec>, + #[serde(default = "default_1925")] pub failures: Vec, } @@ -43076,10 +43078,10 @@ pub struct MemoryTimelineEntry { pub memory_key: String, pub memory_type: String, pub content_excerpt: String, - #[serde(default = "default_1925")] + #[serde(default = "default_1926")] pub valid_at: Option, pub created_at: String, - #[serde(default = "default_1926")] + #[serde(default = "default_1927")] pub namespace: String, } @@ -43087,7 +43089,7 @@ pub struct MemoryTimelineEntry { #[non_exhaustive] pub struct MemoryTimelineOutput { pub events: Vec, - #[serde(default = "default_1927")] + #[serde(default = "default_1928")] pub total_matching: Integer, } @@ -43279,9 +43281,9 @@ impl MemoryTimelineInput { pub struct MemoryTouchResult { pub memory_key: String, pub touched: bool, - #[serde(default = "default_1930")] - pub version: Option, #[serde(default = "default_1931")] + pub version: Option, + #[serde(default = "default_1932")] pub expires_at: Option, } @@ -43289,13 +43291,13 @@ pub struct MemoryTouchResult { #[non_exhaustive] pub struct MemoryTouchOutput { pub touched: bool, - #[serde(default = "default_1928")] - pub version: Option, #[serde(default = "default_1929")] + pub version: Option, + #[serde(default = "default_1930")] pub expires_at: Option, - #[serde(default = "default_1932")] - pub results: Vec, #[serde(default = "default_1933")] + pub results: Vec, + #[serde(default = "default_1934")] pub touched_count: Integer, } @@ -43475,15 +43477,15 @@ impl MemoryTouchInput { #[non_exhaustive] pub struct MemoryUnlockOutput { pub unlocked: bool, - #[serde(default = "default_1934")] - pub reason: String, #[serde(default = "default_1935")] - pub memory_id: String, + pub reason: String, #[serde(default = "default_1936")] - pub version: Option, + pub memory_id: String, #[serde(default = "default_1937")] - pub previous_mode: String, + pub version: Option, #[serde(default = "default_1938")] + pub previous_mode: String, + #[serde(default = "default_1939")] pub unlocked_by: String, } @@ -43588,11 +43590,11 @@ impl MemoryUnlockInput { #[non_exhaustive] pub struct MemoryUnpinOutput { pub unpinned: bool, - #[serde(default = "default_1939")] - pub reason: String, #[serde(default = "default_1940")] - pub memory_id: String, + pub reason: String, #[serde(default = "default_1941")] + pub memory_id: String, + #[serde(default = "default_1942")] pub version: Option, } @@ -43686,15 +43688,15 @@ impl MemoryUnpinInput { #[non_exhaustive] pub struct MemoryUpdateCandidate { pub memory_id: String, - #[serde(default = "default_1947")] - pub agent: String, #[serde(default = "default_1948")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1949")] - pub session_id: String, + pub user_id: String, #[serde(default = "default_1950")] - pub version: Integer, + pub session_id: String, #[serde(default = "default_1951")] + pub version: Integer, + #[serde(default = "default_1952")] pub status: String, } @@ -43702,23 +43704,23 @@ pub struct MemoryUpdateCandidate { #[non_exhaustive] pub struct MemoryUpdateOutput { pub updated: bool, - #[serde(default = "default_1942")] - pub memory_id: String, #[serde(default = "default_1943")] - pub memory_key: String, + pub memory_id: String, #[serde(default = "default_1944")] - pub new_version: Integer, + pub memory_key: String, #[serde(default = "default_1945")] - pub content_sha256: String, + pub new_version: Integer, #[serde(default = "default_1946")] + pub content_sha256: String, + #[serde(default = "default_1947")] pub reason: String, - #[serde(default = "default_1952")] - pub candidates: Vec, #[serde(default = "default_1953")] - pub conflict_verdict: String, + pub candidates: Vec, #[serde(default = "default_1954")] - pub conflict_peers: Integer, + pub conflict_verdict: String, #[serde(default = "default_1955")] + pub conflict_peers: Integer, + #[serde(default = "default_1956")] pub duplicate_of: String, } @@ -43927,15 +43929,15 @@ impl MemoryUpdateInput { #[non_exhaustive] pub struct MemoryUpdateByIdOutput { pub updated: bool, - #[serde(default = "default_1956")] - pub new_version: Integer, #[serde(default = "default_1957")] - pub content_sha256: String, + pub new_version: Integer, #[serde(default = "default_1958")] - pub conflict_verdict: String, + pub content_sha256: String, #[serde(default = "default_1959")] - pub conflict_peers: Integer, + pub conflict_verdict: String, #[serde(default = "default_1960")] + pub conflict_peers: Integer, + #[serde(default = "default_1961")] pub duplicate_of: String, } @@ -44063,23 +44065,23 @@ impl MemoryUpdateByIdInput { #[non_exhaustive] pub struct MemoryVerifyOutput { pub found: bool, - #[serde(default = "default_1961")] - pub changed: bool, #[serde(default = "default_1962")] - pub memory_id: String, + pub changed: bool, #[serde(default = "default_1963")] - pub memory_key: String, + pub memory_id: String, #[serde(default = "default_1964")] - pub namespace: String, + pub memory_key: String, #[serde(default = "default_1965")] - pub verified_by: String, + pub namespace: String, #[serde(default = "default_1966")] - pub verified_at: Option, + pub verified_by: String, #[serde(default = "default_1967")] - pub verification: String, + pub verified_at: Option, #[serde(default = "default_1968")] - pub version: Integer, + pub verification: String, #[serde(default = "default_1969")] + pub version: Integer, + #[serde(default = "default_1970")] pub content_sha256: String, } @@ -44284,13 +44286,13 @@ pub struct SchemaFieldOutput { #[serde(rename = "type")] pub r#type: String, pub required: bool, - #[serde(default = "default_1972")] - pub identity: bool, #[serde(default = "default_1973")] - pub enum_values: Vec, + pub identity: bool, #[serde(default = "default_1974")] - pub constraints: std::collections::HashMap, + pub enum_values: Vec, #[serde(default = "default_1975")] + pub constraints: std::collections::HashMap, + #[serde(default = "default_1976")] pub description: String, } @@ -44299,11 +44301,11 @@ pub struct SchemaFieldOutput { pub struct MemorySchemaSummary { pub schema_id: String, pub name: String, - #[serde(default = "default_1970")] - pub description: String, #[serde(default = "default_1971")] + pub description: String, + #[serde(default = "default_1972")] pub status: String, - #[serde(default = "default_1976")] + #[serde(default = "default_1977")] pub fields: Vec, } @@ -44718,13 +44720,13 @@ impl MemorySchemaRegisterInput { #[non_exhaustive] pub struct MentorPlane { pub plane: String, - #[serde(default = "default_1978")] - pub calls: Integer, #[serde(default = "default_1979")] - pub available: Option, + pub calls: Integer, #[serde(default = "default_1980")] - pub when: String, + pub available: Option, #[serde(default = "default_1981")] + pub when: String, + #[serde(default = "default_1982")] pub mentored: bool, } @@ -44734,11 +44736,11 @@ pub struct MentorHint { pub code: String, pub severity: String, pub text: String, - #[serde(default = "default_1983")] - pub ops: Vec, #[serde(default = "default_1984")] - pub evidence: std::collections::HashMap, + pub ops: Vec, #[serde(default = "default_1985")] + pub evidence: std::collections::HashMap, + #[serde(default = "default_1986")] pub plane: Option, } @@ -44746,9 +44748,9 @@ pub struct MentorHint { #[non_exhaustive] pub struct MentorAdoption { pub code: String, - #[serde(default = "default_1987")] - pub shown_sessions: Integer, #[serde(default = "default_1988")] + pub shown_sessions: Integer, + #[serde(default = "default_1989")] pub followed_sessions: Integer, } @@ -44784,7 +44786,7 @@ pub enum UsageRungSource { #[non_exhaustive] pub struct UsageRung { pub rung: UsageRungRung, - #[serde(default = "default_1990")] + #[serde(default = "default_1991")] pub count: Option, pub source: UsageRungSource, pub meaning: String, @@ -44799,27 +44801,27 @@ pub struct MentorBriefOutput { pub window_seconds: Integer, pub computed_at: String, pub sessions: Integer, - #[serde(default = "default_1977")] + #[serde(default = "default_1978")] pub usage: std::collections::HashMap, - #[serde(default = "default_1982")] + #[serde(default = "default_1983")] pub planes: Vec, - #[serde(default = "default_1986")] + #[serde(default = "default_1987")] pub hints: Vec, - #[serde(default = "default_1989")] + #[serde(default = "default_1990")] pub adoption: Vec, - #[serde(default = "default_1991")] - pub usage_evidence: Vec, #[serde(default = "default_1992")] - pub ledger_from: Option, + pub usage_evidence: Vec, #[serde(default = "default_1993")] - pub ledger_retention_days: Option, + pub ledger_from: Option, #[serde(default = "default_1994")] - pub agents: Vec, + pub ledger_retention_days: Option, #[serde(default = "default_1995")] - pub agent_defaulted: bool, + pub agents: Vec, #[serde(default = "default_1996")] - pub skipped: Vec, + pub agent_defaulted: bool, #[serde(default = "default_1997")] + pub skipped: Vec, + #[serde(default = "default_1998")] pub healthy: bool, } @@ -44968,33 +44970,33 @@ impl MentorGuideInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct NamespaceAuditSummary { - #[serde(default = "default_1998")] - pub live_rows: Integer, #[serde(default = "default_1999")] - pub live_bytes: Integer, + pub live_rows: Integer, #[serde(default = "default_2000")] - pub excerpt_bytes: Integer, + pub live_bytes: Integer, #[serde(default = "default_2001")] - pub version_rows: Integer, + pub excerpt_bytes: Integer, #[serde(default = "default_2002")] - pub version_bytes: Integer, + pub version_rows: Integer, #[serde(default = "default_2003")] - pub unembedded_rows: Integer, + pub version_bytes: Integer, #[serde(default = "default_2004")] - pub gets: Integer, + pub unembedded_rows: Integer, #[serde(default = "default_2005")] - pub searches: Integer, + pub gets: Integer, #[serde(default = "default_2006")] - pub sets: Integer, + pub searches: Integer, #[serde(default = "default_2007")] - pub get_search_ratio: f64, + pub sets: Integer, #[serde(default = "default_2008")] - pub inspector_calls: Integer, + pub get_search_ratio: f64, #[serde(default = "default_2009")] - pub typed_gets: Integer, + pub inspector_calls: Integer, #[serde(default = "default_2010")] - pub written_in_window: Integer, + pub typed_gets: Integer, #[serde(default = "default_2011")] + pub written_in_window: Integer, + #[serde(default = "default_2012")] pub ledger_calls: Integer, } @@ -45026,25 +45028,25 @@ pub struct NamespaceAuditFinding { pub kind: NamespaceAuditFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_2012")] - pub window_seconds: Option, #[serde(default = "default_2013")] + pub window_seconds: Option, + #[serde(default = "default_2014")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_2014")] - pub evidence: Vec, #[serde(default = "default_2015")] - pub exceptions: String, + pub evidence: Vec, #[serde(default = "default_2016")] + pub exceptions: String, + #[serde(default = "default_2017")] pub uncertainty: String, pub code: String, pub severity: NamespaceAuditFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_2017")] - pub bytes: Integer, #[serde(default = "default_2018")] + pub bytes: Integer, + #[serde(default = "default_2019")] pub samples: Vec>, pub detail: String, pub remedy: String, @@ -45059,7 +45061,7 @@ pub struct NamespaceAuditOutput { pub window_seconds: Integer, pub summary: NamespaceAuditSummary, pub findings: Vec, - #[serde(default = "default_2019")] + #[serde(default = "default_2020")] pub skipped: Vec, pub coverage: ReportCoverage, pub healthy: bool, @@ -45150,29 +45152,29 @@ pub enum BrowseEntryMyStatus { #[non_exhaustive] pub struct BrowseEntry { pub namespace: String, - #[serde(default = "default_2020")] + #[serde(default = "default_2021")] pub kind: String, pub description: String, pub owner_email: String, pub member_count: Integer, - #[serde(default = "default_2021")] + #[serde(default = "default_2022")] pub requires_approval: bool, pub created_at: String, - #[serde(default = "default_2022")] - pub join_policy: String, #[serde(default = "default_2023")] - pub visibility: String, + pub join_policy: String, #[serde(default = "default_2024")] - pub my_status: BrowseEntryMyStatus, + pub visibility: String, #[serde(default = "default_2025")] - pub my_role: String, + pub my_status: BrowseEntryMyStatus, #[serde(default = "default_2026")] - pub repo: String, + pub my_role: String, #[serde(default = "default_2027")] - pub branch: String, + pub repo: String, #[serde(default = "default_2028")] - pub guide_revision: Integer, + pub branch: String, #[serde(default = "default_2029")] + pub guide_revision: Integer, + #[serde(default = "default_2030")] pub guide_summary: String, } @@ -45276,9 +45278,9 @@ pub enum NamespaceCancelRequestOutputClearedRole { pub struct NamespaceCancelRequestOutput { pub cancelled: bool, pub namespace: String, - #[serde(default = "default_2030")] - pub cleared_role: Option, #[serde(default = "default_2031")] + pub cleared_role: Option, + #[serde(default = "default_2032")] pub cancelled_at: Option, } @@ -45350,7 +45352,7 @@ pub struct NamespaceDeleteOutput { pub deleted: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2032")] + #[serde(default = "default_2033")] pub sources_retired: Vec, } @@ -45419,67 +45421,67 @@ pub enum NamespaceGetOutputClassification { pub struct NamespaceGetOutput { pub found: bool, pub namespace: String, - #[serde(default = "default_2033")] - pub kind: Option, #[serde(default = "default_2034")] - pub owner_email: Option, + pub kind: Option, #[serde(default = "default_2035")] - pub description: Option, + pub owner_email: Option, #[serde(default = "default_2036")] - pub tags: Option>, + pub description: Option, #[serde(default = "default_2037")] - pub active: Option, + pub tags: Option>, #[serde(default = "default_2038")] - pub conversation_logging_enabled: Option, + pub active: Option, #[serde(default = "default_2039")] - pub capture_generation_io: Option, + pub conversation_logging_enabled: Option, #[serde(default = "default_2040")] - pub coverage_sweep: Option, + pub capture_generation_io: Option, #[serde(default = "default_2041")] - pub consolidation_enabled: Option, + pub coverage_sweep: Option, #[serde(default = "default_2042")] - pub daily_cost_cap_usd: Option, + pub consolidation_enabled: Option, #[serde(default = "default_2043")] - pub daily_user_cost_cap_usd: Option, + pub daily_cost_cap_usd: Option, #[serde(default = "default_2044")] - pub budget_alert_inbox: Option, + pub daily_user_cost_cap_usd: Option, #[serde(default = "default_2045")] - pub conflict_threshold: Option, + pub budget_alert_inbox: Option, #[serde(default = "default_2046")] - pub retention_days: Option, + pub conflict_threshold: Option, #[serde(default = "default_2047")] - pub warm_days: Option, + pub retention_days: Option, #[serde(default = "default_2048")] - pub visibility: Option, + pub warm_days: Option, #[serde(default = "default_2049")] - pub requires_approval: Option, + pub visibility: Option, #[serde(default = "default_2050")] - pub join_policy: Option, + pub requires_approval: Option, #[serde(default = "default_2051")] - pub effective_join_policy: Option, + pub join_policy: Option, #[serde(default = "default_2052")] - pub retrieval_defaults: Option>, + pub effective_join_policy: Option, #[serde(default = "default_2053")] - pub rerank_endpoint: Option, + pub retrieval_defaults: Option>, #[serde(default = "default_2054")] - pub classify_endpoint: Option, + pub rerank_endpoint: Option, #[serde(default = "default_2055")] - pub default_conflict_policy: Option, + pub classify_endpoint: Option, #[serde(default = "default_2056")] - pub proposal_policy: Option, + pub default_conflict_policy: Option, #[serde(default = "default_2057")] - pub code_change_policy: Option, + pub proposal_policy: Option, #[serde(default = "default_2058")] - pub tag_registry: Option>>, + pub code_change_policy: Option, #[serde(default = "default_2059")] - pub classification: Option, + pub tag_registry: Option>>, #[serde(default = "default_2060")] - pub guide_revision: Option, + pub classification: Option, #[serde(default = "default_2061")] - pub guide_summary: Option, + pub guide_revision: Option, #[serde(default = "default_2062")] - pub created_at: Option, + pub guide_summary: Option, #[serde(default = "default_2063")] + pub created_at: Option, + #[serde(default = "default_2064")] pub updated_at: Option, } @@ -45532,17 +45534,17 @@ impl NamespaceGetInput { #[non_exhaustive] pub struct NamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2064")] - pub revision: Integer, #[serde(default = "default_2065")] - pub content: String, + pub revision: Integer, #[serde(default = "default_2066")] - pub summary: String, + pub content: String, #[serde(default = "default_2067")] - pub note: String, + pub summary: String, #[serde(default = "default_2068")] - pub updated_by: String, + pub note: String, #[serde(default = "default_2069")] + pub updated_by: String, + #[serde(default = "default_2070")] pub updated_at: Option, } @@ -45679,17 +45681,17 @@ impl NamespaceGuideHistoryInput { #[non_exhaustive] pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2071")] - pub revision: Integer, #[serde(default = "default_2072")] - pub content: String, + pub revision: Integer, #[serde(default = "default_2073")] - pub summary: String, + pub content: String, #[serde(default = "default_2074")] - pub note: String, + pub summary: String, #[serde(default = "default_2075")] - pub updated_by: String, + pub note: String, #[serde(default = "default_2076")] + pub updated_by: String, + #[serde(default = "default_2077")] pub updated_at: Option, } @@ -45697,10 +45699,10 @@ pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { #[non_exhaustive] pub struct NamespaceGuideSetOutput { pub written: bool, - #[serde(default = "default_2070")] + #[serde(default = "default_2071")] pub conflict: bool, pub revision: Integer, - #[serde(default = "default_2077")] + #[serde(default = "default_2078")] pub current: Option, } @@ -45821,7 +45823,7 @@ pub struct InventorySection { #[serde(deserialize_with = "required_nullable")] pub latest_at: Option, pub complete: bool, - #[serde(default = "default_2078")] + #[serde(default = "default_2079")] pub reason: String, } @@ -45851,10 +45853,10 @@ pub struct InventoryPopulation { pub population: InventoryPopulationPopulation, #[serde(deserialize_with = "required_nullable")] pub total: Option, - #[serde(default = "default_2079")] + #[serde(default = "default_2080")] pub top: Vec, pub complete: bool, - #[serde(default = "default_2080")] + #[serde(default = "default_2081")] pub reason: String, } @@ -46020,11 +46022,11 @@ pub struct NamespaceJoinOutput { pub joined: bool, pub namespace: String, pub role: NamespaceJoinOutputRole, - #[serde(default = "default_2081")] - pub status: String, #[serde(default = "default_2082")] - pub requested_role: Option, + pub status: String, #[serde(default = "default_2083")] + pub requested_role: Option, + #[serde(default = "default_2084")] pub pending_admins: Vec, pub joined_at: String, } @@ -46116,7 +46118,7 @@ impl NamespaceJoinInput { pub struct NamespaceLeaveOutput { pub left: bool, pub namespace: String, - #[serde(default = "default_2084")] + #[serde(default = "default_2085")] pub left_at: Option, } @@ -46193,27 +46195,27 @@ pub enum NamespaceEntryVisibility { #[non_exhaustive] pub struct NamespaceEntry { pub namespace: String, - #[serde(default = "default_2085")] + #[serde(default = "default_2086")] pub kind: String, pub owner_email: String, pub description: String, pub tags: Vec, pub active: bool, - #[serde(default = "default_2086")] - pub consolidation_enabled: bool, #[serde(default = "default_2087")] - pub daily_cost_cap_usd: f64, + pub consolidation_enabled: bool, #[serde(default = "default_2088")] - pub daily_user_cost_cap_usd: f64, + pub daily_cost_cap_usd: f64, #[serde(default = "default_2089")] - pub budget_alert_inbox: String, + pub daily_user_cost_cap_usd: f64, #[serde(default = "default_2090")] - pub conflict_threshold: Option, + pub budget_alert_inbox: String, #[serde(default = "default_2091")] - pub retention_days: Integer, + pub conflict_threshold: Option, #[serde(default = "default_2092")] - pub warm_days: Integer, + pub retention_days: Integer, #[serde(default = "default_2093")] + pub warm_days: Integer, + #[serde(default = "default_2094")] pub visibility: NamespaceEntryVisibility, pub created_at: String, pub updated_at: String, @@ -46368,27 +46370,27 @@ pub enum MineEntryVisibility { pub struct MineEntry { pub namespace: String, pub role: String, - #[serde(default = "default_2094")] - pub status: String, #[serde(default = "default_2095")] - pub pending_role: Option, + pub status: String, #[serde(default = "default_2096")] - pub pending_since: Option, + pub pending_role: Option, #[serde(default = "default_2097")] - pub pending_admins: Vec, + pub pending_since: Option, #[serde(default = "default_2098")] - pub visibility: MineEntryVisibility, + pub pending_admins: Vec, #[serde(default = "default_2099")] - pub kind: String, + pub visibility: MineEntryVisibility, #[serde(default = "default_2100")] - pub title: String, + pub kind: String, #[serde(default = "default_2101")] - pub description: String, + pub title: String, #[serde(default = "default_2102")] - pub joined_at: Option, + pub description: String, #[serde(default = "default_2103")] - pub is_new: bool, + pub joined_at: Option, #[serde(default = "default_2104")] + pub is_new: bool, + #[serde(default = "default_2105")] pub inherited: bool, } @@ -46454,7 +46456,7 @@ pub struct OntologyEntry { pub name: String, pub status: String, pub description: String, - #[serde(default = "default_2105")] + #[serde(default = "default_2106")] pub cardinality: String, pub created_by: String, pub updated_at: String, @@ -46647,7 +46649,7 @@ pub struct NamespaceRegisterOutput { pub registered: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2106")] + #[serde(default = "default_2107")] pub visibility: NamespaceRegisterOutputVisibility, } @@ -47727,7 +47729,7 @@ impl NamespaceRegisterOntologyInput { #[non_exhaustive] pub struct NamespaceRestoreOutput { pub restored: bool, - #[serde(default = "default_2107")] + #[serde(default = "default_2108")] pub publication_pending: bool, pub target_namespace: String, pub snapshot_id: String, @@ -48614,15 +48616,15 @@ pub struct NamespaceRollbackOutput { pub version_at: Integer, pub reinstate: Integer, pub remove: Integer, - #[serde(default = "default_2108")] - pub skipped_no_head: Integer, #[serde(default = "default_2109")] - pub skipped_already_gone: Integer, + pub skipped_no_head: Integer, #[serde(default = "default_2110")] - pub truncated: bool, + pub skipped_already_gone: Integer, #[serde(default = "default_2111")] - pub sample: Vec>, + pub truncated: bool, #[serde(default = "default_2112")] + pub sample: Vec>, + #[serde(default = "default_2113")] pub applied_at: Option, } @@ -48801,101 +48803,101 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub confidence: f64, pub source_trace: String, pub pinned: bool, - #[serde(default = "default_2113")] - pub expires_at: Option, #[serde(default = "default_2114")] - pub entities: Vec, + pub expires_at: Option, #[serde(default = "default_2115")] - pub version: Integer, + pub entities: Vec, #[serde(default = "default_2116")] - pub content_sha256: String, + pub version: Integer, #[serde(default = "default_2117")] - pub actor: String, + pub content_sha256: String, #[serde(default = "default_2118")] - pub source_class: String, + pub actor: String, #[serde(default = "default_2119")] - pub source_resource_id: String, + pub source_class: String, #[serde(default = "default_2120")] - pub verified_by: String, + pub source_resource_id: String, #[serde(default = "default_2121")] - pub verified_at: Option, + pub verified_by: String, #[serde(default = "default_2122")] - pub verified_sha256: String, + pub verified_at: Option, #[serde(default = "default_2123")] - pub grounding: String, + pub verified_sha256: String, #[serde(default = "default_2124")] - pub evidence: String, + pub grounding: String, #[serde(default = "default_2125")] - pub tags: Vec, + pub evidence: String, #[serde(default = "default_2126")] - pub valid_at: Option, + pub tags: Vec, #[serde(default = "default_2127")] - pub valid_to: Option, + pub valid_at: Option, #[serde(default = "default_2128")] - pub created_at: Option, + pub valid_to: Option, #[serde(default = "default_2129")] - pub updated_at: Option, + pub created_at: Option, #[serde(default = "default_2130")] - pub value_json: String, + pub updated_at: Option, #[serde(default = "default_2131")] - pub status: NamespaceSnapshotOutputSnapshotMemoryRowStatus, + pub value_json: String, #[serde(default = "default_2132")] - pub requires_review: Option, + pub status: NamespaceSnapshotOutputSnapshotMemoryRowStatus, #[serde(default = "default_2133")] - pub conflict_with: Vec, + pub requires_review: Option, #[serde(default = "default_2134")] - pub duplicate_of: String, + pub conflict_with: Vec, #[serde(default = "default_2135")] - pub evidence_count: Integer, + pub duplicate_of: String, #[serde(default = "default_2136")] - pub recall_count: Integer, + pub evidence_count: Integer, #[serde(default = "default_2137")] - pub last_recalled_at: Option, + pub recall_count: Integer, #[serde(default = "default_2138")] - pub cross_promoted_from_memory_id: String, + pub last_recalled_at: Option, #[serde(default = "default_2139")] - pub cross_promoted_from_namespace: String, + pub cross_promoted_from_memory_id: String, #[serde(default = "default_2140")] - pub superseded_by: String, + pub cross_promoted_from_namespace: String, #[serde(default = "default_2141")] - pub rejection_reason: String, + pub superseded_by: String, #[serde(default = "default_2142")] - pub temporal_anchor: Option, + pub rejection_reason: String, #[serde(default = "default_2143")] - pub temporal_confidence: f64, + pub temporal_anchor: Option, #[serde(default = "default_2144")] - pub invalid_at: Option, + pub temporal_confidence: f64, #[serde(default = "default_2145")] - pub char_limit: Option, + pub invalid_at: Option, #[serde(default = "default_2146")] - pub reinforcement_count: Integer, + pub char_limit: Option, #[serde(default = "default_2147")] - pub last_reinforced_at: Option, + pub reinforcement_count: Integer, #[serde(default = "default_2148")] - pub mentioned_at: Option, + pub last_reinforced_at: Option, #[serde(default = "default_2149")] - pub sensitivity: String, + pub mentioned_at: Option, #[serde(default = "default_2150")] - pub redacted_at: Option, + pub sensitivity: String, #[serde(default = "default_2151")] - pub redaction_reason: String, + pub redacted_at: Option, #[serde(default = "default_2152")] - pub lock_mode: String, + pub redaction_reason: String, #[serde(default = "default_2153")] - pub lock_reason: String, + pub lock_mode: String, #[serde(default = "default_2154")] - pub lock_until: Option, + pub lock_reason: String, #[serde(default = "default_2155")] - pub locked_by: String, + pub lock_until: Option, #[serde(default = "default_2156")] - pub locked_at: Option, + pub locked_by: String, #[serde(default = "default_2157")] - pub on_expire: String, + pub locked_at: Option, #[serde(default = "default_2158")] - pub expire_reason: String, + pub on_expire: String, #[serde(default = "default_2159")] - pub files: Vec, + pub expire_reason: String, #[serde(default = "default_2160")] + pub files: Vec, + #[serde(default = "default_2161")] pub concepts: Vec, } @@ -48904,11 +48906,11 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub struct NamespaceSnapshotOutputSnapshotTypeRow { pub memory_type: String, pub retention_days: Integer, - #[serde(default = "default_2161")] - pub dedup_threshold: Option, #[serde(default = "default_2162")] - pub hot_quota: Integer, + pub dedup_threshold: Option, #[serde(default = "default_2163")] + pub hot_quota: Integer, + #[serde(default = "default_2164")] pub conflict_policy: String, } @@ -49123,7 +49125,7 @@ pub struct TaxonomyCommunity { pub community_id: Integer, pub label: String, pub size: Integer, - #[serde(default = "default_2164")] + #[serde(default = "default_2165")] pub top_entities: Vec, } @@ -49134,9 +49136,9 @@ pub struct NamespaceTaxonomyOutput { pub entities: Vec, pub memory_count: Integer, pub memory_types: Vec, - #[serde(default = "default_2165")] - pub communities: Vec, #[serde(default = "default_2166")] + pub communities: Vec, + #[serde(default = "default_2167")] pub communities_computed_at: String, } @@ -49236,15 +49238,15 @@ pub enum TuneProposalTarget { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TuneEvidence { - #[serde(default = "default_2168")] - pub finding_codes: Vec, #[serde(default = "default_2169")] - pub supporting_count: Integer, + pub finding_codes: Vec, #[serde(default = "default_2170")] - pub supporting: Vec, + pub supporting_count: Integer, #[serde(default = "default_2171")] - pub counter_count: Option, + pub supporting: Vec, #[serde(default = "default_2172")] + pub counter_count: Option, + #[serde(default = "default_2173")] pub documents: Vec, } @@ -49270,10 +49272,10 @@ pub enum TuneApplyVia { #[non_exhaustive] pub struct TuneApply { pub op: String, - #[serde(default = "default_2176")] + #[serde(default = "default_2177")] pub via: TuneApplyVia, pub args: std::collections::HashMap, - #[serde(default = "default_2177")] + #[serde(default = "default_2178")] pub args_complete: bool, pub required_role: String, pub guard: String, @@ -49292,7 +49294,7 @@ pub struct ChunkStats { pub sections: Integer, pub sections_cut: Integer, pub max_input_tokens: Integer, - #[serde(default = "default_2179")] + #[serde(default = "default_2180")] pub over_input_limit: Option, } @@ -49312,25 +49314,25 @@ pub struct TuneProposal { pub title: String, pub rationale: String, pub current: String, - #[serde(default = "default_2167")] + #[serde(default = "default_2168")] pub current_revision: Option, pub proposed: String, pub evidence: TuneEvidence, - #[serde(default = "default_2173")] - pub affected_agents: Vec, #[serde(default = "default_2174")] - pub affected_agents_total: Option, + pub affected_agents: Vec, #[serde(default = "default_2175")] + pub affected_agents_total: Option, + #[serde(default = "default_2176")] pub effect: TuneProposalEffect, pub historical: String, pub apply: TuneApply, - #[serde(default = "default_2178")] + #[serde(default = "default_2179")] pub apply_also: Vec, - #[serde(default = "default_2180")] - pub preview: Option, #[serde(default = "default_2181")] - pub limits: String, + pub preview: Option, #[serde(default = "default_2182")] + pub limits: String, + #[serde(default = "default_2183")] pub refs: Vec, } @@ -49338,13 +49340,13 @@ pub struct TuneProposal { #[non_exhaustive] pub struct ChunkingSample { pub cap: Integer, - #[serde(default = "default_2188")] + #[serde(default = "default_2189")] pub population: Option, pub documents: Integer, pub unread: Integer, pub load_cap: Integer, pub embedder_model: String, - #[serde(default = "default_2189")] + #[serde(default = "default_2190")] pub input_token_limit: Option, pub current: ChunkStats, } @@ -49355,21 +49357,21 @@ pub struct NamespaceTuneOutput { pub org: String, pub namespace: String, pub computed_at: String, - #[serde(default = "default_2183")] - pub proposals: Vec, #[serde(default = "default_2184")] - pub guide_revision: Option, + pub proposals: Vec, #[serde(default = "default_2185")] - pub categories_registered: Option, + pub guide_revision: Option, #[serde(default = "default_2186")] - pub extraction_policy: Option, + pub categories_registered: Option, #[serde(default = "default_2187")] + pub extraction_policy: Option, + #[serde(default = "default_2188")] pub extraction_policy_unavailable: String, - #[serde(default = "default_2190")] - pub chunking: Option, #[serde(default = "default_2191")] - pub skipped: Vec, + pub chunking: Option, #[serde(default = "default_2192")] + pub skipped: Vec, + #[serde(default = "default_2193")] pub model_used: bool, } @@ -49490,25 +49492,25 @@ pub struct NamespaceValidateFinding { pub kind: NamespaceValidateFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_2193")] - pub window_seconds: Option, #[serde(default = "default_2194")] + pub window_seconds: Option, + #[serde(default = "default_2195")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_2195")] - pub evidence: Vec, #[serde(default = "default_2196")] - pub exceptions: String, + pub evidence: Vec, #[serde(default = "default_2197")] + pub exceptions: String, + #[serde(default = "default_2198")] pub uncertainty: String, pub check: String, pub severity: NamespaceValidateFindingSeverity, pub count: Integer, - #[serde(default = "default_2198")] + #[serde(default = "default_2199")] pub samples: Vec>, pub detail: String, - #[serde(default = "default_2199")] + #[serde(default = "default_2200")] pub totals: std::collections::HashMap, } @@ -49522,9 +49524,9 @@ pub struct NamespaceValidateOutput { pub warnings: Integer, pub infos: Integer, pub findings: Vec, - #[serde(default = "default_2200")] - pub skipped: Vec, #[serde(default = "default_2201")] + pub skipped: Vec, + #[serde(default = "default_2202")] pub keys_scoped: Integer, pub coverage: ReportCoverage, pub checked_at: String, @@ -49644,9 +49646,9 @@ impl NamespaceValidateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ObserveCrystallizeOutput { - #[serde(default = "default_2202")] - pub enqueued: Integer, #[serde(default = "default_2203")] + pub enqueued: Integer, + #[serde(default = "default_2204")] pub session_id: String, } @@ -49743,23 +49745,23 @@ impl ObserveCrystallizeInput { #[non_exhaustive] pub struct ObserveRecordOutput { pub memory_key: String, - #[serde(default = "default_2204")] - pub memory_id: String, #[serde(default = "default_2205")] - pub kind: String, + pub memory_id: String, #[serde(default = "default_2206")] - pub tags: Vec, + pub kind: String, #[serde(default = "default_2207")] - pub file_paths: Vec, + pub tags: Vec, #[serde(default = "default_2208")] - pub content_sha256: String, + pub file_paths: Vec, #[serde(default = "default_2209")] - pub tool_name: String, + pub content_sha256: String, #[serde(default = "default_2210")] - pub has_error: bool, + pub tool_name: String, #[serde(default = "default_2211")] - pub narrative_chars: Integer, + pub has_error: bool, #[serde(default = "default_2212")] + pub narrative_chars: Integer, + #[serde(default = "default_2213")] pub skipped_reason: String, } @@ -49958,26 +49960,26 @@ pub struct ProjectionFailureRow { pub failure_id: String, pub org: String, pub namespace: String, - #[serde(default = "default_2213")] + #[serde(default = "default_2214")] pub agent: String, pub projection: String, - #[serde(default = "default_2214")] - pub source_operation: String, #[serde(default = "default_2215")] - pub source_resource_id: String, + pub source_operation: String, #[serde(default = "default_2216")] - pub memory_keys: Vec, + pub source_resource_id: String, #[serde(default = "default_2217")] - pub error_type: String, + pub memory_keys: Vec, #[serde(default = "default_2218")] - pub error_message: String, + pub error_type: String, #[serde(default = "default_2219")] - pub payload: std::collections::HashMap, + pub error_message: String, #[serde(default = "default_2220")] - pub status: String, + pub payload: std::collections::HashMap, #[serde(default = "default_2221")] - pub created_at: Option, + pub status: String, #[serde(default = "default_2222")] + pub created_at: Option, + #[serde(default = "default_2223")] pub resolved_at: Option, } @@ -50131,22 +50133,22 @@ pub struct ProjectionFailureRetryRow { pub projection: String, pub retried: bool, pub resolved: bool, - #[serde(default = "default_2223")] - pub abandoned: bool, #[serde(default = "default_2224")] - pub reason: String, + pub abandoned: bool, #[serde(default = "default_2225")] + pub reason: String, + #[serde(default = "default_2226")] pub error: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProjectionFailureRetryOutput { - #[serde(default = "default_2226")] + #[serde(default = "default_2227")] pub results: Vec, pub retried: Integer, pub resolved: Integer, - #[serde(default = "default_2227")] + #[serde(default = "default_2228")] pub abandoned: Integer, } @@ -50228,15 +50230,15 @@ impl ProjectionFailureRetryInput { pub struct OrgModelCallsOutput { pub org: String, pub enabled: bool, - #[serde(default = "default_2228")] - pub reason: String, #[serde(default = "default_2229")] - pub updated_by: String, + pub reason: String, #[serde(default = "default_2230")] - pub updated_at: Option, + pub updated_by: String, #[serde(default = "default_2231")] - pub locked: bool, + pub updated_at: Option, #[serde(default = "default_2232")] + pub locked: bool, + #[serde(default = "default_2233")] pub locked_by: String, } @@ -50575,7 +50577,7 @@ impl PolicyDecisionsInput { #[non_exhaustive] pub struct PolicyDeleteOutput { pub removed: bool, - #[serde(default = "default_2233")] + #[serde(default = "default_2234")] pub widening: bool, } @@ -50641,12 +50643,12 @@ pub struct PolicyRuleOut { pub condition: std::collections::HashMap, pub description: String, pub enabled: bool, - #[serde(default = "default_2234")] + #[serde(default = "default_2235")] pub mode: String, pub created_by: String, - #[serde(default = "default_2235")] - pub created_at: Option, #[serde(default = "default_2236")] + pub created_at: Option, + #[serde(default = "default_2237")] pub updated_at: Option, } @@ -50718,9 +50720,9 @@ impl PolicyListInput { pub struct PolicySetOutput { pub rule: PolicyRuleOut, pub leaf_count: Integer, - #[serde(default = "default_2237")] - pub widening: bool, #[serde(default = "default_2238")] + pub widening: bool, + #[serde(default = "default_2239")] pub change: Vec, } @@ -50990,37 +50992,37 @@ pub struct ProcedureEvolveOutput { pub revision: Integer, pub changed: bool, pub template: bool, - #[serde(default = "default_2239")] - pub folded_runs: Integer, #[serde(default = "default_2240")] - pub gate: ProcedureEvolveOutputGate, + pub folded_runs: Integer, #[serde(default = "default_2241")] - pub gate_mode: String, + pub gate: ProcedureEvolveOutputGate, #[serde(default = "default_2242")] - pub gate_llr: f64, + pub gate_mode: String, #[serde(default = "default_2243")] - pub gate_before: std::collections::HashMap, + pub gate_llr: f64, #[serde(default = "default_2244")] - pub gate_after: std::collections::HashMap, + pub gate_before: std::collections::HashMap, #[serde(default = "default_2245")] - pub gate_cost_before: std::collections::HashMap, + pub gate_after: std::collections::HashMap, #[serde(default = "default_2246")] - pub gate_cost_after: std::collections::HashMap, + pub gate_cost_before: std::collections::HashMap, #[serde(default = "default_2247")] - pub gate_reason: String, + pub gate_cost_after: std::collections::HashMap, #[serde(default = "default_2248")] - pub dead_end_steps: Vec, + pub gate_reason: String, #[serde(default = "default_2249")] - pub fail_prone_steps: Vec, + pub dead_end_steps: Vec, #[serde(default = "default_2250")] - pub fail_prone_transitions: Vec, + pub fail_prone_steps: Vec, #[serde(default = "default_2251")] - pub run_stats: std::collections::HashMap, + pub fail_prone_transitions: Vec, #[serde(default = "default_2252")] - pub strikes: Integer, + pub run_stats: std::collections::HashMap, #[serde(default = "default_2253")] - pub quarantined: bool, + pub strikes: Integer, #[serde(default = "default_2254")] + pub quarantined: bool, + #[serde(default = "default_2255")] pub retention: std::collections::HashMap, } @@ -51243,9 +51245,9 @@ pub struct ProcedureForkOutput { pub memory_key: String, pub version: Integer, pub name: String, - #[serde(default = "default_2255")] - pub steps: Vec, #[serde(default = "default_2256")] + pub steps: Vec, + #[serde(default = "default_2257")] pub forked_from: std::collections::HashMap, } @@ -51505,32 +51507,32 @@ pub enum ProcedureLocateOutputStatus { #[non_exhaustive] pub struct ProcedureLocateOutput { pub memory_key: String, - #[serde(default = "default_2257")] - pub name: String, #[serde(default = "default_2258")] + pub name: String, + #[serde(default = "default_2259")] pub status: ProcedureLocateOutputStatus, pub matched: bool, - #[serde(default = "default_2259")] - pub active: Option>, #[serde(default = "default_2260")] - pub hops: Vec>>, + pub active: Option>, #[serde(default = "default_2261")] - pub entry_nodes: Vec, + pub hops: Vec>>, #[serde(default = "default_2262")] - pub dominant_next: Vec, + pub entry_nodes: Vec, #[serde(default = "default_2263")] - pub revisits: std::collections::HashMap, + pub dominant_next: Vec, #[serde(default = "default_2264")] - pub looping: bool, + pub revisits: std::collections::HashMap, #[serde(default = "default_2265")] - pub exits: Vec, + pub looping: bool, #[serde(default = "default_2266")] - pub failure_notes: Vec>, + pub exits: Vec, #[serde(default = "default_2267")] - pub rendered: String, + pub failure_notes: Vec>, #[serde(default = "default_2268")] - pub run_stats: std::collections::HashMap, + pub rendered: String, #[serde(default = "default_2269")] + pub run_stats: std::collections::HashMap, + #[serde(default = "default_2270")] pub for_agent: std::collections::HashMap, } @@ -51685,43 +51687,43 @@ pub struct ProcedureMatch { pub name: String, pub situation: String, pub steps: Vec, - #[serde(default = "default_2270")] - pub tags: Vec, #[serde(default = "default_2271")] + pub tags: Vec, + #[serde(default = "default_2272")] pub metadata: std::collections::HashMap, pub similarity: f64, pub memory_key: String, pub namespace: String, - #[serde(default = "default_2272")] - pub graph: Option>, #[serde(default = "default_2273")] - pub template: bool, + pub graph: Option>, #[serde(default = "default_2274")] - pub run_stats: std::collections::HashMap, + pub template: bool, #[serde(default = "default_2275")] - pub status: ProcedureMatchStatus, + pub run_stats: std::collections::HashMap, #[serde(default = "default_2276")] - pub quarantined: Option>, + pub status: ProcedureMatchStatus, #[serde(default = "default_2277")] - pub fail_prone_steps: Vec, + pub quarantined: Option>, #[serde(default = "default_2278")] - pub revision: Integer, + pub fail_prone_steps: Vec, #[serde(default = "default_2279")] - pub rejected_revisions: Vec>, + pub revision: Integer, #[serde(default = "default_2280")] - pub tool_overlap: f64, + pub rejected_revisions: Vec>, #[serde(default = "default_2281")] - pub score: f64, + pub tool_overlap: f64, #[serde(default = "default_2282")] - pub utility: f64, + pub score: f64, #[serde(default = "default_2283")] - pub goal_similarity: Option, + pub utility: f64, #[serde(default = "default_2284")] - pub for_agent: std::collections::HashMap, + pub goal_similarity: Option, #[serde(default = "default_2285")] + pub for_agent: std::collections::HashMap, + #[serde(default = "default_2286")] pub run_stats_by_agent: std::collections::HashMap>, - #[serde(default = "default_2286")] + #[serde(default = "default_2287")] pub actor: String, } @@ -51729,11 +51731,11 @@ pub struct ProcedureMatch { #[non_exhaustive] pub struct ProcedureMatchOutput { pub matches: Vec, - #[serde(default = "default_2287")] - pub matched: Integer, #[serde(default = "default_2288")] - pub procedure_key: String, + pub matched: Integer, #[serde(default = "default_2289")] + pub procedure_key: String, + #[serde(default = "default_2290")] pub score: f64, } @@ -52125,9 +52127,9 @@ pub struct ProcedureReviseOutput { pub revision: Integer, pub prior_revision: Integer, pub digest: String, - #[serde(default = "default_2290")] - pub steps: Vec, #[serde(default = "default_2291")] + pub steps: Vec, + #[serde(default = "default_2292")] pub outcome: ProcedureReviseOutputOutcome, } @@ -52239,14 +52241,14 @@ pub struct ProfileActivityEntry { pub agent: String, pub last_activated_at: String, pub event_count: Integer, - #[serde(default = "default_2292")] + #[serde(default = "default_2293")] pub operations: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProfileActivityOutput { - #[serde(default = "default_2293")] + #[serde(default = "default_2294")] pub entries: Vec, } @@ -52354,17 +52356,17 @@ impl ProfileActivityInput { #[non_exhaustive] pub struct ProfileMutationOutput { pub version: Integer, - #[serde(default = "default_2294")] - pub memory_id: String, #[serde(default = "default_2295")] - pub content_sha256: String, + pub memory_id: String, #[serde(default = "default_2296")] - pub namespace: String, + pub content_sha256: String, #[serde(default = "default_2297")] - pub label: String, + pub namespace: String, #[serde(default = "default_2298")] - pub char_limit: Option, + pub label: String, #[serde(default = "default_2299")] + pub char_limit: Option, + #[serde(default = "default_2300")] pub value_length: Integer, } @@ -52473,7 +52475,7 @@ pub struct ProfileRenderOutput { pub rendered: String, pub section_count: Integer, pub total_chars: Integer, - #[serde(default = "default_2300")] + #[serde(default = "default_2301")] pub labels: Vec, } @@ -52858,17 +52860,17 @@ pub enum ProfileStructuredOutputStatus { #[non_exhaustive] pub struct ProfileStructuredOutput { pub status: ProfileStructuredOutputStatus, - #[serde(default = "default_2301")] - pub profile: std::collections::HashMap, #[serde(default = "default_2302")] - pub built_at: Option, + pub profile: std::collections::HashMap, #[serde(default = "default_2303")] - pub memory_id: String, + pub built_at: Option, #[serde(default = "default_2304")] - pub version: Integer, + pub memory_id: String, #[serde(default = "default_2305")] - pub version_text: String, + pub version: Integer, #[serde(default = "default_2306")] + pub version_text: String, + #[serde(default = "default_2307")] pub schema_sha256: String, } @@ -52985,13 +52987,13 @@ impl ProfileStructuredInput { #[non_exhaustive] pub struct ProfileSchemaOutput { pub found: bool, - #[serde(default = "default_2307")] - pub json_schema: std::collections::HashMap, #[serde(default = "default_2308")] - pub schema_sha256: String, + pub json_schema: std::collections::HashMap, #[serde(default = "default_2309")] - pub updated_by: String, + pub schema_sha256: String, #[serde(default = "default_2310")] + pub updated_by: String, + #[serde(default = "default_2311")] pub updated_at: Option, } @@ -53144,10 +53146,10 @@ pub enum RunBeginOutputStatus { #[non_exhaustive] pub struct RunBeginOutput { pub run_id: String, - #[serde(default = "default_2311")] + #[serde(default = "default_2312")] pub status: RunBeginOutputStatus, pub started_at: String, - #[serde(default = "default_2312")] + #[serde(default = "default_2313")] pub next: String, } @@ -53355,31 +53357,31 @@ pub struct RunCompleteOutput { pub run_id: String, pub status: RunCompleteOutputStatus, pub duration_ms: Integer, - #[serde(default = "default_2313")] - pub used_applied: Integer, #[serde(default = "default_2314")] - pub undelivered: Integer, + pub used_applied: Integer, #[serde(default = "default_2315")] - pub evidence_applied: Integer, + pub undelivered: Integer, #[serde(default = "default_2316")] - pub harm_applied: Integer, + pub evidence_applied: Integer, #[serde(default = "default_2317")] - pub memories_written: Vec, + pub harm_applied: Integer, #[serde(default = "default_2318")] - pub recalled: Integer, + pub memories_written: Vec, #[serde(default = "default_2319")] - pub observations: Integer, + pub recalled: Integer, #[serde(default = "default_2320")] - pub procedure_runs_recorded: Integer, + pub observations: Integer, #[serde(default = "default_2321")] - pub reflection_key: String, + pub procedure_runs_recorded: Integer, #[serde(default = "default_2322")] - pub retain: String, + pub reflection_key: String, #[serde(default = "default_2323")] - pub retained: Integer, + pub retain: String, #[serde(default = "default_2324")] - pub demoted: Integer, + pub retained: Integer, #[serde(default = "default_2325")] + pub demoted: Integer, + #[serde(default = "default_2326")] pub expiring: Integer, } @@ -53920,25 +53922,25 @@ pub enum RunGetOutputOverBudgetItem { #[non_exhaustive] pub struct RunGetOutput { pub found: bool, - #[serde(default = "default_2326")] - pub run: Option, #[serde(default = "default_2327")] - pub recalled: Integer, + pub run: Option, #[serde(default = "default_2328")] - pub recalled_keys: Vec, + pub recalled: Integer, #[serde(default = "default_2329")] - pub memories_written: Vec, + pub recalled_keys: Vec, #[serde(default = "default_2330")] - pub observations: Integer, + pub memories_written: Vec, #[serde(default = "default_2331")] - pub turns: Integer, + pub observations: Integer, #[serde(default = "default_2332")] - pub unpriced_turns: Integer, + pub turns: Integer, #[serde(default = "default_2333")] - pub cost_usd: f64, + pub unpriced_turns: Integer, #[serde(default = "default_2334")] - pub elapsed_seconds: Integer, + pub cost_usd: f64, #[serde(default = "default_2335")] + pub elapsed_seconds: Integer, + #[serde(default = "default_2336")] pub over_budget: Vec, } @@ -54005,17 +54007,17 @@ pub struct RunGradeProposal { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct RunGradeOutput { - #[serde(default = "default_2336")] - pub graded: Integer, #[serde(default = "default_2337")] - pub run_ids: Vec, + pub graded: Integer, #[serde(default = "default_2338")] - pub skipped_active: Integer, + pub run_ids: Vec, #[serde(default = "default_2339")] - pub unchanged: Integer, + pub skipped_active: Integer, #[serde(default = "default_2340")] - pub memories_counted: Integer, + pub unchanged: Integer, #[serde(default = "default_2341")] + pub memories_counted: Integer, + #[serde(default = "default_2342")] pub proposals_decided: Vec, } @@ -54130,7 +54132,7 @@ impl RunGradeInput { #[non_exhaustive] pub struct RunListOutput { pub runs: Vec, - #[serde(default = "default_2342")] + #[serde(default = "default_2343")] pub total: Option, } @@ -54354,19 +54356,19 @@ impl RunListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct RunRetractCreditOutput { - #[serde(default = "default_2343")] - pub run_id: String, #[serde(default = "default_2344")] - pub used_retracted: Integer, + pub run_id: String, #[serde(default = "default_2345")] - pub evidence_retracted: Integer, + pub used_retracted: Integer, #[serde(default = "default_2346")] - pub harm_retracted: Integer, + pub evidence_retracted: Integer, #[serde(default = "default_2347")] - pub events_written: Integer, + pub harm_retracted: Integer, #[serde(default = "default_2348")] - pub more: bool, + pub events_written: Integer, #[serde(default = "default_2349")] + pub more: bool, + #[serde(default = "default_2350")] pub dry_run: bool, } @@ -54523,39 +54525,39 @@ pub struct LiveSearchHit { pub title: String, pub url: String, pub provider: LiveSearchHitProvider, - #[serde(default = "default_2352")] - pub content: String, #[serde(default = "default_2353")] + pub content: String, + #[serde(default = "default_2354")] pub live: LiveSearchHitLive, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct LiveSearchResults { - #[serde(default = "default_2351")] + #[serde(default = "default_2352")] pub live: LiveSearchResultsLive, - #[serde(default = "default_2354")] + #[serde(default = "default_2355")] pub results: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SearchOutput { - #[serde(default = "default_2350")] + #[serde(default = "default_2351")] pub tracker: Option>, - #[serde(default = "default_2355")] - pub live: Option, #[serde(default = "default_2356")] - pub memory: std::collections::HashMap, + pub live: Option, #[serde(default = "default_2357")] - pub knowledge: std::collections::HashMap, + pub memory: std::collections::HashMap, #[serde(default = "default_2358")] - pub profile: std::collections::HashMap, + pub knowledge: std::collections::HashMap, #[serde(default = "default_2359")] - pub conversations: std::collections::HashMap, + pub profile: std::collections::HashMap, #[serde(default = "default_2360")] - pub withheld: Option>, + pub conversations: std::collections::HashMap, #[serde(default = "default_2361")] + pub withheld: Option>, + #[serde(default = "default_2362")] pub namespaces_skipped: Vec, } @@ -54759,7 +54761,7 @@ impl SearchInput { pub struct SessionBriefDeleteOutput { pub deleted: bool, pub brief_key: String, - #[serde(default = "default_2362")] + #[serde(default = "default_2363")] pub revision: Integer, } @@ -54852,67 +54854,67 @@ impl SessionBriefDeleteInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDecision { - #[serde(default = "default_2371")] - pub what: String, #[serde(default = "default_2372")] + pub what: String, + #[serde(default = "default_2373")] pub why: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDeadEnd { - #[serde(default = "default_2374")] - pub tried: String, #[serde(default = "default_2375")] + pub tried: String, + #[serde(default = "default_2376")] pub why_not: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDone { - #[serde(default = "default_2377")] + #[serde(default = "default_2378")] pub what: String, - #[serde(rename = "ref", default = "default_2378")] + #[serde(rename = "ref", default = "default_2379")] pub r#ref: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefFile { - #[serde(default = "default_2382")] - pub path: String, #[serde(default = "default_2383")] + pub path: String, + #[serde(default = "default_2384")] pub role: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefSections { - #[serde(default = "default_2368")] - pub goal: String, #[serde(default = "default_2369")] - pub status: String, + pub goal: String, #[serde(default = "default_2370")] + pub status: String, + #[serde(default = "default_2371")] pub verification: String, - #[serde(default = "default_2373")] + #[serde(default = "default_2374")] pub decisions: Vec, - #[serde(default = "default_2376")] + #[serde(default = "default_2377")] pub dead_ends: Vec, - #[serde(default = "default_2379")] - pub done: Vec, #[serde(default = "default_2380")] - pub open_questions: Vec, + pub done: Vec, #[serde(default = "default_2381")] + pub open_questions: Vec, + #[serde(default = "default_2382")] pub next_steps: Vec, - #[serde(default = "default_2384")] - pub files: Vec, #[serde(default = "default_2385")] - pub constraints: Vec, + pub files: Vec, #[serde(default = "default_2386")] - pub pointers: Vec, + pub constraints: Vec, #[serde(default = "default_2387")] - pub client_summary: String, + pub pointers: Vec, #[serde(default = "default_2388")] + pub client_summary: String, + #[serde(default = "default_2389")] pub client_summary_at: String, } @@ -54920,45 +54922,45 @@ pub struct BriefSections { #[non_exhaustive] pub struct SessionBriefGetOutput { pub found: bool, - #[serde(default = "default_2363")] - pub brief_key: String, #[serde(default = "default_2364")] - pub revision: Integer, + pub brief_key: String, #[serde(default = "default_2365")] - pub snapshot_id: String, + pub revision: Integer, #[serde(default = "default_2366")] - pub snapshot_key: String, + pub snapshot_id: String, #[serde(default = "default_2367")] + pub snapshot_key: String, + #[serde(default = "default_2368")] pub rendered: String, - #[serde(default = "default_2389")] - pub sections: Option, #[serde(default = "default_2390")] - pub project: String, + pub sections: Option, #[serde(default = "default_2391")] - pub branch: String, + pub project: String, #[serde(default = "default_2392")] - pub head_sha: String, + pub branch: String, #[serde(default = "default_2393")] - pub author: String, + pub head_sha: String, #[serde(default = "default_2394")] - pub trigger: String, + pub author: String, #[serde(default = "default_2395")] - pub actor: String, + pub trigger: String, #[serde(default = "default_2396")] - pub source_sessions: Vec, + pub actor: String, #[serde(default = "default_2397")] - pub updated_at: Option, + pub source_sessions: Vec, #[serde(default = "default_2398")] - pub age_seconds: Integer, + pub updated_at: Option, #[serde(default = "default_2399")] - pub revisions: Integer, + pub age_seconds: Integer, #[serde(default = "default_2400")] - pub events_total: Integer, + pub revisions: Integer, #[serde(default = "default_2401")] - pub source_chars: Integer, + pub events_total: Integer, #[serde(default = "default_2402")] - pub brief_chars: Integer, + pub source_chars: Integer, #[serde(default = "default_2403")] + pub brief_chars: Integer, + #[serde(default = "default_2404")] pub deleted: bool, } @@ -55133,34 +55135,34 @@ impl SessionBriefGetInput { pub struct SessionBriefSummary { pub brief_key: String, pub revision: Integer, - #[serde(default = "default_2404")] - pub project: String, #[serde(default = "default_2405")] - pub branch: String, + pub project: String, #[serde(default = "default_2406")] - pub agent: String, + pub branch: String, #[serde(default = "default_2407")] - pub goal: String, + pub agent: String, #[serde(default = "default_2408")] - pub status: String, + pub goal: String, #[serde(default = "default_2409")] - pub author: String, + pub status: String, #[serde(default = "default_2410")] - pub actor: String, + pub author: String, #[serde(default = "default_2411")] - pub updated_at: Option, + pub actor: String, #[serde(default = "default_2412")] - pub age_seconds: Integer, + pub updated_at: Option, #[serde(default = "default_2413")] + pub age_seconds: Integer, + #[serde(default = "default_2414")] pub brief_chars: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefListOutput { - #[serde(default = "default_2414")] - pub briefs: Vec, #[serde(default = "default_2415")] + pub briefs: Vec, + #[serde(default = "default_2416")] pub rendered: String, } @@ -55300,25 +55302,25 @@ impl SessionBriefListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefStats { - #[serde(default = "default_2419")] - pub events_in: Integer, #[serde(default = "default_2420")] - pub windows: Integer, + pub events_in: Integer, #[serde(default = "default_2421")] - pub events_total: Integer, + pub windows: Integer, #[serde(default = "default_2422")] - pub source_chars: Integer, + pub events_total: Integer, #[serde(default = "default_2423")] - pub brief_chars: Integer, + pub source_chars: Integer, #[serde(default = "default_2424")] - pub compression_ratio: f64, + pub brief_chars: Integer, #[serde(default = "default_2425")] - pub dropped_ungrounded: Integer, + pub compression_ratio: f64, #[serde(default = "default_2426")] - pub tokens_in: Integer, + pub dropped_ungrounded: Integer, #[serde(default = "default_2427")] - pub tokens_out: Integer, + pub tokens_in: Integer, #[serde(default = "default_2428")] + pub tokens_out: Integer, + #[serde(default = "default_2429")] pub llm_model: String, } @@ -55328,13 +55330,13 @@ pub struct SessionBriefSaveOutput { pub brief_key: String, pub revision: Integer, pub changed: bool, - #[serde(default = "default_2416")] - pub author: String, #[serde(default = "default_2417")] - pub reason: String, + pub author: String, #[serde(default = "default_2418")] + pub reason: String, + #[serde(default = "default_2419")] pub rendered: String, - #[serde(default = "default_2429")] + #[serde(default = "default_2430")] pub stats: SessionBriefStats, } @@ -56079,39 +56081,39 @@ pub struct TaskPayload { pub priority: Integer, pub disclosure: TaskPayloadDisclosure, pub status: TaskPayloadStatus, - #[serde(default = "default_2430")] - pub reason: String, #[serde(default = "default_2431")] - pub blocked_on: String, + pub reason: String, #[serde(default = "default_2432")] - pub not_before: Option, + pub blocked_on: String, #[serde(default = "default_2433")] - pub resume_at: Option, + pub not_before: Option, #[serde(default = "default_2434")] - pub deadline: Option, + pub resume_at: Option, #[serde(default = "default_2435")] + pub deadline: Option, + #[serde(default = "default_2436")] pub defer_count: Integer, pub title: String, - #[serde(default = "default_2436")] + #[serde(default = "default_2437")] pub brief: std::collections::HashMap, pub from_agent: String, - #[serde(default = "default_2437")] - pub from_subject: String, #[serde(default = "default_2438")] - pub origin: String, + pub from_subject: String, #[serde(default = "default_2439")] - pub parent_task_id: Option, + pub origin: String, #[serde(default = "default_2440")] - pub owner: String, + pub parent_task_id: Option, #[serde(default = "default_2441")] - pub attempt: Integer, + pub owner: String, #[serde(default = "default_2442")] - pub fence: Integer, + pub attempt: Integer, #[serde(default = "default_2443")] - pub lease_until: Option, + pub fence: Integer, #[serde(default = "default_2444")] - pub outcome: std::collections::HashMap, + pub lease_until: Option, #[serde(default = "default_2445")] + pub outcome: std::collections::HashMap, + #[serde(default = "default_2446")] pub last_actor: String, pub created_at: String, pub updated_at: String, @@ -56122,7 +56124,7 @@ pub struct TaskPayload { #[non_exhaustive] pub struct TaskOutput { pub task: TaskPayload, - #[serde(default = "default_2446")] + #[serde(default = "default_2447")] pub seq: Integer, } @@ -56523,10 +56525,10 @@ impl TaskCompleteInput { pub struct InboxCount { pub inbox: String, pub status: String, - #[serde(default = "default_2447")] + #[serde(default = "default_2448")] pub blocked_on: String, pub n: Integer, - #[serde(default = "default_2448")] + #[serde(default = "default_2449")] pub oldest: Option, } @@ -56613,7 +56615,7 @@ pub struct TaskCreateOutput { pub task: TaskPayload, pub created: bool, pub seq: Integer, - #[serde(default = "default_2449")] + #[serde(default = "default_2450")] pub next: String, } @@ -56952,7 +56954,7 @@ impl TaskFailInput { #[non_exhaustive] pub struct TaskGetOutput { pub found: bool, - #[serde(default = "default_2450")] + #[serde(default = "default_2451")] pub task: Option, } @@ -57086,23 +57088,23 @@ pub struct TaskEventPayload { pub task_id: String, pub inbox: String, pub event: String, - #[serde(default = "default_2451")] - pub from_status: String, #[serde(default = "default_2452")] - pub to_status: String, + pub from_status: String, #[serde(default = "default_2453")] - pub actor: String, + pub to_status: String, #[serde(default = "default_2454")] - pub agent: String, + pub actor: String, #[serde(default = "default_2455")] - pub fence: Integer, + pub agent: String, #[serde(default = "default_2456")] - pub version: Integer, + pub fence: Integer, #[serde(default = "default_2457")] - pub reason: String, + pub version: Integer, #[serde(default = "default_2458")] - pub patch: std::collections::HashMap, + pub reason: String, #[serde(default = "default_2459")] + pub patch: std::collections::HashMap, + #[serde(default = "default_2460")] pub note: String, pub ts: String, } @@ -57442,7 +57444,7 @@ pub struct TaskPullOutput { pub tasks: Vec, pub waited_ms: Integer, pub backend: String, - #[serde(default = "default_2460")] + #[serde(default = "default_2461")] pub note: String, } @@ -57838,7 +57840,7 @@ impl TaskUnblockInput { pub struct TaskUpdateOutput { pub task: TaskPayload, pub seq: Integer, - #[serde(default = "default_2461")] + #[serde(default = "default_2462")] pub conflict: bool, } @@ -58201,19 +58203,19 @@ impl TaskReasonInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerAnswerOutput { - #[serde(default = "default_2462")] - pub intent: String, #[serde(default = "default_2463")] - pub anchors: std::collections::HashMap, + pub intent: String, #[serde(default = "default_2464")] - pub sections: Vec>, + pub anchors: std::collections::HashMap, #[serde(default = "default_2465")] - pub searched: Vec, + pub sections: Vec>, #[serde(default = "default_2466")] - pub lines: Vec, + pub searched: Vec, #[serde(default = "default_2467")] - pub restricted: bool, + pub lines: Vec, #[serde(default = "default_2468")] + pub restricted: bool, + #[serde(default = "default_2469")] pub verdict: String, } @@ -58309,17 +58311,17 @@ impl TrackerAnswerInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerBindingOutput { - #[serde(default = "default_2469")] - pub tracker_namespace: String, #[serde(default = "default_2470")] - pub tracker_namespaces: Vec, + pub tracker_namespace: String, #[serde(default = "default_2471")] - pub restricted: bool, + pub tracker_namespaces: Vec, #[serde(default = "default_2472")] - pub kind: String, + pub restricted: bool, #[serde(default = "default_2473")] - pub authorized: bool, + pub kind: String, #[serde(default = "default_2474")] + pub authorized: bool, + #[serde(default = "default_2475")] pub templates: Vec, } @@ -58372,13 +58374,13 @@ impl TrackerBindingInput { #[non_exhaustive] pub struct TrackerComponentOutput { pub component: String, - #[serde(default = "default_2475")] - pub risk: std::collections::HashMap, #[serde(default = "default_2476")] - pub open_issues: Vec>, + pub risk: std::collections::HashMap, #[serde(default = "default_2477")] - pub known: bool, + pub open_issues: Vec>, #[serde(default = "default_2478")] + pub known: bool, + #[serde(default = "default_2479")] pub tracker_unavailable: bool, } @@ -58439,9 +58441,9 @@ impl TrackerComponentInput { #[non_exhaustive] pub struct TrackerContractOutput { pub database: String, - #[serde(default = "default_2479")] - pub tables: Vec>, #[serde(default = "default_2480")] + pub tables: Vec>, + #[serde(default = "default_2481")] pub templates: std::collections::HashMap, } @@ -58494,66 +58496,66 @@ impl TrackerContractInput { #[non_exhaustive] pub struct TrackerLegStatus { pub name: String, - #[serde(default = "default_2491")] - pub status: String, #[serde(default = "default_2492")] - pub reason: String, + pub status: String, #[serde(default = "default_2493")] - pub message: String, + pub reason: String, #[serde(default = "default_2494")] - pub retried: bool, + pub message: String, #[serde(default = "default_2495")] - pub ms: Integer, + pub retried: bool, #[serde(default = "default_2496")] - pub cause: String, + pub ms: Integer, #[serde(default = "default_2497")] + pub cause: String, + #[serde(default = "default_2498")] pub namespace: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerDuplicateCheckOutput { - #[serde(default = "default_2481")] - pub verdict: String, #[serde(default = "default_2482")] - pub items: Vec>, + pub verdict: String, #[serde(default = "default_2483")] - pub undecided: bool, + pub items: Vec>, #[serde(default = "default_2484")] - pub epistemic: String, + pub undecided: bool, #[serde(default = "default_2485")] - pub thresholds: std::collections::HashMap, + pub epistemic: String, #[serde(default = "default_2486")] - pub judge: std::collections::HashMap, + pub thresholds: std::collections::HashMap, #[serde(default = "default_2487")] - pub fit_at: String, + pub judge: std::collections::HashMap, #[serde(default = "default_2488")] - pub fit: std::collections::HashMap, + pub fit_at: String, #[serde(default = "default_2489")] - pub query: std::collections::HashMap, + pub fit: std::collections::HashMap, #[serde(default = "default_2490")] + pub query: std::collections::HashMap, + #[serde(default = "default_2491")] pub legs: std::collections::HashMap, - #[serde(default = "default_2498")] - pub leg_status: Vec, #[serde(default = "default_2499")] - pub tracker_unavailable: bool, + pub leg_status: Vec, #[serde(default = "default_2500")] - pub namespaces: Vec, + pub tracker_unavailable: bool, #[serde(default = "default_2501")] - pub by_namespace: std::collections::HashMap>, + pub namespaces: Vec, #[serde(default = "default_2502")] - pub closest: Vec>, + pub by_namespace: std::collections::HashMap>, #[serde(default = "default_2503")] - pub needs: Vec>, + pub closest: Vec>, #[serde(default = "default_2504")] - pub closest_note: String, + pub needs: Vec>, #[serde(default = "default_2505")] - pub nearest: Vec>, + pub closest_note: String, #[serde(default = "default_2506")] - pub rerank: std::collections::HashMap, + pub nearest: Vec>, #[serde(default = "default_2507")] - pub answer: String, + pub rerank: std::collections::HashMap, #[serde(default = "default_2508")] + pub answer: String, + #[serde(default = "default_2509")] pub related_prs: Vec>, } @@ -58760,17 +58762,17 @@ impl TrackerDuplicateCheckInput { #[non_exhaustive] pub struct TrackerFlakyOutput { pub test_name: String, - #[serde(default = "default_2509")] - pub known_flaky: bool, #[serde(default = "default_2510")] - pub open_issues: Integer, + pub known_flaky: bool, #[serde(default = "default_2511")] - pub issues: Vec>, + pub open_issues: Integer, #[serde(default = "default_2512")] - pub verdict: String, + pub issues: Vec>, #[serde(default = "default_2513")] - pub tracker_unavailable: bool, + pub verdict: String, #[serde(default = "default_2514")] + pub tracker_unavailable: bool, + #[serde(default = "default_2515")] pub signal: Option>, } @@ -58853,9 +58855,9 @@ impl TrackerFlakyInput { #[non_exhaustive] pub struct TrackerItemOutput { pub items: Vec>, - #[serde(default = "default_2515")] - pub unknown: Vec, #[serde(default = "default_2516")] + pub unknown: Vec, + #[serde(default = "default_2517")] pub tracker_unavailable: bool, } @@ -58904,19 +58906,19 @@ impl TrackerItemInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerLinksOutput { - #[serde(default = "default_2517")] - pub subject: std::collections::HashMap, #[serde(default = "default_2518")] - pub verdict: String, + pub subject: std::collections::HashMap, #[serde(default = "default_2519")] - pub items: Vec>, + pub verdict: String, #[serde(default = "default_2520")] - pub epistemic: String, + pub items: Vec>, #[serde(default = "default_2521")] - pub record: std::collections::HashMap, + pub epistemic: String, #[serde(default = "default_2522")] - pub computed_at: String, + pub record: std::collections::HashMap, #[serde(default = "default_2523")] + pub computed_at: String, + #[serde(default = "default_2524")] pub tracker_unavailable: bool, } @@ -59014,11 +59016,11 @@ impl TrackerLinksInput { pub struct TrackerReleaseOutput { pub version: String, pub blockers: Vec>, - #[serde(default = "default_2524")] - pub active_blockers: Integer, #[serde(default = "default_2525")] - pub health: std::collections::HashMap, + pub active_blockers: Integer, #[serde(default = "default_2526")] + pub health: std::collections::HashMap, + #[serde(default = "default_2527")] pub tracker_unavailable: bool, } @@ -59067,17 +59069,17 @@ impl TrackerReleaseInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSimilarOutput { - #[serde(default = "default_2527")] - pub items: Vec>, #[serde(default = "default_2528")] - pub query: std::collections::HashMap, + pub items: Vec>, #[serde(default = "default_2529")] - pub legs: std::collections::HashMap, + pub query: std::collections::HashMap, #[serde(default = "default_2530")] - pub epistemic: String, + pub legs: std::collections::HashMap, #[serde(default = "default_2531")] - pub tracker_unavailable: bool, + pub epistemic: String, #[serde(default = "default_2532")] + pub tracker_unavailable: bool, + #[serde(default = "default_2533")] pub namespaces: Vec, } @@ -59198,19 +59200,19 @@ pub struct TrackerSourceAddOutput { pub name: String, pub host: String, pub database: String, - #[serde(default = "default_2533")] - pub namespaces: Vec>, #[serde(default = "default_2534")] - pub contract: std::collections::HashMap, + pub namespaces: Vec>, #[serde(default = "default_2535")] - pub roles: Vec, + pub contract: std::collections::HashMap, #[serde(default = "default_2536")] - pub my_role: String, + pub roles: Vec, #[serde(default = "default_2537")] - pub dry_run: bool, + pub my_role: String, #[serde(default = "default_2538")] - pub written: bool, + pub dry_run: bool, #[serde(default = "default_2539")] + pub written: bool, + #[serde(default = "default_2540")] pub view_templates: std::collections::HashMap, } @@ -59373,13 +59375,13 @@ impl TrackerSourceAddInput { #[non_exhaustive] pub struct TrackerSourceCheckOutput { pub name: String, - #[serde(default = "default_2540")] - pub database: String, #[serde(default = "default_2541")] - pub reachable: bool, + pub database: String, #[serde(default = "default_2542")] - pub contract: std::collections::HashMap, + pub reachable: bool, #[serde(default = "default_2543")] + pub contract: std::collections::HashMap, + #[serde(default = "default_2544")] pub view_templates: std::collections::HashMap, } @@ -59419,11 +59421,11 @@ impl TrackerSourceCheckInput { pub struct TrackerSourceInspectOutput { pub host: String, pub database: String, - #[serde(default = "default_2544")] - pub tables: Vec>, #[serde(default = "default_2545")] - pub roles: Vec, + pub tables: Vec>, #[serde(default = "default_2546")] + pub roles: Vec, + #[serde(default = "default_2547")] pub proposal: std::collections::HashMap, } @@ -59552,9 +59554,9 @@ impl TrackerSourceInspectInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSourceListOutput { - #[serde(default = "default_2547")] - pub sources: Vec>, #[serde(default = "default_2548")] + pub sources: Vec>, + #[serde(default = "default_2549")] pub self_service: bool, } @@ -59607,9 +59609,9 @@ impl TrackerSourceListInput { #[non_exhaustive] pub struct TrackerSourceRemoveOutput { pub name: String, - #[serde(default = "default_2549")] - pub deactivated: bool, #[serde(default = "default_2550")] + pub deactivated: bool, + #[serde(default = "default_2551")] pub namespaces_retired: Vec, } @@ -59650,9 +59652,9 @@ impl TrackerSourceRemoveInput { #[non_exhaustive] pub struct TrackerSourceRotateOutput { pub name: String, - #[serde(default = "default_2551")] - pub contract: std::collections::HashMap, #[serde(default = "default_2552")] + pub contract: std::collections::HashMap, + #[serde(default = "default_2553")] pub rotated_at: String, } @@ -59699,11 +59701,11 @@ impl TrackerSourceRotateInput { #[non_exhaustive] pub struct TrackerSourceSetMappingOutput { pub name: String, - #[serde(default = "default_2553")] - pub contract: std::collections::HashMap, #[serde(default = "default_2554")] - pub dry_run: bool, + pub contract: std::collections::HashMap, #[serde(default = "default_2555")] + pub dry_run: bool, + #[serde(default = "default_2556")] pub written: bool, } @@ -59770,45 +59772,45 @@ impl TrackerSourceSetMappingInput { #[non_exhaustive] pub struct TrackerTestSignalOutput { pub test_name: String, - #[serde(default = "default_2556")] - pub verdict: String, #[serde(default = "default_2557")] - pub why: Vec, + pub verdict: String, #[serde(default = "default_2558")] - pub lower_bound: f64, + pub why: Vec, #[serde(default = "default_2559")] - pub window_days: Integer, + pub lower_bound: f64, #[serde(default = "default_2560")] - pub since: String, + pub window_days: Integer, #[serde(default = "default_2561")] - pub features: std::collections::HashMap, + pub since: String, #[serde(default = "default_2562")] - pub infra: std::collections::HashMap, + pub features: std::collections::HashMap, #[serde(default = "default_2563")] - pub churn: std::collections::HashMap, + pub infra: std::collections::HashMap, #[serde(default = "default_2564")] - pub thresholds: std::collections::HashMap, + pub churn: std::collections::HashMap, #[serde(default = "default_2565")] - pub source: String, + pub thresholds: std::collections::HashMap, #[serde(default = "default_2566")] - pub timings_ms: std::collections::HashMap, + pub source: String, #[serde(default = "default_2567")] - pub tracker_unavailable: bool, + pub timings_ms: std::collections::HashMap, #[serde(default = "default_2568")] - pub rollup: std::collections::HashMap, + pub tracker_unavailable: bool, #[serde(default = "default_2569")] - pub streak: std::collections::HashMap, + pub rollup: std::collections::HashMap, #[serde(default = "default_2570")] - pub smells: std::collections::HashMap, + pub streak: std::collections::HashMap, #[serde(default = "default_2571")] - pub prior: std::collections::HashMap, + pub smells: std::collections::HashMap, #[serde(default = "default_2572")] - pub unavailable_reason: String, + pub prior: std::collections::HashMap, #[serde(default = "default_2573")] - pub candidates: Vec>, + pub unavailable_reason: String, #[serde(default = "default_2574")] - pub candidate_matches: Integer, + pub candidates: Vec>, #[serde(default = "default_2575")] + pub candidate_matches: Integer, + #[serde(default = "default_2576")] pub resolved_from: String, } @@ -59912,9 +59914,9 @@ impl TrackerTestSignalInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct UiVitalsOutput { - #[serde(default = "default_2576")] - pub recorded: bool, #[serde(default = "default_2577")] + pub recorded: bool, + #[serde(default = "default_2578")] pub route: String, } @@ -60098,7 +60100,7 @@ pub struct WebhookDelivery { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookDeliveriesOutput { - #[serde(default = "default_2578")] + #[serde(default = "default_2579")] pub deliveries: Vec, } @@ -60220,14 +60222,14 @@ pub struct WebhookInfo { pub secret_ref: String, pub events: Vec, pub created_at: String, - #[serde(default = "default_2579")] + #[serde(default = "default_2580")] pub secret_present: bool, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookListOutput { - #[serde(default = "default_2580")] + #[serde(default = "default_2581")] pub webhooks: Vec, } @@ -60409,7 +60411,7 @@ pub struct WorkingMemoryMutationOutput { pub version: Integer, pub char_limit: Integer, pub value_length: Integer, - #[serde(default = "default_2581")] + #[serde(default = "default_2582")] pub fill_ratio: f64, } @@ -60633,15 +60635,15 @@ impl WorkingMemoryDeleteInput { pub struct WorkingMemoryGetOutput { pub found: bool, pub block_key: String, - #[serde(default = "default_2582")] - pub content: String, #[serde(default = "default_2583")] - pub char_limit: Integer, + pub content: String, #[serde(default = "default_2584")] - pub version: Integer, + pub char_limit: Integer, #[serde(default = "default_2585")] - pub updated_at: Option, + pub version: Integer, #[serde(default = "default_2586")] + pub updated_at: Option, + #[serde(default = "default_2587")] pub fill_ratio: f64, } @@ -60752,7 +60754,7 @@ pub struct WorkingMemoryBlock { pub content: String, pub char_limit: Integer, pub version: Integer, - #[serde(default = "default_2587")] + #[serde(default = "default_2588")] pub updated_at: Option, } @@ -60760,7 +60762,7 @@ pub struct WorkingMemoryBlock { #[non_exhaustive] pub struct WorkingMemoryRenderOutput { pub rendered: String, - #[serde(default = "default_2588")] + #[serde(default = "default_2589")] pub blocks: Vec, pub block_count: Integer, pub total_chars: Integer, @@ -62974,11 +62976,11 @@ fn default_613() -> String { fn default_614() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_615() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_615() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") } -fn default_616() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_616() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_617() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -62992,29 +62994,29 @@ fn default_619() -> String { fn default_620() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_621() -> Integer { +fn default_621() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_622() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_622() -> String { +fn default_623() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_623() -> bool { +fn default_624() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_624() -> Vec { +fn default_625() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_625() -> String { +fn default_626() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_626() -> Vec { +fn default_627() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_627() -> String { - serde_json::from_str("\"ok\"").expect("schema default") -} fn default_628() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"ok\"").expect("schema default") } fn default_629() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -63028,222 +63030,222 @@ fn default_631() -> String { fn default_632() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_633() -> Integer { +fn default_633() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_634() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_634() -> String { +fn default_635() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_635() -> Integer { +fn default_636() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_636() -> Vec { +fn default_637() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_637() -> String { +fn default_638() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_638() -> Option { +fn default_639() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_639() -> String { +fn default_640() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_640() -> String { +fn default_641() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_641() -> bool { +fn default_642() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_642() -> Integer { - serde_json::from_str("-1").expect("schema default") -} fn default_643() -> Integer { serde_json::from_str("-1").expect("schema default") } fn default_644() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_645() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_645() -> Integer { + serde_json::from_str("-1").expect("schema default") } fn default_646() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_647() -> bool { +fn default_647() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_648() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_648() -> Vec { +fn default_649() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_649() -> std::collections::HashMap { +fn default_650() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_650() -> std::collections::HashMap> { +fn default_651() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_651() -> bool { +fn default_652() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_652() -> Integer { +fn default_653() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_653() -> String { +fn default_654() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_654() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_655() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_656() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_657() -> String { +fn default_657() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_658() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_658() -> std::collections::HashMap { +fn default_659() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_659() -> String { +fn default_660() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_660() -> Vec { +fn default_661() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_661() -> std::collections::HashMap> { +fn default_662() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_662() -> std::collections::HashMap { +fn default_663() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_663() -> std::collections::HashMap> { +fn default_664() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_664() -> std::collections::HashMap> { +fn default_665() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_665() -> Integer { +fn default_666() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_666() -> String { +fn default_667() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_667() -> Integer { +fn default_668() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_668() -> String { +fn default_669() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_669() -> Integer { +fn default_670() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_670() -> Integer { +fn default_671() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_671() -> f64 { +fn default_672() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_672() -> String { +fn default_673() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_673() -> String { +fn default_674() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_674() -> Vec> { +fn default_675() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_675() -> Integer { +fn default_676() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_676() -> String { +fn default_677() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_677() -> bool { +fn default_678() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_678() -> String { +fn default_679() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_679() -> Integer { +fn default_680() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_680() -> Integer { +fn default_681() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_681() -> String { +fn default_682() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_682() -> bool { +fn default_683() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_683() -> std::collections::HashMap { +fn default_684() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_684() -> String { +fn default_685() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_685() -> Vec { +fn default_686() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_686() -> CodePathGuardsOutputEpistemic { +fn default_687() -> CodePathGuardsOutputEpistemic { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_687() -> String { +fn default_688() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_688() -> Vec> { +fn default_689() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_689() -> Vec { +fn default_690() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_690() -> Integer { +fn default_691() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_691() -> String { +fn default_692() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_692() -> String { +fn default_693() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_693() -> Vec> { +fn default_694() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_694() -> bool { +fn default_695() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_695() -> String { +fn default_696() -> String { serde_json::from_str("\"heuristic\"").expect("schema default") } -fn default_696() -> std::collections::HashMap { +fn default_697() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_697() -> std::collections::HashMap { +fn default_698() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_698() -> std::collections::HashMap { +fn default_699() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_699() -> String { +fn default_700() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_700() -> Vec> { +fn default_701() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_701() -> Integer { +fn default_702() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_702() -> String { +fn default_703() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_703() -> Vec { +fn default_704() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_704() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_705() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -63253,17 +63255,17 @@ fn default_706() -> String { fn default_707() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_708() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_708() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_709() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_710() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_710() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_711() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_711() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_712() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -63272,68 +63274,68 @@ fn default_713() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_714() -> String { - serde_json::from_str("\"git\"").expect("schema default") + serde_json::from_str("\"\"").expect("schema default") } fn default_715() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"git\"").expect("schema default") } fn default_716() -> String { - serde_json::from_str("\"admin\"").expect("schema default") + serde_json::from_str("\"\"").expect("schema default") } fn default_717() -> String { + serde_json::from_str("\"admin\"").expect("schema default") +} +fn default_718() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_718() -> Vec> { +fn default_719() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_719() -> Vec> { +fn default_720() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_720() -> String { +fn default_721() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_721() -> String { +fn default_722() -> String { serde_json::from_str("\"git\"").expect("schema default") } -fn default_722() -> Vec { +fn default_723() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_723() -> String { +fn default_724() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_724() -> Vec> { +fn default_725() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_725() -> Vec { +fn default_726() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_726() -> Vec> { +fn default_727() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_727() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_728() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_729() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_730() -> bool { +fn default_730() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_731() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_731() -> String { +fn default_732() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_732() -> String { +fn default_733() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_733() -> bool { +fn default_734() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_734() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_735() -> Vec { serde_json::from_str("[]").expect("schema default") } @@ -63343,56 +63345,56 @@ fn default_736() -> Vec { fn default_737() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_738() -> String { +fn default_738() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_739() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_739() -> CodeReviewBriefOutputVerdict { +fn default_740() -> CodeReviewBriefOutputVerdict { serde_json::from_str("\"\"").expect("schema default") } -fn default_740() -> Vec { +fn default_741() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_741() -> Integer { +fn default_742() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_742() -> String { +fn default_743() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_743() -> CodeReviewBriefOutputSource { +fn default_744() -> CodeReviewBriefOutputSource { serde_json::from_str("\"missing\"").expect("schema default") } -fn default_744() -> CodeReviewBriefOutputLedger { +fn default_745() -> CodeReviewBriefOutputLedger { serde_json::from_str("\"\"").expect("schema default") } -fn default_745() -> bool { +fn default_746() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_746() -> std::collections::HashMap { +fn default_747() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_747() -> bool { +fn default_748() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_748() -> String { +fn default_749() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_749() -> Integer { +fn default_750() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_750() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_751() -> String { - serde_json::from_str("\"standard\"").expect("schema default") + serde_json::from_str("\"\"").expect("schema default") } fn default_752() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"standard\"").expect("schema default") } fn default_753() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_754() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_754() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_755() -> Integer { serde_json::from_str("0").expect("schema default") @@ -63400,14 +63402,14 @@ fn default_755() -> Integer { fn default_756() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_757() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") +fn default_757() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_758() -> std::collections::HashMap> { +fn default_758() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_759() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_759() -> std::collections::HashMap> { + serde_json::from_str("{}").expect("schema default") } fn default_760() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -63418,136 +63420,136 @@ fn default_761() -> String { fn default_762() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_763() -> Vec> { +fn default_763() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_764() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_764() -> Integer { +fn default_765() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_765() -> String { +fn default_766() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_766() -> bool { +fn default_767() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_767() -> std::collections::HashMap { +fn default_768() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_768() -> bool { +fn default_769() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_769() -> CodeSearchOutputAbstainCode { +fn default_770() -> CodeSearchOutputAbstainCode { serde_json::from_str("\"\"").expect("schema default") } -fn default_770() -> String { +fn default_771() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_771() -> CodeSearchOutputRetrievalRisk { +fn default_772() -> CodeSearchOutputRetrievalRisk { serde_json::from_str("\"low\"").expect("schema default") } -fn default_772() -> f64 { +fn default_773() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_773() -> CodeSearchOutputPickConfidence { +fn default_774() -> CodeSearchOutputPickConfidence { serde_json::from_str("\"\"").expect("schema default") } -fn default_774() -> f64 { +fn default_775() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_775() -> String { +fn default_776() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_776() -> Integer { +fn default_777() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_777() -> bool { +fn default_778() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_778() -> Integer { +fn default_779() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_779() -> std::collections::HashMap { +fn default_780() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_780() -> String { +fn default_781() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_781() -> std::collections::HashMap { +fn default_782() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_782() -> String { +fn default_783() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_783() -> f64 { +fn default_784() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_784() -> std::collections::HashMap { +fn default_785() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_785() -> std::collections::HashMap { +fn default_786() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_786() -> String { +fn default_787() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_787() -> Vec { +fn default_788() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_788() -> CodeSearchOutputEpistemic { +fn default_789() -> CodeSearchOutputEpistemic { serde_json::from_str("\"\"").expect("schema default") } -fn default_789() -> bool { +fn default_790() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_790() -> String { +fn default_791() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_791() -> String { +fn default_792() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_792() -> Vec { +fn default_793() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_793() -> std::collections::HashMap { +fn default_794() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_794() -> String { +fn default_795() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_795() -> Vec> { +fn default_796() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_796() -> std::collections::HashMap { +fn default_797() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_797() -> Integer { +fn default_798() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_798() -> std::collections::HashMap { +fn default_799() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_799() -> String { +fn default_800() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_800() -> String { +fn default_801() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_801() -> Vec { +fn default_802() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_802() -> String { +fn default_803() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_803() -> std::collections::HashMap { +fn default_804() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_804() -> bool { +fn default_805() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_805() -> Vec { - serde_json::from_str("[]").expect("schema default") -} -fn default_806() -> Vec> { +fn default_806() -> Vec { serde_json::from_str("[]").expect("schema default") } fn default_807() -> Vec> { @@ -63556,38 +63558,38 @@ fn default_807() -> Vec> { fn default_808() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_809() -> std::collections::HashMap { +fn default_809() -> Vec> { + serde_json::from_str("[]").expect("schema default") +} +fn default_810() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_810() -> String { +fn default_811() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_811() -> bool { +fn default_812() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_812() -> String { +fn default_813() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_813() -> Vec> { - serde_json::from_str("[]").expect("schema default") -} fn default_814() -> Vec> { serde_json::from_str("[]").expect("schema default") } fn default_815() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_816() -> Vec { +fn default_816() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_817() -> Vec> { +fn default_817() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_818() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_818() -> Vec> { + serde_json::from_str("[]").expect("schema default") } -fn default_819() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_819() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_820() -> Integer { serde_json::from_str("0").expect("schema default") @@ -63598,8 +63600,8 @@ fn default_821() -> Integer { fn default_822() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_823() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_823() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_824() -> bool { serde_json::from_str("false").expect("schema default") @@ -63608,137 +63610,137 @@ fn default_825() -> bool { serde_json::from_str("false").expect("schema default") } fn default_826() -> bool { + serde_json::from_str("false").expect("schema default") +} +fn default_827() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_827() -> String { +fn default_828() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_828() -> Vec { +fn default_829() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_829() -> std::collections::HashMap { +fn default_830() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_830() -> std::collections::HashMap { +fn default_831() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_831() -> String { +fn default_832() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_832() -> String { +fn default_833() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_833() -> String { +fn default_834() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_834() -> Vec> { +fn default_835() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_835() -> Vec { +fn default_836() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_836() -> Vec { +fn default_837() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_837() -> Integer { +fn default_838() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_838() -> std::collections::HashMap { +fn default_839() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_839() -> String { +fn default_840() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_840() -> Vec> { +fn default_841() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_841() -> Integer { +fn default_842() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_842() -> bool { +fn default_843() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_843() -> Vec> { +fn default_844() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_844() -> String { +fn default_845() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_845() -> bool { +fn default_846() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_846() -> Vec { +fn default_847() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_847() -> std::collections::HashMap { +fn default_848() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_848() -> std::collections::HashMap { +fn default_849() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_849() -> Integer { +fn default_850() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_850() -> Integer { +fn default_851() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_851() -> String { +fn default_852() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_852() -> Integer { +fn default_853() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_853() -> String { +fn default_854() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_854() -> String { +fn default_855() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_855() -> Vec> { +fn default_856() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_856() -> std::collections::HashMap { +fn default_857() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_857() -> String { +fn default_858() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_858() -> String { +fn default_859() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_859() -> std::collections::HashMap { +fn default_860() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_860() -> Vec> { +fn default_861() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_861() -> Vec> { +fn default_862() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_862() -> bool { +fn default_863() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_863() -> std::collections::HashMap { +fn default_864() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_864() -> std::collections::HashMap { +fn default_865() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_865() -> std::collections::HashMap { +fn default_866() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_866() -> Vec { +fn default_867() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_867() -> Integer { +fn default_868() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_868() -> std::collections::HashMap { +fn default_869() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_869() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_870() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -63757,13 +63759,13 @@ fn default_874() -> String { fn default_875() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_876() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_876() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_877() -> Option { +fn default_877() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_878() -> Option { +fn default_878() -> Option { serde_json::from_str("null").expect("schema default") } fn default_879() -> Option { @@ -63772,50 +63774,50 @@ fn default_879() -> Option { fn default_880() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_881() -> Option> { +fn default_881() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_882() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_882() -> Vec { +fn default_883() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_883() -> String { +fn default_884() -> String { serde_json::from_str("\"conflicts.resolve\"").expect("schema default") } -fn default_884() -> Vec { +fn default_885() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_885() -> String { +fn default_886() -> String { serde_json::from_str("\"No changes were applied.\"").expect("schema default") } -fn default_886() -> Option { +fn default_887() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_887() -> Option { +fn default_888() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_888() -> bool { +fn default_889() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_889() -> bool { +fn default_890() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_890() -> Option { +fn default_891() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_891() -> Vec { +fn default_892() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_892() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_893() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_894() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_895() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_895() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_896() -> Integer { serde_json::from_str("0").expect("schema default") @@ -63824,86 +63826,86 @@ fn default_897() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_898() -> Integer { - serde_json::from_str("-1").expect("schema default") + serde_json::from_str("0").expect("schema default") } fn default_899() -> Integer { + serde_json::from_str("-1").expect("schema default") +} +fn default_900() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_900() -> Option { +fn default_901() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_901() -> bool { +fn default_902() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_902() -> ConversationAppendOutputReason { +fn default_903() -> ConversationAppendOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_903() -> String { +fn default_904() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_904() -> Integer { +fn default_905() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_905() -> Integer { +fn default_906() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_906() -> String { +fn default_907() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_907() -> String { +fn default_908() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_908() -> std::collections::HashMap { +fn default_909() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_909() -> String { - serde_json::from_str("\"-\"").expect("schema default") -} fn default_910() -> String { serde_json::from_str("\"-\"").expect("schema default") } fn default_911() -> String { + serde_json::from_str("\"-\"").expect("schema default") +} +fn default_912() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_912() -> Option { +fn default_913() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_913() -> Option { +fn default_914() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_914() -> Integer { +fn default_915() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_915() -> String { +fn default_916() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_916() -> Vec { +fn default_917() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_917() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_918() -> Option { serde_json::from_str("null").expect("schema default") } fn default_919() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_920() -> ConversationSaveMessageOutputReason { +fn default_920() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_921() -> ConversationSaveMessageOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_921() -> String { +fn default_922() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_922() -> Vec { +fn default_923() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_923() -> bool { +fn default_924() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_924() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_925() -> Option { serde_json::from_str("null").expect("schema default") } @@ -63925,27 +63927,27 @@ fn default_930() -> Option { fn default_931() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_932() -> Option { +fn default_932() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_933() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_933() -> Option { +fn default_934() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_934() -> Integer { +fn default_935() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_935() -> Vec { +fn default_936() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_936() -> f64 { +fn default_937() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_937() -> Integer { +fn default_938() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_938() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_939() -> Option { serde_json::from_str("null").expect("schema default") } @@ -63973,21 +63975,21 @@ fn default_946() -> Option { fn default_947() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_948() -> Integer { +fn default_948() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_949() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_949() -> f64 { +fn default_950() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_950() -> Integer { +fn default_951() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_951() -> f64 { +fn default_952() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_952() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_953() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -63997,105 +63999,105 @@ fn default_954() -> String { fn default_955() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_956() -> Vec { +fn default_956() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_957() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_957() -> Option { +fn default_958() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_958() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_959() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_960() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_961() -> Option { +fn default_961() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_962() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_962() -> String { +fn default_963() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_963() -> DecisionRowStage { +fn default_964() -> DecisionRowStage { serde_json::from_str("\"decided\"").expect("schema default") } -fn default_964() -> f64 { +fn default_965() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_965() -> Option { +fn default_966() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_966() -> Option { +fn default_967() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_967() -> Integer { +fn default_968() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_968() -> String { +fn default_969() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_969() -> bool { +fn default_970() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_970() -> Integer { +fn default_971() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_971() -> String { +fn default_972() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_972() -> bool { +fn default_973() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_973() -> Option { +fn default_974() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_974() -> String { +fn default_975() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_975() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_976() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_977() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_978() -> Option { +fn default_978() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_979() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_979() -> String { +fn default_980() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_980() -> Option { +fn default_981() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_981() -> Integer { +fn default_982() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_982() -> std::collections::HashMap { +fn default_983() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_983() -> Option { +fn default_984() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_984() -> Option> { +fn default_985() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_985() -> bool { +fn default_986() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_986() -> String { +fn default_987() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_987() -> Vec { +fn default_988() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_988() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_989() -> Option { serde_json::from_str("null").expect("schema default") } @@ -64105,13 +64107,13 @@ fn default_990() -> Option { fn default_991() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_992() -> Option { +fn default_992() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_993() -> Option { +fn default_993() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_994() -> Option { +fn default_994() -> Option { serde_json::from_str("null").expect("schema default") } fn default_995() -> Option { @@ -64120,84 +64122,84 @@ fn default_995() -> Option { fn default_996() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_997() -> Integer { +fn default_997() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_998() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_998() -> std::collections::HashMap { +fn default_999() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_999() -> Option { +fn default_1000() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1000() -> Option> { +fn default_1001() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1001() -> bool { +fn default_1002() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1002() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1003() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1004() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1005() -> Option { +fn default_1005() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1006() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1006() -> String { +fn default_1007() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1007() -> String { +fn default_1008() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1008() -> Option { +fn default_1009() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1009() -> Vec { +fn default_1010() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1010() -> String { +fn default_1011() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1011() -> Vec { +fn default_1012() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1012() -> Vec { +fn default_1013() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1013() -> bool { +fn default_1014() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1014() -> bool { +fn default_1015() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1015() -> String { +fn default_1016() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1016() -> String { +fn default_1017() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1017() -> Option { +fn default_1018() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1018() -> Option { +fn default_1019() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1019() -> Option { +fn default_1020() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1020() -> bool { +fn default_1021() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1021() -> Integer { +fn default_1022() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1022() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1023() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -64210,41 +64212,41 @@ fn default_1025() -> String { fn default_1026() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1027() -> Option { +fn default_1027() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1028() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1028() -> Vec { +fn default_1029() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1029() -> bool { +fn default_1030() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1030() -> Vec { +fn default_1031() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1031() -> Option { +fn default_1032() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1032() -> Option { +fn default_1033() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1033() -> bool { +fn default_1034() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1034() -> String { +fn default_1035() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_1035() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_1036() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1037() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1038() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1038() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_1039() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -64252,35 +64254,35 @@ fn default_1039() -> String { fn default_1040() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1041() -> HelpGetOutputAudience { +fn default_1041() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1042() -> HelpGetOutputAudience { serde_json::from_str("\"user\"").expect("schema default") } -fn default_1042() -> String { +fn default_1043() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1043() -> bool { +fn default_1044() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1044() -> Integer { +fn default_1045() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1045() -> String { +fn default_1046() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1046() -> Vec { +fn default_1047() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1047() -> String { +fn default_1048() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1048() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_1049() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1050() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1050() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1051() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -64288,218 +64290,218 @@ fn default_1051() -> String { fn default_1052() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1053() -> Vec { +fn default_1053() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1054() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1054() -> String { +fn default_1055() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1055() -> bool { +fn default_1056() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1056() -> Vec { +fn default_1057() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1057() -> Vec { +fn default_1058() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1058() -> Option { +fn default_1059() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1059() -> bool { +fn default_1060() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1060() -> bool { +fn default_1061() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1061() -> Vec { +fn default_1062() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1062() -> Vec> { +fn default_1063() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1063() -> Integer { +fn default_1064() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1064() -> bool { +fn default_1065() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1065() -> String { +fn default_1066() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1066() -> String { +fn default_1067() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1067() -> Integer { +fn default_1068() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1068() -> Integer { +fn default_1069() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1069() -> Vec { +fn default_1070() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1070() -> Integer { +fn default_1071() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1071() -> Vec { +fn default_1072() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1072() -> bool { +fn default_1073() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1073() -> String { +fn default_1074() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1074() -> Option { +fn default_1075() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1075() -> Option { +fn default_1076() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1076() -> Vec> { +fn default_1077() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1077() -> Option { +fn default_1078() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1078() -> bool { +fn default_1079() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1079() -> Integer { +fn default_1080() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1080() -> Vec { +fn default_1081() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1081() -> Vec> { +fn default_1082() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1082() -> Vec { +fn default_1083() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1083() -> Vec> { +fn default_1084() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1084() -> Vec { +fn default_1085() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1085() -> String { +fn default_1086() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1086() -> Vec { +fn default_1087() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1087() -> Vec { +fn default_1088() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1088() -> Option { +fn default_1089() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1089() -> Vec { +fn default_1090() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1090() -> Integer { +fn default_1091() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1091() -> Vec { +fn default_1092() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1092() -> String { +fn default_1093() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1093() -> Vec { +fn default_1094() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1094() -> Vec { +fn default_1095() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1095() -> Option { +fn default_1096() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1096() -> Option { +fn default_1097() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1097() -> bool { +fn default_1098() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1098() -> String { +fn default_1099() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1099() -> String { +fn default_1100() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1100() -> bool { +fn default_1101() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1101() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1102() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1103() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1104() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_1105() -> String { +fn default_1104() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1105() -> Integer { + serde_json::from_str("0").expect("schema default") +} fn default_1106() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1107() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1108() -> Option> { +fn default_1108() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1109() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1109() -> Vec { +fn default_1110() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1110() -> Integer { +fn default_1111() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1111() -> Integer { +fn default_1112() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1112() -> Option { +fn default_1113() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1113() -> String { +fn default_1114() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1114() -> String { +fn default_1115() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1115() -> bool { +fn default_1116() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1116() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_1117() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1118() -> Option { +fn default_1118() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1119() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1120() -> Option { +fn default_1120() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1121() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_1121() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_1122() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1123() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1123() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1124() -> Option { serde_json::from_str("null").expect("schema default") @@ -64507,107 +64509,107 @@ fn default_1124() -> Option { fn default_1125() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1126() -> String { - serde_json::from_str("\"\"").expect("schema default") -} -fn default_1127() -> Option { +fn default_1126() -> Option { serde_json::from_str("null").expect("schema default") } +fn default_1127() -> String { + serde_json::from_str("\"\"").expect("schema default") +} fn default_1128() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1129() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1130() -> Vec { +fn default_1130() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1131() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1131() -> Vec { +fn default_1132() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1132() -> Option { +fn default_1133() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1133() -> String { +fn default_1134() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1134() -> Option { +fn default_1135() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1135() -> Vec { +fn default_1136() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1136() -> Option { +fn default_1137() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1137() -> Option { +fn default_1138() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1138() -> Option { +fn default_1139() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1139() -> String { +fn default_1140() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1140() -> Option { +fn default_1141() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1141() -> Option { +fn default_1142() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1142() -> bool { +fn default_1143() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1143() -> bool { +fn default_1144() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1144() -> Option { +fn default_1145() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1145() -> Vec { +fn default_1146() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1146() -> bool { +fn default_1147() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1147() -> Option { +fn default_1148() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1148() -> Option { +fn default_1149() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1149() -> Vec { +fn default_1150() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1150() -> String { +fn default_1151() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1151() -> String { +fn default_1152() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1152() -> Vec { +fn default_1153() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1153() -> Integer { +fn default_1154() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1154() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_1155() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1156() -> Vec { +fn default_1156() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1157() -> Vec { +fn default_1157() -> Vec { serde_json::from_str("[]").expect("schema default") } fn default_1158() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1159() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1159() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1160() -> Option { serde_json::from_str("null").expect("schema default") @@ -64636,213 +64638,213 @@ fn default_1167() -> Option { fn default_1168() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1169() -> Option { +fn default_1169() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1170() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1170() -> Option { +fn default_1171() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1171() -> Vec { +fn default_1172() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1172() -> Option { +fn default_1173() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1173() -> Option { +fn default_1174() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1174() -> Vec { +fn default_1175() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1175() -> Option { +fn default_1176() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1176() -> Option { +fn default_1177() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1177() -> Vec { +fn default_1178() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1178() -> String { +fn default_1179() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1179() -> String { +fn default_1180() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1180() -> Vec { +fn default_1181() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1181() -> Vec { +fn default_1182() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1182() -> Integer { +fn default_1183() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1183() -> Vec { +fn default_1184() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1184() -> Vec { +fn default_1185() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1185() -> Vec { +fn default_1186() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1186() -> Vec { +fn default_1187() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1187() -> Option { +fn default_1188() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1188() -> String { +fn default_1189() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1189() -> bool { +fn default_1190() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1190() -> KnowledgeMoveResultReason { +fn default_1191() -> KnowledgeMoveResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1191() -> Vec { +fn default_1192() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1192() -> String { +fn default_1193() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1193() -> bool { +fn default_1194() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1194() -> Integer { +fn default_1195() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1195() -> Vec { +fn default_1196() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1196() -> Option { +fn default_1197() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1197() -> Vec { +fn default_1198() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1198() -> Vec> { +fn default_1199() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1199() -> bool { +fn default_1200() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1200() -> Vec { +fn default_1201() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1201() -> bool { +fn default_1202() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1202() -> Vec { +fn default_1203() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1203() -> Vec> { +fn default_1204() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1204() -> KnowledgeRestoreOutputReason { +fn default_1205() -> KnowledgeRestoreOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1205() -> String { +fn default_1206() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1206() -> Option { +fn default_1207() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1207() -> Integer { +fn default_1208() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1208() -> KnowledgeRestoreOutputOriginal { +fn default_1209() -> KnowledgeRestoreOutputOriginal { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1209() -> Option { +fn default_1210() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1210() -> Vec> { +fn default_1211() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1211() -> Vec { +fn default_1212() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1212() -> std::collections::HashMap { +fn default_1213() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1213() -> Integer { +fn default_1214() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1214() -> bool { +fn default_1215() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1215() -> Vec { +fn default_1216() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1216() -> Integer { +fn default_1217() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1217() -> bool { +fn default_1218() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1218() -> KnowledgeSourceProbe { +fn default_1219() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1219() -> bool { +fn default_1220() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1220() -> bool { +fn default_1221() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1221() -> Integer { +fn default_1222() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1222() -> bool { +fn default_1223() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1223() -> Vec { +fn default_1224() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1224() -> Integer { +fn default_1225() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1225() -> bool { +fn default_1226() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1226() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1227() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1228() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1229() -> String { serde_json::from_str("\"shared\"").expect("schema default") } -fn default_1229() -> bool { +fn default_1230() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1230() -> String { +fn default_1231() -> String { serde_json::from_str("\"namespace\"").expect("schema default") } -fn default_1231() -> std::collections::HashMap { +fn default_1232() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1232() -> String { +fn default_1233() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1233() -> Vec> { +fn default_1234() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1234() -> Vec { +fn default_1235() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1235() -> std::collections::HashMap { +fn default_1236() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1236() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1237() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -64855,8 +64857,8 @@ fn default_1239() -> String { fn default_1240() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1241() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1241() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1242() -> Integer { serde_json::from_str("0").expect("schema default") @@ -64867,116 +64869,116 @@ fn default_1243() -> Integer { fn default_1244() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1245() -> std::collections::HashMap { +fn default_1245() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1246() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1246() -> Integer { +fn default_1247() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1247() -> String { +fn default_1248() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1248() -> Integer { +fn default_1249() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1249() -> String { +fn default_1250() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1250() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1251() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_1252() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1253() -> String { +fn default_1253() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1254() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1254() -> KnowledgeSourceSync { +fn default_1255() -> KnowledgeSourceSync { serde_json::from_str("{\"requested_at\":\"\",\"last_synced_at\":\"\",\"status\":\"\",\"documents_seen\":0,\"changed\":0,\"removed\":0,\"unconverted\":0,\"unconverted_reasons\":{},\"skipped\":0,\"error\":\"\",\"pending_extract\":0,\"last_extracted_at\":\"\",\"extracted\":0,\"flagged_pinned\":0,\"unextracted\":0,\"extract_error\":\"\"}").expect("schema default") } -fn default_1255() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1256() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1257() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1258() -> Vec { +fn default_1258() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1259() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1259() -> String { +fn default_1260() -> String { serde_json::from_str("\"shared\"").expect("schema default") } -fn default_1260() -> bool { +fn default_1261() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1261() -> String { +fn default_1262() -> String { serde_json::from_str("\"namespace\"").expect("schema default") } -fn default_1262() -> std::collections::HashMap { +fn default_1263() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1263() -> String { +fn default_1264() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1264() -> Vec> { +fn default_1265() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1265() -> Vec { +fn default_1266() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1266() -> std::collections::HashMap { +fn default_1267() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1267() -> String { +fn default_1268() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1268() -> String { +fn default_1269() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1269() -> KnowledgeSourceSync { +fn default_1270() -> KnowledgeSourceSync { serde_json::from_str("{\"requested_at\":\"\",\"last_synced_at\":\"\",\"status\":\"\",\"documents_seen\":0,\"changed\":0,\"removed\":0,\"unconverted\":0,\"unconverted_reasons\":{},\"skipped\":0,\"error\":\"\",\"pending_extract\":0,\"last_extracted_at\":\"\",\"extracted\":0,\"flagged_pinned\":0,\"unextracted\":0,\"extract_error\":\"\"}").expect("schema default") } -fn default_1270() -> Vec { +fn default_1271() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1271() -> bool { +fn default_1272() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1272() -> bool { +fn default_1273() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1273() -> bool { +fn default_1274() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1274() -> Option { +fn default_1275() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1275() -> String { +fn default_1276() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1276() -> std::collections::HashMap { +fn default_1277() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1277() -> String { +fn default_1278() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1278() -> Vec { +fn default_1279() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1279() -> bool { +fn default_1280() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1280() -> String { - serde_json::from_str("\"disabled\"").expect("schema default") -} fn default_1281() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"disabled\"").expect("schema default") } fn default_1282() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -64993,179 +64995,179 @@ fn default_1285() -> String { fn default_1286() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1287() -> Integer { +fn default_1287() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1288() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1288() -> f64 { +fn default_1289() -> f64 { serde_json::from_str("0").expect("schema default") } -fn default_1289() -> Integer { +fn default_1290() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1290() -> Option { +fn default_1291() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1291() -> KnowledgeSourceProbe { +fn default_1292() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1292() -> String { +fn default_1293() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1293() -> bool { +fn default_1294() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1294() -> Option { +fn default_1295() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1295() -> Vec> { +fn default_1296() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1296() -> Vec { +fn default_1297() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1297() -> std::collections::HashMap { +fn default_1298() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1298() -> Vec> { +fn default_1299() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1299() -> Vec> { +fn default_1300() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1300() -> KnowledgeSourceProbe { +fn default_1301() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1301() -> Vec { +fn default_1302() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1302() -> Integer { +fn default_1303() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1303() -> Option> { +fn default_1304() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1304() -> Vec { +fn default_1305() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1305() -> Vec { +fn default_1306() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1306() -> bool { +fn default_1307() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1307() -> bool { +fn default_1308() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1308() -> String { +fn default_1309() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1309() -> String { +fn default_1310() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1310() -> Vec> { +fn default_1311() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1311() -> bool { +fn default_1312() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1312() -> Vec { +fn default_1313() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1313() -> Vec { +fn default_1314() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1314() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1315() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1316() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1317() -> Vec { +fn default_1317() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1318() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1318() -> Integer { +fn default_1319() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1319() -> String { +fn default_1320() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1320() -> Integer { +fn default_1321() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1321() -> String { +fn default_1322() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1322() -> String { +fn default_1323() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1323() -> Integer { +fn default_1324() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1324() -> Integer { +fn default_1325() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1325() -> String { +fn default_1326() -> String { serde_json::from_str("\"memory_supporters\"").expect("schema default") } -fn default_1326() -> String { +fn default_1327() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1327() -> String { +fn default_1328() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1328() -> Option { +fn default_1329() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1329() -> String { +fn default_1330() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1330() -> String { +fn default_1331() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1331() -> bool { +fn default_1332() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1332() -> bool { +fn default_1333() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1333() -> String { +fn default_1334() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1334() -> std::collections::HashMap { +fn default_1335() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1335() -> Vec { +fn default_1336() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1336() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1337() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1338() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1339() -> Vec { - serde_json::from_str("[]").expect("schema default") -} -fn default_1340() -> String { +fn default_1339() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1340() -> Vec { + serde_json::from_str("[]").expect("schema default") +} fn default_1341() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1342() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_1342() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1343() -> Vec { serde_json::from_str("[]").expect("schema default") @@ -65176,33 +65178,33 @@ fn default_1344() -> Vec { fn default_1345() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1346() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_1347() -> Vec { +fn default_1346() -> Vec { serde_json::from_str("[]").expect("schema default") } +fn default_1347() -> Integer { + serde_json::from_str("0").expect("schema default") +} fn default_1348() -> Vec { serde_json::from_str("[]").expect("schema default") } fn default_1349() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1350() -> Integer { +fn default_1350() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_1351() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1351() -> Vec { +fn default_1352() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1352() -> std::collections::HashMap { +fn default_1353() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1353() -> std::collections::HashMap { +fn default_1354() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1354() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1355() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -65218,11 +65220,11 @@ fn default_1358() -> Integer { fn default_1359() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1360() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_1360() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_1361() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1361() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_1362() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -65233,75 +65235,75 @@ fn default_1363() -> String { fn default_1364() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1365() -> Option { +fn default_1365() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1366() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1366() -> String { +fn default_1367() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1367() -> Vec { +fn default_1368() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1368() -> String { +fn default_1369() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1369() -> MemoryAskOutputSource { +fn default_1370() -> MemoryAskOutputSource { serde_json::from_str("\"synthesized\"").expect("schema default") } -fn default_1370() -> bool { +fn default_1371() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1371() -> String { +fn default_1372() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1372() -> Vec { +fn default_1373() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1373() -> Vec { +fn default_1374() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1374() -> Vec { +fn default_1375() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1375() -> String { +fn default_1376() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1376() -> String { +fn default_1377() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1377() -> MemoryAskOutputRouteTier { +fn default_1378() -> MemoryAskOutputRouteTier { serde_json::from_str("\"\"").expect("schema default") } -fn default_1378() -> String { +fn default_1379() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1379() -> Integer { +fn default_1380() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1380() -> Integer { +fn default_1381() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1381() -> bool { +fn default_1382() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1382() -> f64 { +fn default_1383() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1383() -> Option { +fn default_1384() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1384() -> Option { +fn default_1385() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1385() -> bool { +fn default_1386() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1386() -> String { +fn default_1387() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1387() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1388() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -65311,32 +65313,32 @@ fn default_1389() -> Integer { fn default_1390() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1391() -> String { +fn default_1391() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1392() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1392() -> Vec { +fn default_1393() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1393() -> Integer { +fn default_1394() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1394() -> MemoryAskOutputConsistency { +fn default_1395() -> MemoryAskOutputConsistency { serde_json::from_str("\"\"").expect("schema default") } -fn default_1395() -> f64 { +fn default_1396() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1396() -> String { +fn default_1397() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1397() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1398() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1399() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1399() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1400() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -65347,48 +65349,48 @@ fn default_1401() -> String { fn default_1402() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1403() -> MemoryAskOutputDepth { +fn default_1403() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1404() -> MemoryAskOutputDepth { serde_json::from_str("\"\"").expect("schema default") } -fn default_1404() -> bool { +fn default_1405() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1405() -> Vec { +fn default_1406() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1406() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1407() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_1408() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1409() -> Vec { - serde_json::from_str("[]").expect("schema default") -} -fn default_1410() -> Integer { +fn default_1409() -> Integer { serde_json::from_str("0").expect("schema default") } +fn default_1410() -> Vec { + serde_json::from_str("[]").expect("schema default") +} fn default_1411() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_1412() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1413() -> MemoryAskOutputGrounding { +fn default_1413() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1414() -> MemoryAskOutputGrounding { serde_json::from_str("\"\"").expect("schema default") } -fn default_1414() -> String { +fn default_1415() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1415() -> Vec { +fn default_1416() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1416() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1417() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -65398,18 +65400,18 @@ fn default_1418() -> Integer { fn default_1419() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1420() -> std::collections::HashMap { +fn default_1420() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1421() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1421() -> MemoryAskOutputDeepSelector { +fn default_1422() -> MemoryAskOutputDeepSelector { serde_json::from_str("\"\"").expect("schema default") } -fn default_1422() -> MemoryAskOutputDeepFirst { +fn default_1423() -> MemoryAskOutputDeepFirst { serde_json::from_str("\"\"").expect("schema default") } -fn default_1423() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1424() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -65419,12 +65421,12 @@ fn default_1425() -> Integer { fn default_1426() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1427() -> f64 { - serde_json::from_str("0.0").expect("schema default") -} -fn default_1428() -> Integer { +fn default_1427() -> Integer { serde_json::from_str("0").expect("schema default") } +fn default_1428() -> f64 { + serde_json::from_str("0.0").expect("schema default") +} fn default_1429() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -65437,11 +65439,11 @@ fn default_1431() -> Integer { fn default_1432() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1433() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_1433() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_1434() -> String { - serde_json::from_str("\"-\"").expect("schema default") +fn default_1434() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_1435() -> String { serde_json::from_str("\"-\"").expect("schema default") @@ -65450,7 +65452,7 @@ fn default_1436() -> String { serde_json::from_str("\"-\"").expect("schema default") } fn default_1437() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"-\"").expect("schema default") } fn default_1438() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -65458,120 +65460,120 @@ fn default_1438() -> String { fn default_1439() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1440() -> bool { +fn default_1440() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1441() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1441() -> String { +fn default_1442() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1442() -> Option { +fn default_1443() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1443() -> String { +fn default_1444() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1444() -> String { +fn default_1445() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1445() -> Vec { +fn default_1446() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1446() -> Option { +fn default_1447() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1447() -> bool { +fn default_1448() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1448() -> String { +fn default_1449() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1449() -> String { +fn default_1450() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1450() -> Vec { +fn default_1451() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1451() -> String { +fn default_1452() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1452() -> Vec { +fn default_1453() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1453() -> String { +fn default_1454() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1454() -> String { +fn default_1455() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1455() -> Vec { +fn default_1456() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1456() -> Vec { +fn default_1457() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1457() -> Integer { +fn default_1458() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1458() -> Vec { +fn default_1459() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1459() -> Vec { +fn default_1460() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1460() -> String { +fn default_1461() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1461() -> String { +fn default_1462() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1462() -> bool { +fn default_1463() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1463() -> String { +fn default_1464() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1464() -> String { +fn default_1465() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1465() -> String { +fn default_1466() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1466() -> bool { +fn default_1467() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1467() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1468() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1469() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1470() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_1470() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1471() -> Vec { +fn default_1471() -> Vec { serde_json::from_str("[]").expect("schema default") } fn default_1472() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1473() -> std::collections::HashMap { +fn default_1473() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_1474() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1474() -> Vec { +fn default_1475() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1475() -> Integer { +fn default_1476() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1476() -> Vec { +fn default_1477() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1477() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1478() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -65590,8 +65592,8 @@ fn default_1482() -> Integer { fn default_1483() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1484() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1484() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1485() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -65602,11 +65604,11 @@ fn default_1486() -> String { fn default_1487() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1488() -> bool { - serde_json::from_str("true").expect("schema default") +fn default_1488() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1489() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1489() -> bool { + serde_json::from_str("true").expect("schema default") } fn default_1490() -> Integer { serde_json::from_str("0").expect("schema default") @@ -65620,114 +65622,114 @@ fn default_1492() -> Integer { fn default_1493() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1494() -> bool { +fn default_1494() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1495() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1495() -> Vec { +fn default_1496() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1496() -> String { +fn default_1497() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1497() -> String { +fn default_1498() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1498() -> Option { +fn default_1499() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1499() -> Vec { +fn default_1500() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1500() -> bool { +fn default_1501() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1501() -> bool { +fn default_1502() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1502() -> Vec { +fn default_1503() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1503() -> bool { +fn default_1504() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1504() -> Option { +fn default_1505() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1505() -> Vec { +fn default_1506() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1506() -> Option { +fn default_1507() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1507() -> Option { +fn default_1508() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1508() -> Vec { +fn default_1509() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1509() -> Integer { +fn default_1510() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1510() -> bool { +fn default_1511() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1511() -> String { +fn default_1512() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1512() -> Integer { +fn default_1513() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1513() -> Integer { +fn default_1514() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1514() -> std::collections::HashMap { +fn default_1515() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1515() -> String { +fn default_1516() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1516() -> f64 { +fn default_1517() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1517() -> bool { +fn default_1518() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1518() -> String { +fn default_1519() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1519() -> String { +fn default_1520() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1520() -> Integer { +fn default_1521() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1521() -> Integer { +fn default_1522() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1522() -> Option { +fn default_1523() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1523() -> Vec { +fn default_1524() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1524() -> Vec { +fn default_1525() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1525() -> Option { +fn default_1526() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1526() -> Option { +fn default_1527() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1527() -> Integer { +fn default_1528() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1528() -> bool { +fn default_1529() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1529() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1530() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65737,30 +65739,30 @@ fn default_1531() -> String { fn default_1532() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1533() -> Option { +fn default_1533() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1534() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1534() -> String { +fn default_1535() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1535() -> Integer { +fn default_1536() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1536() -> Integer { +fn default_1537() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1537() -> String { +fn default_1538() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1538() -> Vec { +fn default_1539() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1539() -> bool { +fn default_1540() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1540() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1541() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -65773,81 +65775,81 @@ fn default_1543() -> Integer { fn default_1544() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1545() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1545() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1546() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1547() -> String { - serde_json::from_str("\"-\"").expect("schema default") + serde_json::from_str("\"\"").expect("schema default") } fn default_1548() -> String { + serde_json::from_str("\"-\"").expect("schema default") +} +fn default_1549() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1549() -> Vec { +fn default_1550() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1550() -> Integer { +fn default_1551() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1551() -> Integer { +fn default_1552() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1552() -> String { +fn default_1553() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1553() -> String { +fn default_1554() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1554() -> Vec { +fn default_1555() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1555() -> String { +fn default_1556() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1556() -> String { +fn default_1557() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1557() -> Vec { +fn default_1558() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1558() -> Vec { +fn default_1559() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1559() -> String { +fn default_1560() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1560() -> String { +fn default_1561() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1561() -> Vec { +fn default_1562() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1562() -> f64 { +fn default_1563() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1563() -> String { +fn default_1564() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1564() -> String { +fn default_1565() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1565() -> Vec { +fn default_1566() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1566() -> bool { +fn default_1567() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1567() -> String { +fn default_1568() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1568() -> Integer { +fn default_1569() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1569() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_1570() -> Vec { serde_json::from_str("[]").expect("schema default") } @@ -65860,57 +65862,57 @@ fn default_1572() -> Vec { fn default_1573() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1574() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1574() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1575() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1576() -> Vec { +fn default_1576() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1577() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1577() -> Integer { +fn default_1578() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1578() -> Integer { +fn default_1579() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1579() -> Vec { +fn default_1580() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1580() -> Vec { +fn default_1581() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1581() -> Integer { +fn default_1582() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1582() -> Integer { +fn default_1583() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1583() -> bool { +fn default_1584() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1584() -> Vec { +fn default_1585() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1585() -> f64 { +fn default_1586() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1586() -> bool { +fn default_1587() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1587() -> String { +fn default_1588() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1588() -> String { +fn default_1589() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1589() -> Option { +fn default_1590() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1590() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1591() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65920,42 +65922,42 @@ fn default_1592() -> String { fn default_1593() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1594() -> MemoryForFileHitSupersedesKind { +fn default_1594() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1595() -> Vec { +fn default_1595() -> MemoryForFileHitSupersedesKind { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1596() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1596() -> String { +fn default_1597() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1597() -> MemoryForFileHitVerification { +fn default_1598() -> MemoryForFileHitVerification { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1598() -> MemoryForFileHitCodeState { +fn default_1599() -> MemoryForFileHitCodeState { serde_json::from_str("\"\"").expect("schema default") } -fn default_1599() -> Vec { +fn default_1600() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1600() -> String { +fn default_1601() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1601() -> Integer { +fn default_1602() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1602() -> bool { +fn default_1603() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1603() -> bool { +fn default_1604() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1604() -> Vec { +fn default_1605() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1605() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1606() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65971,19 +65973,19 @@ fn default_1609() -> String { fn default_1610() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1611() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1611() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1612() -> Value { +fn default_1612() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1613() -> Option { +fn default_1613() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1614() -> Option { +fn default_1614() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1615() -> Option { +fn default_1615() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1616() -> Option { @@ -65995,23 +65997,23 @@ fn default_1617() -> Option { fn default_1618() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1619() -> bool { +fn default_1619() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1620() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1620() -> String { +fn default_1621() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1621() -> String { +fn default_1622() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1622() -> Option { +fn default_1623() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1623() -> String { - serde_json::from_str("\"none\"").expect("schema default") -} fn default_1624() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"none\"").expect("schema default") } fn default_1625() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66025,45 +66027,45 @@ fn default_1627() -> String { fn default_1628() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1629() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_1630() -> String { +fn default_1629() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1630() -> Option { + serde_json::from_str("null").expect("schema default") +} fn default_1631() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1632() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1633() -> Integer { +fn default_1633() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1634() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1634() -> Vec { +fn default_1635() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1635() -> Integer { +fn default_1636() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1636() -> Option { +fn default_1637() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1637() -> Vec { +fn default_1638() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1638() -> std::collections::HashMap { +fn default_1639() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1639() -> Integer { +fn default_1640() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1640() -> f64 { +fn default_1641() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1641() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1642() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -66076,45 +66078,45 @@ fn default_1644() -> Integer { fn default_1645() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1646() -> MemoryHealthStaleness { +fn default_1646() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1647() -> MemoryHealthStaleness { serde_json::from_str("{\"by_age\":{},\"with_validity_end\":0,\"with_validity_end_share\":0.0,\"with_expiry\":0,\"expiring_7d\":0,\"pinned\":0,\"days_since_reinforced_p50\":0,\"days_since_reinforced_p90\":0}").expect("schema default") } -fn default_1647() -> Integer { +fn default_1648() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1648() -> Integer { +fn default_1649() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1649() -> f64 { +fn default_1650() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1650() -> MemoryHealthFootprint { +fn default_1651() -> MemoryHealthFootprint { serde_json::from_str("{\"value_chars\":0,\"value_tokens_est\":0,\"tokens_per_row_est\":0.0}") .expect("schema default") } -fn default_1651() -> String { +fn default_1652() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1652() -> Value { +fn default_1653() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1653() -> String { +fn default_1654() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1654() -> bool { +fn default_1655() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1655() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_1656() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1657() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1658() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1658() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_1659() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66128,24 +66130,24 @@ fn default_1661() -> String { fn default_1662() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1663() -> Option { +fn default_1663() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1664() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1664() -> String { +fn default_1665() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1665() -> Vec { +fn default_1666() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1666() -> Vec { +fn default_1667() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1667() -> Option { +fn default_1668() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1668() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1669() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66155,11 +66157,11 @@ fn default_1670() -> String { fn default_1671() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1672() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1672() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1673() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1673() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_1674() -> Integer { serde_json::from_str("0").expect("schema default") @@ -66170,57 +66172,57 @@ fn default_1675() -> Integer { fn default_1676() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1677() -> MemoryImportResultReason { +fn default_1677() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1678() -> MemoryImportResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1678() -> String { +fn default_1679() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1679() -> MemoryImportResultNote { +fn default_1680() -> MemoryImportResultNote { serde_json::from_str("\"\"").expect("schema default") } -fn default_1680() -> bool { +fn default_1681() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1681() -> String { +fn default_1682() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1682() -> Option { +fn default_1683() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1683() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1684() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_1685() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1686() -> String { +fn default_1686() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1687() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1687() -> Integer { +fn default_1688() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1688() -> Vec { +fn default_1689() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1689() -> Integer { +fn default_1690() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1690() -> Integer { +fn default_1691() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1691() -> Vec { +fn default_1692() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1692() -> Integer { +fn default_1693() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1693() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_1694() -> Vec { serde_json::from_str("[]").expect("schema default") } @@ -66233,241 +66235,241 @@ fn default_1696() -> Vec { fn default_1697() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1698() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1698() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1699() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1700() -> String { +fn default_1700() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1701() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1701() -> Integer { +fn default_1702() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1702() -> String { +fn default_1703() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1703() -> Vec { +fn default_1704() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1704() -> bool { +fn default_1705() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1705() -> Vec { +fn default_1706() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1706() -> Option { +fn default_1707() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1707() -> Option { +fn default_1708() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1708() -> String { +fn default_1709() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1709() -> Integer { +fn default_1710() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1710() -> String { +fn default_1711() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1711() -> Integer { +fn default_1712() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1712() -> Option { +fn default_1713() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1713() -> String { +fn default_1714() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1714() -> String { +fn default_1715() -> String { serde_json::from_str("\"Each request that extracts memories from messages may send extraction instructions; no user, agent or session setting stores them.\"").expect("schema default") } -fn default_1715() -> Vec { +fn default_1716() -> Vec { serde_json::from_str("[\"memory.set_from_messages\",\"extraction_instructions\"]") .expect("schema default") } -fn default_1716() -> Vec { +fn default_1717() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1717() -> bool { +fn default_1718() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1718() -> String { +fn default_1719() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1719() -> String { +fn default_1720() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1720() -> Option { +fn default_1721() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1721() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1722() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1723() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1724() -> MemoryLineageOutputMechanism { +fn default_1724() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1725() -> MemoryLineageOutputMechanism { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_1725() -> Vec { +fn default_1726() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1726() -> String { +fn default_1727() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1727() -> String { +fn default_1728() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1728() -> Option { +fn default_1729() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1729() -> Vec { +fn default_1730() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1730() -> f64 { +fn default_1731() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1731() -> bool { +fn default_1732() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1732() -> bool { +fn default_1733() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1733() -> Integer { +fn default_1734() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1734() -> Integer { +fn default_1735() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1735() -> String { +fn default_1736() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1736() -> bool { +fn default_1737() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1737() -> Integer { +fn default_1738() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1738() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1739() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1740() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1741() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_1742() -> String { +fn default_1741() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1743() -> Option { +fn default_1742() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1744() -> String { +fn default_1743() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1744() -> Option { + serde_json::from_str("null").expect("schema default") +} fn default_1745() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1746() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1747() -> Integer { +fn default_1747() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1748() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1748() -> String { +fn default_1749() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1749() -> Vec { +fn default_1750() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1750() -> bool { +fn default_1751() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1751() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1752() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1753() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1754() -> bool { +fn default_1754() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1755() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1755() -> std::collections::HashMap { +fn default_1756() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1756() -> String { +fn default_1757() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1757() -> String { +fn default_1758() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1758() -> Integer { +fn default_1759() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1759() -> Integer { +fn default_1760() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1760() -> Vec { +fn default_1761() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1761() -> Integer { +fn default_1762() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1762() -> Integer { +fn default_1763() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1763() -> Vec { +fn default_1764() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1764() -> String { +fn default_1765() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1765() -> Integer { +fn default_1766() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1766() -> String { +fn default_1767() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1767() -> Vec { +fn default_1768() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1768() -> Integer { +fn default_1769() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1769() -> Option { +fn default_1770() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1770() -> Vec { +fn default_1771() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1771() -> Integer { +fn default_1772() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1772() -> String { +fn default_1773() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1773() -> String { +fn default_1774() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1774() -> Vec { +fn default_1775() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1775() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1776() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66480,60 +66482,60 @@ fn default_1778() -> String { fn default_1779() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1780() -> Vec { +fn default_1780() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1781() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1781() -> String { +fn default_1782() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1782() -> Integer { +fn default_1783() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1783() -> Integer { +fn default_1784() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1784() -> String { +fn default_1785() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1785() -> Integer { +fn default_1786() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1786() -> Integer { +fn default_1787() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1787() -> MemoryProposalReady { +fn default_1788() -> MemoryProposalReady { serde_json::from_str("\"\"").expect("schema default") } -fn default_1788() -> Vec { +fn default_1789() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1789() -> Vec { +fn default_1790() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1790() -> Integer { +fn default_1791() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1791() -> ProposalPolicyMode { +fn default_1792() -> ProposalPolicyMode { serde_json::from_str("\"manual\"").expect("schema default") } -fn default_1792() -> Integer { +fn default_1793() -> Integer { serde_json::from_str("2").expect("schema default") } -fn default_1793() -> Integer { +fn default_1794() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1794() -> Integer { +fn default_1795() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1795() -> ProposalPolicy { +fn default_1796() -> ProposalPolicy { serde_json::from_str( "{\"mode\":\"manual\",\"min_passes\":2,\"max_fails\":0,\"reject_after_fails\":0}", ) .expect("schema default") } -fn default_1796() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1797() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66549,12 +66551,12 @@ fn default_1800() -> String { fn default_1801() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1802() -> bool { - serde_json::from_str("false").expect("schema default") -} -fn default_1803() -> String { +fn default_1802() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1803() -> bool { + serde_json::from_str("false").expect("schema default") +} fn default_1804() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66579,24 +66581,24 @@ fn default_1810() -> String { fn default_1811() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1812() -> Vec { +fn default_1812() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1813() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1813() -> f64 { +fn default_1814() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1814() -> String { +fn default_1815() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1815() -> String { +fn default_1816() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1816() -> Vec { +fn default_1817() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1817() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1818() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66606,11 +66608,11 @@ fn default_1819() -> String { fn default_1820() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1821() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_1821() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1822() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1822() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_1823() -> Integer { serde_json::from_str("0").expect("schema default") @@ -66618,183 +66620,183 @@ fn default_1823() -> Integer { fn default_1824() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1825() -> bool { +fn default_1825() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1826() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1826() -> String { +fn default_1827() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1827() -> Integer { +fn default_1828() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_1828() -> MemoryRecallOutputOrder { +fn default_1829() -> MemoryRecallOutputOrder { serde_json::from_str("\"recent\"").expect("schema default") } -fn default_1829() -> Vec { +fn default_1830() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1830() -> Integer { +fn default_1831() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1831() -> Value { +fn default_1832() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1832() -> Value { +fn default_1833() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1833() -> String { +fn default_1834() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1834() -> String { +fn default_1835() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1835() -> Option { +fn default_1836() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1836() -> Option { +fn default_1837() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1837() -> bool { +fn default_1838() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1838() -> String { +fn default_1839() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1839() -> String { +fn default_1840() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1840() -> std::collections::HashMap { +fn default_1841() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1841() -> std::collections::HashMap { +fn default_1842() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1842() -> MemoryRecordRowStatus { +fn default_1843() -> MemoryRecordRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1843() -> Option { +fn default_1844() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1844() -> Option { +fn default_1845() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1845() -> bool { +fn default_1846() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1846() -> String { +fn default_1847() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1847() -> MemoryRecordWriteOutputKeySource { +fn default_1848() -> MemoryRecordWriteOutputKeySource { serde_json::from_str("\"anonymous\"").expect("schema default") } -fn default_1848() -> std::collections::HashMap { +fn default_1849() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1849() -> String { +fn default_1850() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1850() -> Integer { +fn default_1851() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1851() -> bool { +fn default_1852() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1852() -> Option { +fn default_1853() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1853() -> Integer { +fn default_1854() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1854() -> Integer { +fn default_1855() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1855() -> Option { +fn default_1856() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1856() -> String { +fn default_1857() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1857() -> Integer { +fn default_1858() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1858() -> Integer { +fn default_1859() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1859() -> bool { +fn default_1860() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1860() -> Vec { +fn default_1861() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1861() -> Option { +fn default_1862() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1862() -> Option { +fn default_1863() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1863() -> bool { +fn default_1864() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1864() -> bool { +fn default_1865() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1865() -> String { +fn default_1866() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1866() -> f64 { +fn default_1867() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1867() -> String { +fn default_1868() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1868() -> String { +fn default_1869() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1869() -> std::collections::HashMap { +fn default_1870() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1870() -> bool { +fn default_1871() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1871() -> Integer { +fn default_1872() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1872() -> String { +fn default_1873() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1873() -> Vec { +fn default_1874() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1874() -> Vec { +fn default_1875() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1875() -> Integer { +fn default_1876() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1876() -> Integer { +fn default_1877() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1877() -> String { +fn default_1878() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1878() -> String { +fn default_1879() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1879() -> Integer { +fn default_1880() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_1880() -> Integer { +fn default_1881() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1881() -> Integer { +fn default_1882() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1882() -> Vec { +fn default_1883() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1883() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1884() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -66804,65 +66806,65 @@ fn default_1885() -> Integer { fn default_1886() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1887() -> Vec { +fn default_1887() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1888() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1888() -> String { +fn default_1889() -> String { serde_json::from_str("\"whole\"").expect("schema default") } -fn default_1889() -> Integer { +fn default_1890() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1890() -> Vec { +fn default_1891() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1891() -> Vec { +fn default_1892() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1892() -> Integer { +fn default_1893() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1893() -> Vec { +fn default_1894() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1894() -> Integer { +fn default_1895() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1895() -> Vec { +fn default_1896() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1896() -> Vec { +fn default_1897() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1897() -> bool { +fn default_1898() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1898() -> String { +fn default_1899() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1899() -> String { +fn default_1900() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1900() -> std::collections::HashMap { +fn default_1901() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1901() -> String { +fn default_1902() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1902() -> bool { +fn default_1903() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1903() -> Vec { +fn default_1904() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1904() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1905() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1906() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1906() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1907() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66870,29 +66872,29 @@ fn default_1907() -> String { fn default_1908() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1909() -> bool { +fn default_1909() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1910() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1910() -> Integer { +fn default_1911() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1911() -> Option { +fn default_1912() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1912() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1913() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1914() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1915() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_1915() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1916() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1916() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1917() -> Integer { serde_json::from_str("0").expect("schema default") @@ -66909,54 +66911,54 @@ fn default_1920() -> Integer { fn default_1921() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1922() -> bool { +fn default_1922() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1923() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1923() -> Vec> { +fn default_1924() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1924() -> Vec { +fn default_1925() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1925() -> Option { +fn default_1926() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1926() -> String { +fn default_1927() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1927() -> Integer { +fn default_1928() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1928() -> Option { +fn default_1929() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1929() -> Option { +fn default_1930() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1930() -> Option { +fn default_1931() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1931() -> Option { +fn default_1932() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1932() -> Vec { +fn default_1933() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1933() -> Integer { +fn default_1934() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1934() -> String { +fn default_1935() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1935() -> String { +fn default_1936() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1936() -> Option { +fn default_1937() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1937() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1938() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66966,21 +66968,21 @@ fn default_1939() -> String { fn default_1940() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1941() -> Option { +fn default_1941() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1942() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1942() -> String { +fn default_1943() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1943() -> String { +fn default_1944() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1944() -> Integer { +fn default_1945() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1945() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1946() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66993,45 +66995,45 @@ fn default_1948() -> String { fn default_1949() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1950() -> Integer { +fn default_1950() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1951() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1951() -> String { +fn default_1952() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1952() -> Vec { +fn default_1953() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1953() -> String { +fn default_1954() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1954() -> Integer { +fn default_1955() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1955() -> String { +fn default_1956() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1956() -> Integer { +fn default_1957() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1957() -> String { +fn default_1958() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1958() -> String { +fn default_1959() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1959() -> Integer { +fn default_1960() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1960() -> String { +fn default_1961() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1961() -> bool { +fn default_1962() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1962() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1963() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67041,105 +67043,105 @@ fn default_1964() -> String { fn default_1965() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1966() -> Option { +fn default_1966() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1967() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1967() -> String { +fn default_1968() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1968() -> Integer { +fn default_1969() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1969() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1970() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1971() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1972() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1972() -> bool { +fn default_1973() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1973() -> Vec { +fn default_1974() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1974() -> std::collections::HashMap { +fn default_1975() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1975() -> String { +fn default_1976() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1976() -> Vec { +fn default_1977() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1977() -> std::collections::HashMap { +fn default_1978() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1978() -> Integer { +fn default_1979() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1979() -> Option { +fn default_1980() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1980() -> String { +fn default_1981() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1981() -> bool { +fn default_1982() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1982() -> Vec { +fn default_1983() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1983() -> Vec { +fn default_1984() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1984() -> std::collections::HashMap { +fn default_1985() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1985() -> Option { +fn default_1986() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1986() -> Vec { +fn default_1987() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1987() -> Integer { +fn default_1988() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1988() -> Integer { +fn default_1989() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1989() -> Vec { +fn default_1990() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1990() -> Option { +fn default_1991() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1991() -> Vec { +fn default_1992() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1992() -> Option { +fn default_1993() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1993() -> Option { +fn default_1994() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1994() -> Vec { +fn default_1995() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1995() -> bool { +fn default_1996() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1996() -> Vec { +fn default_1997() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1997() -> bool { +fn default_1998() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1998() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1999() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -67164,12 +67166,12 @@ fn default_2005() -> Integer { fn default_2006() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2007() -> f64 { - serde_json::from_str("0.0").expect("schema default") -} -fn default_2008() -> Integer { +fn default_2007() -> Integer { serde_json::from_str("0").expect("schema default") } +fn default_2008() -> f64 { + serde_json::from_str("0.0").expect("schema default") +} fn default_2009() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -67179,82 +67181,82 @@ fn default_2010() -> Integer { fn default_2011() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2012() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_2012() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_2013() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2014() -> Vec { +fn default_2014() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_2015() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2015() -> String { +fn default_2016() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2016() -> String { +fn default_2017() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2017() -> Integer { +fn default_2018() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2018() -> Vec> { +fn default_2019() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2019() -> Vec { +fn default_2020() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2020() -> String { +fn default_2021() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2021() -> bool { +fn default_2022() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2022() -> String { +fn default_2023() -> String { serde_json::from_str("\"approval\"").expect("schema default") } -fn default_2023() -> String { +fn default_2024() -> String { serde_json::from_str("\"public\"").expect("schema default") } -fn default_2024() -> BrowseEntryMyStatus { +fn default_2025() -> BrowseEntryMyStatus { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2025() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2026() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_2027() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2028() -> Integer { +fn default_2028() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2029() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2029() -> String { +fn default_2030() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2030() -> Option { +fn default_2031() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2031() -> Option { +fn default_2032() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2032() -> Vec { +fn default_2033() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2033() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_2034() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2035() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2036() -> Option> { +fn default_2036() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2037() -> Option { +fn default_2037() -> Option> { serde_json::from_str("null").expect("schema default") } fn default_2038() -> Option { @@ -67269,40 +67271,40 @@ fn default_2040() -> Option { fn default_2041() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2042() -> Option { +fn default_2042() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2043() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2044() -> Option { +fn default_2044() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2045() -> Option { +fn default_2045() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2046() -> Option { +fn default_2046() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2047() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2048() -> Option { +fn default_2048() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2049() -> Option { +fn default_2049() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2050() -> Option { +fn default_2050() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2051() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2052() -> Option> { +fn default_2052() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2053() -> Option { +fn default_2053() -> Option> { serde_json::from_str("null").expect("schema default") } fn default_2054() -> Option { @@ -67311,22 +67313,22 @@ fn default_2054() -> Option { fn default_2055() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2056() -> Option { +fn default_2056() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2057() -> Option { +fn default_2057() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2058() -> Option>> { +fn default_2058() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2059() -> Option { +fn default_2059() -> Option>> { serde_json::from_str("null").expect("schema default") } -fn default_2060() -> Option { +fn default_2060() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2061() -> Option { +fn default_2061() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2062() -> Option { @@ -67335,11 +67337,11 @@ fn default_2062() -> Option { fn default_2063() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2064() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2064() -> Option { + serde_json::from_str("null").expect("schema default") } -fn default_2065() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2065() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_2066() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -67350,18 +67352,18 @@ fn default_2067() -> String { fn default_2068() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2069() -> Option { +fn default_2069() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2070() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2070() -> bool { +fn default_2071() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2071() -> Integer { +fn default_2072() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2072() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2073() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67371,129 +67373,129 @@ fn default_2074() -> String { fn default_2075() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2076() -> Option { +fn default_2076() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2077() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2077() -> Option { +fn default_2078() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2078() -> String { +fn default_2079() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2079() -> Vec { +fn default_2080() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2080() -> String { +fn default_2081() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2081() -> String { +fn default_2082() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2082() -> Option { +fn default_2083() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2083() -> Vec { +fn default_2084() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2084() -> Option { +fn default_2085() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2085() -> String { +fn default_2086() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2086() -> bool { +fn default_2087() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2087() -> f64 { +fn default_2088() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2088() -> f64 { +fn default_2089() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2089() -> String { +fn default_2090() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2090() -> Option { +fn default_2091() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2091() -> Integer { +fn default_2092() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2092() -> Integer { +fn default_2093() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2093() -> NamespaceEntryVisibility { +fn default_2094() -> NamespaceEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2094() -> String { +fn default_2095() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2095() -> Option { +fn default_2096() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2096() -> Option { +fn default_2097() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2097() -> Vec { +fn default_2098() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2098() -> MineEntryVisibility { +fn default_2099() -> MineEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2099() -> String { +fn default_2100() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2100() -> String { +fn default_2101() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2101() -> String { +fn default_2102() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2102() -> Option { +fn default_2103() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2103() -> bool { +fn default_2104() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2104() -> bool { +fn default_2105() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2105() -> String { +fn default_2106() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2106() -> NamespaceRegisterOutputVisibility { +fn default_2107() -> NamespaceRegisterOutputVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2107() -> bool { +fn default_2108() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2108() -> Integer { +fn default_2109() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2109() -> Integer { +fn default_2110() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2110() -> bool { +fn default_2111() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2111() -> Vec> { +fn default_2112() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2112() -> Option { +fn default_2113() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2113() -> Option { +fn default_2114() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2114() -> Vec { +fn default_2115() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2115() -> Integer { +fn default_2116() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2116() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2117() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67506,23 +67508,23 @@ fn default_2119() -> String { fn default_2120() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2121() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_2122() -> String { +fn default_2121() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_2122() -> Option { + serde_json::from_str("null").expect("schema default") +} fn default_2123() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_2124() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2125() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_2125() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_2126() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_2126() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_2127() -> Option { serde_json::from_str("null").expect("schema default") @@ -67533,33 +67535,33 @@ fn default_2128() -> Option { fn default_2129() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2130() -> String { +fn default_2130() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_2131() -> String { serde_json::from_str("\"{}\"").expect("schema default") } -fn default_2131() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { +fn default_2132() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2132() -> Option { +fn default_2133() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2133() -> Vec { +fn default_2134() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2134() -> String { +fn default_2135() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2135() -> Integer { +fn default_2136() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2136() -> Integer { +fn default_2137() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2137() -> Option { +fn default_2138() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2138() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2139() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67569,191 +67571,191 @@ fn default_2140() -> String { fn default_2141() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2142() -> Option { +fn default_2142() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2143() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2143() -> f64 { +fn default_2144() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2144() -> Option { +fn default_2145() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2145() -> Option { +fn default_2146() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2146() -> Integer { +fn default_2147() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2147() -> Option { +fn default_2148() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2148() -> Option { +fn default_2149() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2149() -> String { +fn default_2150() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2150() -> Option { +fn default_2151() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2151() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2152() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_2153() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2154() -> Option { +fn default_2154() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2155() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2155() -> String { +fn default_2156() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2156() -> Option { +fn default_2157() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2157() -> String { +fn default_2158() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2158() -> String { +fn default_2159() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2159() -> Vec { +fn default_2160() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2160() -> Vec { +fn default_2161() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2161() -> Option { +fn default_2162() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2162() -> Integer { +fn default_2163() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2163() -> String { +fn default_2164() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2164() -> Vec { +fn default_2165() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2165() -> Vec { +fn default_2166() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2166() -> String { +fn default_2167() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2167() -> Option { +fn default_2168() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2168() -> Vec { +fn default_2169() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2169() -> Integer { +fn default_2170() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2170() -> Vec { +fn default_2171() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2171() -> Option { +fn default_2172() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2172() -> Vec { +fn default_2173() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2173() -> Vec { +fn default_2174() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2174() -> Option { +fn default_2175() -> Option { serde_json::from_str("0").expect("schema default") } -fn default_2175() -> TuneProposalEffect { +fn default_2176() -> TuneProposalEffect { serde_json::from_str("\"future\"").expect("schema default") } -fn default_2176() -> TuneApplyVia { +fn default_2177() -> TuneApplyVia { serde_json::from_str("\"op\"").expect("schema default") } -fn default_2177() -> bool { +fn default_2178() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2178() -> Vec { +fn default_2179() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2179() -> Option { +fn default_2180() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2180() -> Option { +fn default_2181() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2181() -> String { +fn default_2182() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2182() -> Vec { +fn default_2183() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2183() -> Vec { +fn default_2184() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2184() -> Option { +fn default_2185() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2185() -> Option { +fn default_2186() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2186() -> Option { +fn default_2187() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2187() -> String { +fn default_2188() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2188() -> Option { +fn default_2189() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2189() -> Option { +fn default_2190() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2190() -> Option { +fn default_2191() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2191() -> Vec { +fn default_2192() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2192() -> bool { +fn default_2193() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2193() -> Option { +fn default_2194() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2194() -> Option { +fn default_2195() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2195() -> Vec { +fn default_2196() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2196() -> String { +fn default_2197() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2197() -> String { +fn default_2198() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2198() -> Vec> { +fn default_2199() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2199() -> std::collections::HashMap { +fn default_2200() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2200() -> Vec { +fn default_2201() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2201() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2202() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2203() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2203() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_2204() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -67761,27 +67763,27 @@ fn default_2204() -> String { fn default_2205() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2206() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_2206() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2207() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2208() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2208() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_2209() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2210() -> bool { +fn default_2210() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2211() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2211() -> Integer { +fn default_2212() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2212() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2213() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67791,104 +67793,104 @@ fn default_2214() -> String { fn default_2215() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2216() -> Vec { +fn default_2216() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2217() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2217() -> String { +fn default_2218() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2218() -> String { +fn default_2219() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2219() -> std::collections::HashMap { +fn default_2220() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2220() -> String { +fn default_2221() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2221() -> Option { +fn default_2222() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2222() -> Option { +fn default_2223() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2223() -> bool { +fn default_2224() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2224() -> String { +fn default_2225() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2225() -> String { +fn default_2226() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2226() -> Vec { +fn default_2227() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2227() -> Integer { +fn default_2228() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2228() -> String { +fn default_2229() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2229() -> String { +fn default_2230() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2230() -> Option { +fn default_2231() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2231() -> bool { +fn default_2232() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2232() -> String { +fn default_2233() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2233() -> bool { +fn default_2234() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2234() -> String { +fn default_2235() -> String { serde_json::from_str("\"inherit\"").expect("schema default") } -fn default_2235() -> Option { +fn default_2236() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2236() -> Option { +fn default_2237() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2237() -> bool { +fn default_2238() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2238() -> Vec { +fn default_2239() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2239() -> Integer { +fn default_2240() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2240() -> ProcedureEvolveOutputGate { +fn default_2241() -> ProcedureEvolveOutputGate { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2241() -> String { +fn default_2242() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2242() -> f64 { +fn default_2243() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2243() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") -} fn default_2244() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2245() -> std::collections::HashMap { +fn default_2245() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } fn default_2246() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2247() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2247() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") } -fn default_2248() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_2248() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2249() -> Vec { serde_json::from_str("[]").expect("schema default") @@ -67896,138 +67898,138 @@ fn default_2249() -> Vec { fn default_2250() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2251() -> std::collections::HashMap { +fn default_2251() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_2252() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2252() -> Integer { +fn default_2253() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2253() -> bool { +fn default_2254() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2254() -> std::collections::HashMap { +fn default_2255() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2255() -> Vec { +fn default_2256() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2256() -> std::collections::HashMap { +fn default_2257() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2257() -> String { +fn default_2258() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2258() -> ProcedureLocateOutputStatus { +fn default_2259() -> ProcedureLocateOutputStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2259() -> Option> { +fn default_2260() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2260() -> Vec>> { +fn default_2261() -> Vec>> { serde_json::from_str("[]").expect("schema default") } -fn default_2261() -> Vec { +fn default_2262() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2262() -> Vec { +fn default_2263() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2263() -> std::collections::HashMap { +fn default_2264() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2264() -> bool { +fn default_2265() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2265() -> Vec { +fn default_2266() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2266() -> Vec> { +fn default_2267() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2267() -> String { +fn default_2268() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2268() -> std::collections::HashMap { +fn default_2269() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2269() -> std::collections::HashMap { +fn default_2270() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2270() -> Vec { +fn default_2271() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2271() -> std::collections::HashMap { +fn default_2272() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2272() -> Option> { +fn default_2273() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2273() -> bool { +fn default_2274() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2274() -> std::collections::HashMap { +fn default_2275() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2275() -> ProcedureMatchStatus { +fn default_2276() -> ProcedureMatchStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2276() -> Option> { +fn default_2277() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2277() -> Vec { +fn default_2278() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2278() -> Integer { +fn default_2279() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2279() -> Vec> { +fn default_2280() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2280() -> f64 { - serde_json::from_str("0.0").expect("schema default") -} fn default_2281() -> f64 { serde_json::from_str("0.0").expect("schema default") } fn default_2282() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2283() -> Option { +fn default_2283() -> f64 { + serde_json::from_str("0.0").expect("schema default") +} +fn default_2284() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2284() -> std::collections::HashMap { +fn default_2285() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2285() -> std::collections::HashMap> { +fn default_2286() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2286() -> String { +fn default_2287() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2287() -> Integer { +fn default_2288() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2288() -> String { +fn default_2289() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2289() -> f64 { +fn default_2290() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2290() -> Vec { +fn default_2291() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2291() -> ProcedureReviseOutputOutcome { +fn default_2292() -> ProcedureReviseOutputOutcome { serde_json::from_str("\"opened\"").expect("schema default") } -fn default_2292() -> Vec { +fn default_2293() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2293() -> Vec { +fn default_2294() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2294() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2295() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -68037,54 +68039,54 @@ fn default_2296() -> String { fn default_2297() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2298() -> Option { +fn default_2298() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2299() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2299() -> Integer { +fn default_2300() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2300() -> Vec { +fn default_2301() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2301() -> std::collections::HashMap { +fn default_2302() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2302() -> Option { +fn default_2303() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2303() -> String { +fn default_2304() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2304() -> Integer { +fn default_2305() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2305() -> String { +fn default_2306() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2306() -> String { +fn default_2307() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2307() -> std::collections::HashMap { +fn default_2308() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2308() -> String { +fn default_2309() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2309() -> String { +fn default_2310() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2310() -> Option { +fn default_2311() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2311() -> RunBeginOutputStatus { +fn default_2312() -> RunBeginOutputStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2312() -> String { +fn default_2313() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2313() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2314() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -68094,47 +68096,47 @@ fn default_2315() -> Integer { fn default_2316() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2317() -> Vec { +fn default_2317() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2318() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2318() -> Integer { +fn default_2319() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2319() -> Integer { +fn default_2320() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2320() -> Integer { +fn default_2321() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2321() -> String { +fn default_2322() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2322() -> String { +fn default_2323() -> String { serde_json::from_str("\"keep\"").expect("schema default") } -fn default_2323() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2324() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_2325() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2326() -> Option { +fn default_2326() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2327() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2327() -> Integer { +fn default_2328() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2328() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_2329() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2330() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2330() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_2331() -> Integer { serde_json::from_str("0").expect("schema default") @@ -68142,42 +68144,42 @@ fn default_2331() -> Integer { fn default_2332() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2333() -> f64 { +fn default_2333() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2334() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2334() -> Integer { +fn default_2335() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2335() -> Vec { +fn default_2336() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2336() -> Integer { +fn default_2337() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2337() -> Vec { +fn default_2338() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2338() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2339() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_2340() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2341() -> Vec { +fn default_2341() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2342() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2342() -> Option { +fn default_2343() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2343() -> String { +fn default_2344() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2344() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2345() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -68187,33 +68189,33 @@ fn default_2346() -> Integer { fn default_2347() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2348() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_2348() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_2349() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2350() -> Option> { +fn default_2350() -> bool { + serde_json::from_str("false").expect("schema default") +} +fn default_2351() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2351() -> LiveSearchResultsLive { +fn default_2352() -> LiveSearchResultsLive { serde_json::from_str("true").expect("schema default") } -fn default_2352() -> String { +fn default_2353() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2353() -> LiveSearchHitLive { +fn default_2354() -> LiveSearchHitLive { serde_json::from_str("true").expect("schema default") } -fn default_2354() -> Vec { +fn default_2355() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2355() -> Option { +fn default_2356() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2356() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") -} fn default_2357() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } @@ -68223,24 +68225,24 @@ fn default_2358() -> std::collections::HashMap { fn default_2359() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2360() -> Option> { +fn default_2360() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") +} +fn default_2361() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2361() -> Vec { +fn default_2362() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2362() -> Integer { +fn default_2363() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2363() -> String { +fn default_2364() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2364() -> Integer { +fn default_2365() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2365() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2366() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -68262,60 +68264,60 @@ fn default_2371() -> String { fn default_2372() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2373() -> Vec { +fn default_2373() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2374() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2374() -> String { +fn default_2375() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2375() -> String { +fn default_2376() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2376() -> Vec { +fn default_2377() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2377() -> String { +fn default_2378() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2378() -> String { +fn default_2379() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2379() -> Vec { +fn default_2380() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2380() -> Vec { +fn default_2381() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2381() -> Vec { +fn default_2382() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2382() -> String { +fn default_2383() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2383() -> String { +fn default_2384() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2384() -> Vec { +fn default_2385() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2385() -> Vec { +fn default_2386() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2386() -> Vec { +fn default_2387() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2387() -> String { +fn default_2388() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2388() -> String { +fn default_2389() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2389() -> Option { +fn default_2390() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2390() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2391() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -68331,15 +68333,15 @@ fn default_2394() -> String { fn default_2395() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2396() -> Vec { +fn default_2396() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2397() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2397() -> Option { +fn default_2398() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2398() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2399() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -68352,11 +68354,11 @@ fn default_2401() -> Integer { fn default_2402() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2403() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_2403() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_2404() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2404() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_2405() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -68376,21 +68378,21 @@ fn default_2409() -> String { fn default_2410() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2411() -> Option { +fn default_2411() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2412() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2412() -> Integer { +fn default_2413() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2413() -> Integer { +fn default_2414() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2414() -> Vec { +fn default_2415() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2415() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2416() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -68400,8 +68402,8 @@ fn default_2417() -> String { fn default_2418() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2419() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2419() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2420() -> Integer { serde_json::from_str("0").expect("schema default") @@ -68415,32 +68417,32 @@ fn default_2422() -> Integer { fn default_2423() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2424() -> f64 { - serde_json::from_str("0.0").expect("schema default") -} -fn default_2425() -> Integer { +fn default_2424() -> Integer { serde_json::from_str("0").expect("schema default") } +fn default_2425() -> f64 { + serde_json::from_str("0.0").expect("schema default") +} fn default_2426() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_2427() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2428() -> String { +fn default_2428() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2429() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2429() -> SessionBriefStats { +fn default_2430() -> SessionBriefStats { serde_json::from_str("{\"events_in\":0,\"windows\":0,\"events_total\":0,\"source_chars\":0,\"brief_chars\":0,\"compression_ratio\":0.0,\"dropped_ungrounded\":0,\"tokens_in\":0,\"tokens_out\":0,\"llm_model\":\"\"}").expect("schema default") } -fn default_2430() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2431() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2432() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_2432() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2433() -> Option { serde_json::from_str("null").expect("schema default") @@ -68448,57 +68450,57 @@ fn default_2433() -> Option { fn default_2434() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2435() -> Integer { +fn default_2435() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_2436() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2436() -> std::collections::HashMap { +fn default_2437() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2437() -> String { +fn default_2438() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2438() -> String { +fn default_2439() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2439() -> Option { +fn default_2440() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2440() -> String { +fn default_2441() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2441() -> Integer { +fn default_2442() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2442() -> Integer { +fn default_2443() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2443() -> Option { +fn default_2444() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2444() -> std::collections::HashMap { +fn default_2445() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2445() -> String { +fn default_2446() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2446() -> Integer { +fn default_2447() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2447() -> String { +fn default_2448() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2448() -> Option { +fn default_2449() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2449() -> String { +fn default_2450() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2450() -> Option { +fn default_2451() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2451() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2452() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -68508,327 +68510,327 @@ fn default_2453() -> String { fn default_2454() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2455() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2455() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2456() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2457() -> String { +fn default_2457() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2458() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2458() -> std::collections::HashMap { +fn default_2459() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2459() -> String { +fn default_2460() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2460() -> String { +fn default_2461() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2461() -> bool { +fn default_2462() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2462() -> String { +fn default_2463() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2463() -> std::collections::HashMap { +fn default_2464() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2464() -> Vec> { +fn default_2465() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2465() -> Vec { +fn default_2466() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2466() -> Vec { +fn default_2467() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2467() -> bool { +fn default_2468() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2468() -> String { +fn default_2469() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_2469() -> String { +fn default_2470() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2470() -> Vec { +fn default_2471() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2471() -> bool { +fn default_2472() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2472() -> String { +fn default_2473() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2473() -> bool { +fn default_2474() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2474() -> Vec { +fn default_2475() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2475() -> std::collections::HashMap { +fn default_2476() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2476() -> Vec> { +fn default_2477() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2477() -> bool { +fn default_2478() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2478() -> bool { +fn default_2479() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2479() -> Vec> { +fn default_2480() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2480() -> std::collections::HashMap { +fn default_2481() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2481() -> String { +fn default_2482() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2482() -> Vec> { +fn default_2483() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2483() -> bool { +fn default_2484() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2484() -> String { +fn default_2485() -> String { serde_json::from_str("\"calibrated\"").expect("schema default") } -fn default_2485() -> std::collections::HashMap { +fn default_2486() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2486() -> std::collections::HashMap { +fn default_2487() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2487() -> String { +fn default_2488() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2488() -> std::collections::HashMap { +fn default_2489() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2489() -> std::collections::HashMap { +fn default_2490() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2490() -> std::collections::HashMap { +fn default_2491() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2491() -> String { +fn default_2492() -> String { serde_json::from_str("\"ok\"").expect("schema default") } -fn default_2492() -> String { +fn default_2493() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2493() -> String { +fn default_2494() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2494() -> bool { +fn default_2495() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2495() -> Integer { +fn default_2496() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2496() -> String { +fn default_2497() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2497() -> String { +fn default_2498() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2498() -> Vec { +fn default_2499() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2499() -> bool { +fn default_2500() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2500() -> Vec { +fn default_2501() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2501() -> std::collections::HashMap> { +fn default_2502() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2502() -> Vec> { +fn default_2503() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2503() -> Vec> { +fn default_2504() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2504() -> String { +fn default_2505() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2505() -> Vec> { +fn default_2506() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2506() -> std::collections::HashMap { +fn default_2507() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2507() -> String { +fn default_2508() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2508() -> Vec> { +fn default_2509() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2509() -> bool { +fn default_2510() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2510() -> Integer { +fn default_2511() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2511() -> Vec> { +fn default_2512() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2512() -> String { +fn default_2513() -> String { serde_json::from_str("\"no_flaky_signal\"").expect("schema default") } -fn default_2513() -> bool { +fn default_2514() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2514() -> Option> { +fn default_2515() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2515() -> Vec { +fn default_2516() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2516() -> bool { +fn default_2517() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2517() -> std::collections::HashMap { +fn default_2518() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2518() -> String { +fn default_2519() -> String { serde_json::from_str("\"not_computed\"").expect("schema default") } -fn default_2519() -> Vec> { +fn default_2520() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2520() -> String { +fn default_2521() -> String { serde_json::from_str("\"candidate\"").expect("schema default") } -fn default_2521() -> std::collections::HashMap { +fn default_2522() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2522() -> String { +fn default_2523() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2523() -> bool { +fn default_2524() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2524() -> Integer { +fn default_2525() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2525() -> std::collections::HashMap { +fn default_2526() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2526() -> bool { +fn default_2527() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2527() -> Vec> { +fn default_2528() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2528() -> std::collections::HashMap { +fn default_2529() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2529() -> std::collections::HashMap { +fn default_2530() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2530() -> String { +fn default_2531() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_2531() -> bool { +fn default_2532() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2532() -> Vec { +fn default_2533() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2533() -> Vec> { +fn default_2534() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2534() -> std::collections::HashMap { +fn default_2535() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2535() -> Vec { +fn default_2536() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2536() -> String { +fn default_2537() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2537() -> bool { +fn default_2538() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2538() -> bool { +fn default_2539() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2539() -> std::collections::HashMap { +fn default_2540() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2540() -> String { +fn default_2541() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2541() -> bool { +fn default_2542() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2542() -> std::collections::HashMap { +fn default_2543() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2543() -> std::collections::HashMap { +fn default_2544() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2544() -> Vec> { +fn default_2545() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2545() -> Vec { +fn default_2546() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2546() -> std::collections::HashMap { +fn default_2547() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2547() -> Vec> { +fn default_2548() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2548() -> bool { +fn default_2549() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2549() -> bool { +fn default_2550() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2550() -> Vec { +fn default_2551() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2551() -> std::collections::HashMap { +fn default_2552() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2552() -> String { +fn default_2553() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2553() -> std::collections::HashMap { +fn default_2554() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2554() -> bool { +fn default_2555() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2555() -> bool { +fn default_2556() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2556() -> String { +fn default_2557() -> String { serde_json::from_str("\"no_signal\"").expect("schema default") } -fn default_2557() -> Vec { +fn default_2558() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2558() -> f64 { +fn default_2559() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2559() -> Integer { +fn default_2560() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2560() -> String { +fn default_2561() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2561() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") -} fn default_2562() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } @@ -68838,18 +68840,18 @@ fn default_2563() -> std::collections::HashMap { fn default_2564() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2565() -> String { +fn default_2565() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") +} +fn default_2566() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2566() -> std::collections::HashMap { +fn default_2567() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2567() -> bool { +fn default_2568() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2568() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") -} fn default_2569() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } @@ -68859,54 +68861,57 @@ fn default_2570() -> std::collections::HashMap { fn default_2571() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2572() -> String { +fn default_2572() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") +} +fn default_2573() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2573() -> Vec> { +fn default_2574() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2574() -> Integer { +fn default_2575() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2575() -> String { +fn default_2576() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2576() -> bool { +fn default_2577() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2577() -> String { +fn default_2578() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2578() -> Vec { +fn default_2579() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2579() -> bool { +fn default_2580() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2580() -> Vec { +fn default_2581() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2581() -> f64 { +fn default_2582() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2582() -> String { +fn default_2583() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2583() -> Integer { +fn default_2584() -> Integer { serde_json::from_str("4096").expect("schema default") } -fn default_2584() -> Integer { +fn default_2585() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2585() -> Option { +fn default_2586() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2586() -> f64 { +fn default_2587() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2587() -> Option { +fn default_2588() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2588() -> Vec { +fn default_2589() -> Vec { serde_json::from_str("[]").expect("schema default") } diff --git a/sdk/rust/tests/registry_contracts.rs b/sdk/rust/tests/registry_contracts.rs index 27040e519f1..9d6a4145e11 100644 --- a/sdk/rust/tests/registry_contracts.rs +++ b/sdk/rust/tests/registry_contracts.rs @@ -11265,6 +11265,11 @@ fn code_index_status() { serde_json::from_str::("[]").unwrap(), "code.index_status:compiler_candidates" ); + assert_eq!( + encoded["compiler_tier_rules"], + serde_json::from_str::("{}").unwrap(), + "code.index_status:compiler_tier_rules" + ); assert_eq!( encoded["quality_warnings"], serde_json::from_str::("[]").unwrap(), diff --git a/sdk/typescript/src/generated/ops.ts b/sdk/typescript/src/generated/ops.ts index a4f68c4423e..5f3dcf7cabf 100644 --- a/sdk/typescript/src/generated/ops.ts +++ b/sdk/typescript/src/generated/ops.ts @@ -1234,6 +1234,7 @@ export interface CodeIndexStatusOutput { provider?: string; profile?: string; compiler_candidates?: string[]; + compiler_tier_rules?: Record; quality_warnings?: string[]; git_head?: string; scip_commit?: string; diff --git a/server/code/api/models_status.py b/server/code/api/models_status.py index 9f079c0b3d4..809bc50f734 100644 --- a/server/code/api/models_status.py +++ b/server/code/api/models_status.py @@ -146,6 +146,9 @@ class CodeIndexStatusOutput(BaseModel): # Compiler tiers inferred from the indexed tree, even before a compiler # worker has produced its first watermark. compiler_candidates: list[str] = Field(default_factory=list) + # Why each tier runs, by producer: `scip_producer`, `scip_extra_producers`, `tree` (a + # build file in the tree) or `scip_excluded_producers` (the entry drops it, so it is off). + compiler_tier_rules: dict[str, str] = Field(default_factory=dict) # Actionable readiness gaps. Empty means the indexed fast/vector tiers are healthy; # compiler candidates remain optional precision upgrades. quality_warnings: list[str] = Field(default_factory=list) diff --git a/server/code/app/index/producer_inference.py b/server/code/app/index/producer_inference.py index d55074c4146..24074c8f968 100644 --- a/server/code/app/index/producer_inference.py +++ b/server/code/app/index/producer_inference.py @@ -31,6 +31,8 @@ "python": ("pyproject.toml", "setup.py", "requirements.txt"), } PRODUCERS: tuple[str, ...] = tuple(MARKERS) +# `tier_rules`' value for a tier the tree calls for and the entry drops +EXCLUDED = "scip_excluded_producers" ALL_MARKERS: tuple[str, ...] = tuple(m for ms in MARKERS.values() for m in ms) @@ -60,6 +62,16 @@ def selected_by(cfg: RepoConfig, producer: str, tree: Iterable[str]) -> str: return "tree" if producer in set(tree) else "" +def tier_rules(cfg: RepoConfig, tree: Iterable[str]) -> dict[str, str]: + """The rule behind each tier the entry names or its tree calls for, as + `code.index_status` reports it: `selected_by`, or `EXCLUDED` for a tier the tree calls + for and the entry drops, which does not run.""" + called_for = list(tree) + named = (cfg.scip_producer, *cfg.scip_extra_producers) + producers = dict.fromkeys(p for p in (*named, *called_for) if p) + return {p: selected_by(cfg, p, called_for) or EXCLUDED for p in producers} + + def runnable_producers(cfg: RepoConfig) -> tuple[str, ...]: """Every tier the entry may run: the ones it names, then each other tier it does not exclude, since its tree can come to call for any of them.""" @@ -97,11 +109,13 @@ async def worker_owns( __all__ = [ "ALL_MARKERS", + "EXCLUDED", "MARKERS", "PRODUCERS", "infer_producers", "runnable_producers", "selected_by", + "tier_rules", "tree_producers", "worker_owns", ] diff --git a/server/code/app/index_status.py b/server/code/app/index_status.py index 2777b3969c6..0ceaa8f2abd 100644 --- a/server/code/app/index_status.py +++ b/server/code/app/index_status.py @@ -383,7 +383,7 @@ def detail(key: str) -> str: logger.debug("code status: worker snapshot unavailable: %s", e) coverage = coverage_fields(counts) - candidates, warnings = await _index_quality( + candidates, rules, warnings = await _index_quality( repo, cfg, state, git_head=git_head, fetch_overdue=fetch_overdue ) @@ -395,6 +395,7 @@ def detail(key: str) -> str: provider=cfg.provider, profile=cfg.profile, compiler_candidates=candidates, + compiler_tier_rules=rules, quality_warnings=warnings + await _calibration_warnings(org, ns), git_head=git_head, scip_commit=scip_commit, @@ -453,8 +454,8 @@ async def _index_quality( *, git_head: str, fetch_overdue: bool, -) -> tuple[list[str], list[str]]: - from server.code.app.index.producer_inference import tree_producers +) -> tuple[list[str], dict[str, str], list[str]]: + from server.code.app.index.producer_inference import EXCLUDED, tier_rules, tree_producers from server.code.domain.index.compiler_tiers import TIERS try: @@ -471,12 +472,13 @@ def value(key: str) -> str: warnings.append("Fast index has not completed its first pass.") if fetch_overdue: warnings.append("The repository mirror is overdue for a fetch.") + rules = tier_rules(cfg, candidates) for producer in candidates: spec = next((tier for tier in TIERS if tier.producer == producer), None) - if spec and not value(spec.watermark_key): + if spec and rules[producer] != EXCLUDED and not value(spec.watermark_key): names = ", ".join(spec.workers) warnings.append(f"{spec.tool} is available for this tree but has not run ({names}).") - return candidates, warnings + return candidates, rules, warnings def published_clone_head(state: IndexState, branch: str) -> str: diff --git a/tests/unit/test_code_repo_indexing_knobs.py b/tests/unit/test_code_repo_indexing_knobs.py index 16160012d25..91c6f0904c7 100644 --- a/tests/unit/test_code_repo_indexing_knobs.py +++ b/tests/unit/test_code_repo_indexing_knobs.py @@ -49,6 +49,24 @@ def test_a_named_tier_runs_and_a_detected_one_runs_unless_excluded() -> None: assert pi.selected_by(_Entry(), "clang", []) == "" +def test_the_status_names_the_rule_behind_each_tier() -> None: + cfg = _Entry( + scip_producer="python", + scip_extra_producers=("typescript",), + scip_excluded_producers=("clang",), + ) + assert pi.tier_rules(cfg, ["go", "clang", "typescript", "python"]) == { + "python": "scip_producer", + "typescript": "scip_extra_producers", + "go": "tree", + "clang": "scip_excluded_producers", + } + assert pi.tier_rules(cfg, []) == { + "python": "scip_producer", + "typescript": "scip_extra_producers", + } + + @pytest.mark.asyncio async def test_tree_producers_reads_root_markers_then_a_go_mod_below() -> None: repo = AsyncMock() diff --git a/tests/unit/test_code_status_ops.py b/tests/unit/test_code_status_ops.py index abcce876877..e2a557d594c 100644 --- a/tests/unit/test_code_status_ops.py +++ b/tests/unit/test_code_status_ops.py @@ -195,6 +195,46 @@ async def test_index_status_reports_lag_and_refresh_breadcrumb() -> None: assert out.path_prefixes == [""] +@pytest.mark.asyncio +async def test_index_status_names_the_rule_behind_each_compiler_tier( + monkeypatch: pytest.MonkeyPatch, +) -> None: + import json + + from server.code.api.models_status import CodeIndexStatusInput + + class MixedTree(_FakeRepo): + async def live_paths_present(self, org: str, ns: str, paths: list[str]) -> set[str]: + return {"package.json", "pyproject.toml"} + + async def live_paths_named(self, org: str, ns: str, name: str, *, limit: int) -> list[str]: + return ["tools/go.mod"] + + entry = { + "namespace": "code-clickhouse", + "scip_producer": "clang", + "scip_extra_producers": ["typescript"], + "scip_excluded_producers": ["python"], + } + monkeypatch.setattr(index_status, "CodeRepo", MixedTree) + monkeypatch.setattr(settings, "code_repos_json", json.dumps([entry])) + + out = await index_status.handle_code_index_status(CodeIndexStatusInput()) + + assert out.compiler_candidates == ["go", "typescript", "python"] + assert out.compiler_tier_rules == { + "clang": "scip_producer", + "typescript": "scip_extra_producers", + "go": "tree", + "python": "scip_excluded_producers", + } + # the excluded tier is no readiness gap: only the two that run and have not yet + assert [w for w in out.quality_warnings if w.startswith("scip-")] == [ + "scip-go is available for this tree but has not run (code_scip_go_delta).", + "scip-typescript is available for this tree but has not run (code_scip_ts_delta).", + ] + + @pytest.mark.asyncio async def test_index_status_uses_repo_entry_branch_not_scalar() -> None: from server.code.api.models_status import CodeIndexStatusInput From 6daaf55d0ced243e7f1099d396ee03ac990dfcf9 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 11:42:36 +0530 Subject: [PATCH 03/24] The compiler tier docs say how a tree and an entry pick the tiers Signed-off-by: Vanshaj Poonia --- docs/features/code-index/repositories.md | 6 +++-- docs/getting-started/quickstart.md | 3 ++- docs/operations/code-index-operations.md | 31 ++++++++++++++++-------- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/docs/features/code-index/repositories.md b/docs/features/code-index/repositories.md index f29eabd8e9d..a142585225f 100644 --- a/docs/features/code-index/repositories.md +++ b/docs/features/code-index/repositories.md @@ -192,8 +192,10 @@ profile identifies the ClickHouse-only SQL registration, error-code and stateles conventions; those assumptions are not inferred merely because a project contains C++ or SQL. -`compiler_candidates` is inferred from build manifests. A candidate without a watermark -appears in `quality_warnings` with the workers to enable: +`compiler_candidates` is inferred from build manifests, and `compiler_tier_rules` names +the rule that runs each tier: `scip_producer`, `scip_extra_producers`, `tree`, or +`scip_excluded_producers` for a tier the entry drops. A candidate without a watermark +that the entry does not exclude appears in `quality_warnings` with the workers to enable: | Candidate | Preflight in the worker environment | Worker | | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index 045eebc4a21..0befdb9c87d 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -572,7 +572,8 @@ LOOM_CODE_REPOS_JSON=[{"org":"dev","namespace":"code-myrepo","repo":"acme/myrepo - Loom picks the compiler-tier indexers from the repository's build files (`go.mod`, `package.json`, `pyproject.toml`, a root `CMakeLists.txt`, …); `scip_producer` names - one instead ([Compiler tier](../operations/code-index-operations.md#compiler-tier)). + the primary one and `scip_excluded_producers` drops one + ([Compiler tier](../operations/code-index-operations.md#compiler-tier)). C/C++ also needs a configured build tree, so without one a C/C++ repository gets only the parser tier. - For a private repository, add a GitHub token (`LOOM_CODE_GITHUB_TOKEN` in `.env`, or diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 4c8952bec81..09302af78d9 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -135,8 +135,9 @@ LOOM_CODE_REPOS_JSON='[ | `embed_reuse_from` | a namespace whose embeddings are reused when the chunk text is identical (a release branch of the same repository) | | `public` | the repository is public on its host: anyone in the org can join its index as a reader at once | | `classification` | `restricted` for a private repository: a maintainer approves each reader, and it is never org-readable | -| `scip_producer`, `scip_checkout_dir` | the compiler-tier indexer (`clang`, `typescript`, `python`, `go`; unset, the tree's build files pick) and its working tree | +| `scip_producer`, `scip_checkout_dir` | the primary compiler tier (`clang`, `typescript`, `python`, `go`; unset, the tree's build files pick) and its working tree | | `scip_extra_producers` | further compiler-tier producers over the same tree (a Python repository with a TypeScript frontend), each in its own checkout | +| `scip_excluded_producers` | compiler-tier producers never run although the tree has their build file (a `pyproject.toml` that only serves test tooling) | | `git_extra_branches` | globs of other remote branches the shared mirror should carry | | `github_token` | per-entry override of `LOOM_CODE_GITHUB_TOKEN` | | `forge` | `forgejo` for a Forgejo host: its pull requests are read from the host's API | @@ -480,15 +481,25 @@ index does. | Python | `python` | `LOOM_CODE_SCIP_PY_DELTA_ENABLED` | scip-python (in the image) | | Go | `go` | `LOOM_CODE_SCIP_GO_DELTA_ENABLED` | Go and scip-go (in the image) | -An entry that names no `scip_producer` gets every tier whose build file its tree -carries: `go.mod` (at any depth) for Go; `tsconfig.json`, `jsconfig.json` or -`package.json` at the root for TypeScript; a root `CMakeLists.txt` for C/C++; -`pyproject.toml`, `setup.py` or `requirements.txt` at the root for Python. -`code.index_status` lists them as `compiler_candidates`. Name the producer where a build -file is incidental, such as a C++ repository whose `pyproject.toml` only serves its test -tooling; `scip_extra_producers` adds tiers beside a named one. Each tier works in its own -tree: the named producer (C/C++ when the entry names none) in `scip_checkout_dir`, every -other one in `.`. +An entry runs the tiers it names and every tier whose build file its tree carries: +`go.mod` (at any depth) for Go; `tsconfig.json`, `jsconfig.json` or `package.json` at +the root for TypeScript; a root `CMakeLists.txt` for C/C++; `pyproject.toml`, +`setup.py` or `requirements.txt` at the root for Python. `scip_producer` names the +primary tier and its checkout, and `scip_extra_producers` adds a tier the tree has no +build file for, such as TypeScript with no root `package.json`. Where a build file is +incidental, such as a C++ repository whose `pyproject.toml` only serves its test +tooling, list that tier in `scip_excluded_producers`. A tier the entry names runs even +when it is also excluded. + +`code.index_status` lists the tiers the tree calls for as `compiler_candidates` and +names the rule behind each tier in `compiler_tier_rules`: `scip_producer`, +`scip_extra_producers`, `tree` (the build file is in the tree and the entry does not +exclude it) or `scip_excluded_producers` (the tier does not run). When a tree gains a +build file, the tier starts on the next pass with no watermark and indexes its modules +in full, as a first run does. That costs build time and memory, about 4 GB for each Go +module job (`LOOM_CODE_SCIP_GO_JOBS`). Each tier works in its own tree: the named +producer (C/C++ when the entry names none) in `scip_checkout_dir`, every other one in +`.`. All the workers are enabled by default, and the Docker image carries every indexer: scip-python, scip-typescript, scip-go, and for C/C++ clang 21, lld, CMake, ninja and From 4be374f0b9ae712bcf4e5fc12e954fb75f07bccf Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 13:47:01 +0530 Subject: [PATCH 04/24] A tier the entry excludes holds back no commit coverage Signed-off-by: Vanshaj Poonia --- docs/operations/code-index-operations.md | 4 +- docs/reference/operations/code.md | 2 +- server/code/api/models_status.py | 3 +- server/code/app/index/producer_inference.py | 7 ++++ server/code/app/index_status.py | 7 ++-- server/code/app/watches.py | 3 +- server/code/domain/index/compiler_tiers.py | 16 +++++--- tests/unit/test_code_compiler_tiers.py | 7 ++++ tests/unit/test_code_coverage_watch.py | 38 +++++++++++++++++- tests/unit/test_code_status_ops.py | 44 +++++++++++++++++++++ 10 files changed, 116 insertions(+), 15 deletions(-) diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 09302af78d9..7858c9faa9d 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -494,7 +494,9 @@ when it is also excluded. `code.index_status` lists the tiers the tree calls for as `compiler_candidates` and names the rule behind each tier in `compiler_tier_rules`: `scip_producer`, `scip_extra_producers`, `tree` (the build file is in the tree and the entry does not -exclude it) or `scip_excluded_producers` (the tier does not run). When a tree gains a +exclude it) or `scip_excluded_producers` (the tier does not run). A tier excluded after +it ran keeps its watermark. `compiler_tiers` shows no card for it, and neither +`commit_coverage` nor a coverage watch waits for it. When a tree gains a build file, the tier starts on the next pass with no watermark and indexes its modules in full, as a first run does. That costs build time and memory, about 4 GB for each Go module job (`LOOM_CODE_SCIP_GO_JOBS`). Each tier works in its own tree: the named diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index 6f09c07a19a..32479ed4fe2 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -964,7 +964,7 @@ Health of the code index: indexed head commit, compiler-tier commit, row counts, | `scip_commit` | `str` | `scip_commit` / `scip_lag` are the ENTRY'S compiler tier — the one `scip_producer` names — not the C++ key by name; a TypeScript repository reports its scip-typescript watermark here. | | `scip_commit_py` | `str` | The scip-python watermark by name, whatever the entry's primary tier; '' when unset. | | `scip_producer` | `str` | The primary compiler tier's producer (clang \| typescript \| go \| python); '' when no tier has a watermark. | -| `compiler_tiers` | `list[CodeCompilerTier]` | Every compiler tier with a watermark or configured for the entry, the primary first. | +| `compiler_tiers` | `list[CodeCompilerTier]` | Every compiler tier with a watermark or configured for the entry but one it excludes, the primary first. | | `tier_health` | `list[CodeTierHealth]` | The last recorded outcome of each tier that has one (fetch, ingest, the compiler tiers and the weekly C++ full run): a failing tier names its error kind, since when, and the fix. | | `pr_cursor` | `str` | The PR-history poller's cursor: the newest `updated_at` (ISO-8601) of the merged PRs it fetched; '' before its first pass. | | `commit_coverage` | `CodeCommitCoverage \| None` | Set when the request named a `commit`. | diff --git a/server/code/api/models_status.py b/server/code/api/models_status.py index 809bc50f734..353fa519f74 100644 --- a/server/code/api/models_status.py +++ b/server/code/api/models_status.py @@ -164,7 +164,8 @@ class CodeIndexStatusOutput(BaseModel): # The primary compiler tier's producer (clang | typescript | go | python); '' when no tier has # a watermark. scip_producer: str = "" - # Every compiler tier with a watermark or configured for the entry, the primary first. + # Every compiler tier with a watermark or configured for the entry but one it excludes, + # the primary first. compiler_tiers: list[CodeCompilerTier] = Field(default_factory=list) # The last recorded outcome of each tier that has one (fetch, ingest, the compiler # tiers and the weekly C++ full run): a failing tier names its error kind, since diff --git a/server/code/app/index/producer_inference.py b/server/code/app/index/producer_inference.py index 24074c8f968..5663da24eb7 100644 --- a/server/code/app/index/producer_inference.py +++ b/server/code/app/index/producer_inference.py @@ -80,6 +80,12 @@ def runnable_producers(cfg: RepoConfig) -> tuple[str, ...]: return (*named, *rest) +def dropped(cfg: RepoConfig) -> tuple[str, ...]: + """The tiers the entry excludes and does not name. They never run, so a watermark one + left before the exclusion is no tier of the entry's and holds no commit back.""" + return tuple(p for p in cfg.scip_excluded_producers if not selected_by(cfg, p, ())) + + async def tree_producers(repo: object, org: str, ns: str) -> list[str]: """The producers the namespace's live tree calls for: the manifests at the repository root (one membership read) plus any `go.mod` below it (a Go monorepo has @@ -112,6 +118,7 @@ async def worker_owns( "EXCLUDED", "MARKERS", "PRODUCERS", + "dropped", "infer_producers", "runnable_producers", "selected_by", diff --git a/server/code/app/index_status.py b/server/code/app/index_status.py index 0ceaa8f2abd..856f624ce85 100644 --- a/server/code/app/index_status.py +++ b/server/code/app/index_status.py @@ -300,6 +300,7 @@ async def _repo_status(cfg: Any, *, state: IndexState | None = None) -> CodeInde code.index_status (one repo, full detail) and code.repos (every readable repo, summary). `state`: the namespace's state when the caller read every namespace's in one statement; the shared counts row rides in it.""" + from server.code.app.index.producer_inference import dropped from server.code.domain.index.compiler_tiers import WATERMARK_KEYS, compiler_tiers org, ns = cfg.org, cfg.namespace @@ -344,9 +345,9 @@ def detail(key: str) -> str: lags.update(published_lags(state, {k: val(k) for k in lags}, clone_head)) else: clone_head, lags = await _clone_lags(cfg, state, lags, val) - # The entry's own tier is the headline; every tier with a watermark is - # listed. An entry naming no producer defers to whichever watermark is set. - tiers = compiler_tiers(cfg.scip_producer, state, lags) + # The entry's own tier is the headline; every tier with a watermark is listed but + # one the entry drops. An entry naming no producer defers to whichever is set. + tiers = compiler_tiers(cfg.scip_producer, state, lags, dropped(cfg)) primary = next((t for t in tiers if t["primary"]), None) scip_commit = str(primary["commit"]) if primary else "" scip_lag = int(primary["lag"]) if primary else -1 diff --git a/server/code/app/watches.py b/server/code/app/watches.py index 11d13e5681d..4d6d000e569 100644 --- a/server/code/app/watches.py +++ b/server/code/app/watches.py @@ -41,9 +41,10 @@ async def coverage_for(cfg: Any, commit: str, state: IndexState) -> dict[str, An against the heads in `state` (the namespace's `code_index_state` rows).""" from server.code.app.index.commit_coverage import commit_coverage from server.code.app.index.mirrors import history_dir + from server.code.app.index.producer_inference import dropped from server.code.domain.index.compiler_tiers import compiler_tiers, state_value - tiers = compiler_tiers(cfg.scip_producer, state, {}) + tiers = compiler_tiers(cfg.scip_producer, state, {}, dropped(cfg)) git_dir, gap = await history_dir(cfg) head = state_value(state, "git_head") return await commit_coverage(git_dir, commit, head, tiers, gap=gap) diff --git a/server/code/domain/index/compiler_tiers.py b/server/code/domain/index/compiler_tiers.py index 58c8b5cf2fa..00948b7b02b 100644 --- a/server/code/domain/index/compiler_tiers.py +++ b/server/code/domain/index/compiler_tiers.py @@ -11,6 +11,7 @@ from __future__ import annotations +from collections.abc import Collection from typing import Any, NamedTuple from server.code.domain.index.state import IndexState @@ -103,14 +104,15 @@ def normalize_producer(producer: str) -> str: return low -def primary_producer(entry_producer: str, state: IndexState) -> str: +def primary_producer(entry_producer: str, state: IndexState, dropped: Collection[str] = ()) -> str: """The tier the entry is configured for; an entry without one (a registry - row) is the tier whose watermark is set, in TIERS order; '' when none.""" + row) is the tier whose watermark is set, in TIERS order, unless the entry + drops it; '' when none.""" p = normalize_producer(entry_producer) if p: return p for t in TIERS: - if _value(state, t.watermark_key): + if t.producer not in dropped and _value(state, t.watermark_key): return t.producer return "" @@ -119,15 +121,17 @@ def compiler_tiers( entry_producer: str, state: IndexState, lags: dict[str, int], + dropped: Collection[str] = (), ) -> list[dict[str, Any]]: """The cards: the primary tier always (its watermark may be unset — a repository whose first compiler run has not happened yet), then every - other tier whose watermark is set. `lags` is keyed by watermark key.""" - primary = primary_producer(entry_producer, state) + other tier whose watermark is set and that the entry does not drop + (`producer_inference.dropped`). `lags` is keyed by watermark key.""" + primary = primary_producer(entry_producer, state, dropped) out: list[dict[str, Any]] = [] for t in TIERS: commit = _value(state, t.watermark_key) - if t.producer != primary and not commit: + if t.producer != primary and (not commit or t.producer in dropped): continue row = state.get(t.watermark_key) or {} out.append( diff --git a/tests/unit/test_code_compiler_tiers.py b/tests/unit/test_code_compiler_tiers.py index dd7410b0fc5..53e9202f27a 100644 --- a/tests/unit/test_code_compiler_tiers.py +++ b/tests/unit/test_code_compiler_tiers.py @@ -81,6 +81,13 @@ def test_registry_row_without_a_producer_takes_the_tier_whose_watermark_is_set() assert compiler_tiers("", {}, {}) == [] +def test_a_dropped_tier_is_neither_a_card_nor_the_primary() -> None: + """Go ran before the entry dropped it: its watermark stays and is skipped.""" + state = _state(scip_commit_go=("a" * 40, "x"), scip_commit_py=("b" * 40, "x")) + assert primary_producer("", state, ("go",)) == "python" + assert [t["producer"] for t in compiler_tiers("", state, {}, ("go",))] == ["python"] + + # --- the status handler ------------------------------------------------------ diff --git a/tests/unit/test_code_coverage_watch.py b/tests/unit/test_code_coverage_watch.py index 4c9e8f5f6d3..305d7539c21 100644 --- a/tests/unit/test_code_coverage_watch.py +++ b/tests/unit/test_code_coverage_watch.py @@ -142,7 +142,14 @@ async def all_state_many(self, pairs): return {p: f.state for p in pairs} monkeypatch.setattr(code_repo, "CodeRepo", _State) - cfg = SimpleNamespace(org=ORG, namespace=NS, git_dir=f.git_dir, scip_producer="clang") + cfg = SimpleNamespace( + org=ORG, + namespace=NS, + git_dir=f.git_dir, + scip_producer="clang", + scip_extra_producers=(), + scip_excluded_producers=(), + ) monkeypatch.setattr( repos, "repo_for_namespace", lambda o, n: cfg if (o, n) == (ORG, NS) else None ) @@ -193,6 +200,26 @@ async def test_watch_then_the_pass_once_covered_emits_one_event( assert (got.pending, got.emitted) == (0, 0) and len(fake.events) == 1 +@pytest.mark.asyncio +async def test_a_tier_excluded_after_it_ran_holds_back_no_watch( + fake: Fake, history: tuple[str, list[str]] +) -> None: + """Go indexed up to A before the entry excluded it, and its watermark never moves + again: a commit the fast and C++ tiers cover is delivered.""" + from server.code.domain.index import repos + + _, (a, b, c) = history + repos.repo_for_namespace(ORG, NS).scip_excluded_producers = ("go",) + fake.state = { + "git_head": {"value": c}, + "scip_commit": {"value": b}, + "scip_commit_go": {"value": a}, + } + out = await h.handle_code_coverage_watch(_watch(b)) + assert out.commit_coverage is not None and out.commit_coverage.waiting_on == [] + assert out.ready and out.emitted and len(fake.events) == 1 + + @pytest.mark.asyncio async def test_a_crash_between_the_event_and_the_watch_update_does_not_duplicate( fake: Fake, history: tuple[str, list[str]] @@ -319,7 +346,14 @@ async def test_a_commit_the_index_has_not_reached_is_watched_by_its_full_sha( assert [t.covered for t in coverage.tiers] == [None] assert coverage.waiting_on == ["commit not in the index's mirror yet"] unknown = await svc.coverage_for( - SimpleNamespace(git_dir=fake.git_dir, scip_producer="clang"), "f" * 40, fake.state + SimpleNamespace( + git_dir=fake.git_dir, + scip_producer="clang", + scip_extra_producers=(), + scip_excluded_producers=(), + ), + "f" * 40, + fake.state, ) assert coverage.model_dump() == {**unknown, "commit": c} diff --git a/tests/unit/test_code_status_ops.py b/tests/unit/test_code_status_ops.py index e2a557d594c..eaf2df681cd 100644 --- a/tests/unit/test_code_status_ops.py +++ b/tests/unit/test_code_status_ops.py @@ -235,6 +235,50 @@ async def live_paths_named(self, org: str, ns: str, name: str, *, limit: int) -> ] +@pytest.mark.asyncio +async def test_a_tier_excluded_after_it_ran_holds_back_no_commit( + monkeypatch: pytest.MonkeyPatch, +) -> None: + """Go indexed up to A before the entry excluded it. Its watermark stays at A and + never moves, so a commit the fast and Python tiers hold at B is ready.""" + import json + + from server.code.api.models_status import CodeIndexStatusInput + from server.code.app.index import mirrors + + a, b = "a" * 40, "b" * 40 + + class GoLeftBehind(_FakeRepo): + async def all_state(self, org: str, ns: str) -> dict[str, dict[str, Any]]: + return { + "git_head": {"value": b}, + "scip_commit_py": {"value": b}, + "scip_commit_go": {"value": a}, + } + + async def live_paths_present(self, org: str, ns: str, paths: list[str]) -> set[str]: + return {"go.mod", "pyproject.toml"} + + async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: + return "", "no mirror here" + + entry = { + "namespace": "code-clickhouse", + "scip_producer": "python", + "scip_excluded_producers": ["go"], + } + monkeypatch.setattr(index_status, "CodeRepo", GoLeftBehind) + monkeypatch.setattr(settings, "code_repos_json", json.dumps([entry])) + monkeypatch.setattr(mirrors, "history_dir", no_mirror) + + out = await index_status.handle_code_index_status(CodeIndexStatusInput(commit=b)) + + assert out.compiler_tier_rules["go"] == "scip_excluded_producers" + assert out.commit_coverage is not None + assert (out.commit_coverage.ready, out.commit_coverage.waiting_on) == (True, []) + assert [t.producer for t in out.compiler_tiers] == ["python"] + + @pytest.mark.asyncio async def test_index_status_uses_repo_entry_branch_not_scalar() -> None: from server.code.api.models_status import CodeIndexStatusInput From 74a8defe30c38235ef5d95c12a34314f5727a387 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 13:47:01 +0530 Subject: [PATCH 05/24] The manual Python pass skips a Python tier the entry excludes Signed-off-by: Vanshaj Poonia --- docs/operations/code-index-operations.md | 3 ++- scripts/scip_harness/run_python_delta.sh | 8 +++++++- tests/unit/test_run_python_delta_upload_mode.py | 16 ++++++++++++++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 7858c9faa9d..7b17406135d 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -496,7 +496,8 @@ names the rule behind each tier in `compiler_tier_rules`: `scip_producer`, `scip_extra_producers`, `tree` (the build file is in the tree and the entry does not exclude it) or `scip_excluded_producers` (the tier does not run). A tier excluded after it ran keeps its watermark. `compiler_tiers` shows no card for it, and neither -`commit_coverage` nor a coverage watch waits for it. When a tree gains a +`commit_coverage` nor a coverage watch waits for it. `run_python_delta.sh` skips an +excluded Python tier too. When a tree gains a build file, the tier starts on the next pass with no watermark and indexes its modules in full, as a first run does. That costs build time and memory, about 4 GB for each Go module job (`LOOM_CODE_SCIP_GO_JOBS`). Each tier works in its own tree: the named diff --git a/scripts/scip_harness/run_python_delta.sh b/scripts/scip_harness/run_python_delta.sh index 5685197b7cc..047a749a730 100755 --- a/scripts/scip_harness/run_python_delta.sh +++ b/scripts/scip_harness/run_python_delta.sh @@ -67,7 +67,7 @@ from server.settings import settings async def m(): c = get_client(); await c.connect() from server.code.store.index import CodeRepo - from server.code.app.index.producer_inference import worker_owns + from server.code.app.index.producer_inference import dropped, worker_owns from server.code.domain.index.repos import configured_repos from server.code.app.index.repo_registry import read_registry_or_exit await read_registry_or_exit("run_python_delta") @@ -83,6 +83,8 @@ async def m(): owner = "worker" elif producer in ("go", "typescript"): owner = producer # its in-process worker moves this checkout + elif cfg and "python" in dropped(cfg): + owner = "excluded" elif cfg and not producer and not await worker_owns(repo, cfg, "python"): owner = "none" # the tree calls for no Python tier else: @@ -102,6 +104,10 @@ PYEOF echo ">> $NS: the tree has no Python build file — no python tier" exit 0 fi + if [[ "$OWNER" == "excluded" ]]; then + echo ">> $NS: scip_excluded_producers drops the python tier, skipping" + exit 0 + fi if [[ "$OWNER" != "manual" ]]; then echo ">> $NS: the checkout belongs to the $OWNER worker — skipping the python tier" exit 0 diff --git a/tests/unit/test_run_python_delta_upload_mode.py b/tests/unit/test_run_python_delta_upload_mode.py index 34476f8f9ab..cb09637a3fa 100644 --- a/tests/unit/test_run_python_delta_upload_mode.py +++ b/tests/unit/test_run_python_delta_upload_mode.py @@ -148,6 +148,15 @@ def test_a_tree_without_a_python_build_file_gets_no_python_pass(repos) -> None: assert _git(Path(str(repos["checkout"])), "rev-parse", "HEAD") == repos["c1"] +def test_a_python_tier_the_entry_excludes_gets_no_pass(repos) -> None: + out, calls = _run( + repos, wm=str(repos["c1"]), head=str(repos["c2"]), bare=str(repos["bare"]), owner="excluded" + ) + assert "scip_excluded_producers drops the python tier" in out + assert calls == "" + assert _git(Path(str(repos["checkout"])), "rev-parse", "HEAD") == repos["c1"] + + def test_an_unseeded_git_head_indexes_nothing(repos) -> None: out, calls = _run(repos, wm="-", head="-", bare=str(repos["bare"])) assert "git_head not seeded" in out @@ -193,7 +202,9 @@ def _ident_snippet() -> str: # a tier the tree calls for runs beside the named one, unless the entry drops it (["go.mod", "pyproject.toml"], "go", (), (), True, "worker"), (["go.mod", "pyproject.toml"], "go", (), ("python",), True, "go"), - (["go.mod", "pyproject.toml"], "", (), ("python",), True, "none"), + (["go.mod", "pyproject.toml"], "", (), ("python",), True, "excluded"), + (["CMakeLists.txt", "pyproject.toml"], "clang", (), ("python",), True, "excluded"), + (["CMakeLists.txt", "pyproject.toml"], "clang", (), ("python",), False, "excluded"), ], ) def test_the_manual_python_pass_goes_where_the_entry_and_its_tree_say( @@ -201,7 +212,8 @@ def test_the_manual_python_pass_goes_where_the_entry_and_its_tree_say( ) -> None: """The Python worker takes what it owns; a Go or TypeScript entry's worker moves its checkout; an entry naming no producer gets the manual pass only where its tree has a - Python build file (its Go and TypeScript tiers work in their own trees).""" + Python build file (its Go and TypeScript tiers work in their own trees), and no entry + gets it for a Python tier it excludes.""" from unittest.mock import AsyncMock from server.code.app.index import repo_registry From 0166d76f062c29758f8855e8657344d273e6e64f Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 13:47:01 +0530 Subject: [PATCH 06/24] A failed ownership read fails only its entry in a compiler tier pass Signed-off-by: Vanshaj Poonia --- server/code/app/index/compiler_tier.py | 25 ++++++++++++-- tests/unit/test_code_compiler_tier_runner.py | 34 ++++++++++++++++++++ 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/server/code/app/index/compiler_tier.py b/server/code/app/index/compiler_tier.py index 1e4e489ef66..d7aa5ff51cc 100644 --- a/server/code/app/index/compiler_tier.py +++ b/server/code/app/index/compiler_tier.py @@ -128,8 +128,7 @@ async def run_entry(repo: CodeRepo, cfg: RepoConfig) -> None: with record_pass(worker) as rec: repo = CodeRepo() for cfg in configured_repos(): - if not await worker_owns(repo, cfg, producer): - await tier_health.forget(repo, cfg.org, cfg.namespace, not_run) + if not await _owned(repo, cfg, producer, not_run, worker, result): continue erased = await erasing.being_erased(cfg.org, cfg.namespace) if ( @@ -163,6 +162,28 @@ async def run_entry(repo: CodeRepo, cfg: RepoConfig) -> None: return result +async def _owned( + repo: CodeRepo, + cfg: RepoConfig, + producer: str, + not_run: tuple[str, ...], + worker: str, + result: TierResult, +) -> bool: + """Whether the tier runs the entry. One it does not own drops the `not_run` health + records. A failed read of its tree is the entry's error and leaves them as they are.""" + try: + owns = await worker_owns(repo, cfg, producer) + except Exception as e: # one entry's tree read must not stop the pass + logger.exception("%s: %s ownership read failed", worker, cfg.namespace) + result.errors.append(f"{cfg.namespace}: tree read failed: {type(e).__name__}") + pass_context.note_failure(e, cfg.namespace) + return False + if not owns: + await tier_health.forget(repo, cfg.org, cfg.namespace, not_run) + return owns + + async def _gc_checkout(cfg: RepoConfig, producer: str) -> None: import asyncio diff --git a/tests/unit/test_code_compiler_tier_runner.py b/tests/unit/test_code_compiler_tier_runner.py index 489b75da55a..a9768fee0f0 100644 --- a/tests/unit/test_code_compiler_tier_runner.py +++ b/tests/unit/test_code_compiler_tier_runner.py @@ -30,6 +30,7 @@ class _Cfg: git_branch = "" scip_producer = "" scip_extra_producers: tuple[str, ...] = () + scip_excluded_producers: tuple[str, ...] = () scip_ts_projects: tuple[str, ...] = () exclude_generated = False source = "config" @@ -86,6 +87,39 @@ async def test_an_entry_the_tier_does_not_own_is_not_counted( assert ctx.count == 0 and _outcome(worker)["reason"] == "current" +@pytest.mark.asyncio +async def test_a_failed_ownership_read_fails_only_its_entry( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch +) -> None: + """The Go pass reads the tree of an entry that names clang, and the read fails. That is + the entry's error, and the next entry, which names Go, still runs.""" + from server.code.workers import scip_go_delta as w + + first, second = _Cfg(tmp_path), _Cfg(tmp_path) + first.namespace, first.scip_producer = "code-a", "clang" + second.namespace, second.scip_producer = "code-b", "go" + repo = _repo(w.WATERMARK) + repo.live_paths_present.side_effect = RuntimeError("manifest read timed out") + ran: list[str] = [] + + async def run_repo(_repo: Any, cfg: Any, _result: Any) -> None: + ran.append(cfg.namespace) + + monkeypatch.setattr(w, "_run_repo", run_repo) + ctx = pass_context.begin("w") + try: + with ( + patch("server.code.store.index.CodeRepo", return_value=repo), + patch("server.code.domain.index.repos.configured_repos", return_value=[first, second]), + ): + result = await w.run_pass() + finally: + pass_context.clear() + assert ran == ["code-b"] + assert result.errors == ["code-a: tree read failed: RuntimeError"] + assert ctx.count == 1 and ctx.failures[0][:2] == ("code-a", "RuntimeError") + + @pytest.mark.asyncio async def test_an_operator_scip_clang_entry_without_its_build_tree_is_skipped( tmp_path: Path, From b354cdd2cfbb391957c50238984353def9c36779 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 13:51:52 +0530 Subject: [PATCH 07/24] A failed ownership read fails only its entry in the crossref pass Signed-off-by: Vanshaj Poonia --- server/code/workers/crossref.py | 11 ++++++----- tests/unit/test_code_scip_full_worker.py | 25 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/server/code/workers/crossref.py b/server/code/workers/crossref.py index 526d4b384c9..ce6b1f495d5 100644 --- a/server/code/workers/crossref.py +++ b/server/code/workers/crossref.py @@ -34,12 +34,13 @@ async def run_pass() -> CodeCrossrefResult: with record_pass("code_crossref") as rec: repo = CodeRepo() for cfg in configured_repos(): - if not await worker_owns(repo, cfg, "clang"): - continue - result.repos_checked += 1 - pass_context.set_namespace(cfg.namespace) - pass_context.check_stop() try: + # in the try: a failed read of one entry's tree fails that entry only + if not await worker_owns(repo, cfg, "clang"): + continue + result.repos_checked += 1 + pass_context.set_namespace(cfg.namespace) + pass_context.check_stop() head = await repo.get_state(cfg.org, cfg.namespace, "git_head") if not head or head == await repo.get_state(cfg.org, cfg.namespace, WATERMARK): continue diff --git a/tests/unit/test_code_scip_full_worker.py b/tests/unit/test_code_scip_full_worker.py index a518bf3ad2e..8d60752781d 100644 --- a/tests/unit/test_code_scip_full_worker.py +++ b/tests/unit/test_code_scip_full_worker.py @@ -149,6 +149,31 @@ async def test_crossref_runs_once_per_git_head(tmp_path, monkeypatch): assert state[("code-a", "crossref_commit")] == "a" * 40 +@pytest.mark.asyncio +async def test_a_failed_ownership_read_fails_only_its_crossref_entry(tmp_path, monkeypatch): + """Crossref reads the tree of an entry that names Go, and the read fails. That is the + entry's error, and the next entry, which names clang, still gets its pass.""" + from server.code.domain.extract import crossref as extract + + state = {("code-b", "git_head"): "b" * 40} + monkeypatch.setattr( + extract, "run_crossref_pass", AsyncMock(return_value=extract.CrossrefResult()) + ) + repo = _repo(state) + repo.live_paths_present.side_effect = RuntimeError("manifest read timed out") + go_entry = repo_config(org="o", namespace="code-a", scip_producer="go") + with ( + patch("server.code.store.index.CodeRepo", return_value=repo), + patch( + "server.code.domain.index.repos.configured_repos", + return_value=[go_entry, _cfg(tmp_path, "code-b")], + ), + ): + result = await crossref.run_pass() + assert result.passes_run == 1 and state[("code-b", "crossref_commit")] == "b" * 40 + assert result.errors == ["code-a: RuntimeError: manifest read timed out"] + + @pytest.mark.asyncio async def test_every_hours_zero_only_seeds(tmp_path, monkeypatch): from server.settings import settings From 0fada4711fb7cf7923ac66838ce886c17f553078 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:19:47 +0530 Subject: [PATCH 08/24] A tier the tree stops calling for holds back no commit coverage The status and the coverage watch kept every tier with a watermark the entry did not exclude. When a clang entry's last go.mod went, the Go worker stopped at its old watermark and readiness waited on it for good. Both paths now take their tiers from runnable_producers over the tree as indexed now, the rule the workers use. A tree read that fails keeps every tier the entry may run, so it never makes a commit ready early. Signed-off-by: Vanshaj Poonia --- docs/operations/code-index-operations.md | 8 ++-- docs/reference/operations/code.md | 2 +- server/code/api/models_status.py | 4 +- server/code/app/coverage_watch.py | 3 +- server/code/app/index/producer_inference.py | 32 +++++++++++--- server/code/app/index_status.py | 26 +++++------- server/code/app/watches.py | 21 ++++++--- server/code/domain/index/compiler_tiers.py | 20 +++++---- tests/unit/test_code_compiler_tiers.py | 28 +++++++----- tests/unit/test_code_coverage_watch.py | 42 +++++++++++++++--- tests/unit/test_code_repo_indexing_knobs.py | 16 +++++++ tests/unit/test_code_status_ops.py | 47 +++++++++++++++++++++ 12 files changed, 187 insertions(+), 62 deletions(-) diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 1f7e653131d..7bc982e5cee 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -494,11 +494,11 @@ when it is also excluded. `code.index_status` lists the tiers the tree calls for as `compiler_candidates` and names the rule behind each tier in `compiler_tier_rules`: `scip_producer`, `scip_extra_producers`, `tree` (the build file is in the tree and the entry does not -exclude it) or `scip_excluded_producers` (the tier does not run). A tier excluded after -it ran keeps its watermark. `compiler_tiers` shows no card for it, and neither +exclude it) or `scip_excluded_producers` (the tier does not run). A tier that stops +running, because the entry excludes it or the tree loses its last build file for it, +keeps its watermark. `compiler_tiers` shows no card for it, and neither `commit_coverage` nor a coverage watch waits for it. `run_python_delta.sh` skips an -excluded Python tier too. When a tree gains a -build file, the tier starts on the next pass with no watermark and indexes its modules +excluded Python tier too. When a tree gains a build file, the tier starts on the next pass with no watermark and indexes its modules in full, as a first run does. That costs build time and memory, about 4 GB for each Go module job (`LOOM_CODE_SCIP_GO_JOBS`). Each tier works in its own tree: the named producer (C/C++ when the entry names none) in `scip_checkout_dir`, every other one in diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index 78081072946..446c2f2193b 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -967,7 +967,7 @@ Health of the code index: indexed head commit, compiler-tier commit, row counts, | `scip_commit` | `str` | `scip_commit` / `scip_lag` are the ENTRY'S compiler tier — the one `scip_producer` names — not the C++ key by name; a TypeScript repository reports its scip-typescript watermark here. | | `scip_commit_py` | `str` | The scip-python watermark by name, whatever the entry's primary tier; '' when unset. | | `scip_producer` | `str` | The primary compiler tier's producer (clang \| typescript \| go \| python); '' when no tier has a watermark. | -| `compiler_tiers` | `list[CodeCompilerTier]` | Every compiler tier with a watermark or configured for the entry but one it excludes, the primary first. | +| `compiler_tiers` | `list[CodeCompilerTier]` | The entry's configured tier and every other tier it runs over its current tree that has a watermark, the primary first. | | `tier_health` | `list[CodeTierHealth]` | The last recorded outcome of each tier that has one (fetch, ingest, the compiler tiers and the weekly C++ full run): a failing tier names its error kind, since when, and the fix. | | `pr_cursor` | `str` | The PR-history poller's cursor: the newest `updated_at` (ISO-8601) of the merged PRs it fetched; '' before its first pass. | | `commit_coverage` | `CodeCommitCoverage \| None` | Set when the request named a `commit`. | diff --git a/server/code/api/models_status.py b/server/code/api/models_status.py index 353fa519f74..634dff002d5 100644 --- a/server/code/api/models_status.py +++ b/server/code/api/models_status.py @@ -164,8 +164,8 @@ class CodeIndexStatusOutput(BaseModel): # The primary compiler tier's producer (clang | typescript | go | python); '' when no tier has # a watermark. scip_producer: str = "" - # Every compiler tier with a watermark or configured for the entry but one it excludes, - # the primary first. + # The entry's configured tier and every other tier it runs over its current tree that + # has a watermark, the primary first. compiler_tiers: list[CodeCompilerTier] = Field(default_factory=list) # The last recorded outcome of each tier that has one (fetch, ingest, the compiler # tiers and the weekly C++ full run): a failing tier names its error kind, since diff --git a/server/code/app/coverage_watch.py b/server/code/app/coverage_watch.py index a5d66096ab1..7b58f2c4cf0 100644 --- a/server/code/app/coverage_watch.py +++ b/server/code/app/coverage_watch.py @@ -102,7 +102,8 @@ async def handle_code_coverage_watch(input: CodeCoverageWatchInput) -> CodeCover if watch is None: watch = svc.new_watch(org, ns, sha, input.inbox, _caller_subject()) await repo.insert_watch_version(watch) - coverage = await svc.coverage_for(cfg, sha, await CodeRepo().all_state(org, ns)) + state = await CodeRepo().all_state(org, ns) + coverage = await svc.coverage_for(cfg, sha, state, await svc.running_tiers(cfg)) emitted = False if coverage.get("ready") and watch.delivered_at is None: emitted, watch = await svc.deliver(watch, coverage) diff --git a/server/code/app/index/producer_inference.py b/server/code/app/index/producer_inference.py index 5663da24eb7..e921f1f2afa 100644 --- a/server/code/app/index/producer_inference.py +++ b/server/code/app/index/producer_inference.py @@ -18,12 +18,17 @@ from __future__ import annotations +import logging from collections.abc import Iterable from typing import TYPE_CHECKING +from server.observability import degradations + if TYPE_CHECKING: from server.code.domain.index.repos import RepoConfig +logger = logging.getLogger(__name__) + MARKERS: dict[str, tuple[str, ...]] = { "go": ("go.mod",), "typescript": ("tsconfig.json", "jsconfig.json", "package.json"), @@ -72,17 +77,18 @@ def tier_rules(cfg: RepoConfig, tree: Iterable[str]) -> dict[str, str]: return {p: selected_by(cfg, p, called_for) or EXCLUDED for p in producers} -def runnable_producers(cfg: RepoConfig) -> tuple[str, ...]: - """Every tier the entry may run: the ones it names, then each other tier it does not - exclude, since its tree can come to call for any of them.""" +def runnable_producers(cfg: RepoConfig, tree: Iterable[str] | None = None) -> tuple[str, ...]: + """The tiers the entry runs when its tree calls for the producers in `tree`: the ones + it names, then each other one `selected_by` picks. With the tree unknown (None), every + tier it may run, since its tree can come to call for any of them.""" named = tuple(p for p in (cfg.scip_producer, *cfg.scip_extra_producers) if p) - rest = (p for p in PRODUCERS if p not in named and p not in cfg.scip_excluded_producers) - return (*named, *rest) + called_for = PRODUCERS if tree is None else tuple(tree) + return (*named, *(p for p in PRODUCERS if p not in named and selected_by(cfg, p, called_for))) def dropped(cfg: RepoConfig) -> tuple[str, ...]: - """The tiers the entry excludes and does not name. They never run, so a watermark one - left before the exclusion is no tier of the entry's and holds no commit back.""" + """The tiers the entry excludes and does not name: they never run, whatever its tree + holds.""" return tuple(p for p in cfg.scip_excluded_producers if not selected_by(cfg, p, ())) @@ -98,6 +104,17 @@ async def tree_producers(repo: object, org: str, ns: str) -> list[str]: return infer_producers(paths) +async def read_tree(repo: object, cfg: RepoConfig) -> list[str] | None: + """`tree_producers` of the entry; None when the read fails. A status or coverage answer + then waits on every tier the entry may run, so a failed read never makes a commit ready.""" + try: + return await tree_producers(repo, cfg.org, cfg.namespace) + except Exception as e: # noqa: BLE001 — a status or coverage answer must not fail on it + degradations.partial("code_index", "compiler_inference_unread", e) + logger.debug("compiler inference unavailable for %s: %s", cfg.namespace, e) + return None + + async def worker_owns( repo: object, cfg: RepoConfig, @@ -120,6 +137,7 @@ async def worker_owns( "PRODUCERS", "dropped", "infer_producers", + "read_tree", "runnable_producers", "selected_by", "tier_rules", diff --git a/server/code/app/index_status.py b/server/code/app/index_status.py index e799d3d498f..ac73dfc8a62 100644 --- a/server/code/app/index_status.py +++ b/server/code/app/index_status.py @@ -326,7 +326,7 @@ async def _repo_status(cfg: Any, *, state: IndexState | None = None) -> CodeInde code.index_status (one repo, full detail) and code.repos (every readable repo, summary). `state`: the namespace's state when the caller read every namespace's in one statement; the shared counts row rides in it.""" - from server.code.app.index.producer_inference import dropped + from server.code.app.index.producer_inference import read_tree, runnable_producers from server.code.domain.index.compiler_tiers import WATERMARK_KEYS, compiler_tiers org, ns = cfg.org, cfg.namespace @@ -371,9 +371,10 @@ def detail(key: str) -> str: lags.update(published_lags(state, {k: val(k) for k in lags}, clone_head)) else: clone_head, lags = await _clone_lags(cfg, state, lags, val) - # The entry's own tier is the headline; every tier with a watermark is listed but - # one the entry drops. An entry naming no producer defers to whichever is set. - tiers = compiler_tiers(cfg.scip_producer, state, lags, dropped(cfg)) + # The entry's own tier is the headline, then each other tier it runs over its tree + # now. An entry naming no producer defers to whichever of those is set. + tree = await read_tree(repo, cfg) + tiers = compiler_tiers(cfg.scip_producer, state, lags, runnable_producers(cfg, tree)) primary = next((t for t in tiers if t["primary"]), None) scip_commit = str(primary["commit"]) if primary else "" scip_lag = int(primary["lag"]) if primary else -1 @@ -411,8 +412,8 @@ def detail(key: str) -> str: logger.debug("code status: worker snapshot unavailable: %s", e) coverage = coverage_fields(counts) - candidates, rules, warnings = await _index_quality( - repo, cfg, state, git_head=git_head, fetch_overdue=fetch_overdue + candidates, rules, warnings = _index_quality( + cfg, state, tree or [], git_head=git_head, fetch_overdue=fetch_overdue ) return CodeIndexStatusOutput( @@ -476,24 +477,17 @@ async def _calibration_warnings(org: str, namespace: str) -> list[str]: ] -async def _index_quality( - repo: CodeRepo, +def _index_quality( cfg: Any, state: IndexState, + candidates: list[str], *, git_head: str, fetch_overdue: bool, ) -> tuple[list[str], dict[str, str], list[str]]: - from server.code.app.index.producer_inference import EXCLUDED, tier_rules, tree_producers + from server.code.app.index.producer_inference import EXCLUDED, tier_rules from server.code.domain.index.compiler_tiers import TIERS - try: - candidates = await tree_producers(repo, cfg.org, cfg.namespace) - except Exception as e: # noqa: BLE001 — diagnostics must not break status - degradations.partial("code_index", "compiler_inference_unread", e) - logger.debug("code status: compiler inference unavailable for %s: %s", cfg.namespace, e) - candidates = [] - def value(key: str) -> str: return _s((state.get(key) or {}).get("value")) diff --git a/server/code/app/watches.py b/server/code/app/watches.py index 4d6d000e569..a8ec327ebc8 100644 --- a/server/code/app/watches.py +++ b/server/code/app/watches.py @@ -36,15 +36,25 @@ ACTOR = "process:code_coverage_notify" -async def coverage_for(cfg: Any, commit: str, state: IndexState) -> dict[str, Any]: +async def running_tiers(cfg: Any) -> tuple[str, ...]: + """The tiers the entry runs over its tree as indexed now, as the status reads them.""" + from server.code.app.index.producer_inference import read_tree, runnable_producers + from server.code.store.index import CodeRepo + + return runnable_producers(cfg, await read_tree(CodeRepo(), cfg)) + + +async def coverage_for( + cfg: Any, commit: str, state: IndexState, runs: tuple[str, ...] +) -> dict[str, Any]: """`code.index_status`'s `commit_coverage` block for `commit`, judged - against the heads in `state` (the namespace's `code_index_state` rows).""" + against the heads in `state` (the namespace's `code_index_state` rows) and + the tiers the entry `runs` (`running_tiers`).""" from server.code.app.index.commit_coverage import commit_coverage from server.code.app.index.mirrors import history_dir - from server.code.app.index.producer_inference import dropped from server.code.domain.index.compiler_tiers import compiler_tiers, state_value - tiers = compiler_tiers(cfg.scip_producer, state, {}, dropped(cfg)) + tiers = compiler_tiers(cfg.scip_producer, state, {}, runs) git_dir, gap = await history_dir(cfg) head = state_value(state, "git_head") return await commit_coverage(git_dir, commit, head, tiers, gap=gap) @@ -179,9 +189,10 @@ async def notify_once(*, limit: int = 5000) -> NotifyResult: unknown += len(rows) continue state = states.get((org, ns)) or {} + runs = await running_tiers(cfg) for w in rows: try: - coverage = await coverage_for(cfg, w.commit_sha, state) + coverage = await coverage_for(cfg, w.commit_sha, state, runs) if not coverage.get("ready"): continue posted, _ = await deliver(w, coverage) diff --git a/server/code/domain/index/compiler_tiers.py b/server/code/domain/index/compiler_tiers.py index 00948b7b02b..615ac988302 100644 --- a/server/code/domain/index/compiler_tiers.py +++ b/server/code/domain/index/compiler_tiers.py @@ -104,15 +104,15 @@ def normalize_producer(producer: str) -> str: return low -def primary_producer(entry_producer: str, state: IndexState, dropped: Collection[str] = ()) -> str: +def primary_producer(entry_producer: str, state: IndexState, runs: Collection[str]) -> str: """The tier the entry is configured for; an entry without one (a registry - row) is the tier whose watermark is set, in TIERS order, unless the entry - drops it; '' when none.""" + row) is the first tier in TIERS order that it `runs` and whose watermark is + set; '' when none.""" p = normalize_producer(entry_producer) if p: return p for t in TIERS: - if t.producer not in dropped and _value(state, t.watermark_key): + if t.producer in runs and _value(state, t.watermark_key): return t.producer return "" @@ -121,17 +121,19 @@ def compiler_tiers( entry_producer: str, state: IndexState, lags: dict[str, int], - dropped: Collection[str] = (), + runs: Collection[str], ) -> list[dict[str, Any]]: """The cards: the primary tier always (its watermark may be unset — a repository whose first compiler run has not happened yet), then every - other tier whose watermark is set and that the entry does not drop - (`producer_inference.dropped`). `lags` is keyed by watermark key.""" - primary = primary_producer(entry_producer, state, dropped) + other tier the entry `runs` whose watermark is set. `runs` is + `producer_inference.runnable_producers` over the entry's tree: a tier it + stopped running keeps a watermark nothing moves, so it gets no card and no + readiness check waits on it. `lags` is keyed by watermark key.""" + primary = primary_producer(entry_producer, state, runs) out: list[dict[str, Any]] = [] for t in TIERS: commit = _value(state, t.watermark_key) - if t.producer != primary and (not commit or t.producer in dropped): + if t.producer != primary and (not commit or t.producer not in runs): continue row = state.get(t.watermark_key) or {} out.append( diff --git a/tests/unit/test_code_compiler_tiers.py b/tests/unit/test_code_compiler_tiers.py index 53e9202f27a..126bb18cfa2 100644 --- a/tests/unit/test_code_compiler_tiers.py +++ b/tests/unit/test_code_compiler_tiers.py @@ -54,8 +54,9 @@ def test_typescript_entry_headlines_its_own_tier_and_lists_the_stale_cpp_key() - scip_commit_ts=(TS_HEAD, "2026-09-18 20:54:08"), ) lags = {"scip_commit": 5, "scip_commit_ts": 0} - assert primary_producer("typescript", state) == "typescript" - tiers = compiler_tiers("typescript", state, lags) + runs = ("typescript", "clang") # a root CMakeLists.txt beside the TypeScript project + assert primary_producer("typescript", state, runs) == "typescript" + tiers = compiler_tiers("typescript", state, lags, runs) assert [t["producer"] for t in tiers] == ["clang", "typescript"] ts = next(t for t in tiers if t["primary"]) assert ts["producer"] == "typescript" and ts["tool"] == "scip-typescript" @@ -68,7 +69,7 @@ def test_typescript_entry_headlines_its_own_tier_and_lists_the_stale_cpp_key() - def test_configured_tier_is_listed_unset_before_its_first_run() -> None: state = _state(git_head=(TS_HEAD, "x")) - tiers = compiler_tiers("go", state, {}) + tiers = compiler_tiers("go", state, {}, ("go",)) assert len(tiers) == 1 assert tiers[0]["producer"] == "go" and tiers[0]["commit"] == "" and tiers[0]["lag"] == -1 assert tiers[0]["updated_at"] == "" and tiers[0]["primary"] is True @@ -76,16 +77,17 @@ def test_configured_tier_is_listed_unset_before_its_first_run() -> None: def test_registry_row_without_a_producer_takes_the_tier_whose_watermark_is_set() -> None: state = _state(scip_commit_py=("a" * 40, "x")) - assert primary_producer("", state) == "python" - assert primary_producer("", {}) == "" - assert compiler_tiers("", {}, {}) == [] + assert primary_producer("", state, ("python",)) == "python" + assert primary_producer("", {}, ("python",)) == "" + assert compiler_tiers("", {}, {}, ()) == [] -def test_a_dropped_tier_is_neither_a_card_nor_the_primary() -> None: - """Go ran before the entry dropped it: its watermark stays and is skipped.""" +def test_a_tier_the_entry_no_longer_runs_is_neither_a_card_nor_the_primary() -> None: + """Go ran before the entry excluded it or its last go.mod went: its watermark stays + and is skipped.""" state = _state(scip_commit_go=("a" * 40, "x"), scip_commit_py=("b" * 40, "x")) - assert primary_producer("", state, ("go",)) == "python" - assert [t["producer"] for t in compiler_tiers("", state, {}, ("go",))] == ["python"] + assert primary_producer("", state, ("python",)) == "python" + assert [t["producer"] for t in compiler_tiers("", state, {}, ("python",))] == ["python"] # --- the status handler ------------------------------------------------------ @@ -107,6 +109,12 @@ async def all_state(self, org: str, ns: str) -> dict[str, dict[str, Any]]: async def table_counts(self, org: str, ns: str, **_: Any) -> dict[str, int]: return {"code_files": 3} + async def live_paths_present(self, org: str, ns: str, paths: list[str]) -> set[str]: + return {"package.json", "CMakeLists.txt"} # both tiers run + + async def live_paths_named(self, org: str, ns: str, name: str, *, limit: int) -> list[str]: + return [] + class _FakeGit: @staticmethod diff --git a/tests/unit/test_code_coverage_watch.py b/tests/unit/test_code_coverage_watch.py index 305d7539c21..96590a9068a 100644 --- a/tests/unit/test_code_coverage_watch.py +++ b/tests/unit/test_code_coverage_watch.py @@ -58,6 +58,7 @@ def __init__(self, git_dir: str) -> None: self.watches: dict[tuple[str, str, str, str], CoverageWatch] = {} self.events: list[dict[str, Any]] = [] self.state: dict[str, dict[str, Any]] = {} + self.tree: set[str] = {"CMakeLists.txt"} # the build files in the indexed tree self.inboxes = {(ORG, INBOX): {"org": ORG, "inbox": INBOX, "owner_namespace": "bots"}} self.fail_watch_writes = 0 @@ -141,6 +142,12 @@ async def get_state(self, org, ns, key): async def all_state_many(self, pairs): return {p: f.state for p in pairs} + async def live_paths_present(self, org, ns, paths): + return {p for p in paths if p in f.tree} + + async def live_paths_named(self, org, ns, name, *, limit): + return [p for p in f.tree if p.rsplit("/", 1)[-1] == name][:limit] + monkeypatch.setattr(code_repo, "CodeRepo", _State) cfg = SimpleNamespace( org=ORG, @@ -220,6 +227,30 @@ async def test_a_tier_excluded_after_it_ran_holds_back_no_watch( assert out.ready and out.emitted and len(fake.events) == 1 +@pytest.mark.asyncio +async def test_a_tier_whose_last_build_file_went_holds_back_no_watch( + fake: Fake, history: tuple[str, list[str]] +) -> None: + """The tree called for Go, which indexed up to A, until a later commit removed the + last go.mod. The Go worker stops there, so the pass delivers a watch on B once the + fast and C++ tiers cover it.""" + _, (a, b, c) = history + fake.tree = {"CMakeLists.txt", "tools/go.mod"} + fake.state = { + "git_head": {"value": c}, + "scip_commit": {"value": b}, + "scip_commit_go": {"value": a}, + } + out = await h.handle_code_coverage_watch(_watch(b)) + assert out.commit_coverage is not None and out.commit_coverage.waiting_on == ["Go"] + + fake.tree = {"CMakeLists.txt"} + got = await svc.notify_once() + assert (got.delivered, got.emitted) == (1, 1) and len(fake.events) == 1 + out = await h.handle_code_coverage_watch(_watch(b)) + assert out.commit_coverage is not None and out.commit_coverage.waiting_on == [] + + @pytest.mark.asyncio async def test_a_crash_between_the_event_and_the_watch_update_does_not_duplicate( fake: Fake, history: tuple[str, list[str]] @@ -249,7 +280,8 @@ async def test_two_racing_deliveries_report_one_emitted_event( await h.handle_code_coverage_watch(_watch(b)) fake.set_heads(fast=c, clang=c) watch = fake.watches[(ORG, NS, b, INBOX)] - coverage = await svc.coverage_for(repos.repo_for_namespace(ORG, NS), b, fake.state) + cfg = repos.repo_for_namespace(ORG, NS) + coverage = await svc.coverage_for(cfg, b, fake.state, ("clang",)) # The event check yields, so without the delivery's lease both deliverers # would check before either posted. @@ -346,14 +378,10 @@ async def test_a_commit_the_index_has_not_reached_is_watched_by_its_full_sha( assert [t.covered for t in coverage.tiers] == [None] assert coverage.waiting_on == ["commit not in the index's mirror yet"] unknown = await svc.coverage_for( - SimpleNamespace( - git_dir=fake.git_dir, - scip_producer="clang", - scip_extra_producers=(), - scip_excluded_producers=(), - ), + SimpleNamespace(git_dir=fake.git_dir, scip_producer="clang"), "f" * 40, fake.state, + ("clang",), ) assert coverage.model_dump() == {**unknown, "commit": c} diff --git a/tests/unit/test_code_repo_indexing_knobs.py b/tests/unit/test_code_repo_indexing_knobs.py index 91c6f0904c7..46dd3af36df 100644 --- a/tests/unit/test_code_repo_indexing_knobs.py +++ b/tests/unit/test_code_repo_indexing_knobs.py @@ -104,6 +104,22 @@ async def test_worker_ownership_by_name_or_by_marker() -> None: assert await pi.worker_owns(repo, _Entry(scip_producer="clang"), "typescript") is False +def test_the_tiers_an_entry_runs_follow_its_tree() -> None: + cfg = _Entry(scip_producer="clang", scip_excluded_producers=("python",)) + assert pi.runnable_producers(cfg, ["go", "python"]) == ("clang", "go") + assert pi.runnable_producers(cfg, []) == ("clang",) + # the tree unknown: every tier the entry may run + assert pi.runnable_producers(cfg) == ("clang", "go", "typescript") + + +@pytest.mark.asyncio +async def test_an_unread_tree_is_none_not_an_empty_one() -> None: + """A status or coverage answer then waits on every tier the entry may run.""" + repo = AsyncMock() + repo.live_paths_present.side_effect = RuntimeError("manifest read timed out") + assert await pi.read_tree(repo, _Entry(scip_producer="clang")) is None + + @pytest.mark.asyncio async def test_an_excluded_tier_does_not_run_though_the_tree_calls_for_it() -> None: repo = AsyncMock() diff --git a/tests/unit/test_code_status_ops.py b/tests/unit/test_code_status_ops.py index 7358c98d94b..398a8e6f9d9 100644 --- a/tests/unit/test_code_status_ops.py +++ b/tests/unit/test_code_status_ops.py @@ -286,6 +286,53 @@ async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: assert [t.producer for t in out.compiler_tiers] == ["python"] +@pytest.mark.asyncio +async def test_a_tier_whose_last_build_file_went_holds_back_no_commit( + monkeypatch: pytest.MonkeyPatch, +) -> None: + """A clang entry's tree called for Go at A, and B removed its last go.mod. The Go + worker stops with its watermark at A, so a commit the fast and C++ tiers hold at B + is ready.""" + import json + + from server.code.api.models_status import CodeIndexStatusInput + from server.code.app.index import mirrors + from server.code.app.index.producer_inference import worker_owns + from server.code.domain.index.repos import repo_for_namespace + + a, b = "a" * 40, "b" * 40 + + class GoModGone(_FakeRepo): + async def all_state(self, org: str, ns: str) -> dict[str, dict[str, Any]]: + return { + "git_head": {"value": b}, + "scip_commit": {"value": b}, + "scip_commit_go": {"value": a}, + } + + async def live_paths_present(self, org: str, ns: str, paths: list[str]) -> set[str]: + return {"CMakeLists.txt"} + + async def live_paths_named(self, org: str, ns: str, name: str, *, limit: int) -> list[str]: + return [] + + async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: + return "", "no mirror here" + + entry = {"namespace": "code-clickhouse", "scip_producer": "clang"} + monkeypatch.setattr(index_status, "CodeRepo", GoModGone) + monkeypatch.setattr(settings, "code_repos_json", json.dumps([entry])) + monkeypatch.setattr(mirrors, "history_dir", no_mirror) + + out = await index_status.handle_code_index_status(CodeIndexStatusInput(commit=b)) + + cfg = repo_for_namespace(out.org, out.namespace) + assert cfg is not None and not await worker_owns(GoModGone(), cfg, "go") + assert out.commit_coverage is not None + assert (out.commit_coverage.ready, out.commit_coverage.waiting_on) == (True, []) + assert [t.producer for t in out.compiler_tiers] == ["clang"] + + @pytest.mark.asyncio async def test_index_status_uses_repo_entry_branch_not_scalar() -> None: from server.code.api.models_status import CodeIndexStatusInput From 335c55da54ad7f33cbafc6da235785a333519bf5 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:20:50 +0530 Subject: [PATCH 09/24] The manual Python pass runs only a Python tier the entry runs The identity step answered "none" only for an entry naming no producer. A clang entry whose tree has no Python build file and that does not name python fell through to the manual path and moved scip_commit_py for a tier the workers and the status do not run. It now asks worker_owns for every entry, so the script, the workers and the status agree on the Python tier. An operator who wants that tier names it in scip_extra_producers. Signed-off-by: Vanshaj Poonia --- docs/operations/code-index-operations.md | 4 ++-- scripts/scip_harness/run_python_delta.sh | 6 +++--- tests/unit/test_run_python_delta_upload_mode.py | 12 ++++++++---- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 7bc982e5cee..c389a6fdeb5 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -497,8 +497,8 @@ names the rule behind each tier in `compiler_tier_rules`: `scip_producer`, exclude it) or `scip_excluded_producers` (the tier does not run). A tier that stops running, because the entry excludes it or the tree loses its last build file for it, keeps its watermark. `compiler_tiers` shows no card for it, and neither -`commit_coverage` nor a coverage watch waits for it. `run_python_delta.sh` skips an -excluded Python tier too. When a tree gains a build file, the tier starts on the next pass with no watermark and indexes its modules +`commit_coverage` nor a coverage watch waits for it. `run_python_delta.sh` runs a +Python tier only when the entry runs it. When a tree gains a build file, the tier starts on the next pass with no watermark and indexes its modules in full, as a first run does. That costs build time and memory, about 4 GB for each Go module job (`LOOM_CODE_SCIP_GO_JOBS`). Each tier works in its own tree: the named producer (C/C++ when the entry names none) in `scip_checkout_dir`, every other one in diff --git a/scripts/scip_harness/run_python_delta.sh b/scripts/scip_harness/run_python_delta.sh index 047a749a730..02d86d705c1 100755 --- a/scripts/scip_harness/run_python_delta.sh +++ b/scripts/scip_harness/run_python_delta.sh @@ -85,8 +85,8 @@ async def m(): owner = producer # its in-process worker moves this checkout elif cfg and "python" in dropped(cfg): owner = "excluded" - elif cfg and not producer and not await worker_owns(repo, cfg, "python"): - owner = "none" # the tree calls for no Python tier + elif cfg and not await worker_owns(repo, cfg, "python"): + owner = "none" # neither the entry nor its tree calls for a Python tier else: owner = "manual" print(org, ns, wm or "-", head or "-", bare or "-", owner) @@ -101,7 +101,7 @@ PYEOF exit 0 fi if [[ "$OWNER" == "none" ]]; then - echo ">> $NS: the tree has no Python build file — no python tier" + echo ">> $NS: the tree has no Python build file and the entry names no python tier" exit 0 fi if [[ "$OWNER" == "excluded" ]]; then diff --git a/tests/unit/test_run_python_delta_upload_mode.py b/tests/unit/test_run_python_delta_upload_mode.py index cb09637a3fa..0f77fb44cd7 100644 --- a/tests/unit/test_run_python_delta_upload_mode.py +++ b/tests/unit/test_run_python_delta_upload_mode.py @@ -195,7 +195,11 @@ def _ident_snippet() -> str: (["CMakeLists.txt"], "", (), (), False, "none"), (["go.mod", "pyproject.toml"], "go", (), (), False, "go"), (["go.mod", "pyproject.toml"], "go", ("python",), (), False, "go"), - (["CMakeLists.txt"], "clang", (), (), False, "manual"), + # a named entry runs a Python tier only when it names one or its tree calls for it + (["CMakeLists.txt"], "clang", (), (), False, "none"), + (["CMakeLists.txt"], "clang", (), (), True, "none"), + (["CMakeLists.txt"], "clang", ("python",), (), False, "manual"), + (["CMakeLists.txt", "pyproject.toml"], "clang", (), (), False, "manual"), (["go.mod"], "", (), (), True, "none"), (["go.mod", "pyproject.toml"], "", (), (), True, "worker"), (["go.mod", "pyproject.toml"], "go", ("python",), (), True, "worker"), @@ -211,9 +215,9 @@ def test_the_manual_python_pass_goes_where_the_entry_and_its_tree_say( monkeypatch, capsys, tree, producer, extras, excluded, py_worker, owner ) -> None: """The Python worker takes what it owns; a Go or TypeScript entry's worker moves its - checkout; an entry naming no producer gets the manual pass only where its tree has a - Python build file (its Go and TypeScript tiers work in their own trees), and no entry - gets it for a Python tier it excludes.""" + checkout; any other entry gets the manual pass only for a Python tier it runs, one it + names or its tree has a build file for (its other tiers work in their own trees), and + no entry gets it for a Python tier it excludes.""" from unittest.mock import AsyncMock from server.code.app.index import repo_registry From 1b700273d96c7d73ffa49eb59878291b6b5ea105 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:21:07 +0530 Subject: [PATCH 10/24] Each compiler tier worker's docstring names the entries it runs The TypeScript, Go and Python workers said they run an entry whose scip_producer names their tier. They run every entry worker_owns gives them, which since this change includes a tier the tree calls for beside a named one. Signed-off-by: Vanshaj Poonia --- server/code/workers/scip_go_delta.py | 6 +++--- server/code/workers/scip_py_delta.py | 7 ++++--- server/code/workers/scip_ts_delta.py | 4 ++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/server/code/workers/scip_go_delta.py b/server/code/workers/scip_go_delta.py index f2f7a03e57c..ef6032b7665 100644 --- a/server/code/workers/scip_go_delta.py +++ b/server/code/workers/scip_go_delta.py @@ -1,9 +1,9 @@ """Per-merge compiler-tier freshness for Go. `code_scip_delta` keeps the C++ compiler tier current, `code_scip_ts_delta` - the TypeScript one. This worker is the Go row: for every -repository entry whose `scip_producer` is "go" it compares `git_head` with -`scip_commit_go`, moves the configured checkout to `git_head` (fetching from + the TypeScript one. This worker is the Go row: for every repository +entry that runs the Go tier (`producer_inference.worker_owns`) it compares +`git_head` with `scip_commit_go`, moves the configured checkout to `git_head` (fetching from the LOCAL bare clone code_ingest already advanced — never the network), works out which Go modules the window touched (the nearest `go.mod` above every changed `.go` / `go.mod` / `go.sum`; the first run with no watermark diff --git a/server/code/workers/scip_py_delta.py b/server/code/workers/scip_py_delta.py index 7d2fd388065..7004385f256 100644 --- a/server/code/workers/scip_py_delta.py +++ b/server/code/workers/scip_py_delta.py @@ -5,9 +5,10 @@ inference types — attributes set on a base in another file, unannotated parameters, metaclass-built APIs — the compiler tier's ground. Without this worker an operator runs `scripts/scip_harness/run_python_delta.sh` against -the server with a writer token by hand. For a repository entry whose -`scip_producer` is "python" (explicit, or inferred from its manifests) this -worker compares `git_head` with `scip_commit_py` and, +the server with a writer token by hand. For a repository entry that runs the +Python tier (`producer_inference.worker_owns`: it names it, or its tree has a +Python build file it does not exclude) this worker compares `git_head` with +`scip_commit_py` and, when the head has moved, runs scip-python and converts the index to a delta bounded to the Python files the window touched (a first run indexes the whole tree) in DELTA_OUT mode, then applies it in process — the TypeScript diff --git a/server/code/workers/scip_ts_delta.py b/server/code/workers/scip_ts_delta.py index 97c7a1e0bb6..f565ca2fc58 100644 --- a/server/code/workers/scip_ts_delta.py +++ b/server/code/workers/scip_ts_delta.py @@ -3,8 +3,8 @@ `code_scip_delta` keeps the C++ compiler tier current by running scip-clang over the changed translation units when the fast tier's `git_head` outruns `scip_commit`. This worker is the TypeScript row: for every repository -entry whose `scip_producer` is "typescript" it compares `git_head` with -`scip_commit_ts`, moves the configured checkout to `git_head` (fetching +entry that runs the TypeScript tier (`producer_inference.worker_owns`) it +compares `git_head` with `scip_commit_ts`, moves the configured checkout to `git_head` (fetching from the LOCAL bare clone code_ingest already advanced — never the network), runs `run_typescript_delta.sh` in DELTA_OUT mode (scip-typescript over the workspace, the converter's `--changed-files` bounding the delta to From 1897c486e1c828ef5f9061eee6b6d1c24acd45f6 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:31:48 +0530 Subject: [PATCH 11/24] A commit is judged on the tiers its entry runs now, not the cached ones code.index_status with a commit served its coverage from the cached status and refreshed only the heads and the watermarks of the tiers already in it. The cache can be an hour old on a quiet web process. A tier whose last go.mod went kept the commit waiting until the next refresh, and a tier that came back was not waited on at all. The commit branch now rebuilds the tiers from this call's state and the tree as indexed now, as the coverage watch does. A failed state read keeps the cached tiers as before. Signed-off-by: Vanshaj Poonia --- server/code/app/index_status.py | 33 +++++++++-------- tests/unit/test_code_status_ops.py | 48 +++++++++++++++++++++++++ tests/unit/test_coverage_fresh_heads.py | 16 +++++++-- 3 files changed, 81 insertions(+), 16 deletions(-) diff --git a/server/code/app/index_status.py b/server/code/app/index_status.py index ac73dfc8a62..c445967ec05 100644 --- a/server/code/app/index_status.py +++ b/server/code/app/index_status.py @@ -8,7 +8,7 @@ import json import logging import time -from collections.abc import Awaitable, Callable +from collections.abc import Awaitable, Callable, Collection from datetime import UTC, datetime from typing import Any, NamedTuple @@ -35,7 +35,7 @@ from server.code.app.index.ingest_stats import shown_index_error from server.code.app.spans import set_code_span_attributes from server.code.app.ttl_cache import TtlCache -from server.code.domain.index.compiler_tiers import state_value +from server.code.domain.index.compiler_tiers import compiler_tiers, state_value from server.code.domain.index.state import IndexState, shown_detail from server.code.store.index import CodeRepo from server.core.background import create_deferred_task @@ -327,7 +327,7 @@ async def _repo_status(cfg: Any, *, state: IndexState | None = None) -> CodeInde `state`: the namespace's state when the caller read every namespace's in one statement; the shared counts row rides in it.""" from server.code.app.index.producer_inference import read_tree, runnable_producers - from server.code.domain.index.compiler_tiers import WATERMARK_KEYS, compiler_tiers + from server.code.domain.index.compiler_tiers import WATERMARK_KEYS org, ns = cfg.org, cfg.namespace repo = CodeRepo() @@ -669,9 +669,12 @@ async def handle_code_index_status(input: CodeIndexStatusInput) -> CodeIndexStat if input.commit: # Per-commit coverage, after the cached status (it is # this call's question, not the repository's). - _fresh_heads(st, state) # Never a cached head from server.code.app.index.commit_coverage import commit_coverage from server.code.app.index.mirrors import history_dir + from server.code.app.index.producer_inference import read_tree, runnable_producers + + runs = runnable_producers(cfg, await read_tree(CodeRepo(), cfg)) + _fresh_heads(st, state, cfg.scip_producer, runs) # Never a cached head or tier git_dir, gap = await history_dir(entry) # the stand-in has no mirror to name cov = await commit_coverage( @@ -706,19 +709,21 @@ async def handle_code_index_status(input: CodeIndexStatusInput) -> CodeIndexStat _NOT_LOOKED_UP: Any = object() -def _fresh_heads(st: CodeIndexStatusOutput, state: IndexState) -> None: - """The heads a coverage answer is judged against, from this call's state read. The cached - status is stale-while-revalidate: a web process not asked for an hour would answer its - hour-old `git_head`, so one call could say a commit was covered and the next that it was - not.""" +def _fresh_heads( + st: CodeIndexStatusOutput, state: IndexState, entry_producer: str, runs: Collection[str] +) -> None: + """The heads and compiler tiers a coverage answer is judged against: this call's state + read and the tiers the entry `runs` over its tree now, each card keeping its cached lag. + The cached status is stale-while-revalidate: a web process not asked for an hour would + answer its hour-old `git_head` and tiers, so one call could say a commit was covered and + the next that it was not. An empty state (a failed read) keeps the cached ones.""" for key in ("git_head", "clone_head"): if value := state_value(state, key): setattr(st, key, value) - st.compiler_tiers = [t.model_copy() for t in st.compiler_tiers] # not the cached row's - for tier in st.compiler_tiers: - if (value := state_value(state, tier.watermark_key)) and value != tier.commit: - tier.commit = value - tier.updated_at = str((state.get(tier.watermark_key) or {}).get("updated_at") or "") + if state: + lags = {t.watermark_key: t.lag for t in st.compiler_tiers} + tiers = compiler_tiers(entry_producer, state, lags, runs) + st.compiler_tiers = [CodeCompilerTier(**t) for t in tiers] async def _state_for_status(org: str, ns: str) -> dict[str, Any]: diff --git a/tests/unit/test_code_status_ops.py b/tests/unit/test_code_status_ops.py index 398a8e6f9d9..3933e37cc67 100644 --- a/tests/unit/test_code_status_ops.py +++ b/tests/unit/test_code_status_ops.py @@ -333,6 +333,54 @@ async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: assert [t.producer for t in out.compiler_tiers] == ["clang"] +@pytest.mark.asyncio +async def test_a_commit_is_judged_on_the_tiers_the_tree_calls_for_now_not_the_cached_ones( + monkeypatch: pytest.MonkeyPatch, +) -> None: + """The status is cached, the tree is not: a go.mod that goes, then comes back, changes + whether a commit waits on Go at the next call.""" + import json + + from server.code.api.models_status import CodeIndexStatusInput + from server.code.app.index import mirrors + + a, b = "a" * 40, "b" * 40 + tree = {"CMakeLists.txt", "go.mod"} + + class GoModComesAndGoes(_FakeRepo): + async def all_state(self, org: str, ns: str) -> dict[str, dict[str, Any]]: + return { + "git_head": {"value": b}, + "scip_commit": {"value": b}, + "scip_commit_go": {"value": a}, + } + + async def live_paths_present(self, org: str, ns: str, paths: list[str]) -> set[str]: + return {p for p in paths if p in tree} + + async def live_paths_named(self, org: str, ns: str, name: str, *, limit: int) -> list[str]: + return [] + + async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: + return "", "no mirror here" + + entry = {"namespace": "code-clickhouse", "scip_producer": "clang"} + monkeypatch.setattr(index_status, "CodeRepo", GoModComesAndGoes) + monkeypatch.setattr(settings, "code_repos_json", json.dumps([entry])) + monkeypatch.setattr(mirrors, "history_dir", no_mirror) + + async def waiting_on() -> list[str]: + out = await index_status.handle_code_index_status(CodeIndexStatusInput(commit=b)) + assert out.commit_coverage is not None + return out.commit_coverage.waiting_on + + assert await waiting_on() == ["Go"] + tree.discard("go.mod") + assert await waiting_on() == [] + tree.add("go.mod") # Go resumes from its watermark at A + assert await waiting_on() == ["Go"] + + @pytest.mark.asyncio async def test_index_status_uses_repo_entry_branch_not_scalar() -> None: from server.code.api.models_status import CodeIndexStatusInput diff --git a/tests/unit/test_coverage_fresh_heads.py b/tests/unit/test_coverage_fresh_heads.py index 4a8080c6495..2d0e518d771 100644 --- a/tests/unit/test_coverage_fresh_heads.py +++ b/tests/unit/test_coverage_fresh_heads.py @@ -32,7 +32,7 @@ def test_a_stale_cached_status_takes_the_fresh_state_rows() -> None: "clone_head": {"value": b"5e65b017\x00"}, "scip_commit": {"value": "5e65b017", "updated_at": "2026-09-25 17:32:00"}, } - _fresh_heads(st, state) + _fresh_heads(st, state, "clang", ("clang",)) assert (st.git_head, st.clone_head) == ("585f97e8", "5e65b017") assert st.compiler_tiers[0].commit == "5e65b017" assert st.compiler_tiers[0].updated_at == "2026-09-25 17:32:00" @@ -42,5 +42,17 @@ def test_a_stale_cached_status_takes_the_fresh_state_rows() -> None: def test_an_empty_state_read_keeps_the_cached_heads() -> None: st = _cached().model_copy() - _fresh_heads(st, {}) + _fresh_heads(st, {}, "clang", ("clang",)) assert st.git_head == "5d00ecff" and st.compiler_tiers[0].commit == "old0" + + +def test_a_cached_card_of_a_tier_the_entry_stopped_running_goes() -> None: + """Go's card is cached from before its last go.mod went: this call's tiers decide.""" + st = _cached().model_copy() + go = st.compiler_tiers[0].model_copy( + update={"producer": "go", "label": "Go", "watermark_key": "scip_commit_go"} + ) + st.compiler_tiers = [*st.compiler_tiers, go] + state = {"scip_commit": {"value": "5e65b017"}, "scip_commit_go": {"value": "0ld60"}} + _fresh_heads(st, state, "clang", ("clang",)) + assert [(t.producer, t.commit, t.lag) for t in st.compiler_tiers] == [("clang", "5e65b017", 3)] From 21c133ce868c5ad8ef9f572a03be86b5387296ee Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:33:49 +0530 Subject: [PATCH 12/24] loom code scip-full says why it skips an entry without the clang tier The skip named the entry's scip_producer as the tier whose worker owns the entry. Since a tree's tiers run beside the named one, an entry is skipped because it does not run clang: not named, excluded, or no root CMakeLists.txt. For an entry that excludes clang no worker owns that tier, and for one naming no producer the message printed "inferred" as a tier. Signed-off-by: Vanshaj Poonia --- server/cli/code_scip.py | 13 +++++++------ tests/unit/test_scip_entry_lock.py | 24 ++++++++++++++++++------ 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/server/cli/code_scip.py b/server/cli/code_scip.py index f07ecedd236..5c06ce260b1 100644 --- a/server/cli/code_scip.py +++ b/server/cli/code_scip.py @@ -70,16 +70,17 @@ async def _scip_full(args: argparse.Namespace) -> int: cfg = _repo_cfg(args) # before declaring the org: an unconfigured entry records nothing await connect_code_plane(get_client(), args) org, ns = _identity(args) - # scip-full runs scip-clang; an entry another compiler tier owns (Go, - # Python, TypeScript) is that worker's to re-index, and its checkout is - # the worker's to fetch. Same ownership test the delta pass applies. + # scip-full runs scip-clang, only for an entry that runs the clang tier: the + # same ownership test the delta pass applies. from server.code.app.index.producer_inference import worker_owns from server.code.store.index import CodeRepo if not await worker_owns(CodeRepo(), cfg, "clang"): - producer = cfg.scip_producer or "inferred" - print(f"skip {ns}: its compiler tier is {producer}, not clang; that tier's worker owns it") - _note(skipped="not_clang", producer=producer) + print( + f"skip {ns}: the entry does not run the clang tier " + "(not named, excluded, or no root CMakeLists.txt in its tree)" + ) + _note(skipped="not_clang", producer=cfg.scip_producer or "inferred") return 0 # The whole entry runs under its lock, so a delta skips this entry while # the checkout moves and the watermark is written; other entries' deltas diff --git a/tests/unit/test_scip_entry_lock.py b/tests/unit/test_scip_entry_lock.py index aeb093e4ac0..425ab849fc2 100644 --- a/tests/unit/test_scip_entry_lock.py +++ b/tests/unit/test_scip_entry_lock.py @@ -191,15 +191,27 @@ async def locked(args, org, ns, cfg): @pytest.mark.asyncio @pytest.mark.parametrize( - ("producer", "extra"), - [("go", ()), ("typescript", ()), ("python", ("typescript",))], + ("producer", "extra", "excluded"), + [ + ("go", (), ()), + ("typescript", (), ()), + ("python", ("typescript",), ()), + # no worker runs a clang tier the entry excludes + ("python", (), ("clang",)), + ], ) -async def test_scip_full_skips_an_entry_another_tier_owns(producer, extra, capsys) -> None: +async def test_scip_full_skips_an_entry_that_does_not_run_the_clang_tier( + producer, extra, excluded, capsys +) -> None: from server.cli import code_scip cfg = repo_config( - org="acme", namespace="code-web", scip_producer=producer, scip_extra_producers=extra + org="acme", + namespace="code-web", + scip_producer=producer, + scip_extra_producers=extra, + scip_excluded_producers=excluded, ) locked = AsyncMock(return_value=0) args = argparse.Namespace(org="acme", namespace="code-web") @@ -209,8 +221,8 @@ async def test_scip_full_skips_an_entry_another_tier_owns(producer, extra, capsy patch.object(code_scip, "_scip_full_locked", locked), ): assert await code_scip._scip_full(args) == 0 - assert not locked.await_count, "scip-clang ran on an entry another compiler tier owns" - assert f"its compiler tier is {producer}" in capsys.readouterr().out + assert not locked.await_count, "scip-clang ran on an entry that does not run the clang tier" + assert "code-web: the entry does not run the clang tier" in capsys.readouterr().out @pytest.mark.asyncio From fe5551c6c2b8c0ff770ca5063ecad18ad1ed1187 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:35:22 +0530 Subject: [PATCH 13/24] The operations guide says a returning tier resumes from its watermark It said a tier the tree starts calling for begins with no watermark and indexes in full. That holds only for a tier that never ran. One that ran before resumes from its old watermark, and a commit waits on it until it catches up. The guide also says a code.repo.add entry has no exclusion list, and the paragraph is wrapped like the rest of the page again. Signed-off-by: Vanshaj Poonia --- docs/operations/code-index-operations.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index c389a6fdeb5..844eef525eb 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -489,7 +489,8 @@ primary tier and its checkout, and `scip_extra_producers` adds a tier the tree h build file for, such as TypeScript with no root `package.json`. Where a build file is incidental, such as a C++ repository whose `pyproject.toml` only serves its test tooling, list that tier in `scip_excluded_producers`. A tier the entry names runs even -when it is also excluded. +when it is also excluded. An entry added through `code.repo.add` takes `scip_producer` +only, so it runs every tier its tree has a build file for. `code.index_status` lists the tiers the tree calls for as `compiler_candidates` and names the rule behind each tier in `compiler_tier_rules`: `scip_producer`, @@ -498,11 +499,15 @@ exclude it) or `scip_excluded_producers` (the tier does not run). A tier that st running, because the entry excludes it or the tree loses its last build file for it, keeps its watermark. `compiler_tiers` shows no card for it, and neither `commit_coverage` nor a coverage watch waits for it. `run_python_delta.sh` runs a -Python tier only when the entry runs it. When a tree gains a build file, the tier starts on the next pass with no watermark and indexes its modules -in full, as a first run does. That costs build time and memory, about 4 GB for each Go -module job (`LOOM_CODE_SCIP_GO_JOBS`). Each tier works in its own tree: the named -producer (C/C++ when the entry names none) in `scip_checkout_dir`, every other one in -`.`. +Python tier only when the entry runs it. + +When a tree gains a build file, the tier starts on the next pass. A tier that never ran +indexes its modules in full, as a first run does. That costs build time and memory, +about 4 GB for each Go module job (`LOOM_CODE_SCIP_GO_JOBS`). A tier that ran before +resumes from its old watermark, or indexes in full when that commit has left the +history, and a commit waits on it until it catches up. Each tier works in its own tree: +the named producer (C/C++ when the entry names none) in `scip_checkout_dir`, every other +one in `.`. All the workers are enabled by default, and the Docker image carries every indexer: scip-python, scip-typescript, scip-go, and for C/C++ clang 21, lld, CMake, ninja and From 1e717c695de3486faa471b2896181fb9f3d2a570 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:35:42 +0530 Subject: [PATCH 14/24] A status that cannot read the tree still waits on every tier the entry may run Test only. The status and the coverage paths read a failed tree read as every tier the entry may run, so a commit never turns ready early on it. read_tree and runnable_producers each had a unit test, and this one runs the whole code.index_status call with the read failing. Signed-off-by: Vanshaj Poonia --- tests/unit/test_code_status_ops.py | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/tests/unit/test_code_status_ops.py b/tests/unit/test_code_status_ops.py index 3933e37cc67..1f219f2e131 100644 --- a/tests/unit/test_code_status_ops.py +++ b/tests/unit/test_code_status_ops.py @@ -333,6 +333,45 @@ async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: assert [t.producer for t in out.compiler_tiers] == ["clang"] +@pytest.mark.asyncio +async def test_a_tree_the_status_cannot_read_keeps_every_tier_the_entry_may_run( + monkeypatch: pytest.MonkeyPatch, +) -> None: + """Without the tree the status cannot tell that Go stopped, so the commit waits on it + rather than answering ready early.""" + import json + + from server.code.api.models_status import CodeIndexStatusInput + from server.code.app.index import mirrors + + a, b = "a" * 40, "b" * 40 + + class TreeUnread(_FakeRepo): + async def all_state(self, org: str, ns: str) -> dict[str, dict[str, Any]]: + return { + "git_head": {"value": b}, + "scip_commit": {"value": b}, + "scip_commit_go": {"value": a}, + } + + async def live_paths_present(self, org: str, ns: str, paths: list[str]) -> set[str]: + raise RuntimeError("manifest read timed out") + + async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: + return "", "no mirror here" + + entry = {"namespace": "code-clickhouse", "scip_producer": "clang"} + monkeypatch.setattr(index_status, "CodeRepo", TreeUnread) + monkeypatch.setattr(settings, "code_repos_json", json.dumps([entry])) + monkeypatch.setattr(mirrors, "history_dir", no_mirror) + + out = await index_status.handle_code_index_status(CodeIndexStatusInput(commit=b)) + + assert out.compiler_candidates == [] + assert [t.producer for t in out.compiler_tiers] == ["clang", "go"] + assert out.commit_coverage is not None and out.commit_coverage.waiting_on == ["Go"] + + @pytest.mark.asyncio async def test_a_commit_is_judged_on_the_tiers_the_tree_calls_for_now_not_the_cached_ones( monkeypatch: pytest.MonkeyPatch, From a9db22275be1ae3ed0e7c32e8b5c147e8366b608 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:44:15 +0530 Subject: [PATCH 15/24] Status and coverage polls read a namespace's tree once per status TTL A commit poll on code.index_status read the tree on every call, and in a repository with no root go.mod that read scans the namespace's file paths for one below the root. read_tree now keeps each namespace's answer for LOOM_CODE_STATUS_TTL_S, which the status, the coverage watch op and the notify pass share. A failed read is not kept. The compiler tier workers still read the tree on their own passes. Signed-off-by: Vanshaj Poonia --- server/code/app/index/producer_inference.py | 17 +++++++-- tests/unit/test_code_coverage_watch.py | 2 ++ tests/unit/test_code_status_ops.py | 38 +++++++++++++++++++++ 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/server/code/app/index/producer_inference.py b/server/code/app/index/producer_inference.py index e921f1f2afa..ec4d4cf1fb6 100644 --- a/server/code/app/index/producer_inference.py +++ b/server/code/app/index/producer_inference.py @@ -22,13 +22,18 @@ from collections.abc import Iterable from typing import TYPE_CHECKING +from server.code.app.ttl_cache import TtlCache from server.observability import degradations +from server.settings import settings if TYPE_CHECKING: from server.code.domain.index.repos import RepoConfig logger = logging.getLogger(__name__) +# (org, namespace) -> `tree_producers`: a burst of status and coverage polls reads it once +_trees: TtlCache[tuple[str, str], list[str]] = TtlCache(lambda: settings.code_status_ttl_s) + MARKERS: dict[str, tuple[str, ...]] = { "go": ("go.mod",), "typescript": ("tsconfig.json", "jsconfig.json", "package.json"), @@ -105,14 +110,20 @@ async def tree_producers(repo: object, org: str, ns: str) -> list[str]: async def read_tree(repo: object, cfg: RepoConfig) -> list[str] | None: - """`tree_producers` of the entry; None when the read fails. A status or coverage answer - then waits on every tier the entry may run, so a failed read never makes a commit ready.""" + """`tree_producers` of the entry, read at most once per status TTL (the workers read + their own); None when the read fails. A status or coverage answer then waits on every + tier the entry may run, so a failed read never makes a commit ready.""" + key = (cfg.org, cfg.namespace) + if (tree := _trees.get(key)) is not None: + return tree try: - return await tree_producers(repo, cfg.org, cfg.namespace) + tree = await tree_producers(repo, cfg.org, cfg.namespace) except Exception as e: # noqa: BLE001 — a status or coverage answer must not fail on it degradations.partial("code_index", "compiler_inference_unread", e) logger.debug("compiler inference unavailable for %s: %s", cfg.namespace, e) return None + _trees.put(key, tree) + return tree async def worker_owns( diff --git a/tests/unit/test_code_coverage_watch.py b/tests/unit/test_code_coverage_watch.py index 96590a9068a..10c0ba4d3e7 100644 --- a/tests/unit/test_code_coverage_watch.py +++ b/tests/unit/test_code_coverage_watch.py @@ -17,6 +17,7 @@ from server.code.api import models_coverage_watch as ops from server.code.app import coverage_watch as h +from server.code.app import ttl_cache from server.code.app import watches as svc from server.code.app.index import commit_coverage as cc from server.code.domain.coverage_watch import CoverageWatch @@ -245,6 +246,7 @@ async def test_a_tier_whose_last_build_file_went_holds_back_no_watch( assert out.commit_coverage is not None and out.commit_coverage.waiting_on == ["Go"] fake.tree = {"CMakeLists.txt"} + ttl_cache.clear_all() # the tree's memo lapses before the next pass got = await svc.notify_once() assert (got.delivered, got.emitted) == (1, 1) and len(fake.events) == 1 out = await h.handle_code_coverage_watch(_watch(b)) diff --git a/tests/unit/test_code_status_ops.py b/tests/unit/test_code_status_ops.py index 1f219f2e131..f0d1364de13 100644 --- a/tests/unit/test_code_status_ops.py +++ b/tests/unit/test_code_status_ops.py @@ -413,13 +413,51 @@ async def waiting_on() -> list[str]: assert out.commit_coverage is not None return out.commit_coverage.waiting_on + from server.code.app import ttl_cache + assert await waiting_on() == ["Go"] tree.discard("go.mod") + ttl_cache.clear_all() # the tree's memo lapses; the cached status does not assert await waiting_on() == [] tree.add("go.mod") # Go resumes from its watermark at A + ttl_cache.clear_all() assert await waiting_on() == ["Go"] +@pytest.mark.asyncio +async def test_a_poller_reads_the_tree_once_per_status_ttl( + monkeypatch: pytest.MonkeyPatch, +) -> None: + """A commit poll asks for the tree on every call; the status and the polls inside one + status TTL share one read of it.""" + import json + + from server.code.api.models_status import CodeIndexStatusInput + from server.code.app.index import mirrors + + reads: list[str] = [] + + class CountedTree(_FakeRepo): + async def live_paths_present(self, org: str, ns: str, paths: list[str]) -> set[str]: + reads.append(ns) + return {"CMakeLists.txt"} + + async def live_paths_named(self, org: str, ns: str, name: str, *, limit: int) -> list[str]: + return [] + + async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: + return "", "no mirror here" + + entry = {"namespace": "code-clickhouse", "scip_producer": "clang"} + monkeypatch.setattr(index_status, "CodeRepo", CountedTree) + monkeypatch.setattr(settings, "code_repos_json", json.dumps([entry])) + monkeypatch.setattr(mirrors, "history_dir", no_mirror) + + for _ in range(3): + await index_status.handle_code_index_status(CodeIndexStatusInput(commit="b" * 40)) + assert reads == ["code-clickhouse"] + + @pytest.mark.asyncio async def test_index_status_uses_repo_entry_branch_not_scalar() -> None: from server.code.api.models_status import CodeIndexStatusInput From 33b59f018bfa50991ead2950bd392877b9ac11a0 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:44:56 +0530 Subject: [PATCH 16/24] A commit's answer names the primary tier from the tiers it was judged on The commit branch of code.index_status rebuilt the tier cards but left scip_producer, scip_commit and scip_lag at the cached status's values, so an entry naming no producer whose Go tier stopped could answer Go as its primary next to a Python-only card list. Those fields now come from the rebuilt primary. A card also keeps its cached lag only while its watermark is the commit that lag was counted from, as published_lags does, so a moved watermark reads -1 instead of the old count. Signed-off-by: Vanshaj Poonia --- server/code/app/index_status.py | 22 ++++++++++++----- tests/unit/test_coverage_fresh_heads.py | 33 +++++++++++++++++++++++-- 2 files changed, 47 insertions(+), 8 deletions(-) diff --git a/server/code/app/index_status.py b/server/code/app/index_status.py index c445967ec05..a000fcc74b4 100644 --- a/server/code/app/index_status.py +++ b/server/code/app/index_status.py @@ -712,18 +712,28 @@ async def handle_code_index_status(input: CodeIndexStatusInput) -> CodeIndexStat def _fresh_heads( st: CodeIndexStatusOutput, state: IndexState, entry_producer: str, runs: Collection[str] ) -> None: - """The heads and compiler tiers a coverage answer is judged against: this call's state - read and the tiers the entry `runs` over its tree now, each card keeping its cached lag. + """The heads and compiler tiers a coverage answer is judged against, and the primary + tier's fields: this call's state read and the tiers the entry `runs` over its tree now. + A card keeps its cached lag only while its watermark is the one that lag counts from. The cached status is stale-while-revalidate: a web process not asked for an hour would answer its hour-old `git_head` and tiers, so one call could say a commit was covered and the next that it was not. An empty state (a failed read) keeps the cached ones.""" for key in ("git_head", "clone_head"): if value := state_value(state, key): setattr(st, key, value) - if state: - lags = {t.watermark_key: t.lag for t in st.compiler_tiers} - tiers = compiler_tiers(entry_producer, state, lags, runs) - st.compiler_tiers = [CodeCompilerTier(**t) for t in tiers] + if not state: + return + lags = { + t.watermark_key: t.lag + for t in st.compiler_tiers + if t.commit == state_value(state, t.watermark_key) + } + tiers = [CodeCompilerTier(**t) for t in compiler_tiers(entry_producer, state, lags, runs)] + primary = next((t for t in tiers if t.primary), None) + st.compiler_tiers = tiers + st.scip_producer = primary.producer if primary else "" + st.scip_commit = primary.commit if primary else "" + st.scip_lag = primary.lag if primary else -1 async def _state_for_status(org: str, ns: str) -> dict[str, Any]: diff --git a/tests/unit/test_coverage_fresh_heads.py b/tests/unit/test_coverage_fresh_heads.py index 2d0e518d771..ddbb8b2a33c 100644 --- a/tests/unit/test_coverage_fresh_heads.py +++ b/tests/unit/test_coverage_fresh_heads.py @@ -36,6 +36,8 @@ def test_a_stale_cached_status_takes_the_fresh_state_rows() -> None: assert (st.git_head, st.clone_head) == ("585f97e8", "5e65b017") assert st.compiler_tiers[0].commit == "5e65b017" assert st.compiler_tiers[0].updated_at == "2026-09-25 17:32:00" + # the cached lag counted from old0, not from the watermark the card now shows + assert st.compiler_tiers[0].lag == -1 # the cached row itself is untouched (model_copy is shallow) assert cached.git_head == "5d00ecff" and cached.compiler_tiers[0].commit == "old0" @@ -53,6 +55,33 @@ def test_a_cached_card_of_a_tier_the_entry_stopped_running_goes() -> None: update={"producer": "go", "label": "Go", "watermark_key": "scip_commit_go"} ) st.compiler_tiers = [*st.compiler_tiers, go] - state = {"scip_commit": {"value": "5e65b017"}, "scip_commit_go": {"value": "0ld60"}} + state = {"scip_commit": {"value": "old0"}, "scip_commit_go": {"value": "0ld60"}} _fresh_heads(st, state, "clang", ("clang",)) - assert [(t.producer, t.commit, t.lag) for t in st.compiler_tiers] == [("clang", "5e65b017", 3)] + assert [(t.producer, t.commit, t.lag) for t in st.compiler_tiers] == [("clang", "old0", 3)] + + +def test_the_primary_fields_follow_the_fresh_tiers() -> None: + """An entry naming no producer was cached with Go as its primary; its tree now calls for + Python only, so the answer names Python as the primary throughout.""" + st = CodeIndexStatusOutput.model_construct( + git_head="5d00ecff", + clone_head="5d00ecff", + scip_producer="go", + scip_commit="a" * 8, + scip_lag=2, + compiler_tiers=[ + CodeCompilerTier( + producer="go", + tool="scip-go", + label="Go", + watermark_key="scip_commit_go", + commit="a" * 8, + lag=2, + primary=True, + ) + ], + ) + state = {"scip_commit_go": {"value": "a" * 8}, "scip_commit_py": {"value": "b" * 8}} + _fresh_heads(st, state, "", ("python",)) + assert [(t.producer, t.primary) for t in st.compiler_tiers] == [("python", True)] + assert (st.scip_producer, st.scip_commit, st.scip_lag) == ("python", "b" * 8, -1) From 99bd64557a8d571cc7195e22c4c498e10a081093 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:45:34 +0530 Subject: [PATCH 17/24] The manual Python pass asks worker_owns once for its owner The identity step asked worker_owns up to twice and kept dropped() for its excluded case, the helper's last caller. It now asks once: an entry that does not run the tier is excluded when its list names python, else none. A tier the entry names still runs even when it is also excluded, and the owner table gains that case. Signed-off-by: Vanshaj Poonia --- scripts/scip_harness/run_python_delta.sh | 12 ++++++------ server/code/app/index/producer_inference.py | 7 ------- tests/unit/test_run_python_delta_upload_mode.py | 2 ++ 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/scripts/scip_harness/run_python_delta.sh b/scripts/scip_harness/run_python_delta.sh index 02d86d705c1..d605af1c267 100755 --- a/scripts/scip_harness/run_python_delta.sh +++ b/scripts/scip_harness/run_python_delta.sh @@ -67,7 +67,7 @@ from server.settings import settings async def m(): c = get_client(); await c.connect() from server.code.store.index import CodeRepo - from server.code.app.index.producer_inference import dropped, worker_owns + from server.code.app.index.producer_inference import worker_owns from server.code.domain.index.repos import configured_repos from server.code.app.index.repo_registry import read_registry_or_exit await read_registry_or_exit("run_python_delta") @@ -79,14 +79,14 @@ async def m(): cfg = next((r for r in configured_repos() if r.org == org and r.namespace == ns), None) bare = os.path.abspath(cfg.git_dir or settings.code_git_dir) if cfg else "" producer = cfg.scip_producer if cfg else "" - if cfg and settings.code_scip_py_delta_enabled and await worker_owns(repo, cfg, "python"): + owns = cfg is not None and await worker_owns(repo, cfg, "python") + if owns and settings.code_scip_py_delta_enabled: owner = "worker" elif producer in ("go", "typescript"): owner = producer # its in-process worker moves this checkout - elif cfg and "python" in dropped(cfg): - owner = "excluded" - elif cfg and not await worker_owns(repo, cfg, "python"): - owner = "none" # neither the entry nor its tree calls for a Python tier + elif cfg and not owns: + # the entry excludes the tier, or neither it nor its tree calls for one + owner = "excluded" if "python" in cfg.scip_excluded_producers else "none" else: owner = "manual" print(org, ns, wm or "-", head or "-", bare or "-", owner) diff --git a/server/code/app/index/producer_inference.py b/server/code/app/index/producer_inference.py index ec4d4cf1fb6..3709c085bb2 100644 --- a/server/code/app/index/producer_inference.py +++ b/server/code/app/index/producer_inference.py @@ -91,12 +91,6 @@ def runnable_producers(cfg: RepoConfig, tree: Iterable[str] | None = None) -> tu return (*named, *(p for p in PRODUCERS if p not in named and selected_by(cfg, p, called_for))) -def dropped(cfg: RepoConfig) -> tuple[str, ...]: - """The tiers the entry excludes and does not name: they never run, whatever its tree - holds.""" - return tuple(p for p in cfg.scip_excluded_producers if not selected_by(cfg, p, ())) - - async def tree_producers(repo: object, org: str, ns: str) -> list[str]: """The producers the namespace's live tree calls for: the manifests at the repository root (one membership read) plus any `go.mod` below it (a Go monorepo has @@ -146,7 +140,6 @@ async def worker_owns( "EXCLUDED", "MARKERS", "PRODUCERS", - "dropped", "infer_producers", "read_tree", "runnable_producers", diff --git a/tests/unit/test_run_python_delta_upload_mode.py b/tests/unit/test_run_python_delta_upload_mode.py index 0f77fb44cd7..460fa124269 100644 --- a/tests/unit/test_run_python_delta_upload_mode.py +++ b/tests/unit/test_run_python_delta_upload_mode.py @@ -209,6 +209,8 @@ def _ident_snippet() -> str: (["go.mod", "pyproject.toml"], "", (), ("python",), True, "excluded"), (["CMakeLists.txt", "pyproject.toml"], "clang", (), ("python",), True, "excluded"), (["CMakeLists.txt", "pyproject.toml"], "clang", (), ("python",), False, "excluded"), + # naming the tier beats excluding it + (["CMakeLists.txt"], "clang", ("python",), ("python",), False, "manual"), ], ) def test_the_manual_python_pass_goes_where_the_entry_and_its_tree_say( From a9229023814a54437e667a31cbda6584366d9961 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:46:06 +0530 Subject: [PATCH 18/24] The tier workers' first docstring paragraphs are wrapped evenly again Rewording which entries each worker runs left lines past 90 columns beside short ones. Text unchanged. Signed-off-by: Vanshaj Poonia --- server/code/workers/scip_go_delta.py | 23 +++++++++++----------- server/code/workers/scip_py_delta.py | 29 ++++++++++++++-------------- server/code/workers/scip_ts_delta.py | 22 ++++++++++----------- 3 files changed, 36 insertions(+), 38 deletions(-) diff --git a/server/code/workers/scip_go_delta.py b/server/code/workers/scip_go_delta.py index ef6032b7665..e739754311e 100644 --- a/server/code/workers/scip_go_delta.py +++ b/server/code/workers/scip_go_delta.py @@ -1,17 +1,16 @@ """Per-merge compiler-tier freshness for Go. -`code_scip_delta` keeps the C++ compiler tier current, `code_scip_ts_delta` - the TypeScript one. This worker is the Go row: for every repository -entry that runs the Go tier (`producer_inference.worker_owns`) it compares -`git_head` with `scip_commit_go`, moves the configured checkout to `git_head` (fetching from -the LOCAL bare clone code_ingest already advanced — never the network), -works out which Go modules the window touched (the nearest `go.mod` above -every changed `.go` / `go.mod` / `go.sum`; the first run with no watermark -is every module), runs `run_go_monorepo_delta.sh` in DELTA_OUT_DIR mode over -those modules only (scip-go per module, repository-relative paths, generated -documents dropped) and applies each module's -JSON delta in-process through the same validated apply path the upload ops -use. +`code_scip_delta` keeps the C++ compiler tier current, `code_scip_ts_delta` the +TypeScript one. This worker is the Go row: for every repository entry that runs +the Go tier (`producer_inference.worker_owns`) it compares `git_head` with +`scip_commit_go`, moves the configured checkout to `git_head` (fetching from the +LOCAL bare clone code_ingest already advanced — never the network), works out +which Go modules the window touched (the nearest `go.mod` above every changed +`.go` / `go.mod` / `go.sum`; the first run with no watermark is every module), +runs `run_go_monorepo_delta.sh` in DELTA_OUT_DIR mode over those modules only +(scip-go per module, repository-relative paths, generated documents dropped) and +applies each module's JSON delta in-process through the same validated apply +path the upload ops use. scip-go indexes a module whole (a type-checked build), so a window that touched three of hundreds of modules costs three module builds, not the tree; the diff --git a/server/code/workers/scip_py_delta.py b/server/code/workers/scip_py_delta.py index 7004385f256..68583e429e5 100644 --- a/server/code/workers/scip_py_delta.py +++ b/server/code/workers/scip_py_delta.py @@ -1,20 +1,19 @@ """Python compiler-tier deltas per merge. -The parser tier binds a Python call through its imports, receivers, chains -and heritage and still misses the calls only -inference types — attributes set on a base in another file, unannotated -parameters, metaclass-built APIs — the compiler tier's ground. Without this -worker an operator runs `scripts/scip_harness/run_python_delta.sh` against -the server with a writer token by hand. For a repository entry that runs the -Python tier (`producer_inference.worker_owns`: it names it, or its tree has a -Python build file it does not exclude) this worker compares `git_head` with -`scip_commit_py` and, -when the head has moved, runs scip-python and converts the index to a delta -bounded to the Python files the window touched (a first run indexes the -whole tree) in DELTA_OUT mode, then applies it in process — the TypeScript -worker's shape without an install step: scip-python reads -the repository's own modules from the tree and third-party packages from an -environment file the operator may leave empty. +The parser tier binds a Python call through its imports, receivers, chains and +heritage and still misses the calls only inference types — attributes set on a +base in another file, unannotated parameters, metaclass-built APIs — the +compiler tier's ground. Without this worker an operator runs +`scripts/scip_harness/run_python_delta.sh` against the server with a writer +token by hand. For a repository entry that runs the Python tier +(`producer_inference.worker_owns`: it names it, or its tree has a Python build +file it does not exclude) this worker compares `git_head` with `scip_commit_py` +and, when the head has moved, runs scip-python and converts the index to a delta +bounded to the Python files the window touched (a first run indexes the whole +tree) in DELTA_OUT mode, then applies it in process — the TypeScript worker's +shape without an install step: scip-python reads the repository's own modules +from the tree and third-party packages from an environment file the operator may +leave empty. """ from __future__ import annotations diff --git a/server/code/workers/scip_ts_delta.py b/server/code/workers/scip_ts_delta.py index f565ca2fc58..7493629355a 100644 --- a/server/code/workers/scip_ts_delta.py +++ b/server/code/workers/scip_ts_delta.py @@ -1,16 +1,16 @@ """Per-merge compiler-tier freshness for TypeScript. -`code_scip_delta` keeps the C++ compiler tier current by running scip-clang -over the changed translation units when the fast tier's `git_head` outruns -`scip_commit`. This worker is the TypeScript row: for every repository -entry that runs the TypeScript tier (`producer_inference.worker_owns`) it -compares `git_head` with `scip_commit_ts`, moves the configured checkout to `git_head` (fetching -from the LOCAL bare clone code_ingest already advanced — never the -network), runs `run_typescript_delta.sh` in DELTA_OUT mode (scip-typescript -over the workspace, the converter's `--changed-files` bounding the delta to -the window's TypeScript files; the first run with no watermark is a full -index) and applies the JSON delta in-process through the same validated -apply path the upload ops use. +`code_scip_delta` keeps the C++ compiler tier current by running scip-clang over +the changed translation units when the fast tier's `git_head` outruns +`scip_commit`. This worker is the TypeScript row: for every repository entry +that runs the TypeScript tier (`producer_inference.worker_owns`) it compares +`git_head` with `scip_commit_ts`, moves the configured checkout to `git_head` +(fetching from the LOCAL bare clone code_ingest already advanced — never the +network), runs `run_typescript_delta.sh` in DELTA_OUT mode (scip-typescript over +the workspace, the converter's `--changed-files` bounding the delta to the +window's TypeScript files; the first run with no watermark is a full index) and +applies the JSON delta in-process through the same validated apply path the +upload ops use. scip-typescript has no per-file mode, so every pass re-indexes the workspace (~4–5 min for a 5k-file workspace); one pass covers every merge From 6dd8436c8e847a76ccb431c962dced500b711088 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:54:18 +0530 Subject: [PATCH 19/24] A commit's answer reads scip_commit_py from the same state as its tiers The commit branch refreshed the tier cards and the primary's fields but left scip_commit_py and scip_py_lag at the cached status's values, so a Python entry could answer a fresh Python card next to an older scip_commit_py. The field now comes from this call's state, and its lag reads -1 once the watermark has moved, as the cards' lags do. Signed-off-by: Vanshaj Poonia --- server/code/app/index_status.py | 8 +++++--- tests/unit/test_coverage_fresh_heads.py | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/server/code/app/index_status.py b/server/code/app/index_status.py index a000fcc74b4..51222017c30 100644 --- a/server/code/app/index_status.py +++ b/server/code/app/index_status.py @@ -712,9 +712,9 @@ async def handle_code_index_status(input: CodeIndexStatusInput) -> CodeIndexStat def _fresh_heads( st: CodeIndexStatusOutput, state: IndexState, entry_producer: str, runs: Collection[str] ) -> None: - """The heads and compiler tiers a coverage answer is judged against, and the primary - tier's fields: this call's state read and the tiers the entry `runs` over its tree now. - A card keeps its cached lag only while its watermark is the one that lag counts from. + """The heads and compiler tiers a coverage answer is judged against, the primary tier's + fields and `scip_commit_py`: this call's state read and the tiers the entry `runs` over + its tree now. A lag stays only while its watermark is the one that lag counts from. The cached status is stale-while-revalidate: a web process not asked for an hour would answer its hour-old `git_head` and tiers, so one call could say a commit was covered and the next that it was not. An empty state (a failed read) keeps the cached ones.""" @@ -723,6 +723,8 @@ def _fresh_heads( setattr(st, key, value) if not state: return + if (py := state_value(state, "scip_commit_py")) != st.scip_commit_py: + st.scip_commit_py, st.scip_py_lag = py, -1 lags = { t.watermark_key: t.lag for t in st.compiler_tiers diff --git a/tests/unit/test_coverage_fresh_heads.py b/tests/unit/test_coverage_fresh_heads.py index ddbb8b2a33c..4cfdeaf3e4a 100644 --- a/tests/unit/test_coverage_fresh_heads.py +++ b/tests/unit/test_coverage_fresh_heads.py @@ -85,3 +85,21 @@ def test_the_primary_fields_follow_the_fresh_tiers() -> None: _fresh_heads(st, state, "", ("python",)) assert [(t.producer, t.primary) for t in st.compiler_tiers] == [("python", True)] assert (st.scip_producer, st.scip_commit, st.scip_lag) == ("python", "b" * 8, -1) + + +def test_the_python_watermark_by_name_follows_the_state_too() -> None: + st = _cached().model_copy(update={"scip_commit_py": "0ldpy", "scip_py_lag": 4}) + _fresh_heads( + st, + {"scip_commit": {"value": "old0"}, "scip_commit_py": {"value": "0ldpy"}}, + "clang", + ("clang",), + ) + assert (st.scip_commit_py, st.scip_py_lag) == ("0ldpy", 4) + _fresh_heads( + st, + {"scip_commit": {"value": "old0"}, "scip_commit_py": {"value": "n3wpy"}}, + "clang", + ("clang",), + ) + assert (st.scip_commit_py, st.scip_py_lag) == ("n3wpy", -1) From d82188e3377356598a63fe6ccb1dea264694685c Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Fri, 4 Dec 2026 19:54:38 +0530 Subject: [PATCH 20/24] A tree read with no build file is kept and a failed one is retried Test only. read_tree keeps an empty answer, which a truthiness check would drop, so a repository with no build files would be read on every poll. A failed read is not kept, so the next call reads again. Signed-off-by: Vanshaj Poonia --- tests/unit/test_code_repo_indexing_knobs.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/unit/test_code_repo_indexing_knobs.py b/tests/unit/test_code_repo_indexing_knobs.py index 46dd3af36df..acef20f2935 100644 --- a/tests/unit/test_code_repo_indexing_knobs.py +++ b/tests/unit/test_code_repo_indexing_knobs.py @@ -120,6 +120,21 @@ async def test_an_unread_tree_is_none_not_an_empty_one() -> None: assert await pi.read_tree(repo, _Entry(scip_producer="clang")) is None +@pytest.mark.asyncio +async def test_a_tree_read_is_kept_but_a_failed_one_is_not() -> None: + """A tree with no build file is an answer and is kept; a failed read is retried.""" + cfg = _Entry(scip_producer="clang") + failing = AsyncMock() + failing.live_paths_present.side_effect = RuntimeError("manifest read timed out") + assert await pi.read_tree(failing, cfg) is None + bare = AsyncMock() + bare.live_paths_present.return_value = set() + bare.live_paths_named.return_value = [] + assert await pi.read_tree(bare, cfg) == [] + assert await pi.read_tree(bare, cfg) == [] + assert bare.live_paths_present.await_count == 1 + + @pytest.mark.asyncio async def test_an_excluded_tier_does_not_run_though_the_tree_calls_for_it() -> None: repo = AsyncMock() From 47bc75ecfa14a74b15fb5cbf347da96473ef89e4 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sat, 5 Dec 2026 12:45:10 +0530 Subject: [PATCH 21/24] A tree read is kept per indexed head, so a tier the new head calls for is waited on at once Signed-off-by: Vanshaj Poonia --- server/code/app/coverage_watch.py | 2 +- server/code/app/index/producer_inference.py | 17 +++++---- server/code/app/index_status.py | 5 +-- server/code/app/watches.py | 11 +++--- tests/unit/test_code_coverage_watch.py | 39 +++++++++++++++++---- tests/unit/test_code_repo_indexing_knobs.py | 14 +++++--- tests/unit/test_code_status_ops.py | 20 +++++------ 7 files changed, 73 insertions(+), 35 deletions(-) diff --git a/server/code/app/coverage_watch.py b/server/code/app/coverage_watch.py index 7b58f2c4cf0..c1cabd1895c 100644 --- a/server/code/app/coverage_watch.py +++ b/server/code/app/coverage_watch.py @@ -103,7 +103,7 @@ async def handle_code_coverage_watch(input: CodeCoverageWatchInput) -> CodeCover watch = svc.new_watch(org, ns, sha, input.inbox, _caller_subject()) await repo.insert_watch_version(watch) state = await CodeRepo().all_state(org, ns) - coverage = await svc.coverage_for(cfg, sha, state, await svc.running_tiers(cfg)) + coverage = await svc.coverage_for(cfg, sha, state, await svc.running_tiers(cfg, state)) emitted = False if coverage.get("ready") and watch.delivered_at is None: emitted, watch = await svc.deliver(watch, coverage) diff --git a/server/code/app/index/producer_inference.py b/server/code/app/index/producer_inference.py index 3709c085bb2..a446bebcf0e 100644 --- a/server/code/app/index/producer_inference.py +++ b/server/code/app/index/producer_inference.py @@ -31,8 +31,9 @@ logger = logging.getLogger(__name__) -# (org, namespace) -> `tree_producers`: a burst of status and coverage polls reads it once -_trees: TtlCache[tuple[str, str], list[str]] = TtlCache(lambda: settings.code_status_ttl_s) +# (org, namespace, git_head) -> `tree_producers`: polls at one indexed head read it once, +# and a new head reads it again +_trees: TtlCache[tuple[str, str, str], list[str]] = TtlCache(lambda: settings.code_status_ttl_s) MARKERS: dict[str, tuple[str, ...]] = { "go": ("go.mod",), @@ -103,11 +104,13 @@ async def tree_producers(repo: object, org: str, ns: str) -> list[str]: return infer_producers(paths) -async def read_tree(repo: object, cfg: RepoConfig) -> list[str] | None: - """`tree_producers` of the entry, read at most once per status TTL (the workers read - their own); None when the read fails. A status or coverage answer then waits on every - tier the entry may run, so a failed read never makes a commit ready.""" - key = (cfg.org, cfg.namespace) +async def read_tree(repo: object, cfg: RepoConfig, head: str) -> list[str] | None: + """`tree_producers` of the entry while its indexed head (`git_head`) is `head`, read at + most once per status TTL and head (the workers read their own), so a tier the next head + calls for is waited on from that head's first answer. None when the read fails: a status + or coverage answer then waits on every tier the entry may run, so a failed read never + makes a commit ready.""" + key = (cfg.org, cfg.namespace, head) if (tree := _trees.get(key)) is not None: return tree try: diff --git a/server/code/app/index_status.py b/server/code/app/index_status.py index 51222017c30..aea6a6afef8 100644 --- a/server/code/app/index_status.py +++ b/server/code/app/index_status.py @@ -373,7 +373,7 @@ def detail(key: str) -> str: clone_head, lags = await _clone_lags(cfg, state, lags, val) # The entry's own tier is the headline, then each other tier it runs over its tree # now. An entry naming no producer defers to whichever of those is set. - tree = await read_tree(repo, cfg) + tree = await read_tree(repo, cfg, git_head) tiers = compiler_tiers(cfg.scip_producer, state, lags, runnable_producers(cfg, tree)) primary = next((t for t in tiers if t["primary"]), None) scip_commit = str(primary["commit"]) if primary else "" @@ -673,7 +673,8 @@ async def handle_code_index_status(input: CodeIndexStatusInput) -> CodeIndexStat from server.code.app.index.mirrors import history_dir from server.code.app.index.producer_inference import read_tree, runnable_producers - runs = runnable_producers(cfg, await read_tree(CodeRepo(), cfg)) + head = state_value(state, "git_head") + runs = runnable_producers(cfg, await read_tree(CodeRepo(), cfg, head)) _fresh_heads(st, state, cfg.scip_producer, runs) # Never a cached head or tier git_dir, gap = await history_dir(entry) # the stand-in has no mirror to name diff --git a/server/code/app/watches.py b/server/code/app/watches.py index 4d0a5812193..84b5a7fc250 100644 --- a/server/code/app/watches.py +++ b/server/code/app/watches.py @@ -36,12 +36,15 @@ ACTOR = "process:code_coverage_notify" -async def running_tiers(cfg: Any) -> tuple[str, ...]: - """The tiers the entry runs over its tree as indexed now, as the status reads them.""" +async def running_tiers(cfg: Any, state: IndexState) -> tuple[str, ...]: + """The tiers the entry runs over its tree as indexed at `state`'s `git_head`, as the + status reads them.""" from server.code.app.index.producer_inference import read_tree, runnable_producers + from server.code.domain.index.compiler_tiers import state_value from server.code.store.index import CodeRepo - return runnable_producers(cfg, await read_tree(CodeRepo(), cfg)) + head = state_value(state, "git_head") + return runnable_producers(cfg, await read_tree(CodeRepo(), cfg, head)) async def coverage_for( @@ -190,7 +193,7 @@ async def notify_once(*, limit: int = 5000) -> NotifyResult: unknown += len(rows) continue state = states.get((org, ns)) or {} - runs = await running_tiers(cfg) + runs = await running_tiers(cfg, state) for w in rows: try: coverage = await coverage_for(cfg, w.commit_sha, state, runs) diff --git a/tests/unit/test_code_coverage_watch.py b/tests/unit/test_code_coverage_watch.py index 10c0ba4d3e7..464610dec0e 100644 --- a/tests/unit/test_code_coverage_watch.py +++ b/tests/unit/test_code_coverage_watch.py @@ -17,7 +17,6 @@ from server.code.api import models_coverage_watch as ops from server.code.app import coverage_watch as h -from server.code.app import ttl_cache from server.code.app import watches as svc from server.code.app.index import commit_coverage as cc from server.code.domain.coverage_watch import CoverageWatch @@ -232,13 +231,13 @@ async def test_a_tier_excluded_after_it_ran_holds_back_no_watch( async def test_a_tier_whose_last_build_file_went_holds_back_no_watch( fake: Fake, history: tuple[str, list[str]] ) -> None: - """The tree called for Go, which indexed up to A, until a later commit removed the - last go.mod. The Go worker stops there, so the pass delivers a watch on B once the - fast and C++ tiers cover it.""" + """The tree called for Go, which indexed up to A, until C removed the last go.mod. + The Go worker stops there, so the first pass at C delivers a watch on B that the + fast and C++ tiers cover, while the tree read at B is still fresh.""" _, (a, b, c) = history fake.tree = {"CMakeLists.txt", "tools/go.mod"} fake.state = { - "git_head": {"value": c}, + "git_head": {"value": b}, "scip_commit": {"value": b}, "scip_commit_go": {"value": a}, } @@ -246,13 +245,41 @@ async def test_a_tier_whose_last_build_file_went_holds_back_no_watch( assert out.commit_coverage is not None and out.commit_coverage.waiting_on == ["Go"] fake.tree = {"CMakeLists.txt"} - ttl_cache.clear_all() # the tree's memo lapses before the next pass + fake.state["git_head"] = {"value": c} got = await svc.notify_once() assert (got.delivered, got.emitted) == (1, 1) and len(fake.events) == 1 out = await h.handle_code_coverage_watch(_watch(b)) assert out.commit_coverage is not None and out.commit_coverage.waiting_on == [] +@pytest.mark.asyncio +async def test_a_tier_whose_build_file_returns_holds_back_the_watch( + fake: Fake, history: tuple[str, list[str]] +) -> None: + """A has no go.mod and Go's watermark stays at A. B adds a go.mod, so once the fast + and C++ tiers reach B the watch on B waits for Go, while the tree read at A is still + fresh.""" + _, (a, b, _) = history + fake.state = { + "git_head": {"value": a}, + "scip_commit": {"value": a}, + "scip_commit_go": {"value": a}, + } + out = await h.handle_code_coverage_watch(_watch(b)) + assert not out.ready + + fake.tree = {"CMakeLists.txt", "go.mod"} + fake.state["git_head"] = fake.state["scip_commit"] = {"value": b} + got = await svc.notify_once() + assert (got.delivered, got.emitted) == (0, 0) and not fake.events + out = await h.handle_code_coverage_watch(_watch(b)) + assert out.commit_coverage is not None and out.commit_coverage.waiting_on == ["Go"] + + fake.state["scip_commit_go"] = {"value": b} + got = await svc.notify_once() + assert (got.delivered, got.emitted) == (1, 1) and len(fake.events) == 1 + + @pytest.mark.asyncio async def test_a_crash_between_the_event_and_the_watch_update_does_not_duplicate( fake: Fake, history: tuple[str, list[str]] diff --git a/tests/unit/test_code_repo_indexing_knobs.py b/tests/unit/test_code_repo_indexing_knobs.py index acef20f2935..782316da5dd 100644 --- a/tests/unit/test_code_repo_indexing_knobs.py +++ b/tests/unit/test_code_repo_indexing_knobs.py @@ -117,22 +117,26 @@ async def test_an_unread_tree_is_none_not_an_empty_one() -> None: """A status or coverage answer then waits on every tier the entry may run.""" repo = AsyncMock() repo.live_paths_present.side_effect = RuntimeError("manifest read timed out") - assert await pi.read_tree(repo, _Entry(scip_producer="clang")) is None + assert await pi.read_tree(repo, _Entry(scip_producer="clang"), "b" * 40) is None @pytest.mark.asyncio async def test_a_tree_read_is_kept_but_a_failed_one_is_not() -> None: - """A tree with no build file is an answer and is kept; a failed read is retried.""" + """A tree with no build file is an answer and is kept for its head; a failed read is + retried, and so is a read at a new head.""" cfg = _Entry(scip_producer="clang") + b, c = "b" * 40, "c" * 40 failing = AsyncMock() failing.live_paths_present.side_effect = RuntimeError("manifest read timed out") - assert await pi.read_tree(failing, cfg) is None + assert await pi.read_tree(failing, cfg, b) is None bare = AsyncMock() bare.live_paths_present.return_value = set() bare.live_paths_named.return_value = [] - assert await pi.read_tree(bare, cfg) == [] - assert await pi.read_tree(bare, cfg) == [] + assert await pi.read_tree(bare, cfg, b) == [] + assert await pi.read_tree(bare, cfg, b) == [] assert bare.live_paths_present.await_count == 1 + assert await pi.read_tree(bare, cfg, c) == [] + assert bare.live_paths_present.await_count == 2 @pytest.mark.asyncio diff --git a/tests/unit/test_code_status_ops.py b/tests/unit/test_code_status_ops.py index f0d1364de13..4a0ba470ca6 100644 --- a/tests/unit/test_code_status_ops.py +++ b/tests/unit/test_code_status_ops.py @@ -376,21 +376,23 @@ async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: async def test_a_commit_is_judged_on_the_tiers_the_tree_calls_for_now_not_the_cached_ones( monkeypatch: pytest.MonkeyPatch, ) -> None: - """The status is cached, the tree is not: a go.mod that goes, then comes back, changes - whether a commit waits on Go at the next call.""" + """A head that drops the go.mod, then one that brings it back, changes whether its + commit waits on Go at the next call, while the status and the tree read at the head + before are still cached.""" import json from server.code.api.models_status import CodeIndexStatusInput from server.code.app.index import mirrors - a, b = "a" * 40, "b" * 40 + a = "a" * 40 + head = "b" * 40 tree = {"CMakeLists.txt", "go.mod"} class GoModComesAndGoes(_FakeRepo): async def all_state(self, org: str, ns: str) -> dict[str, dict[str, Any]]: return { - "git_head": {"value": b}, - "scip_commit": {"value": b}, + "git_head": {"value": head}, + "scip_commit": {"value": head}, "scip_commit_go": {"value": a}, } @@ -409,18 +411,16 @@ async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: monkeypatch.setattr(mirrors, "history_dir", no_mirror) async def waiting_on() -> list[str]: - out = await index_status.handle_code_index_status(CodeIndexStatusInput(commit=b)) + out = await index_status.handle_code_index_status(CodeIndexStatusInput(commit=head)) assert out.commit_coverage is not None return out.commit_coverage.waiting_on - from server.code.app import ttl_cache - assert await waiting_on() == ["Go"] tree.discard("go.mod") - ttl_cache.clear_all() # the tree's memo lapses; the cached status does not + head = "c" * 40 assert await waiting_on() == [] tree.add("go.mod") # Go resumes from its watermark at A - ttl_cache.clear_all() + head = "d" * 40 assert await waiting_on() == ["Go"] From 2844be23183ad8a9eb9a5fa0a713586ffb0ddb35 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sun, 6 Dec 2026 10:05:25 +0530 Subject: [PATCH 22/24] A tree read that sees the head move is not kept for the head it was asked about read_tree stored the tree under the git_head the caller had read earlier, but the caller can await a mirror lag first, so the read may see the next head's files. It now reads the head again after the tree and returns None when it moved. The caller waits on every tier the entry may run and no entry is kept for the old head. Signed-off-by: Vanshaj Poonia --- server/code/app/index/producer_inference.py | 11 +++++-- tests/unit/test_code_coverage_watch.py | 32 +++++++++++++++++++++ tests/unit/test_code_repo_indexing_knobs.py | 31 ++++++++++++++++++++ 3 files changed, 71 insertions(+), 3 deletions(-) diff --git a/server/code/app/index/producer_inference.py b/server/code/app/index/producer_inference.py index a446bebcf0e..3aec47383c1 100644 --- a/server/code/app/index/producer_inference.py +++ b/server/code/app/index/producer_inference.py @@ -23,6 +23,7 @@ from typing import TYPE_CHECKING from server.code.app.ttl_cache import TtlCache +from server.code.domain.index.compiler_tiers import state_value from server.observability import degradations from server.settings import settings @@ -107,18 +108,22 @@ async def tree_producers(repo: object, org: str, ns: str) -> list[str]: async def read_tree(repo: object, cfg: RepoConfig, head: str) -> list[str] | None: """`tree_producers` of the entry while its indexed head (`git_head`) is `head`, read at most once per status TTL and head (the workers read their own), so a tier the next head - calls for is waited on from that head's first answer. None when the read fails: a status - or coverage answer then waits on every tier the entry may run, so a failed read never - makes a commit ready.""" + calls for is waited on from that head's first answer. None when the read fails or the + head moved while it ran, since what it saw may be the next head's tree: a status or + coverage answer then waits on every tier the entry may run, so it never makes a commit + ready early.""" key = (cfg.org, cfg.namespace, head) if (tree := _trees.get(key)) is not None: return tree try: tree = await tree_producers(repo, cfg.org, cfg.namespace) + state = await repo.all_state(cfg.org, cfg.namespace) # type: ignore[attr-defined] except Exception as e: # noqa: BLE001 — a status or coverage answer must not fail on it degradations.partial("code_index", "compiler_inference_unread", e) logger.debug("compiler inference unavailable for %s: %s", cfg.namespace, e) return None + if state_value(state, "git_head") != head: + return None _trees.put(key, tree) return tree diff --git a/tests/unit/test_code_coverage_watch.py b/tests/unit/test_code_coverage_watch.py index 464610dec0e..2e78c9f0ab6 100644 --- a/tests/unit/test_code_coverage_watch.py +++ b/tests/unit/test_code_coverage_watch.py @@ -280,6 +280,38 @@ async def test_a_tier_whose_build_file_returns_holds_back_the_watch( assert (got.delivered, got.emitted) == (1, 1) and len(fake.events) == 1 +@pytest.mark.asyncio +async def test_a_tree_read_while_the_head_moves_does_not_decide_the_tiers_of_the_old_head( + fake: Fake, history: tuple[str, list[str]], monkeypatch: pytest.MonkeyPatch +) -> None: + """The pass judges B, which has a go.mod. C removes it and is published while the tree + is read, so the read sees C's tree. B's tiers then stay every tier the entry may run, + so Go is still waited on.""" + from server.code.store import index as code_repo + + _, (_, b, c) = history + fake.tree = {"CMakeLists.txt", "go.mod"} + fake.state = {"git_head": {"value": b}, "scip_commit": {"value": b}} + at_b = dict(fake.state) + state_repo = code_repo.CodeRepo + + class HeadMoves(state_repo): # type: ignore[valid-type, misc] + async def live_paths_present(self, org, ns, paths): + fake.tree.discard("go.mod") + fake.state["git_head"] = {"value": c} + return await super().live_paths_present(org, ns, paths) + + monkeypatch.setattr(code_repo, "CodeRepo", HeadMoves) + cfg = SimpleNamespace( + org=ORG, + namespace=NS, + scip_producer="clang", + scip_extra_producers=(), + scip_excluded_producers=(), + ) + assert "go" in await svc.running_tiers(cfg, at_b) + + @pytest.mark.asyncio async def test_a_crash_between_the_event_and_the_watch_update_does_not_duplicate( fake: Fake, history: tuple[str, list[str]] diff --git a/tests/unit/test_code_repo_indexing_knobs.py b/tests/unit/test_code_repo_indexing_knobs.py index 782316da5dd..c9e2a1d8782 100644 --- a/tests/unit/test_code_repo_indexing_knobs.py +++ b/tests/unit/test_code_repo_indexing_knobs.py @@ -120,6 +120,35 @@ async def test_an_unread_tree_is_none_not_an_empty_one() -> None: assert await pi.read_tree(repo, _Entry(scip_producer="clang"), "b" * 40) is None +@pytest.mark.asyncio +async def test_a_tree_read_while_the_head_moves_is_not_kept_for_the_old_head() -> None: + """The next head is published while the read runs, so what it saw is that head's tree. + The old head gets no entry from it, and the caller judging on the old head is told the + tree is unread.""" + cfg = _Entry(scip_producer="clang") + b, c = "b" * 40, "c" * 40 + + class HeadMoves: + head, paths, moves = b, {"go.mod"}, True + + async def all_state(self, org: str, ns: str) -> dict[str, Any]: + return {"git_head": {"value": self.head}} + + async def live_paths_present(self, org: str, ns: str, paths: list[str]) -> set[str]: + if self.moves: + self.head, self.paths = c, set() # c removes the go.mod + return {p for p in paths if p in self.paths} + + async def live_paths_named(self, org: str, ns: str, name: str, *, limit: int) -> list[str]: + return [] + + repo = HeadMoves() + assert await pi.read_tree(repo, cfg, b) is None + repo.head, repo.moves = b, False + repo.paths = {"go.mod"} + assert await pi.read_tree(repo, cfg, b) == ["go"] + + @pytest.mark.asyncio async def test_a_tree_read_is_kept_but_a_failed_one_is_not() -> None: """A tree with no build file is an answer and is kept for its head; a failed read is @@ -132,9 +161,11 @@ async def test_a_tree_read_is_kept_but_a_failed_one_is_not() -> None: bare = AsyncMock() bare.live_paths_present.return_value = set() bare.live_paths_named.return_value = [] + bare.all_state.return_value = {"git_head": {"value": b}} assert await pi.read_tree(bare, cfg, b) == [] assert await pi.read_tree(bare, cfg, b) == [] assert bare.live_paths_present.await_count == 1 + bare.all_state.return_value = {"git_head": {"value": c}} assert await pi.read_tree(bare, cfg, c) == [] assert bare.live_paths_present.await_count == 2 From bde6a2864781793af03023deb97e9c737fb39fb5 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sun, 6 Dec 2026 10:06:35 +0530 Subject: [PATCH 23/24] A commit answer takes its tier selection and warnings from the tree it judged coverage on With a warm status cache, removing the last go.mod refreshed the tier cards and the coverage but left Go in compiler_tier_rules, compiler_candidates and the has-not-run warnings. The commit path now rebuilds those from the same tree read. Signed-off-by: Vanshaj Poonia --- server/code/app/index_status.py | 53 +++++++++++++++++++++------ tests/unit/test_code_status_ops.py | 58 +++++++++++++++++++++++++++--- 2 files changed, 95 insertions(+), 16 deletions(-) diff --git a/server/code/app/index_status.py b/server/code/app/index_status.py index aea6a6afef8..ac058e8ad3e 100644 --- a/server/code/app/index_status.py +++ b/server/code/app/index_status.py @@ -485,11 +485,7 @@ def _index_quality( git_head: str, fetch_overdue: bool, ) -> tuple[list[str], dict[str, str], list[str]]: - from server.code.app.index.producer_inference import EXCLUDED, tier_rules - from server.code.domain.index.compiler_tiers import TIERS - - def value(key: str) -> str: - return _s((state.get(key) or {}).get("value")) + from server.code.app.index.producer_inference import tier_rules warnings: list[str] = [] if not git_head: @@ -497,12 +493,26 @@ def value(key: str) -> str: if fetch_overdue: warnings.append("The repository mirror is overdue for a fetch.") rules = tier_rules(cfg, candidates) + return candidates, rules, warnings + _unrun_tier_warnings(state, candidates, rules) + + +_UNRUN_TIER = "is available for this tree but has not run" + + +def _unrun_tier_warnings( + state: IndexState, candidates: list[str], rules: dict[str, str] +) -> list[str]: + """One warning for each tier the tree calls for that runs on this entry and has no + watermark.""" + from server.code.app.index.producer_inference import EXCLUDED + from server.code.domain.index.compiler_tiers import TIERS + + out: list[str] = [] for producer in candidates: spec = next((tier for tier in TIERS if tier.producer == producer), None) - if spec and rules[producer] != EXCLUDED and not value(spec.watermark_key): - names = ", ".join(spec.workers) - warnings.append(f"{spec.tool} is available for this tree but has not run ({names}).") - return candidates, rules, warnings + if spec and rules[producer] != EXCLUDED and not state_value(state, spec.watermark_key): + out.append(f"{spec.tool} {_UNRUN_TIER} ({', '.join(spec.workers)}).") + return out def published_clone_head(state: IndexState, branch: str) -> str: @@ -673,9 +683,10 @@ async def handle_code_index_status(input: CodeIndexStatusInput) -> CodeIndexStat from server.code.app.index.mirrors import history_dir from server.code.app.index.producer_inference import read_tree, runnable_producers - head = state_value(state, "git_head") - runs = runnable_producers(cfg, await read_tree(CodeRepo(), cfg, head)) + tree = await read_tree(CodeRepo(), cfg, state_value(state, "git_head")) + runs = runnable_producers(cfg, tree) _fresh_heads(st, state, cfg.scip_producer, runs) # Never a cached head or tier + _fresh_selection(st, cfg, state, tree) git_dir, gap = await history_dir(entry) # the stand-in has no mirror to name cov = await commit_coverage( @@ -739,6 +750,26 @@ def _fresh_heads( st.scip_lag = primary.lag if primary else -1 +def _fresh_selection( + st: CodeIndexStatusOutput, cfg: Any, state: IndexState, tree: list[str] | None +) -> None: + """The tiers the tree calls for, the rule behind each and the warnings about the ones + that have not run, from the tree `_fresh_heads` judged the tiers on (none when it is + unread, as in a computed status), so a cached status never names a tier the answer's + cards and coverage have dropped. An empty state keeps the cached ones.""" + from server.code.app.index.producer_inference import tier_rules + + if not state: + return + candidates = tree or [] + rules = tier_rules(cfg, candidates) + st.compiler_candidates, st.compiler_tier_rules = candidates, rules + st.quality_warnings = [ + *(w for w in st.quality_warnings if _UNRUN_TIER not in w), + *_unrun_tier_warnings(state, candidates, rules), + ] + + async def _state_for_status(org: str, ns: str) -> dict[str, Any]: """The namespace's `code_index_state` rows for `code.index_status`; {} when the read fails, noted: a commit is then judged against the cached status's diff --git a/tests/unit/test_code_status_ops.py b/tests/unit/test_code_status_ops.py index 4a0ba470ca6..c929d7f894a 100644 --- a/tests/unit/test_code_status_ops.py +++ b/tests/unit/test_code_status_ops.py @@ -410,18 +410,66 @@ async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: monkeypatch.setattr(settings, "code_repos_json", json.dumps([entry])) monkeypatch.setattr(mirrors, "history_dir", no_mirror) - async def waiting_on() -> list[str]: + async def answer() -> Any: out = await index_status.handle_code_index_status(CodeIndexStatusInput(commit=head)) assert out.commit_coverage is not None - return out.commit_coverage.waiting_on + return out - assert await waiting_on() == ["Go"] + # the selection fields and the warnings follow the same tree as the coverage + out = await answer() + assert out.commit_coverage.waiting_on == ["Go"] + assert out.compiler_candidates == ["go", "clang"] + assert out.compiler_tier_rules == {"clang": "scip_producer", "go": "tree"} tree.discard("go.mod") head = "c" * 40 - assert await waiting_on() == [] + out = await answer() + assert out.commit_coverage.waiting_on == [] + assert out.compiler_candidates == ["clang"] + assert out.compiler_tier_rules == {"clang": "scip_producer"} tree.add("go.mod") # Go resumes from its watermark at A head = "d" * 40 - assert await waiting_on() == ["Go"] + assert (await answer()).commit_coverage.waiting_on == ["Go"] + + +@pytest.mark.asyncio +async def test_a_warning_about_a_tier_the_tree_no_longer_calls_for_goes_with_it( + monkeypatch: pytest.MonkeyPatch, +) -> None: + """Go has never run. The cached status warns about it while the tree has a go.mod. A + commit asked after the last go.mod went is answered without that warning.""" + import json + + from server.code.api.models_status import CodeIndexStatusInput + from server.code.app.index import mirrors + + tree = {"CMakeLists.txt", "go.mod"} + + class GoModGoes(_FakeRepo): + async def all_state(self, org: str, ns: str) -> dict[str, dict[str, Any]]: + return {"git_head": {"value": head}, "scip_commit": {"value": head}} + + async def live_paths_present(self, org: str, ns: str, paths: list[str]) -> set[str]: + return {p for p in paths if p in tree} + + async def live_paths_named(self, org: str, ns: str, name: str, *, limit: int) -> list[str]: + return [] + + async def no_mirror(cfg: Any, **_: Any) -> tuple[str, str]: + return "", "no mirror here" + + head = "b" * 40 + entry = {"namespace": "code-clickhouse", "scip_producer": "clang"} + monkeypatch.setattr(index_status, "CodeRepo", GoModGoes) + monkeypatch.setattr(settings, "code_repos_json", json.dumps([entry])) + monkeypatch.setattr(mirrors, "history_dir", no_mirror) + + out = await index_status.handle_code_index_status(CodeIndexStatusInput(commit=head)) + assert [w for w in out.quality_warnings if w.startswith("scip-go")] + tree.discard("go.mod") + head = "c" * 40 + out = await index_status.handle_code_index_status(CodeIndexStatusInput(commit=head)) + assert out.compiler_candidates == ["clang"] + assert not [w for w in out.quality_warnings if w.startswith("scip-go")] @pytest.mark.asyncio From 4a5fad932fea0f373b474f1fa62c06d1d7510647 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sun, 6 Dec 2026 10:17:34 +0530 Subject: [PATCH 24/24] The watch notifier test stubs the running tiers the pass now reads notify_once reads the tiers an entry runs before it judges a watch. The stub for coverage_for from #2170 took three arguments and the pass read the tree against no database, so no watch was delivered. Signed-off-by: Vanshaj Poonia --- tests/unit/test_code_passes_derive_once.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_code_passes_derive_once.py b/tests/unit/test_code_passes_derive_once.py index ff07e9d6ac2..c9ad31fa7cc 100644 --- a/tests/unit/test_code_passes_derive_once.py +++ b/tests/unit/test_code_passes_derive_once.py @@ -474,7 +474,10 @@ async def pending_watches(*, limit: int) -> list[Any]: async def states(self: Any, pairs: list[tuple[str, str]]) -> dict[Any, Any]: return {} - async def coverage_for(cfg: Any, commit: str, state: Any) -> dict[str, Any]: + async def running_tiers(cfg: Any, state: Any) -> tuple[str, ...]: + return () + + async def coverage_for(cfg: Any, commit: str, state: Any, runs: Any) -> dict[str, Any]: return {"ready": commit != "c4", "repo": cfg.repo} async def deliver(watch: Any, coverage: dict[str, Any]) -> tuple[bool, Any]: @@ -483,6 +486,7 @@ async def deliver(watch: Any, coverage: dict[str, Any]) -> tuple[bool, Any]: monkeypatch.setattr(watches.repo, "pending_watches", pending_watches) monkeypatch.setattr("server.code.store.index.CodeRepo.all_state_many", states) + monkeypatch.setattr(watches, "running_tiers", running_tiers) monkeypatch.setattr(watches, "coverage_for", coverage_for) monkeypatch.setattr(watches, "deliver", deliver) return await watches.notify_once(), delivered