From 55901c627971f8d161bd293d72a2b78d367d2442 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 07:51:09 +0000 Subject: [PATCH 01/27] code.calibrate samples its probes from the namespace code.calibrate read a fixed corpus of 20 ClickHouse C++ probes, so every code namespace on one embedder got the same thresholds. It now samples up to code_calibrate_probes (200) documented functions of the namespace, round-robin across language and directory strata: the first paragraph of the doc comment is the query, the function without its doc comment is the positive, and a function from another stratum is the distractor. A namespace with fewer than 20 usable probes falls back to the fixed corpus. The reply names the source and the strata. Distractors from the same repository share its vocabulary: on bge-m3 their 90th percentile is 0.50 to 0.53, so the distractor-only derivation puts abstain at 0.57 to 0.60, above 29 to 42 percent of the namespace's own query/function pairs. code.calibrate therefore caps abstain at the positives' 10th percentile and keeps the noise floor 0.05 under it. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Kaloyan Naumov --- docs/architecture/llm-architecture.md | 11 +- docs/benchmarks/running.md | 2 +- docs/operations/code-index-operations.md | 15 +- docs/reference/configuration.md | 1 + docs/reference/operations.md | 2 +- docs/reference/operations/code.md | 8 +- loom.example.yaml | 6 + schemas/loom-settings.schema.json | 5 + sdk/go/wire/models.gen.go | 4 +- sdk/python/loom/ops.py | 2 + sdk/rust/src/wire_models.rs | 11 + sdk/rust/tests/registry_contracts.rs | 2 +- sdk/typescript/src/generated/ops.ts | 2 + server/code/api/models_ingest.py | 10 +- server/code/app/admin.py | 101 ++++++-- server/code/domain/calibration_probes.py | 144 ++++++++++ server/code/store/index/search.py | 53 ++++ server/settings/catalog.py | 4 + tests/unit/snapshots/settings_defaults.json | 1 + tests/unit/test_code_calibration_probes.py | 274 ++++++++++++++++++++ tests/unit/test_embedder_calibration.py | 7 + 21 files changed, 632 insertions(+), 33 deletions(-) create mode 100644 server/code/domain/calibration_probes.py create mode 100644 tests/unit/test_code_calibration_probes.py diff --git a/docs/architecture/llm-architecture.md b/docs/architecture/llm-architecture.md index 86a508516a0..88eabb74efe 100644 --- a/docs/architecture/llm-architecture.md +++ b/docs/architecture/llm-architecture.md @@ -176,8 +176,11 @@ With `LOOM_ADAPTIVE_THRESHOLDS` on (the default), `calibrate_embedder` in corpora (paraphrase pairs, question-to-fact pairs, distractor pairs) and reads their cosine distributions (`derive_thresholds`). Memory paraphrases use document/document vectors; question/fact and distractor pairs use query/document vectors. `code.calibrate` -explicitly uses query/document vectors for its authored query/code positives in both -positive distributions, including the persisted conflict and duplicate gates: +explicitly uses query/document vectors for its query/code positives in both positive +distributions, including the persisted conflict and duplicate gates. Its probes come from +the namespace's documented functions (the doc comment's first paragraph as the query, the +function without it as the positive, a function from another directory as the +distractor), or from a fixed corpus for a namespace with fewer than 20 of them: | Threshold | Derived as | | ------------- | ------------------------------------------ | @@ -189,6 +192,10 @@ positive distributions, including the persisted conflict and duplicate gates: | conflict | paraphrase p50 | | duplicate | paraphrase p75 | +`code.calibrate` then caps abstain at its question-to-answer p10 and keeps the noise floor +0.05 under it, so a namespace abstains on at most one in ten of its own documented +functions. + Each search resolves thresholds in three tiers: 1. a per-namespace calibration (`loom.namespace_calibration_result`, written by diff --git a/docs/benchmarks/running.md b/docs/benchmarks/running.md index 7680141a64b..cadfb42ef67 100644 --- a/docs/benchmarks/running.md +++ b/docs/benchmarks/running.md @@ -217,7 +217,7 @@ skips paths with a `datasets` segment. | `bench/fixtures/code_intel_mined_issue_ka.jsonl` | 14 rows | `code_intel_qa.py` | The keyword-agnostic slice (`code_intel_ka_slice.py`) | | `bench/fixtures/code_intel_history.jsonl` | 105 rows | `code_intel_qa.py` | "What fixed issue N" questions mined from merged PRs | | `bench/fixtures/code_intel_oss.jsonl` | 304 rows | `code_intel_qa.py` | An MIT-licensed third-party code-search corpus at a pinned revision; model-authored gold | -| `bench/fixtures/code_calibration_probes.jsonl` | 20 query / positive pairs | code calibration (`server/code/app/admin.py`) | Over the ClickHouse repository | +| `bench/fixtures/code_calibration_probes.jsonl` | 20 query / positive pairs | code calibration fallback (`server/code/app/admin.py`) | Over the ClickHouse repository | | `bench/fixtures/code_plane_ablation/` | 2 tasks, arm A and arm C transcripts | `code_plane_ablation.py selftest`, `acceptance/plugin.py` | Synthetic transcripts that prove the scorer | | `bench/acceptance/fixtures/shunt_decisions.json` | 12 cases | `acceptance/plugin.py` | Read / Grep decisions the plugin's code shunt must make | | `bench/code_ask_cache_threshold/pairs.json` | 42 paraphrase, 43 different, 22 different-identifier pairs | `code_ask_cache_threshold/measure.py` | Written from a live `code.ask` cache's questions ([results](./results.md#codeask-answer-cache-threshold)) | diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index aa77d026d2a..7b07be8ab97 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -394,9 +394,18 @@ docker exec loom-workers loom code backfill-prs --namespace code-myrepo --org ac Then: - `POST /v1/code.calibrate` (`ADMIN`) derives the code index's abstention thresholds, and - the confident-hit cosine at which `retrieval_confidence` reads 1.0, from - `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image). Run it for - every code namespace, and again after a change of embedding model. A namespace + the confident-hit cosine at which `retrieval_confidence` reads 1.0, from the + namespace's own code. It samples up to `LOOM_CODE_CALIBRATE_PROBES` (200) documented + functions across the namespace's languages and directories. Each probe embeds the first + paragraph of the function's doc comment as the query against the function without that + comment, and against a function from another directory. A namespace with fewer than 20 + usable documented functions is calibrated on + `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image) instead; + `probe_source` in the reply says which. The abstain threshold is at most the probes' + 10th-percentile query-to-function cosine: functions of one repository share its + vocabulary, so an unrelated one scores close to the right one, and the distractor + percentile alone would abstain on many right answers. Run it for every code namespace, + and again after a change of embedding model. A namespace without its own calibration (`calibration.get` reads `source: cluster`) reads code on the embedder's boot calibration, which is derived from prose. On an embedding model that scores a right code hit lower than a right prose answer, answerable diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index b95e9fc0fdd..638153c2f93 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -704,6 +704,7 @@ The code index's network git (clone, fetch, ls-remote, submodule update) through | `LOOM_CODE_SEARCH_RRF_LEXICAL_WEIGHT_RESPONSIBILITY` | `float` | `1.0` | | Lexical list's RRF weight for a responsibility question (vector = 1.0). 1.0 = equal weights. | | `LOOM_CODE_SEARCH_ABSTAIN_CARD_BELOW` | `float` | `0.0` | | A prose question whose nearest file card's cosine is below this abstains `off_domain`; independent of the card leg. 0 = off. | | `LOOM_CODE_SEARCH_ABSTAIN_CONFIDENCE_BELOW` | `float` | `0.35` | | The abstain score below which a code.search result is flagged `low_calibrated_confidence` (still returned). The score is not `retrieval_confidence`: it blends the top cosine, its margin over the second hit, route agreement and the pool size. The deployment sets 0.30. | +| `LOOM_CODE_CALIBRATE_PROBES` | `int` | `200` | | Query/answer probes `code.calibrate` samples from a namespace's documented functions. Each costs three embeddings (query, unit, distractor) and no LLM call; a namespace with fewer than 20 usable probes is calibrated on the fixed corpus. | | `LOOM_CODE_SEARCH_MEDIUM_RISK_FROM` | `float` | `0.35` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "medium"; below it the result reads "high". In the measurement behind the default about half of the prompts sent to another repository's index scored under it. | | `LOOM_CODE_SEARCH_LOW_RISK_FROM` | `float` | `0.7` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "low": the best cosine is close to that of a confident hit. A prompt about other code usually scores lower, but about one in five sent to another repository's index still read low. The coding-agent plugins send their prompt pointers from it. | | `LOOM_CODE_SEARCH_HYDE_KINDS` | `str` | `'responsibility'` | | The question kinds the hypothetical answer votes on. | diff --git a/docs/reference/operations.md b/docs/reference/operations.md index e05a540537c..2d5a73c1048 100644 --- a/docs/reference/operations.md +++ b/docs/reference/operations.md @@ -191,7 +191,7 @@ Fields for every `code` op: [operations/code.md](operations/code.md). | [`code.backport_gaps`](operations/code.md#codebackport_gaps) | The set-wide backport report: which merged fixes labelled for backport does a release branch still owe? | viewer | read | no | | | [`code.bisect_candidates`](operations/code.md#codebisect_candidates) | Rank PRs that may have introduced a bug; Loom does not test or reproduce it. | viewer | read | no | | | [`code.blame_range`](operations/code.md#codeblame_range) | Which merged PRs last touched these lines, between release A and B? | viewer | read | no | | -| [`code.calibrate`](operations/code.md#codecalibrate) | Derive this namespace's calibration from the authored probe corpus and persist it: the code-specific abstention thresholds and the confident-hit cosine at the top of the `retrieval_confidence` scale. | admin | write | no | yes | +| [`code.calibrate`](operations/code.md#codecalibrate) | Derive this namespace's calibration and persist it: the code-specific abstention thresholds and the confident-hit cosine at the top of the `retrieval_confidence` scale. | admin | write | no | yes | | [`code.callees`](operations/code.md#codecallees) | What does this symbol call — forward call edges (depth<=3), tier-marked like code.callers. | viewer | read | no | | | [`code.callers`](operations/code.md#codecallers) | Find callers before editing shared code. | viewer | read | yes | | | [`code.context_pack`](operations/code.md#codecontext_pack) | Briefing at the START of a task, instead of exploring file by file. | viewer | read | yes | | diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index c947aa68bc2..0da91efe8e6 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -240,7 +240,7 @@ Which merged PRs last touched these lines, between release A and B? ## `code.calibrate` -Derive this namespace's calibration from the authored probe corpus and persist it: the code-specific abstention thresholds and the confident-hit cosine at the top of the `retrieval_confidence` scale. +Derive this namespace's calibration and persist it: the code-specific abstention thresholds and the confident-hit cosine at the top of the `retrieval_confidence` scale. `POST /v1/code.calibrate` · MCP `loom_code_calibrate` · role `admin` · write · audited · not listed under the MCP `all` toolset @@ -258,8 +258,10 @@ Derive this namespace's calibration from the authored probe corpus and persist i | `abstain_threshold` | `float` | Cosine below which the search abstains: `noise_floor` plus 0.05. | | `rerank_skip_above` | `float` | Cosine of a confident hit, the probes' 75th-percentile question-to-answer cosine: where `code.search`'s `retrieval_confidence` reads 1.0. | | `embedder_model` | `str` | The embedding model the probes ran against; the calibration applies to it. | -| `positives` | `int` | Query/positive pairs read from the probe corpus. | -| `distractors` | `int` | Query/distractor pairs read from the probe corpus. | +| `positives` | `int` | Query/positive pairs the thresholds were derived from. | +| `distractors` | `int` | Query/distractor pairs the thresholds were derived from. | +| `probe_source` | `Literal['namespace', 'fixture']` | Where the probes came from: `namespace` (its own documented functions) or `fixture` (the fixed corpus, for a namespace with too few documented functions). | +| `strata` | `int` | Language-and-directory strata the namespace probes were drawn from; 0 for the fixture. | ## `code.callees` diff --git a/loom.example.yaml b/loom.example.yaml index 3f93ea4d9f9..2181adfdbc6 100644 --- a/loom.example.yaml +++ b/loom.example.yaml @@ -2194,6 +2194,12 @@ settings: # route agreement and the pool size. The deployment sets 0.30. [restart] # code_search_abstain_confidence_below: 0.35 + # Query/answer probes `code.calibrate` samples from a namespace's documented + # functions. Each costs three embeddings (query, unit, distractor) and no LLM call; a + # namespace with fewer than 20 usable probes is calibrated on the fixed corpus. + # [restart] + # code_calibrate_probes: 200 + # The `retrieval_confidence` from which a code.search result reads `retrieval_risk` # "medium"; below it the result reads "high". In the measurement behind the default # about half of the prompts sent to another repository's index scored under it. diff --git a/schemas/loom-settings.schema.json b/schemas/loom-settings.schema.json index f2eed092e68..e992a54c9f4 100644 --- a/schemas/loom-settings.schema.json +++ b/schemas/loom-settings.schema.json @@ -808,6 +808,11 @@ "type": "string", "description": "Comma-separated GitHub logins of autonomous agents that author pull requests or issues in the indexed repositories, beyond the generic bots (dependabot, github-actions, …). They are never suggested as owners, their names are not tracker entities, and bisect ignores the lines they sign." }, + "code_calibrate_probes": { + "default": 200, + "type": "integer", + "description": "Query/answer probes `code.calibrate` samples from a namespace's documented functions. Each costs three embeddings (query, unit, distractor) and no LLM call; a namespace with fewer than 20 usable probes is calibrated on the fixed corpus." + }, "code_callers_candidate_min_confidence": { "default": 0.2, "type": "number", diff --git a/sdk/go/wire/models.gen.go b/sdk/go/wire/models.gen.go index 17eed44a291..790de686c9e 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: f9b7a2982bba9c04fae4982d1fdef8f4fe90ca6cff6973b5ae002ce0ed9a44b1 +// Registry model schema SHA-256: 50d6ae41a966c29e197ac2841301cdea7be03a1fa612d42ebd23bade00124d99 // Package wire contains the Go requests and responses for Loom operations. package wire @@ -853,6 +853,8 @@ type CodeCalibrateOutput struct { EmbedderModel string `json:"embedder_model"` Positives int64 `json:"positives"` Distractors int64 `json:"distractors"` + ProbeSource string `json:"probe_source"` + Strata int64 `json:"strata"` } // CodeCalleesInput is the request to code.callees. diff --git a/sdk/python/loom/ops.py b/sdk/python/loom/ops.py index 8aff0264c80..c4a0959b10c 100644 --- a/sdk/python/loom/ops.py +++ b/sdk/python/loom/ops.py @@ -5965,6 +5965,8 @@ class CodeCalibrateOutput(TypedDict, total=False): embedder_model: Required[str] positives: Required[int] distractors: Required[int] + probe_source: Required[Literal["namespace", "fixture"]] + strata: Required[int] class CodeCallersInput(TypedDict, total=False): diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs index d1028fcaeed..757b9fafdf1 100644 --- a/sdk/rust/src/wire_models.rs +++ b/sdk/rust/src/wire_models.rs @@ -7499,6 +7499,15 @@ impl CodeBlameRangeInput { } } +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +#[non_exhaustive] +pub enum CodeCalibrateOutputProbeSource { + #[serde(rename = "namespace")] + Namespace, + #[serde(rename = "fixture")] + Fixture, +} + #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCalibrateOutput { @@ -7508,6 +7517,8 @@ pub struct CodeCalibrateOutput { pub embedder_model: String, pub positives: Integer, pub distractors: Integer, + pub probe_source: CodeCalibrateOutputProbeSource, + pub strata: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] diff --git a/sdk/rust/tests/registry_contracts.rs b/sdk/rust/tests/registry_contracts.rs index a973cf94d9a..8fe570a2469 100644 --- a/sdk/rust/tests/registry_contracts.rs +++ b/sdk/rust/tests/registry_contracts.rs @@ -11747,7 +11747,7 @@ fn code_calibrate() { let value: clickhouse_loom::CodeCalibrateInput = serde_json::from_str("{}").unwrap(); let encoded = serde_json::to_value(value).unwrap(); assert!(encoded.is_object()); - let value: clickhouse_loom::CodeCalibrateOutput = serde_json::from_str("{\"noise_floor\":1.0,\"abstain_threshold\":1.0,\"rerank_skip_above\":1.0,\"embedder_model\":\"sample\",\"positives\":1,\"distractors\":1}").unwrap(); + let value: clickhouse_loom::CodeCalibrateOutput = serde_json::from_str("{\"noise_floor\":1.0,\"abstain_threshold\":1.0,\"rerank_skip_above\":1.0,\"embedder_model\":\"sample\",\"positives\":1,\"distractors\":1,\"probe_source\":\"namespace\",\"strata\":1}").unwrap(); let encoded = serde_json::to_value(value).unwrap(); assert!(encoded.is_object()); } diff --git a/sdk/typescript/src/generated/ops.ts b/sdk/typescript/src/generated/ops.ts index cb38c73cabc..7ddd87ceb8d 100644 --- a/sdk/typescript/src/generated/ops.ts +++ b/sdk/typescript/src/generated/ops.ts @@ -433,6 +433,8 @@ export interface CodeCalibrateOutput { embedder_model: string; positives: number; distractors: number; + probe_source: "namespace" | "fixture"; + strata: number; } export interface CodeCallersInput { diff --git a/server/code/api/models_ingest.py b/server/code/api/models_ingest.py index d19a94418a5..e62c95fc38a 100644 --- a/server/code/api/models_ingest.py +++ b/server/code/api/models_ingest.py @@ -6,6 +6,7 @@ from __future__ import annotations import uuid +from typing import Literal from pydantic import BaseModel, Field, field_validator @@ -156,7 +157,12 @@ class CodeCalibrateOutput(BaseModel): rerank_skip_above: float # The embedding model the probes ran against; the calibration applies to it. embedder_model: str - # Query/positive pairs read from the probe corpus. + # Query/positive pairs the thresholds were derived from. positives: int - # Query/distractor pairs read from the probe corpus. + # Query/distractor pairs the thresholds were derived from. distractors: int + # Where the probes came from: `namespace` (its own documented functions) or + # `fixture` (the fixed corpus, for a namespace with too few documented functions). + probe_source: Literal["namespace", "fixture"] + # Language-and-directory strata the namespace probes were drawn from; 0 for the fixture. + strata: int diff --git a/server/code/app/admin.py b/server/code/app/admin.py index 5654aed2857..85f846a3836 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -4,6 +4,8 @@ import json import logging +from dataclasses import replace +from typing import TYPE_CHECKING, Literal from server.code.api.models_ingest import ( CodeCalibrateInput, @@ -12,13 +14,21 @@ CodeReindexOutput, ) from server.code.app.common import require_code_intel, resolve_code_identity +from server.code.domain.calibration_probes import Probes, Unit, sample_probes from server.code.store.index import CodeRepo from server.core.errors import ValidationError from server.core.paths import REPO_ROOT +from server.settings import settings + +if TYPE_CHECKING: + from server.memory.app.embedder_calibration import CalibrationResult logger = logging.getLogger(__name__) _PROBES_PATH = REPO_ROOT / "bench" / "fixtures" / "code_calibration_probes.jsonl" +# not a setting: below this many probes the distractors' 90th percentile rests on one +# or two pairs, and the fixed corpus is the better estimate +MIN_NAMESPACE_PROBES = 20 async def handle_code_reindex(input: CodeReindexInput) -> CodeReindexOutput: @@ -41,34 +51,84 @@ async def handle_code_reindex(input: CodeReindexInput) -> CodeReindexOutput: return CodeReindexOutput(previous_head=previous, new_head=input.git_head) -async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutput: - """Derive this namespace's calibration from the authored probe corpus and - persist it: the code-specific abstention thresholds and the confident-hit - cosine at the top of the `retrieval_confidence` scale. The probes are - query/positive/hard-distractor triples over the indexed repo. Cosine - distributions for code differ from prose — the namespace must not inherit - prose-derived gates.""" - from server.memory.app.embedder_calibration import ( - calibrate_embedder, - persist_namespace_calibration, - ) - - require_code_intel() - org, ns = resolve_code_identity(input.org, input.namespace) - +def _fixture_probes() -> Probes: + """The fixed query/positive/distractor corpus, for a namespace too small to sample.""" if not _PROBES_PATH.exists(): raise ValidationError(f"probe corpus missing: {_PROBES_PATH}") - positives: list[tuple[str, str]] = [] - distractors: list[tuple[str, str]] = [] + probes = Probes() for line in _PROBES_PATH.read_text().splitlines(): line = line.strip() if not line or line.startswith("//"): continue probe = json.loads(line) q = str(probe["query"]) - positives.append((q, str(probe["positive"]))) + probes.positives.append((q, str(probe["positive"]))) if probe.get("distractor"): - distractors.append((q, str(probe["distractor"]))) + probes.distractors.append((q, str(probe["distractor"]))) + return probes + + +async def _namespace_probes(org: str, ns: str) -> Probes: + """Probes sampled from the namespace's documented functions under the served + embedding model; empty when the embedder is unavailable.""" + from server.embedding.embedder import get_embedder + + try: + model = str(get_embedder().model_name) + except Exception as e: # noqa: BLE001 — no embedder: calibrate_embedder reports it + logger.info("code.calibrate: embedder unavailable (%s)", e) + return Probes() + size = settings.code_calibrate_probes + # Most doc comments pass the query filter; five candidates per probe keep a + # namespace with a few documented strata from running dry. + documented, pool = await CodeRepo().calibration_units( + org, ns, model, documented=size * 5, pool=size * 5 + ) + return sample_probes( + ns, + [Unit(r["path"], r["context_text"], r["doc"]) for r in documented], + [Unit(r["path"], r["context_text"]) for r in pool], + size=size, + ) + + +def _bounded_by_answers(calibration: CalibrationResult) -> CalibrationResult: + """`calibration` with its abstain threshold at most the probes' 10th-percentile + query-to-answer cosine, and the noise floor kept 0.05 under it. Units of one + repository share its vocabulary, so an unrelated unit scores close to the right one + and the distractors' 90th percentile alone would abstain on many right answers.""" + abstain = min(calibration.abstain_threshold, calibration.question_fact_p10) + if abstain >= calibration.abstain_threshold: + return calibration + return replace( + calibration, + abstain_threshold=abstain, + noise_floor=min(calibration.noise_floor, abstain - 0.05), + ) + + +async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutput: + """Derive this namespace's calibration and persist it: the code-specific + abstention thresholds and the confident-hit cosine at the top of the + `retrieval_confidence` scale. The probes are the namespace's own documented + functions (the doc comment's first paragraph as the query, the unit without it as + the positive, a unit from another directory or language as the distractor); a + namespace with fewer than `MIN_NAMESPACE_PROBES` of them is calibrated on the fixed + corpus. Cosine distributions for code differ from prose, and from one repository + to the next: the namespace must not inherit another corpus's gates.""" + from server.memory.app.embedder_calibration import ( + calibrate_embedder, + persist_namespace_calibration, + ) + + require_code_intel() + org, ns = resolve_code_identity(input.org, input.namespace) + + probes = await _namespace_probes(org, ns) + source: Literal["namespace", "fixture"] = "namespace" + if min(len(probes.positives), len(probes.distractors)) < MIN_NAMESPACE_PROBES: + probes, source = _fixture_probes(), "fixture" + positives, distractors = probes.positives, probes.distractors if len(positives) < 5 or len(distractors) < 3: raise ValidationError( f"probe corpus too small: {len(positives)} positives, " @@ -89,6 +149,7 @@ async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutpu "calibration probe failed (fake embedder or provider error) — thresholds unchanged" ) + calibration = _bounded_by_answers(calibration) await persist_namespace_calibration(org, ns, calibration) return CodeCalibrateOutput( noise_floor=calibration.noise_floor, @@ -97,4 +158,6 @@ async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutpu embedder_model=calibration.embedder_model, positives=len(positives), distractors=len(distractors), + probe_source=source, + strata=probes.strata, ) diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py new file mode 100644 index 00000000000..3ff1a025d8d --- /dev/null +++ b/server/code/domain/calibration_probes.py @@ -0,0 +1,144 @@ +"""Calibration probes sampled from a code namespace's own units. + +A documented function is a query and its answer that the repository already wrote: +the first paragraph of its doc comment says what the unit does, the way a question +about it would. `code.calibrate` embeds each such query against its unit (with the +doc comment taken out, so the answer does not contain the question) and against a +unit from another part of the namespace. The thresholds then follow the repository's +own language and vocabulary instead of a fixed corpus. +""" + +from __future__ import annotations + +import hashlib +import random +import re +from dataclasses import dataclass, field +from pathlib import PurePosixPath + +from server.code.domain.index.test_gate import is_test_path + +# not a setting: a paragraph shorter than this names the unit, it does not describe it +_MIN_QUERY_WORDS = 4 +# not a setting: a search query is about a sentence; a longer paragraph is cut there +_MAX_QUERY_WORDS = 32 +# not a setting: a stratum is a directory two levels deep, the grain a repository's +# components usually sit at +_STRATUM_DEPTH = 2 + +_LEADER = re.compile(r"^\s*(?:/{2,3}!?|/\*+!?|\*+/?|#+|\"{3}|'{3}|--)\s?") +_TAG = re.compile(r"^[@\\](brief|summary)\s+") +_SECTION = re.compile( + r"^(?:[@\\:]\w+|(?:Args|Arguments|Returns?|Raises|Yields|Parameters|Example)s?:)" +) +_NOT_PROSE = re.compile(r"://|^namespace(?:\s+\w+)?\s*$|^(?:end|endif)\b", re.IGNORECASE) +_WORD = re.compile(r"[A-Za-z]{2}") +_NOT_DESCRIPTION = ("todo", "fixme", "xxx", "hack", "copyright", "spdx", "noqa", "type:", "pylint") + + +@dataclass(frozen=True) +class Unit: + """A function chunk: its path, the text it was embedded from and its doc comment.""" + + path: str + context_text: str + doc_comment: str = "" + + +@dataclass +class Probes: + positives: list[tuple[str, str]] = field(default_factory=list) + distractors: list[tuple[str, str]] = field(default_factory=list) + # Strata the positives were drawn from: language and directory. + strata: int = 0 + + +def probe_query(doc_comment: str) -> str: + """The first paragraph of a doc comment as a search query, or '' when it does not + describe the unit (too short, a tag, a link, a note to maintainers).""" + words: list[str] = [] + for raw in doc_comment.strip().splitlines(): + line = _TAG.sub("", _LEADER.sub("", raw).strip().rstrip("*/").strip()) + if not line: + if words: + break + continue + if _SECTION.match(line): + break + if _NOT_PROSE.search(line): + if words: + break + continue + words.extend(line.split()) + query = " ".join(words).strip("\"' ") + if len(query.split()) < _MIN_QUERY_WORDS or query.lower().startswith(_NOT_DESCRIPTION): + return "" + if sum(ch.isalpha() or ch.isspace() for ch in query) < 0.8 * len(query): + return "" + return " ".join(query.split()[:_MAX_QUERY_WORDS]) + + +def without_doc(context_text: str, doc_comment: str) -> str: + """`context_text` with every copy of the doc comment removed from its body (a unit's + chunk can carry it both ahead of the declaration and inside it), so a probe's + positive does not contain its own query.""" + doc = [line.strip() for line in doc_comment.strip().splitlines() if _WORD.search(line)] + if not doc: + return context_text + head, sep, body = context_text.partition("\n---\n") + if not sep: + head, body = "", context_text + lines = body.splitlines() + span = len(doc_comment.strip().splitlines()) + 2 + while (first := next((i for i, line in enumerate(lines) if doc[0] in line), None)) is not None: + end = min(len(lines), first + span) + last = next((i for i in range(first, end) if doc[-1] in lines[i]), first) + if last + 1 < len(lines) and lines[last + 1].strip() in ('"""', "'''", "*/"): + last += 1 + lines = lines[:first] + lines[last + 1 :] + kept = "\n".join(lines) + return f"{head}{sep}{kept}" if sep else kept + + +def stratum(path: str) -> tuple[str, str]: + """(extension, directory two levels deep): the language and the component.""" + p = PurePosixPath(path) + return p.suffix, "/".join(p.parts[:-1][:_STRATUM_DEPTH]) + + +def _seed(namespace: str) -> int: + # One namespace draws the same probes on every replica and every rerun of the same + # index, so two calibrations differ only when the code or the embedder did. + return int.from_bytes(hashlib.sha256(namespace.encode()).digest()[:8], "big") + + +def sample_probes(namespace: str, units: list[Unit], pool: list[Unit], *, size: int) -> Probes: + """At most `size` query/positive pairs from the documented, non-test `units`, drawn + round-robin across strata so no one directory or language dominates, and for each + query one distractor from `pool` in another stratum (another file when the + namespace has one stratum).""" + rng = random.Random(_seed(namespace)) + by_stratum: dict[tuple[str, str], list[tuple[Unit, str]]] = {} + for unit in units: + if is_test_path(unit.path): + continue + if query := probe_query(unit.doc_comment): + by_stratum.setdefault(stratum(unit.path), []).append((unit, query)) + keys = sorted(by_stratum) + rng.shuffle(keys) + for key in keys: + rng.shuffle(by_stratum[key]) + picked: list[tuple[Unit, str]] = [] + while len(picked) < size and any(by_stratum[k] for k in keys): + for key in keys: + if by_stratum[key] and len(picked) < size: + picked.append(by_stratum[key].pop()) + probes = Probes(strata=len({stratum(unit.path) for unit, _ in picked})) + for unit, query in picked: + probes.positives.append((query, without_doc(unit.context_text, unit.doc_comment))) + others = [o for o in pool if stratum(o.path) != stratum(unit.path)] or [ + o for o in pool if o.path != unit.path + ] + if others: + probes.distractors.append((query, rng.choice(others).context_text)) + return probes diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index 74a67c84382..eb53bb88e74 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -268,6 +268,59 @@ async def vector_search_cards( ) return _nearest_first(rows, "path") + async def calibration_units( + self, org: str, ns: str, model: str, *, documented: int, pool: int + ) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]: + """(documented units, pool) for `code.calibrate`'s probes: up to `documented` live + function chunks whose unit has a doc comment, each with that comment, and up to + `pool` live function chunks of any kind. Both are read in a hash order of their + ids, so a rerun on an unchanged index reads the same rows.""" + from server.core.vectors.code_tables import code_vector_table + + table = code_vector_table(model) + docs = await self._ch.query_all( + """ + SELECT symbol_id, any(doc_comment) AS doc_comment + FROM loom.code_symbols FINAL + WHERE org = {org:String} AND namespace = {ns:String} + AND kind = 'function' AND doc_comment != '' AND tombstoned_at IS NULL + GROUP BY symbol_id + ORDER BY cityHash64(symbol_id) + LIMIT {limit:UInt32} + """, + {"org": org, "ns": ns, "limit": documented}, + ) + doc_of = {str(r["symbol_id"]): str(r["doc_comment"]) for r in docs} + chunk_filter = f""" + FROM {table} FINAL + WHERE org = {{org:String}} AND namespace = {{ns:String}} + AND embedding_model = {{model:String}} AND embedding_dim > 0 + AND tombstoned_at IS NULL AND kind = 'function' AND context_text != '' + """ + units: list[dict[str, Any]] = [] + if doc_of: + rows = await self._ch.query_all( + f""" + SELECT path, context_text, symbol_ids {chunk_filter} + AND hasAny(symbol_ids, {{ids:Array(String)}}) + ORDER BY cityHash64(chunk_id) + LIMIT {{limit:UInt32}} + """, + {"org": org, "ns": ns, "model": model, "ids": list(doc_of), "limit": documented}, + ) + for r in rows: + doc = next((doc_of[s] for s in r["symbol_ids"] if s in doc_of), "") + units.append({"path": r["path"], "context_text": r["context_text"], "doc": doc}) + others = await self._ch.query_all( + f""" + SELECT path, context_text {chunk_filter} + ORDER BY cityHash64(chunk_id) + LIMIT {{limit:UInt32}} + """, + {"org": org, "ns": ns, "model": model, "limit": pool}, + ) + return units, [{"path": r["path"], "context_text": r["context_text"]} for r in others] + async def vector_search_chunks( self, org: str, diff --git a/server/settings/catalog.py b/server/settings/catalog.py index 655036a0a87..d9b3a40d338 100644 --- a/server/settings/catalog.py +++ b/server/settings/catalog.py @@ -1811,6 +1811,10 @@ def _check_git_proxy(self) -> CodeSettings: # `retrieval_confidence`: it blends the top cosine, its margin over the second # hit, route agreement and the pool size. The deployment sets 0.30. code_search_abstain_confidence_below: float = 0.35 + # Query/answer probes `code.calibrate` samples from a namespace's documented + # functions. Each costs three embeddings (query, unit, distractor) and no LLM call; + # a namespace with fewer than 20 usable probes is calibrated on the fixed corpus. + code_calibrate_probes: int = 200 # The `retrieval_confidence` from which a code.search result reads # `retrieval_risk` "medium"; below it the result reads "high". In the measurement # behind the default about half of the prompts sent to another repository's index diff --git a/tests/unit/snapshots/settings_defaults.json b/tests/unit/snapshots/settings_defaults.json index 6b70255ae18..e1b0fdbea49 100644 --- a/tests/unit/snapshots/settings_defaults.json +++ b/tests/unit/snapshots/settings_defaults.json @@ -132,6 +132,7 @@ "code_bootstrap_mirror_refresh_s": 5.0, "code_bootstrap_mirror_retry_s": 60.0, "code_bot_authors": "", + "code_calibrate_probes": 200, "code_callers_candidate_min_confidence": 0.2, "code_callers_max_distinct_seeds": 5, "code_chunk_max_chars": 6000, diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py new file mode 100644 index 00000000000..5040aa55e07 --- /dev/null +++ b/tests/unit/test_code_calibration_probes.py @@ -0,0 +1,274 @@ +"""code.calibrate's probes come from the namespace's own documented units.""" + +from __future__ import annotations + +import json +import math +from types import SimpleNamespace +from unittest.mock import AsyncMock + +import pytest + +from server.code.domain.calibration_probes import ( + Unit, + probe_query, + sample_probes, + stratum, + without_doc, +) + + +def test_probe_query_reads_the_first_paragraph_of_a_python_docstring() -> None: + doc = "Apply repetition penalties to the logits.\n\n Args:\n logits: scores" + assert probe_query(doc) == "Apply repetition penalties to the logits." + + +def test_probe_query_strips_cpp_comment_leaders_and_brief_tags() -> None: + doc = "/**\n * @brief Batch version of swap_blocks: copies N independent\n * triples in one call.\n *\n * Thin wrapper.\n */" + assert ( + probe_query(doc) + == "Batch version of swap_blocks: copies N independent triples in one call." + ) + assert probe_query( + "// Floats ordered as unsigned integers, so a larger float\n// gives a larger key." + ) == ("Floats ordered as unsigned integers, so a larger float gives a larger key.") + + +def test_probe_query_refuses_what_does_not_describe_the_unit() -> None: + assert probe_query("Returns the size.") == "" # too short to read as a question + assert probe_query("TODO: split this function into two parts") == "" + assert probe_query("// namespace vllm\n// taken from\n// https://github.com/x/y/blob/z") == "" + assert probe_query("@param a the first operand of it") == "" + # a namespace-closing comment above the function's own is not part of the query + assert probe_query("// namespace\n// Conv stage of the linear attention path.") == ( + "Conv stage of the linear attention path." + ) + + +def test_probe_query_cuts_a_long_paragraph_to_a_sentence_of_words() -> None: + assert len(probe_query(" ".join(["word"] * 80)).split()) == 32 + + +def test_without_doc_removes_the_query_from_its_positive() -> None: + doc = "Compute the RMS norm of each row in place." + text = ( + "csrc/norm.py · csrc\nnorm::rms(x)\n---\n" + 'def rms(x):\n """Compute the RMS norm of each row in place."""\n return x / x.norm()\n' + ) + stripped = without_doc(text, doc) + assert "Compute the RMS norm" not in stripped + assert stripped.startswith("csrc/norm.py · csrc\nnorm::rms(x)\n---\ndef rms(x):") + assert "return x / x.norm()" in stripped + + +def test_without_doc_removes_a_multi_line_cpp_comment() -> None: + doc = "// Load elements and compute\n// the sum of squares." + text = "a.cpp · a.cpp\nf()\n---\n// Load elements and compute\n// the sum of squares.\nvoid f() {}\n" + assert without_doc(text, doc) == "a.cpp · a.cpp\nf()\n---\nvoid f() {}" + + +def test_without_doc_removes_every_copy_of_a_multi_paragraph_docstring() -> None: + # The chunk carries the docstring ahead of the declaration and inside it. + doc = "Get the port from the environment.\n\n Returns:\n The port, or None." + text = ( + "tools/envs.py · tools\nenvs::port()\n---\n" + "Get the port from the environment.\n\n Returns:\n The port, or None.\n" + 'def port():\n """Get the port from the environment.\n\n Returns:\n' + ' The port, or None.\n """\n return 1\n' + ) + stripped = without_doc(text, doc) + assert "Get the port" not in stripped + assert "The port, or None" not in stripped + assert stripped.endswith("def port():\n return 1") + + +def test_without_doc_ignores_comment_lines_without_words() -> None: + doc = "#\n# Determine the number of compile jobs.\n#" + text = "setup.py · setup.py\njobs()\n---\n#\n# Determine the number of compile jobs.\n#\n def jobs(self):\n # keep\n" + stripped = without_doc(text, doc) + assert "Determine" not in stripped + assert "# keep" in stripped + + +def _unit(path: str, n: int) -> Unit: + return Unit( + path=path, + context_text=f'{path} · x\nf{n}()\n---\ndef f{n}():\n """Describe unit number {n} of {path} well."""\n', + doc_comment=f"Describe unit number {n} of {path} well.", + ) + + +def test_sample_probes_spreads_across_strata_and_skips_tests() -> None: + units = [_unit(f"src/big/m{i}.py", i) for i in range(50)] + units += [_unit("src/small/one.py", 99), _unit("csrc/kern/k.cpp", 98)] + units += [_unit("tests/test_big.py", 97)] + probes = sample_probes("ns", units, units, size=6) + paths = {p for q, p in probes.positives} + assert len(probes.positives) == 6 + assert probes.strata == 3 + assert any("src/small/one.py" in p for p in paths) + assert any("csrc/kern/k.cpp" in p for p in paths) + assert not any("tests/test_big.py" in p for p in paths) + assert all(q not in p for q, p in probes.positives) + + +def test_sample_probes_draws_each_distractor_from_another_stratum() -> None: + units = [_unit("src/a/x.py", 1), _unit("src/a/y.py", 2)] + pool = [*units, _unit("lib/b/z.py", 3)] + probes = sample_probes("ns", units, pool, size=2) + assert len(probes.distractors) == 2 + assert all(d.startswith("lib/b/z.py") for _, d in probes.distractors) + + +def test_sample_probes_is_stable_per_namespace() -> None: + units = [_unit(f"src/d{i % 7}/m{i}.py", i) for i in range(200)] + assert sample_probes("ns", units, units, size=20) == sample_probes("ns", units, units, size=20) + + +def test_stratum_is_language_and_component() -> None: + assert stratum("csrc/moe/kernels/topk.cpp") == (".cpp", "csrc/moe") + assert stratum("setup.py") == (".py", "") + + +def _vec(cosine: float) -> list[float]: + # a unit vector at `cosine` to the query vector [1, 0, 0] + return [cosine, math.sqrt(1.0 - cosine * cosine), 0.0] + + +class _Embedder: + """Queries embed to [1, 0, 0]; a namespace unit (`src/`) sits at `answer` to them, + anything else at `other`.""" + + model_name = "probe-test-embedder" + answer, other = 0.7, 0.2 + + async def embed(self, text: str) -> list[float]: + return [1.0, 0.0, 0.0] + + async def embed_many(self, texts: list[str]) -> list[list[float]]: + return [_vec(self.answer if t.startswith("src/") else self.other) for t in texts] + + +def _documented(n: int) -> list[dict[str, str]]: + return [ + { + "path": f"src/d{i % 4}/m{i}.py", + "context_text": ( + f"src/d{i % 4}/m{i}.py · src/d{i % 4}\nm{i}::weight()\n---\n" + f'def weight():\n """Return the total weight of bucket {i} now."""\n' + ), + "doc": f"Return the total weight of bucket {i} now.", + } + for i in range(n) + ] + + +def _pool(n: int) -> list[dict[str, str]]: + return [ + {"path": f"lib/p{i}.cpp", "context_text": f"lib/p{i}.cpp · lib\ng{i}()"} for i in range(n) + ] + + +def _calibrate_with(monkeypatch, documented, pool, *, size=24): + from server.code.app import admin + from server.settings import settings + + reads: list[tuple[str, str, str, int, int]] = [] + + class Repo: + async def calibration_units(self, org, ns, model, *, documented: int, pool: int): + reads.append((org, ns, model, documented, pool)) + return documented_rows, pool_rows + + documented_rows, pool_rows = documented, pool + insert = AsyncMock() + monkeypatch.setattr("server.core.ch.get_client", lambda: SimpleNamespace(insert=insert)) + monkeypatch.setattr("server.embedding.embedder.get_embedder", _Embedder) + monkeypatch.setattr(admin, "CodeRepo", Repo) + monkeypatch.setattr(admin, "require_code_intel", lambda: None) + monkeypatch.setattr(admin, "resolve_code_identity", lambda *args: ("org", "team")) + monkeypatch.setattr(settings, "code_calibrate_probes", size) + return admin, reads, insert + + +async def test_code_calibrate_samples_the_namespace(monkeypatch, tmp_path) -> None: + from server.code.api.models_ingest import CodeCalibrateInput + + admin, reads, insert = _calibrate_with(monkeypatch, _documented(40), _pool(40)) + # the fixed corpus is not read when the namespace has enough probes + monkeypatch.setattr(admin, "_PROBES_PATH", tmp_path / "absent.jsonl") + result = await admin.handle_code_calibrate(CodeCalibrateInput()) + assert reads == [("org", "team", "probe-test-embedder", 120, 120)] + assert (result.probe_source, result.positives, result.distractors) == ("namespace", 24, 24) + assert result.strata == 4 + # distractors at 0.2: noise floor 0.22, abstain 0.27; positives at 0.7 + assert result.noise_floor == pytest.approx(0.22) + assert result.abstain_threshold == pytest.approx(0.27) + assert result.rerank_skip_above == pytest.approx(0.7) + row = insert.call_args.args[1][0] + assert (row["org"], row["namespace"], row["distractor_pairs_n"]) == ("org", "team", 24) + + +async def test_code_calibrate_abstains_on_at_most_a_tenth_of_the_namespaces_answers( + monkeypatch, +) -> None: + """Units of one repository share its vocabulary, so an unrelated unit can score + close to the right one. The abstain threshold then stays at the answers' 10th + percentile instead of rising above most of them.""" + from server.code.api.models_ingest import CodeCalibrateInput + + admin, _, _ = _calibrate_with(monkeypatch, _documented(40), _pool(40)) + monkeypatch.setattr(_Embedder, "answer", 0.55) + monkeypatch.setattr(_Embedder, "other", 0.52) + result = await admin.handle_code_calibrate(CodeCalibrateInput()) + # distractor p90 0.52 alone would put abstain at 0.59, above every answer + assert result.abstain_threshold == pytest.approx(0.55) + assert result.noise_floor == pytest.approx(0.50) + assert result.noise_floor <= result.abstain_threshold <= result.rerank_skip_above + + +async def test_code_calibrate_falls_back_to_the_fixture_for_a_small_namespace( + monkeypatch, tmp_path +) -> None: + from server.code.api.models_ingest import CodeCalibrateInput + + admin, _, _ = _calibrate_with(monkeypatch, _documented(5), _pool(40)) + corpus = tmp_path / "probes.jsonl" + corpus.write_text( + "\n".join( + json.dumps({"query": f"q{i}", "positive": f"src/c{i}", "distractor": f"x{i}"}) + for i in range(6) + ) + ) + monkeypatch.setattr(admin, "_PROBES_PATH", corpus) + result = await admin.handle_code_calibrate(CodeCalibrateInput()) + assert (result.probe_source, result.positives, result.distractors) == ("fixture", 6, 6) + assert result.strata == 0 + + +async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment() -> None: + from server.code.store.index import CodeRepo + from tests.unit.ch_fake import RecordingCH + + text = "a/x.py · a\nf()\n---\ndef f():\n pass\n" + ch = RecordingCH() + ch.on("FROM loom.code_symbols", [{"symbol_id": "s1", "doc_comment": "Sum each row."}]) + ch.on( + "hasAny(symbol_ids", [{"path": "a/x.py", "context_text": text, "symbol_ids": ["s0", "s1"]}] + ) + ch.on("SELECT path, context_text", [{"path": "b/y.py", "context_text": "b"}]) + units, pool = await CodeRepo(ch).calibration_units("org", "ns", "m", documented=10, pool=7) + assert units == [{"path": "a/x.py", "context_text": text, "doc": "Sum each row."}] + assert pool == [{"path": "b/y.py", "context_text": "b"}] + docs, chunks, others = ch.calls + assert docs.params == {"org": "org", "ns": "ns", "limit": 10} + assert (chunks.params["ids"], chunks.params["model"], chunks.params["limit"]) == ( + ["s1"], + "m", + 10, + ) + assert (others.params["model"], others.params["limit"]) == ("m", 7) + for read in (chunks, others): + assert "kind = 'function'" in read.sql + assert "tombstoned_at IS NULL" in read.sql + assert "embedding_dim > 0" in read.sql diff --git a/tests/unit/test_embedder_calibration.py b/tests/unit/test_embedder_calibration.py index daf51737cb2..c66c94b58e4 100644 --- a/tests/unit/test_embedder_calibration.py +++ b/tests/unit/test_embedder_calibration.py @@ -218,6 +218,13 @@ async def embed_many(self, texts): monkeypatch.setattr("server.core.ch.get_client", lambda: SimpleNamespace(insert=insert)) monkeypatch.setattr("server.embedding.embedder.get_embedder", Asymmetric) monkeypatch.setattr(admin, "_PROBES_PATH", corpus) + + class NoDocumentedUnits: + async def calibration_units(self, *args, **kwargs): + return [], [] + + # a namespace with no documented functions is calibrated on the fixed corpus + monkeypatch.setattr(admin, "CodeRepo", NoDocumentedUnits) monkeypatch.setattr(admin, "require_code_intel", lambda: None) monkeypatch.setattr(admin, "resolve_code_identity", lambda *args: ("org", "team")) result = await admin.handle_code_calibrate(CodeCalibrateInput()) From 1e33fa6aa34920dda873d994cdd6218f8dd6f1e5 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 08:16:16 +0000 Subject: [PATCH 02/27] code.calibrate bounds its probe count and reads one tier's doc comments `code_calibrate_probes` is now 20 to 1000. A negative value failed in ClickHouse, a value under 20 silently meant the fixed corpus, and a large one fanned out an embedding request per pair at once. The doc-comment read took `any(doc_comment)` over both index tiers, which write rows under one symbol id. A merge of the SCIP tier could therefore change the drawn probes. It now reads the tree-sitter tier, whose ids the chunks carry. The `noise_floor` and `abstain_threshold` field docs now say what the capped derivation does, and the setting says that three embeddings per probe counts the embedding cache. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- docs/reference/configuration.md | 2 +- docs/reference/operations/code.md | 4 ++-- loom.example.yaml | 6 ++++-- schemas/loom-settings.schema.json | 4 +++- server/code/api/models_ingest.py | 6 ++++-- server/code/store/index/search.py | 1 + server/settings/catalog.py | 8 +++++--- tests/unit/test_code_calibration_probes.py | 16 ++++++++++++++++ 8 files changed, 36 insertions(+), 11 deletions(-) diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index 638153c2f93..9c14ffb0873 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -704,7 +704,7 @@ The code index's network git (clone, fetch, ls-remote, submodule update) through | `LOOM_CODE_SEARCH_RRF_LEXICAL_WEIGHT_RESPONSIBILITY` | `float` | `1.0` | | Lexical list's RRF weight for a responsibility question (vector = 1.0). 1.0 = equal weights. | | `LOOM_CODE_SEARCH_ABSTAIN_CARD_BELOW` | `float` | `0.0` | | A prose question whose nearest file card's cosine is below this abstains `off_domain`; independent of the card leg. 0 = off. | | `LOOM_CODE_SEARCH_ABSTAIN_CONFIDENCE_BELOW` | `float` | `0.35` | | The abstain score below which a code.search result is flagged `low_calibrated_confidence` (still returned). The score is not `retrieval_confidence`: it blends the top cosine, its margin over the second hit, route agreement and the pool size. The deployment sets 0.30. | -| `LOOM_CODE_CALIBRATE_PROBES` | `int` | `200` | | Query/answer probes `code.calibrate` samples from a namespace's documented functions. Each costs three embeddings (query, unit, distractor) and no LLM call; a namespace with fewer than 20 usable probes is calibrated on the fixed corpus. | +| `LOOM_CODE_CALIBRATE_PROBES` | `int` | `200` | | Query/answer probes `code.calibrate` samples from a namespace's documented functions. Each costs three embeddings (query, unit, distractor) and no LLM call, counting the embedding cache: with `embedding_cache_size` 0 it is six, because the unit is embedded twice and the query three times. A namespace with fewer than 20 usable probes is calibrated on the fixed corpus; 1000 bounds the concurrent fan-out. | | `LOOM_CODE_SEARCH_MEDIUM_RISK_FROM` | `float` | `0.35` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "medium"; below it the result reads "high". In the measurement behind the default about half of the prompts sent to another repository's index scored under it. | | `LOOM_CODE_SEARCH_LOW_RISK_FROM` | `float` | `0.7` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "low": the best cosine is close to that of a confident hit. A prompt about other code usually scores lower, but about one in five sent to another repository's index still read low. The coding-agent plugins send their prompt pointers from it. | | `LOOM_CODE_SEARCH_HYDE_KINDS` | `str` | `'responsibility'` | | The question kinds the hypothetical answer votes on. | diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index 0da91efe8e6..68d903e59d6 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -254,8 +254,8 @@ Derive this namespace's calibration and persist it: the code-specific abstention | Output field | Type | Meaning | | --- | --- | --- | -| `noise_floor` | `float` | Cosine below which a hit is noise: the distractors' 90th percentile plus 0.02. | -| `abstain_threshold` | `float` | Cosine below which the search abstains: `noise_floor` plus 0.05. | +| `noise_floor` | `float` | Cosine below which a hit is noise: the distractors' 90th percentile plus 0.02, or 0.05 under the abstain threshold when that is capped, whichever is lower. | +| `abstain_threshold` | `float` | Cosine below which the search abstains: `noise_floor` plus 0.05, or the probes' 10th-percentile question-to-answer cosine when that is lower. | | `rerank_skip_above` | `float` | Cosine of a confident hit, the probes' 75th-percentile question-to-answer cosine: where `code.search`'s `retrieval_confidence` reads 1.0. | | `embedder_model` | `str` | The embedding model the probes ran against; the calibration applies to it. | | `positives` | `int` | Query/positive pairs the thresholds were derived from. | diff --git a/loom.example.yaml b/loom.example.yaml index 2181adfdbc6..bbf15c58a89 100644 --- a/loom.example.yaml +++ b/loom.example.yaml @@ -2195,8 +2195,10 @@ settings: # code_search_abstain_confidence_below: 0.35 # Query/answer probes `code.calibrate` samples from a namespace's documented - # functions. Each costs three embeddings (query, unit, distractor) and no LLM call; a - # namespace with fewer than 20 usable probes is calibrated on the fixed corpus. + # functions. Each costs three embeddings (query, unit, distractor) and no LLM call, + # counting the embedding cache: with `embedding_cache_size` 0 it is six, because the + # unit is embedded twice and the query three times. A namespace with fewer than 20 + # usable probes is calibrated on the fixed corpus; 1000 bounds the concurrent fan-out. # [restart] # code_calibrate_probes: 200 diff --git a/schemas/loom-settings.schema.json b/schemas/loom-settings.schema.json index e992a54c9f4..317a87b243c 100644 --- a/schemas/loom-settings.schema.json +++ b/schemas/loom-settings.schema.json @@ -810,8 +810,10 @@ }, "code_calibrate_probes": { "default": 200, + "maximum": 1000, + "minimum": 20, "type": "integer", - "description": "Query/answer probes `code.calibrate` samples from a namespace's documented functions. Each costs three embeddings (query, unit, distractor) and no LLM call; a namespace with fewer than 20 usable probes is calibrated on the fixed corpus." + "description": "Query/answer probes `code.calibrate` samples from a namespace's documented functions. Each costs three embeddings (query, unit, distractor) and no LLM call, counting the embedding cache: with `embedding_cache_size` 0 it is six, because the unit is embedded twice and the query three times. A namespace with fewer than 20 usable probes is calibrated on the fixed corpus; 1000 bounds the concurrent fan-out." }, "code_callers_candidate_min_confidence": { "default": 0.2, diff --git a/server/code/api/models_ingest.py b/server/code/api/models_ingest.py index e62c95fc38a..e613bddaa4b 100644 --- a/server/code/api/models_ingest.py +++ b/server/code/api/models_ingest.py @@ -148,9 +148,11 @@ class CodeCalibrateInput(_CodeIdentity): class CodeCalibrateOutput(BaseModel): - # Cosine below which a hit is noise: the distractors' 90th percentile plus 0.02. + # Cosine below which a hit is noise: the distractors' 90th percentile plus 0.02, or + # 0.05 under the abstain threshold when that is capped, whichever is lower. noise_floor: float - # Cosine below which the search abstains: `noise_floor` plus 0.05. + # Cosine below which the search abstains: `noise_floor` plus 0.05, or the probes' + # 10th-percentile question-to-answer cosine when that is lower. abstain_threshold: float # Cosine of a confident hit, the probes' 75th-percentile question-to-answer cosine: # where `code.search`'s `retrieval_confidence` reads 1.0. diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index eb53bb88e74..c2c5e9d08fd 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -284,6 +284,7 @@ async def calibration_units( FROM loom.code_symbols FINAL WHERE org = {org:String} AND namespace = {ns:String} AND kind = 'function' AND doc_comment != '' AND tombstoned_at IS NULL + AND tier = 'treesitter' GROUP BY symbol_id ORDER BY cityHash64(symbol_id) LIMIT {limit:UInt32} diff --git a/server/settings/catalog.py b/server/settings/catalog.py index d9b3a40d338..4254f58f25f 100644 --- a/server/settings/catalog.py +++ b/server/settings/catalog.py @@ -1812,9 +1812,11 @@ def _check_git_proxy(self) -> CodeSettings: # hit, route agreement and the pool size. The deployment sets 0.30. code_search_abstain_confidence_below: float = 0.35 # Query/answer probes `code.calibrate` samples from a namespace's documented - # functions. Each costs three embeddings (query, unit, distractor) and no LLM call; - # a namespace with fewer than 20 usable probes is calibrated on the fixed corpus. - code_calibrate_probes: int = 200 + # functions. Each costs three embeddings (query, unit, distractor) and no LLM call, + # counting the embedding cache: with `embedding_cache_size` 0 it is six, because the + # unit is embedded twice and the query three times. A namespace with fewer than 20 + # usable probes is calibrated on the fixed corpus; 1000 bounds the concurrent fan-out. + code_calibrate_probes: int = Field(default=200, ge=20, le=1000) # The `retrieval_confidence` from which a code.search result reads # `retrieval_risk` "medium"; below it the result reads "high". In the measurement # behind the default about half of the prompts sent to another repository's index diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 5040aa55e07..fd3c1001163 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -262,6 +262,9 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment assert pool == [{"path": "b/y.py", "context_text": "b"}] docs, chunks, others = ch.calls assert docs.params == {"org": "org", "ns": "ns", "limit": 10} + # The SCIP tier writes rows under the same symbol_id; `any()` over both tiers would + # make the drawn doc, and so the probe set, depend on which tiers have merged. + assert "tier = 'treesitter'" in docs.sql assert (chunks.params["ids"], chunks.params["model"], chunks.params["limit"]) == ( ["s1"], "m", @@ -272,3 +275,16 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment assert "kind = 'function'" in read.sql assert "tombstoned_at IS NULL" in read.sql assert "embedding_dim > 0" in read.sql + + +def test_code_calibrate_probes_is_bounded() -> None: + import pytest + from pydantic import ValidationError + + from server.settings.catalog import CodeSettings + + for bad in (-1, 0, 19, 1001): + with pytest.raises(ValidationError): + CodeSettings(code_calibrate_probes=bad) + assert CodeSettings(code_calibrate_probes=20).code_calibrate_probes == 20 + assert CodeSettings(code_calibrate_probes=1000).code_calibrate_probes == 1000 From 67f7cc559dff56edca09695433365310665a7e51 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 08:57:53 +0000 Subject: [PATCH 03/27] The probe sampler groups its distractor pool once Each probe re-parsed every pool path to pick a distractor from another stratum: size x 5 x size path parses on the event loop, 3.0 s at the default 200 probes and 75 s at the bound of 1,000 on Sonique. The pool's strata are now read once and the other-strata list is built once per stratum. The draws are the same as before, so the probes of a namespace do not change. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/code/domain/calibration_probes.py | 15 ++++++++++++--- tests/unit/test_code_calibration_probes.py | 21 +++++++++++++++++++++ 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index 3ff1a025d8d..f01642e1374 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -134,11 +134,20 @@ def sample_probes(namespace: str, units: list[Unit], pool: list[Unit], *, size: if by_stratum[key] and len(picked) < size: picked.append(by_stratum[key].pop()) probes = Probes(strata=len({stratum(unit.path) for unit, _ in picked})) + # The pool is parsed once; the other-strata list is built once per stratum, not per probe. + pool_strata = [stratum(o.path) for o in pool] + outside: dict[tuple[str, str], list[Unit]] = {} + other_files: dict[str, list[Unit]] = {} for unit, query in picked: probes.positives.append((query, without_doc(unit.context_text, unit.doc_comment))) - others = [o for o in pool if stratum(o.path) != stratum(unit.path)] or [ - o for o in pool if o.path != unit.path - ] + key = stratum(unit.path) + if key not in outside: + outside[key] = [o for o, s in zip(pool, pool_strata, strict=True) if s != key] + others = outside[key] + if not others: + if unit.path not in other_files: + other_files[unit.path] = [o for o in pool if o.path != unit.path] + others = other_files[unit.path] if others: probes.distractors.append((query, rng.choice(others).context_text)) return probes diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index fd3c1001163..4234dd9a4ca 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -120,6 +120,27 @@ def test_sample_probes_draws_each_distractor_from_another_stratum() -> None: assert all(d.startswith("lib/b/z.py") for _, d in probes.distractors) +def test_sample_probes_parses_each_unit_path_once_not_once_per_probe(monkeypatch) -> None: + """The distractor draw grouped the pool again for every probe: size x pool + path parses, seconds of blocked event loop at the 1,000-probe bound.""" + from server.code.domain import calibration_probes + + calls = 0 + real = calibration_probes.stratum + + def counting(path: str) -> tuple[str, str]: + nonlocal calls + calls += 1 + return real(path) + + monkeypatch.setattr(calibration_probes, "stratum", counting) + units = [_unit(f"src/d{i % 40}/m{i}.py", i) for i in range(40)] + pool = [_unit(f"src/p{i % 25}/n{i}.py", 1000 + i) for i in range(200)] + probes = sample_probes("ns", units, pool, size=40) + assert len(probes.distractors) == len(probes.positives) > 0 + assert calls <= 3 * (len(units) + len(pool) + 40) + + def test_sample_probes_is_stable_per_namespace() -> None: units = [_unit(f"src/d{i % 7}/m{i}.py", i) for i in range(200)] assert sample_probes("ns", units, units, size=20) == sample_probes("ns", units, units, size=20) From 4b5eafabad36bfb8060ba06c659ca3eeac2478f4 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 09:29:37 +0000 Subject: [PATCH 04/27] The code_calibrate_probes comment drops to two lines The field comment feeds the generated configuration reference, the settings schema and the example config, regenerated with their generators. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- docs/reference/configuration.md | 2 +- loom.example.yaml | 7 ++----- schemas/loom-settings.schema.json | 2 +- server/settings/catalog.py | 7 ++----- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index 9c14ffb0873..7de619a9bff 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -704,7 +704,7 @@ The code index's network git (clone, fetch, ls-remote, submodule update) through | `LOOM_CODE_SEARCH_RRF_LEXICAL_WEIGHT_RESPONSIBILITY` | `float` | `1.0` | | Lexical list's RRF weight for a responsibility question (vector = 1.0). 1.0 = equal weights. | | `LOOM_CODE_SEARCH_ABSTAIN_CARD_BELOW` | `float` | `0.0` | | A prose question whose nearest file card's cosine is below this abstains `off_domain`; independent of the card leg. 0 = off. | | `LOOM_CODE_SEARCH_ABSTAIN_CONFIDENCE_BELOW` | `float` | `0.35` | | The abstain score below which a code.search result is flagged `low_calibrated_confidence` (still returned). The score is not `retrieval_confidence`: it blends the top cosine, its margin over the second hit, route agreement and the pool size. The deployment sets 0.30. | -| `LOOM_CODE_CALIBRATE_PROBES` | `int` | `200` | | Query/answer probes `code.calibrate` samples from a namespace's documented functions. Each costs three embeddings (query, unit, distractor) and no LLM call, counting the embedding cache: with `embedding_cache_size` 0 it is six, because the unit is embedded twice and the query three times. A namespace with fewer than 20 usable probes is calibrated on the fixed corpus; 1000 bounds the concurrent fan-out. | +| `LOOM_CODE_CALIBRATE_PROBES` | `int` | `200` | | Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each and no LLM call; under 20 usable probes it uses the fixed corpus. | | `LOOM_CODE_SEARCH_MEDIUM_RISK_FROM` | `float` | `0.35` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "medium"; below it the result reads "high". In the measurement behind the default about half of the prompts sent to another repository's index scored under it. | | `LOOM_CODE_SEARCH_LOW_RISK_FROM` | `float` | `0.7` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "low": the best cosine is close to that of a confident hit. A prompt about other code usually scores lower, but about one in five sent to another repository's index still read low. The coding-agent plugins send their prompt pointers from it. | | `LOOM_CODE_SEARCH_HYDE_KINDS` | `str` | `'responsibility'` | | The question kinds the hypothetical answer votes on. | diff --git a/loom.example.yaml b/loom.example.yaml index bbf15c58a89..fc19a7b474c 100644 --- a/loom.example.yaml +++ b/loom.example.yaml @@ -2194,11 +2194,8 @@ settings: # route agreement and the pool size. The deployment sets 0.30. [restart] # code_search_abstain_confidence_below: 0.35 - # Query/answer probes `code.calibrate` samples from a namespace's documented - # functions. Each costs three embeddings (query, unit, distractor) and no LLM call, - # counting the embedding cache: with `embedding_cache_size` 0 it is six, because the - # unit is embedded twice and the query three times. A namespace with fewer than 20 - # usable probes is calibrated on the fixed corpus; 1000 bounds the concurrent fan-out. + # Probes `code.calibrate` samples from a namespace's documented functions, three + # embeddings each and no LLM call; under 20 usable probes it uses the fixed corpus. # [restart] # code_calibrate_probes: 200 diff --git a/schemas/loom-settings.schema.json b/schemas/loom-settings.schema.json index 317a87b243c..755d338509f 100644 --- a/schemas/loom-settings.schema.json +++ b/schemas/loom-settings.schema.json @@ -813,7 +813,7 @@ "maximum": 1000, "minimum": 20, "type": "integer", - "description": "Query/answer probes `code.calibrate` samples from a namespace's documented functions. Each costs three embeddings (query, unit, distractor) and no LLM call, counting the embedding cache: with `embedding_cache_size` 0 it is six, because the unit is embedded twice and the query three times. A namespace with fewer than 20 usable probes is calibrated on the fixed corpus; 1000 bounds the concurrent fan-out." + "description": "Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each and no LLM call; under 20 usable probes it uses the fixed corpus." }, "code_callers_candidate_min_confidence": { "default": 0.2, diff --git a/server/settings/catalog.py b/server/settings/catalog.py index 4254f58f25f..2b164dc57f9 100644 --- a/server/settings/catalog.py +++ b/server/settings/catalog.py @@ -1811,11 +1811,8 @@ def _check_git_proxy(self) -> CodeSettings: # `retrieval_confidence`: it blends the top cosine, its margin over the second # hit, route agreement and the pool size. The deployment sets 0.30. code_search_abstain_confidence_below: float = 0.35 - # Query/answer probes `code.calibrate` samples from a namespace's documented - # functions. Each costs three embeddings (query, unit, distractor) and no LLM call, - # counting the embedding cache: with `embedding_cache_size` 0 it is six, because the - # unit is embedded twice and the query three times. A namespace with fewer than 20 - # usable probes is calibrated on the fixed corpus; 1000 bounds the concurrent fan-out. + # Probes `code.calibrate` samples from a namespace's documented functions, three + # embeddings each and no LLM call; under 20 usable probes it uses the fixed corpus. code_calibrate_probes: int = Field(default=200, ge=20, le=1000) # The `retrieval_confidence` from which a code.search result reads # `retrieval_risk` "medium"; below it the result reads "high". In the measurement From 4fd9dd50850552b36e91322178263492c6a3e66c Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 10:27:41 +0000 Subject: [PATCH 05/27] Read one chunk per documented function in calibration_units An oversized function is stored as several function chunks that share one symbol id. The documented-unit read matched any chunk carrying a documented id, so the tail pieces of such a function became positives for a doc comment they do not answer. Select only chunks whose own symbol (the first of symbol_ids) is a documented one, and keep one per symbol, the piece with the lowest start line, so each documented function yields one positive holding its start line and doc. The test asserts the read's shape and that the unit pairs the first piece with its doc. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/code/store/index/search.py | 20 +++++++++++++++----- tests/unit/test_code_calibration_probes.py | 10 +++++++--- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index c2c5e9d08fd..94c7c51b644 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -302,16 +302,26 @@ async def calibration_units( if doc_of: rows = await self._ch.query_all( f""" - SELECT path, context_text, symbol_ids {chunk_filter} - AND hasAny(symbol_ids, {{ids:Array(String)}}) + SELECT path, context_text, symbol_id FROM ( + SELECT path, context_text, chunk_id, symbol_ids[1] AS symbol_id, start_line + {chunk_filter} + AND symbol_ids[1] IN {{ids:Array(String)}} + ORDER BY symbol_id, start_line + LIMIT 1 BY symbol_id + ) ORDER BY cityHash64(chunk_id) LIMIT {{limit:UInt32}} """, {"org": org, "ns": ns, "model": model, "ids": list(doc_of), "limit": documented}, ) - for r in rows: - doc = next((doc_of[s] for s in r["symbol_ids"] if s in doc_of), "") - units.append({"path": r["path"], "context_text": r["context_text"], "doc": doc}) + units = [ + { + "path": r["path"], + "context_text": r["context_text"], + "doc": doc_of[str(r["symbol_id"])], + } + for r in rows + ] others = await self._ch.query_all( f""" SELECT path, context_text {chunk_filter} diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 4234dd9a4ca..686b949c7b0 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -274,9 +274,7 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment text = "a/x.py · a\nf()\n---\ndef f():\n pass\n" ch = RecordingCH() ch.on("FROM loom.code_symbols", [{"symbol_id": "s1", "doc_comment": "Sum each row."}]) - ch.on( - "hasAny(symbol_ids", [{"path": "a/x.py", "context_text": text, "symbol_ids": ["s0", "s1"]}] - ) + ch.on("symbol_ids[1] IN", [{"path": "a/x.py", "context_text": text, "symbol_id": "s1"}]) ch.on("SELECT path, context_text", [{"path": "b/y.py", "context_text": "b"}]) units, pool = await CodeRepo(ch).calibration_units("org", "ns", "m", documented=10, pool=7) assert units == [{"path": "a/x.py", "context_text": text, "doc": "Sum each row."}] @@ -292,6 +290,12 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment 10, ) assert (others.params["model"], others.params["limit"]) == ("m", 7) + # An oversized function is stored as several `function` chunks sharing one symbol id; only + # the piece that starts the symbol answers its doc comment, so the read keeps one chunk + # per documented symbol, the first. + assert "symbol_ids[1] IN" in chunks.sql + assert "ORDER BY symbol_id, start_line" in chunks.sql + assert "LIMIT 1 BY symbol_id" in chunks.sql for read in (chunks, others): assert "kind = 'function'" in read.sql assert "tombstoned_at IS NULL" in read.sql From d6963d66fa674374647cbbaedfff416bd005e6b0 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 10:31:49 +0000 Subject: [PATCH 06/27] Name the doc aggregate apart from its column in calibration_units The documented-symbol read aliased any(doc_comment) AS doc_comment and filtered doc_comment != '' in the WHERE. ClickHouse resolves that name to the aggregate and refuses the query (ILLEGAL_AGGREGATION, seen on 26.10.8 and 26.12), so code.calibrate failed on every namespace against a real server; the unit tests answer from a fake and never ran the statement. Alias the aggregate doc, so the WHERE reads the column. A live-ClickHouse test runs calibration_units over real rows: it fails on the old statement with that error and passes now. It covers a documented and an undocumented function, a SCIP-tier row under the same id (which must not change the drawn doc), a tombstoned chunk and the pool read. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- server/code/store/index/search.py | 6 +- .../test_code_calibration_units_live_ch.py | 120 ++++++++++++++++++ tests/unit/test_code_calibration_probes.py | 2 +- 3 files changed, 125 insertions(+), 3 deletions(-) create mode 100644 tests/integration/test_code_calibration_units_live_ch.py diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index 94c7c51b644..b8e909f7edf 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -278,9 +278,11 @@ async def calibration_units( from server.core.vectors.code_tables import code_vector_table table = code_vector_table(model) + # The aggregate's alias must not share the column's name: the WHERE would then read + # the aggregate, which ClickHouse refuses (ILLEGAL_AGGREGATION). docs = await self._ch.query_all( """ - SELECT symbol_id, any(doc_comment) AS doc_comment + SELECT symbol_id, any(doc_comment) AS doc FROM loom.code_symbols FINAL WHERE org = {org:String} AND namespace = {ns:String} AND kind = 'function' AND doc_comment != '' AND tombstoned_at IS NULL @@ -291,7 +293,7 @@ async def calibration_units( """, {"org": org, "ns": ns, "limit": documented}, ) - doc_of = {str(r["symbol_id"]): str(r["doc_comment"]) for r in docs} + doc_of = {str(r["symbol_id"]): str(r["doc"]) for r in docs} chunk_filter = f""" FROM {table} FINAL WHERE org = {{org:String}} AND namespace = {{ns:String}} diff --git a/tests/integration/test_code_calibration_units_live_ch.py b/tests/integration/test_code_calibration_units_live_ch.py new file mode 100644 index 00000000000..7fea2c40a0c --- /dev/null +++ b/tests/integration/test_code_calibration_units_live_ch.py @@ -0,0 +1,120 @@ +"""`code.calibrate` reads its documented units and its pool from real ClickHouse rows.""" + +from __future__ import annotations + +import datetime as dt +import uuid +from typing import Any + +import pytest + +from server.code.store.index import CodeRepo +from server.core.ch import get_client +from server.settings import settings +from tests.integration._resources import unique_org + +_SYMBOL_COLUMNS = [ + "org", + "namespace", + "tier", + "qualified_name", + "symbol_id", + "kind", + "path", + "doc_comment", + "tombstoned_at", +] +_CHUNK_COLUMNS = [ + "org", + "namespace", + "embedding_model", + "path", + "chunk_id", + "kind", + "start_line", + "end_line", + "content", + "context_text", + "symbol_ids", + "embedding", + "embedding_dim", + "tombstoned_at", +] + + +def _symbol(org: str, ns: str, symbol_id: str, doc: str, *, tier: str = "treesitter") -> list[Any]: + return [org, ns, tier, f"mod.{symbol_id}", symbol_id, "function", "a/x.py", doc, None] + + +def _chunk( + org: str, + ns: str, + path: str, + start: int, + text: str, + symbol_ids: list[str], + *, + tombstoned_at: dt.datetime | None = None, +) -> list[Any]: + dim = settings.embedding_dim + return [ + org, + ns, + "m", + path, + uuid.uuid4(), + "function", + start, + start + 9, + text, + text, + symbol_ids, + [0.5] * dim, + dim, + tombstoned_at, + ] + + +@pytest.mark.asyncio +async def test_calibration_units_read_documented_functions_from_real_rows( + ch_client: Any, +) -> None: + org, ns = unique_org("calib-units"), "units" + ch_client.insert( + "loom.code_symbols", + [ + _symbol(org, ns, "sum_rows", "Sum each row."), + _symbol(org, ns, "merge_parts", "Merge two parts."), + _symbol(org, ns, "bare", ""), + # another tier's row under the same id must not change the drawn doc + _symbol(org, ns, "bare", "A doc only the SCIP tier carries.", tier="scip"), + ], + column_names=_SYMBOL_COLUMNS, + ) + ch_client.insert( + "loom.code_chunks", + [ + _chunk(org, ns, "a/sum.py", 1, "sum head", ["sum_rows"]), + _chunk(org, ns, "a/merge.py", 1, "merge", ["merge_parts"]), + _chunk(org, ns, "a/bare.py", 1, "bare", ["bare"]), + _chunk( + org, + ns, + "a/gone.py", + 1, + "gone", + ["merge_parts"], + tombstoned_at=dt.datetime(2026, 1, 1), + ), + ], + column_names=_CHUNK_COLUMNS, + ) + + await get_client().connect() + units, pool = await CodeRepo().calibration_units(org, ns, "m", documented=10, pool=10) + + assert sorted((u["path"], u["doc"]) for u in units) == [ + ("a/merge.py", "Merge two parts."), + ("a/sum.py", "Sum each row."), + ] + assert sorted(p["path"] for p in pool) == ["a/bare.py", "a/merge.py", "a/sum.py"] diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 686b949c7b0..6aadfa30c7b 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -273,7 +273,7 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment text = "a/x.py · a\nf()\n---\ndef f():\n pass\n" ch = RecordingCH() - ch.on("FROM loom.code_symbols", [{"symbol_id": "s1", "doc_comment": "Sum each row."}]) + ch.on("FROM loom.code_symbols", [{"symbol_id": "s1", "doc": "Sum each row."}]) ch.on("symbol_ids[1] IN", [{"path": "a/x.py", "context_text": text, "symbol_id": "s1"}]) ch.on("SELECT path, context_text", [{"path": "b/y.py", "context_text": "b"}]) units, pool = await CodeRepo(ch).calibration_units("org", "ns", "m", documented=10, pool=7) From cfc066605c8a2de3418f1f75770957863705a19f Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Wed, 2 Dec 2026 10:32:02 +0000 Subject: [PATCH 07/27] Cover the one-unit-per-function read on real ClickHouse rows Extend the live calibration_units test with an oversized function stored as three chunks of one symbol and a nested function's chunk whose first symbol is undocumented. The read must give the documented function one unit holding its first piece and its doc, and must not turn the nested chunk into a unit for the outer function's doc. Co-Authored-By: Claude Sonnet 5.5 Signed-off-by: Kaloyan Naumov --- .../test_code_calibration_units_live_ch.py | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_code_calibration_units_live_ch.py b/tests/integration/test_code_calibration_units_live_ch.py index 7fea2c40a0c..36a294f4035 100644 --- a/tests/integration/test_code_calibration_units_live_ch.py +++ b/tests/integration/test_code_calibration_units_live_ch.py @@ -95,8 +95,14 @@ async def test_calibration_units_read_documented_functions_from_real_rows( "loom.code_chunks", [ _chunk(org, ns, "a/sum.py", 1, "sum head", ["sum_rows"]), + # an oversized function is stored as several chunks of one symbol: only the first + # piece answers the doc comment + _chunk(org, ns, "a/sum.py", 40, "sum tail", ["sum_rows"]), + _chunk(org, ns, "a/sum.py", 80, "sum last", ["sum_rows"]), _chunk(org, ns, "a/merge.py", 1, "merge", ["merge_parts"]), _chunk(org, ns, "a/bare.py", 1, "bare", ["bare"]), + # a nested function's chunk belongs to its own symbol, not to the documented outer one + _chunk(org, ns, "a/nested.py", 1, "nested", ["bare", "merge_parts"]), _chunk( org, ns, @@ -113,8 +119,15 @@ async def test_calibration_units_read_documented_functions_from_real_rows( await get_client().connect() units, pool = await CodeRepo().calibration_units(org, ns, "m", documented=10, pool=10) - assert sorted((u["path"], u["doc"]) for u in units) == [ - ("a/merge.py", "Merge two parts."), - ("a/sum.py", "Sum each row."), + assert sorted((u["path"], u["context_text"], u["doc"]) for u in units) == [ + ("a/merge.py", "merge", "Merge two parts."), + ("a/sum.py", "sum head", "Sum each row."), + ] + assert sorted(p["path"] for p in pool) == [ + "a/bare.py", + "a/merge.py", + "a/nested.py", + "a/sum.py", + "a/sum.py", + "a/sum.py", ] - assert sorted(p["path"] for p in pool) == ["a/bare.py", "a/merge.py", "a/sum.py"] From 5df1a14bf3a1d48cdb2ce1119aae41aebf26ce6b Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Thu, 3 Dec 2026 09:05:27 +0000 Subject: [PATCH 08/27] code.calibrate keeps a glob that ends a probe query line `probe_query` removed trailing `*` and `/` from every comment line as a set of characters, so a documented description ending in a path glob (`testdata/*`) lost the glob before it was embedded as a query. Only the block-comment closer `*/` is removed now, so the punctuation a question ends in survives. `test_probe_query_keeps_a_glob_that_ends_a_line` covers both: a line ending in a glob keeps its `*`, and a `*/` closer still comes off. Signed-off-by: Kaloyan Naumov --- server/code/domain/calibration_probes.py | 3 ++- tests/unit/test_code_calibration_probes.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index f01642e1374..44c0e503365 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -58,7 +58,8 @@ def probe_query(doc_comment: str) -> str: describe the unit (too short, a tag, a link, a note to maintainers).""" words: list[str] = [] for raw in doc_comment.strip().splitlines(): - line = _TAG.sub("", _LEADER.sub("", raw).strip().rstrip("*/").strip()) + # the closer is the two characters `*/`, so a line ending in `src/*` keeps its glob + line = _TAG.sub("", _LEADER.sub("", raw).strip().removesuffix("*/").strip()) if not line: if words: break diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 6aadfa30c7b..c2e92dbca86 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -45,6 +45,20 @@ def test_probe_query_refuses_what_does_not_describe_the_unit() -> None: ) +def test_probe_query_keeps_a_glob_that_ends_a_line() -> None: + # The block-comment closer is the two characters `*/`, not a set of characters: + # a description that ends in `testdata/*` keeps its glob. + doc = "/**\n * Load every fixture listed in testdata/*\n */" + assert probe_query(doc) == "Load every fixture listed in testdata/*" + # The closer still comes off, with or without a space before it. + assert probe_query("/* Load every fixture listed in testdata/* */") == ( + "Load every fixture listed in testdata/*" + ) + assert probe_query("/* Load every fixture listed in testdata */") == ( + "Load every fixture listed in testdata" + ) + + def test_probe_query_cuts_a_long_paragraph_to_a_sentence_of_words() -> None: assert len(probe_query(" ".join(["word"] * 80)).split()) == 32 From 7f0c7e6b3e9ba90b10bfc8bdc4de023a014f5326 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Thu, 3 Dec 2026 14:22:23 +0000 Subject: [PATCH 09/27] code.calibrate output: an older build's reply reads as unknown The branch adds `probe_source` and `strata` to `code.calibrate`'s output. During a code-only rollout the call can land on a replica of the previous build, whose reply carries neither field. Required output fields made that reply fail validation; a default of 0 or "fixture" would misread it as the fixture. Rule 4 says N reads the old and the new wire format, so both fields are now nullable with a None default: unknown because an older replica answered, not empty. This build still writes both fields. The generated Rust contract decodes the old shape and asserts null, the Python model test does the same, and the operations page says an older reply reads as unknown. Assisted-by: Hermes:deepseek-v4.1-flash-1017 Signed-off-by: Kaloyan Naumov --- docs/operations/code-index-operations.md | 7 +- docs/reference/operations/code.md | 4 +- sdk/go/wire/models.gen.go | 6 +- sdk/python/loom/ops.py | 4 +- sdk/rust/src/wire_models.rs | 8986 ++++++++++---------- sdk/rust/tests/registry_contracts.rs | 12 +- sdk/typescript/src/generated/ops.ts | 4 +- server/code/api/models_ingest.py | 12 +- tests/unit/test_code_calibration_probes.py | 18 + 9 files changed, 4546 insertions(+), 4507 deletions(-) diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 0809d5e84f1..52db25d1c33 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -404,9 +404,10 @@ Then: comment, and against a function from another directory. A namespace with fewer than 20 usable documented functions is calibrated on `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image) instead; - `probe_source` in the reply says which. The abstain threshold is at most the probes' - 10th-percentile query-to-function cosine: functions of one repository share its - vocabulary, so an unrelated one scores close to the right one, and the distractor + `probe_source` in a reply from this build says which; a reply from a build before + the field reads as unknown, not as `fixture`. The abstain threshold is at most the + probes' 10th-percentile query-to-function cosine: functions of one repository share + its vocabulary, so an unrelated one scores close to the right one, and the distractor percentile alone would abstain on many right answers. Run it for every code namespace, and again after a change of embedding model. A namespace without its own calibration (`calibration.get` reads `source: cluster`) reads code diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index 7b7c16a6741..2a12f62d73d 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -260,8 +260,8 @@ Derive this namespace's calibration and persist it: the code-specific abstention | `embedder_model` | `str` | The embedding model the probes ran against; the calibration applies to it. | | `positives` | `int` | Query/positive pairs the thresholds were derived from. | | `distractors` | `int` | Query/distractor pairs the thresholds were derived from. | -| `probe_source` | `Literal['namespace', 'fixture']` | Where the probes came from: `namespace` (its own documented functions) or `fixture` (the fixed corpus, for a namespace with too few documented functions). | -| `strata` | `int` | Language-and-directory strata the namespace probes were drawn from; 0 for the fixture. | +| `probe_source` | `Literal['namespace', 'fixture'] \| None` | Where the probes came from: `namespace` (its own documented functions) or `fixture` (the fixed corpus); None on a reply from a build without this field means unknown, not `fixture`. | +| `strata` | `int \| None` | Language-and-directory strata the namespace probes were drawn from; 0 for the fixture; None on a reply from a build without this field means unknown, not the fixture. | ## `code.callees` diff --git a/sdk/go/wire/models.gen.go b/sdk/go/wire/models.gen.go index bf0e7ca5917..ff4676eff80 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: 9bea62af958c3861f86dee2685abbe907244507ac2dbc293e85473fa2ccc879b +// Registry model schema SHA-256: 6fece1a573bc9b16c326b878248ec3838038b0b2fcfe1fcfd8e9bb11fa804f9a // Package wire contains the Go requests and responses for Loom operations. package wire @@ -853,8 +853,8 @@ type CodeCalibrateOutput struct { EmbedderModel string `json:"embedder_model"` Positives int64 `json:"positives"` Distractors int64 `json:"distractors"` - ProbeSource string `json:"probe_source"` - Strata int64 `json:"strata"` + ProbeSource Optional[string] `json:"probe_source,omitempty"` + Strata Optional[int64] `json:"strata,omitempty"` } // CodeCalleesInput is the request to code.callees. diff --git a/sdk/python/loom/ops.py b/sdk/python/loom/ops.py index 828949f2220..42f52ca5bee 100644 --- a/sdk/python/loom/ops.py +++ b/sdk/python/loom/ops.py @@ -5965,8 +5965,8 @@ class CodeCalibrateOutput(TypedDict, total=False): embedder_model: Required[str] positives: Required[int] distractors: Required[int] - probe_source: Required[Literal["namespace", "fixture"]] - strata: Required[int] + probe_source: NotRequired[Optional[Literal["namespace", "fixture"]]] + strata: NotRequired[Optional[int]] class CodeCallersInput(TypedDict, total=False): diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs index cfe78c12b29..299219aca39 100644 --- a/sdk/rust/src/wire_models.rs +++ b/sdk/rust/src/wire_models.rs @@ -7517,8 +7517,10 @@ pub struct CodeCalibrateOutput { pub embedder_model: String, pub positives: Integer, pub distractors: Integer, - pub probe_source: CodeCalibrateOutputProbeSource, - pub strata: Integer, + #[serde(default = "default_317")] + pub probe_source: Option, + #[serde(default = "default_318")] + pub strata: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -7611,9 +7613,9 @@ pub struct CodeEdgeWire { pub line: Integer, pub tier: String, pub confidence: f64, - #[serde(default = "default_319")] + #[serde(default = "default_321")] pub via_override: String, - #[serde(default = "default_320")] + #[serde(default = "default_322")] pub via: String, } @@ -7622,14 +7624,14 @@ pub struct CodeEdgeWire { pub struct CodeCandidateSiteWire { pub path: String, pub line: Integer, - #[serde(default = "default_343")] + #[serde(default = "default_345")] pub caller: String, - #[serde(default = "default_344")] + #[serde(default = "default_346")] pub callee_text: String, pub reason: String, pub confidence: f64, pub disposition: String, - #[serde(default = "default_345")] + #[serde(default = "default_347")] pub candidates: Integer, } @@ -7646,68 +7648,68 @@ pub struct CodeCandidateGroupWire { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCandidateSitesWire { - #[serde(default = "default_337")] + #[serde(default = "default_339")] pub epistemic: String, - #[serde(default = "default_338")] + #[serde(default = "default_340")] pub total: Integer, - #[serde(default = "default_339")] + #[serde(default = "default_341")] pub returned: Integer, - #[serde(default = "default_340")] + #[serde(default = "default_342")] pub truncated: bool, - #[serde(default = "default_341")] + #[serde(default = "default_343")] pub read_capped: bool, - #[serde(default = "default_342")] + #[serde(default = "default_344")] pub by_reason: std::collections::HashMap, - #[serde(default = "default_346")] + #[serde(default = "default_348")] pub groups: Vec, - #[serde(default = "default_347")] + #[serde(default = "default_349")] pub note: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCallersOutput { - #[serde(default = "default_317")] + #[serde(default = "default_319")] pub lessons: Vec>, - #[serde(default = "default_318")] + #[serde(default = "default_320")] pub lessons_left_out: Integer, pub edges: Vec, pub seed_symbols: Vec, - #[serde(default = "default_321")] + #[serde(default = "default_323")] pub overlay: bool, - #[serde(default = "default_322")] + #[serde(default = "default_324")] pub overlay_head_sha: String, - #[serde(default = "default_323")] + #[serde(default = "default_325")] pub overlay_added: Integer, - #[serde(default = "default_324")] + #[serde(default = "default_326")] pub overlay_note: String, - #[serde(default = "default_325")] + #[serde(default = "default_327")] pub resolved_by: String, - #[serde(default = "default_326")] + #[serde(default = "default_328")] pub ambiguous: bool, - #[serde(default = "default_327")] + #[serde(default = "default_329")] pub candidates: Vec, - #[serde(default = "default_328")] + #[serde(default = "default_330")] pub dispatch_seeds: Vec>, - #[serde(default = "default_329")] + #[serde(default = "default_331")] pub note: String, - #[serde(default = "default_330")] + #[serde(default = "default_332")] pub truncated: bool, - #[serde(default = "default_331")] + #[serde(default = "default_333")] pub counts_floor: bool, - #[serde(default = "default_332")] + #[serde(default = "default_334")] pub unresolved_calls: Integer, - #[serde(default = "default_333")] + #[serde(default = "default_335")] pub ambiguous_calls: Integer, - #[serde(default = "default_334")] + #[serde(default = "default_336")] pub epistemic: String, - #[serde(default = "default_335")] + #[serde(default = "default_337")] pub causes: Vec, - #[serde(default = "default_336")] + #[serde(default = "default_338")] pub by_hop_counts: std::collections::HashMap, - #[serde(default = "default_348")] + #[serde(default = "default_350")] pub candidate_sites: Option, - #[serde(default = "default_349")] + #[serde(default = "default_351")] pub trace_run_id: String, } @@ -8235,18 +8237,18 @@ pub enum CodeContextPackOutputSource { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeContextPackOutput { - #[serde(default = "default_350")] + #[serde(default = "default_352")] pub lessons: Vec>, - #[serde(default = "default_351")] + #[serde(default = "default_353")] pub lessons_left_out: Integer, pub context: String, pub tokens_used: Integer, pub source: CodeContextPackOutputSource, - #[serde(default = "default_352")] + #[serde(default = "default_354")] pub truncated: bool, - #[serde(default = "default_353")] + #[serde(default = "default_355")] pub merge_commit_sha: String, - #[serde(default = "default_354")] + #[serde(default = "default_356")] pub trace_run_id: String, } @@ -8420,17 +8422,17 @@ impl CodeContextPackInput { #[non_exhaustive] pub struct CodeContextPackRow { pub pr_number: Integer, - #[serde(default = "default_355")] + #[serde(default = "default_357")] pub merge_commit_sha: String, - #[serde(default = "default_356")] + #[serde(default = "default_358")] pub pack_tokens: Integer, - #[serde(default = "default_357")] + #[serde(default = "default_359")] pub created_at: String, - #[serde(default = "default_358")] + #[serde(default = "default_360")] pub title: String, - #[serde(default = "default_359")] + #[serde(default = "default_361")] pub author: String, - #[serde(default = "default_360")] + #[serde(default = "default_362")] pub merged_at: String, } @@ -8438,7 +8440,7 @@ pub struct CodeContextPackRow { #[non_exhaustive] pub struct CodeContextPacksOutput { pub rows: Vec, - #[serde(default = "default_361")] + #[serde(default = "default_363")] pub total: Integer, } @@ -8556,41 +8558,41 @@ impl CodeContextPacksInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeConventionsOutput { - #[serde(default = "default_362")] + #[serde(default = "default_364")] pub pr_number: Integer, - #[serde(default = "default_363")] + #[serde(default = "default_365")] pub source: String, - #[serde(default = "default_364")] + #[serde(default = "default_366")] pub title: String, - #[serde(default = "default_365")] + #[serde(default = "default_367")] pub labels: Vec, - #[serde(default = "default_366")] + #[serde(default = "default_368")] pub category: String, - #[serde(default = "default_367")] + #[serde(default = "default_369")] pub category_source: String, - #[serde(default = "default_368")] + #[serde(default = "default_370")] pub merged_at: String, - #[serde(default = "default_369")] + #[serde(default = "default_371")] pub merge_commit_sha: String, - #[serde(default = "default_370")] + #[serde(default = "default_372")] pub head_sha: String, - #[serde(default = "default_371")] + #[serde(default = "default_373")] pub files_total: Integer, - #[serde(default = "default_372")] + #[serde(default = "default_374")] pub files_in_diff: Integer, - #[serde(default = "default_373")] + #[serde(default = "default_375")] pub diff_bytes: Integer, - #[serde(default = "default_374")] + #[serde(default = "default_376")] pub diff_truncated: bool, - #[serde(default = "default_375")] + #[serde(default = "default_377")] pub rules: Vec>, - #[serde(default = "default_376")] + #[serde(default = "default_378")] pub summary: std::collections::HashMap, - #[serde(default = "default_377")] + #[serde(default = "default_379")] pub control: std::collections::HashMap, - #[serde(default = "default_378")] + #[serde(default = "default_380")] pub notes: Vec, - #[serde(default = "default_379")] + #[serde(default = "default_381")] pub trace_run_id: String, } @@ -8731,29 +8733,29 @@ impl CodeConventionsInput { #[non_exhaustive] pub struct CodeLanguageCoverage { pub lang: String, - #[serde(default = "default_381")] + #[serde(default = "default_383")] pub files: Integer, - #[serde(default = "default_382")] + #[serde(default = "default_384")] pub files_errored: Integer, - #[serde(default = "default_383")] + #[serde(default = "default_385")] pub files_first_at: String, - #[serde(default = "default_384")] + #[serde(default = "default_386")] pub files_last_at: String, - #[serde(default = "default_385")] + #[serde(default = "default_387")] pub chunks: Integer, - #[serde(default = "default_386")] + #[serde(default = "default_388")] pub chunks_embedded: Integer, - #[serde(default = "default_387")] + #[serde(default = "default_389")] pub chunks_described: Integer, - #[serde(default = "default_388")] + #[serde(default = "default_390")] pub chunks_last_at: String, - #[serde(default = "default_389")] + #[serde(default = "default_391")] pub symbols_treesitter: Integer, - #[serde(default = "default_390")] + #[serde(default = "default_392")] pub symbols_treesitter_last_at: String, - #[serde(default = "default_391")] + #[serde(default = "default_393")] pub symbols_scip: Integer, - #[serde(default = "default_392")] + #[serde(default = "default_394")] pub symbols_scip_last_at: String, } @@ -8761,32 +8763,32 @@ pub struct CodeLanguageCoverage { #[non_exhaustive] pub struct CodeTierCoverage { pub tier: String, - #[serde(default = "default_393")] + #[serde(default = "default_395")] pub edges: Integer, - #[serde(default = "default_394")] + #[serde(default = "default_396")] pub edges_last_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCoverageGaps { - #[serde(default = "default_395")] + #[serde(default = "default_397")] pub functions_scanned: Integer, - #[serde(default = "default_396")] + #[serde(default = "default_398")] pub functions_uncalled: Integer, - #[serde(default = "default_397")] + #[serde(default = "default_399")] pub uncalled_share: f64, - #[serde(default = "default_398")] + #[serde(default = "default_400")] pub source_files: Integer, - #[serde(default = "default_399")] + #[serde(default = "default_401")] pub source_files_untested: Integer, - #[serde(default = "default_400")] + #[serde(default = "default_402")] pub untested_share: f64, - #[serde(default = "default_401")] + #[serde(default = "default_403")] pub code_files: Integer, - #[serde(default = "default_402")] + #[serde(default = "default_404")] pub code_files_no_symbols: Integer, - #[serde(default = "default_403")] + #[serde(default = "default_405")] pub no_symbols_share: f64, } @@ -8795,25 +8797,25 @@ pub struct CodeCoverageGaps { pub struct CodeCoverageOutput { pub org: String, pub namespace: String, - #[serde(default = "default_380")] + #[serde(default = "default_382")] pub as_of_commit: String, pub languages: Vec, pub tiers: Vec, - #[serde(default = "default_404")] + #[serde(default = "default_406")] pub gaps: Option, - #[serde(default = "default_405")] + #[serde(default = "default_407")] pub pr_history_from: String, - #[serde(default = "default_406")] + #[serde(default = "default_408")] pub pr_history_to: String, - #[serde(default = "default_407")] + #[serde(default = "default_409")] pub pr_history_last_fetch_at: String, - #[serde(default = "default_408")] + #[serde(default = "default_410")] pub pr_history_enabled: bool, - #[serde(default = "default_409")] + #[serde(default = "default_411")] pub pr_history_auth: String, - #[serde(default = "default_410")] + #[serde(default = "default_412")] pub context_packs_last_at: String, - #[serde(default = "default_411")] + #[serde(default = "default_413")] pub summaries_last_at: String, } @@ -8983,44 +8985,44 @@ impl CodeCoverageUnwatchInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCommitTierCoverage { - #[serde(default = "default_418")] + #[serde(default = "default_420")] pub producer: String, - #[serde(default = "default_419")] + #[serde(default = "default_421")] pub label: String, - #[serde(default = "default_420")] + #[serde(default = "default_422")] pub watermark_key: String, - #[serde(default = "default_421")] + #[serde(default = "default_423")] pub watermark: String, - #[serde(default = "default_422")] + #[serde(default = "default_424")] pub covered: Option, - #[serde(default = "default_423")] + #[serde(default = "default_425")] pub commits_since: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCommitCoverage { - #[serde(default = "default_415")] + #[serde(default = "default_417")] pub commit: String, - #[serde(default = "default_416")] + #[serde(default = "default_418")] pub in_mirror: bool, - #[serde(default = "default_417")] + #[serde(default = "default_419")] pub fast: Option, - #[serde(default = "default_424")] + #[serde(default = "default_426")] pub tiers: Vec, - #[serde(default = "default_425")] + #[serde(default = "default_427")] pub ready: bool, - #[serde(default = "default_426")] + #[serde(default = "default_428")] pub waiting_on: Vec, - #[serde(default = "default_427")] + #[serde(default = "default_429")] pub commits_since: Integer, - #[serde(default = "default_428")] + #[serde(default = "default_430")] pub paths_changed_since: Vec, - #[serde(default = "default_429")] + #[serde(default = "default_431")] pub paths_changed_count: Integer, - #[serde(default = "default_430")] + #[serde(default = "default_432")] pub paths_truncated: bool, - #[serde(default = "default_431")] + #[serde(default = "default_433")] pub paths_changed_overlap: Vec, } @@ -9031,14 +9033,14 @@ pub struct CodeCoverageWatchOutput { pub namespace: String, pub commit: String, pub inbox: String, - #[serde(default = "default_412")] + #[serde(default = "default_414")] pub ready: bool, - #[serde(default = "default_413")] + #[serde(default = "default_415")] pub emitted: bool, - #[serde(default = "default_414")] + #[serde(default = "default_416")] pub delivered_at: Option, pub event_id: String, - #[serde(default = "default_432")] + #[serde(default = "default_434")] pub commit_coverage: Option, } @@ -9122,31 +9124,31 @@ impl CodeCoverageWatchInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeCoverageClaimOutput { - #[serde(default = "default_433")] + #[serde(default = "default_435")] pub subject: String, - #[serde(default = "default_434")] + #[serde(default = "default_436")] pub subject_kind: String, - #[serde(default = "default_435")] + #[serde(default = "default_437")] pub verdict: String, - #[serde(default = "default_436")] + #[serde(default = "default_438")] pub tests: Vec>, - #[serde(default = "default_437")] + #[serde(default = "default_439")] pub tests_total: Integer, - #[serde(default = "default_438")] + #[serde(default = "default_440")] pub src_paths: Vec, - #[serde(default = "default_439")] + #[serde(default = "default_441")] pub epistemic: String, - #[serde(default = "default_440")] + #[serde(default = "default_442")] pub strongest_tier: String, - #[serde(default = "default_441")] + #[serde(default = "default_443")] pub search_terms: std::collections::HashMap, - #[serde(default = "default_442")] + #[serde(default = "default_444")] pub resolved_by: String, - #[serde(default = "default_443")] + #[serde(default = "default_445")] pub control: std::collections::HashMap, - #[serde(default = "default_444")] + #[serde(default = "default_446")] pub measured: std::collections::HashMap, - #[serde(default = "default_445")] + #[serde(default = "default_447")] pub trace_run_id: String, } @@ -9275,66 +9277,66 @@ impl CodeCoverageClaimInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeUnit { - #[serde(default = "default_446")] + #[serde(default = "default_448")] pub unit_id: String, pub path: String, - #[serde(default = "default_447")] + #[serde(default = "default_449")] pub start_line: Integer, - #[serde(default = "default_448")] + #[serde(default = "default_450")] pub end_line: Integer, - #[serde(default = "default_449")] + #[serde(default = "default_451")] pub symbol: String, - #[serde(default = "default_450")] + #[serde(default = "default_452")] pub kind: String, - #[serde(default = "default_451")] + #[serde(default = "default_453")] pub signature: String, - #[serde(default = "default_452")] + #[serde(default = "default_454")] pub body: String, - #[serde(default = "default_453")] + #[serde(default = "default_455")] pub elided: bool, - #[serde(default = "default_454")] + #[serde(default = "default_456")] pub body_hash: String, - #[serde(default = "default_455")] + #[serde(default = "default_457")] pub description: String, - #[serde(default = "default_456")] + #[serde(default = "default_458")] pub tier: String, - #[serde(default = "default_457")] + #[serde(default = "default_459")] pub score: f64, - #[serde(default = "default_458")] + #[serde(default = "default_460")] pub recent_prs: Vec>, - #[serde(default = "default_459")] + #[serde(default = "default_461")] pub examples: Vec>, - #[serde(default = "default_460")] + #[serde(default = "default_462")] pub tests: Vec>, - #[serde(default = "default_461")] + #[serde(default = "default_463")] pub test_link_state: String, - #[serde(default = "default_462")] + #[serde(default = "default_464")] pub lessons: Vec>, - #[serde(default = "default_463")] + #[serde(default = "default_465")] pub lessons_unread: bool, - #[serde(default = "default_464")] + #[serde(default = "default_466")] pub churn: Integer, - #[serde(default = "default_465")] + #[serde(default = "default_467")] pub amp: Integer, - #[serde(default = "default_466")] + #[serde(default = "default_468")] pub tested: bool, - #[serde(default = "default_467")] + #[serde(default = "default_469")] pub callees: Vec>, - #[serde(default = "default_468")] + #[serde(default = "default_470")] pub granularity: String, - #[serde(default = "default_469")] + #[serde(default = "default_471")] pub next: String, - #[serde(default = "default_470")] + #[serde(default = "default_472")] pub outline: Vec>, - #[serde(default = "default_471")] + #[serde(default = "default_473")] pub fan_in: Integer, - #[serde(default = "default_472")] + #[serde(default = "default_474")] pub via: String, - #[serde(default = "default_473")] + #[serde(default = "default_475")] pub lexical_rank: Integer, - #[serde(default = "default_474")] + #[serde(default = "default_476")] pub vector_rank: Integer, - #[serde(default = "default_475")] + #[serde(default = "default_477")] pub namespace: String, } @@ -9381,21 +9383,21 @@ pub enum CodeEditContextTargetStatus { pub struct CodeEditContextTarget { pub name: String, pub status: CodeEditContextTargetStatus, - #[serde(default = "default_494")] + #[serde(default = "default_496")] pub definition_indices: Vec, - #[serde(default = "default_495")] + #[serde(default = "default_497")] pub candidates: Vec>, - #[serde(default = "default_496")] + #[serde(default = "default_498")] pub resolved_by: String, - #[serde(default = "default_497")] + #[serde(default = "default_499")] pub presence: Vec>, - #[serde(default = "default_498")] + #[serde(default = "default_500")] pub hierarchy: std::collections::HashMap>>, - #[serde(default = "default_499")] + #[serde(default = "default_501")] pub documented_in: Vec>, - #[serde(default = "default_500")] + #[serde(default = "default_502")] pub trace_run_id: String, - #[serde(default = "default_501")] + #[serde(default = "default_503")] pub picked_by: String, } @@ -9423,45 +9425,45 @@ pub struct CodeEditReadSource { #[non_exhaustive] pub struct CodeSymbolOutput { pub definitions: Vec, - #[serde(default = "default_476")] + #[serde(default = "default_478")] pub lessons_left_out: Integer, - #[serde(default = "default_477")] + #[serde(default = "default_479")] pub ambiguous: bool, - #[serde(default = "default_478")] + #[serde(default = "default_480")] pub hierarchy: std::collections::HashMap>>, - #[serde(default = "default_479")] + #[serde(default = "default_481")] pub candidates: Vec>, - #[serde(default = "default_480")] + #[serde(default = "default_482")] pub tokens_returned: Integer, - #[serde(default = "default_481")] + #[serde(default = "default_483")] pub trace_run_id: String, - #[serde(default = "default_482")] + #[serde(default = "default_484")] pub uses: Option, - #[serde(default = "default_483")] + #[serde(default = "default_485")] pub uses_truncated: bool, - #[serde(default = "default_484")] + #[serde(default = "default_486")] pub uses_skipped: String, - #[serde(default = "default_485")] + #[serde(default = "default_487")] pub uses_tokens: Integer, - #[serde(default = "default_486")] + #[serde(default = "default_488")] pub picked_by: String, - #[serde(default = "default_487")] + #[serde(default = "default_489")] pub resolved_by: String, - #[serde(default = "default_488")] + #[serde(default = "default_490")] pub documented_in: Vec>, - #[serde(default = "default_489")] + #[serde(default = "default_491")] pub neighbours: Vec>, - #[serde(default = "default_490")] + #[serde(default = "default_492")] pub anchors: Integer, - #[serde(default = "default_491")] + #[serde(default = "default_493")] pub neighbour_tokens: Integer, - #[serde(default = "default_492")] + #[serde(default = "default_494")] pub presence: Vec>, - #[serde(default = "default_493")] + #[serde(default = "default_495")] pub summary: std::collections::HashMap>, - #[serde(default = "default_502")] + #[serde(default = "default_504")] pub edit_targets: Vec, - #[serde(default = "default_503")] + #[serde(default = "default_505")] pub read_sources: Option>, } @@ -9615,30 +9617,30 @@ impl CodeEditContextInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeEnclosingOutput { - #[serde(default = "default_504")] + #[serde(default = "default_506")] pub lessons: Vec>, - #[serde(default = "default_505")] + #[serde(default = "default_507")] pub lessons_left_out: Integer, pub results: Vec>, pub resolved: Integer, pub paths_indexed: Integer, pub paths_total: Integer, pub took_ms: Integer, - #[serde(default = "default_506")] + #[serde(default = "default_508")] pub as_of: std::collections::HashMap, - #[serde(default = "default_507")] + #[serde(default = "default_509")] pub bodies_returned: Integer, - #[serde(default = "default_508")] + #[serde(default = "default_510")] pub bodies_elided: Integer, - #[serde(default = "default_509")] + #[serde(default = "default_511")] pub tokens_returned: Integer, - #[serde(default = "default_510")] + #[serde(default = "default_512")] pub neighbours: Vec>, - #[serde(default = "default_511")] + #[serde(default = "default_513")] pub anchors: Integer, - #[serde(default = "default_512")] + #[serde(default = "default_514")] pub anchors_capped: bool, - #[serde(default = "default_513")] + #[serde(default = "default_515")] pub neighbour_tokens: Integer, } @@ -9794,7 +9796,7 @@ impl CodeEnclosingInput { #[non_exhaustive] pub struct CodeExamplesOutput { pub examples: Vec>, - #[serde(default = "default_514")] + #[serde(default = "default_516")] pub trace_run_id: String, } @@ -9912,19 +9914,19 @@ impl CodeExamplesInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeFilesOutput { - #[serde(default = "default_515")] + #[serde(default = "default_517")] pub files: Vec>, - #[serde(default = "default_516")] + #[serde(default = "default_518")] pub total: Integer, - #[serde(default = "default_517")] + #[serde(default = "default_519")] pub truncated: bool, - #[serde(default = "default_518")] + #[serde(default = "default_520")] pub as_of: std::collections::HashMap, - #[serde(default = "default_519")] + #[serde(default = "default_521")] pub not_covered: bool, - #[serde(default = "default_520")] + #[serde(default = "default_522")] pub note: String, - #[serde(default = "default_521")] + #[serde(default = "default_523")] pub trace_run_id: String, } @@ -10053,51 +10055,51 @@ impl CodeFilesInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeFirstBuildOutput { - #[serde(default = "default_522")] + #[serde(default = "default_524")] pub verdict: String, - #[serde(default = "default_523")] + #[serde(default = "default_525")] pub causes: Vec, - #[serde(default = "default_524")] + #[serde(default = "default_526")] pub epistemic: String, - #[serde(default = "default_525")] + #[serde(default = "default_527")] pub sha: String, - #[serde(default = "default_526")] + #[serde(default = "default_528")] pub pr_number: Integer, - #[serde(default = "default_527")] + #[serde(default = "default_529")] pub merged_at: String, - #[serde(default = "default_528")] + #[serde(default = "default_530")] pub commit_time: String, - #[serde(default = "default_529")] + #[serde(default = "default_531")] pub ledger_known: bool, - #[serde(default = "default_530")] + #[serde(default = "default_532")] pub mirror_known: bool, - #[serde(default = "default_531")] + #[serde(default = "default_533")] pub first_build: std::collections::HashMap, - #[serde(default = "default_532")] + #[serde(default = "default_534")] pub lag_hours: Option, - #[serde(default = "default_533")] + #[serde(default = "default_535")] pub later_builds: Integer, - #[serde(default = "default_534")] + #[serde(default = "default_536")] pub window_hours: Integer, - #[serde(default = "default_535")] + #[serde(default = "default_537")] pub candidates_checked: Integer, - #[serde(default = "default_536")] + #[serde(default = "default_538")] pub candidates_total: Integer, - #[serde(default = "default_537")] + #[serde(default = "default_539")] pub own_builds: Vec>, - #[serde(default = "default_538")] + #[serde(default = "default_540")] pub containing_branches: Vec, - #[serde(default = "default_539")] + #[serde(default = "default_541")] pub containing_namespaces: Vec, - #[serde(default = "default_540")] + #[serde(default = "default_542")] pub nearest_namespace: String, - #[serde(default = "default_541")] + #[serde(default = "default_543")] pub note: String, - #[serde(default = "default_542")] + #[serde(default = "default_544")] pub tracker_namespace: String, - #[serde(default = "default_543")] + #[serde(default = "default_545")] pub tracker_unavailable: bool, - #[serde(default = "default_544")] + #[serde(default = "default_546")] pub trace_run_id: String, } @@ -10216,19 +10218,19 @@ pub struct GrepDependency { pub struct RelatedGrepEvidence { pub pattern: String, pub matches: Vec>, - #[serde(default = "default_547")] + #[serde(default = "default_549")] pub contexts: Vec>, - #[serde(default = "default_548")] + #[serde(default = "default_550")] pub contexts_partial: bool, - #[serde(default = "default_549")] + #[serde(default = "default_551")] pub definitions: Vec>, - #[serde(default = "default_550")] + #[serde(default = "default_552")] pub definitions_partial: bool, - #[serde(default = "default_551")] + #[serde(default = "default_553")] pub definitions_note: String, - #[serde(default = "default_552")] + #[serde(default = "default_554")] pub truncated: bool, - #[serde(default = "default_553")] + #[serde(default = "default_555")] pub dependencies: Vec, } @@ -10244,69 +10246,69 @@ pub enum CodeGrepOutputFallback { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeGrepOutput { - #[serde(default = "default_545")] + #[serde(default = "default_547")] pub lessons: Vec>, - #[serde(default = "default_546")] + #[serde(default = "default_548")] pub lessons_left_out: Integer, pub matches: Vec>, - #[serde(default = "default_554")] + #[serde(default = "default_556")] pub related: Option, - #[serde(default = "default_555")] + #[serde(default = "default_557")] pub contexts: Vec>, - #[serde(default = "default_556")] + #[serde(default = "default_558")] pub contexts_partial: bool, - #[serde(default = "default_557")] + #[serde(default = "default_559")] pub definitions: Vec>, - #[serde(default = "default_558")] + #[serde(default = "default_560")] pub definitions_partial: bool, - #[serde(default = "default_559")] + #[serde(default = "default_561")] pub definitions_note: String, - #[serde(default = "default_560")] + #[serde(default = "default_562")] pub next_cursor: String, - #[serde(default = "default_561")] + #[serde(default = "default_563")] pub has_more: bool, - #[serde(default = "default_562")] + #[serde(default = "default_564")] pub files: Vec>, - #[serde(default = "default_563")] + #[serde(default = "default_565")] pub files_total: Integer, pub chunks_matched: Integer, - #[serde(default = "default_564")] + #[serde(default = "default_566")] pub truncated: bool, - #[serde(default = "default_565")] + #[serde(default = "default_567")] pub coverage_floor: bool, - #[serde(default = "default_566")] + #[serde(default = "default_568")] pub as_of: std::collections::HashMap, - #[serde(default = "default_567")] + #[serde(default = "default_569")] pub not_covered: bool, - #[serde(default = "default_568")] + #[serde(default = "default_570")] pub neighbours: Vec>, - #[serde(default = "default_569")] + #[serde(default = "default_571")] pub anchors: Integer, - #[serde(default = "default_570")] + #[serde(default = "default_572")] pub anchors_capped: bool, - #[serde(default = "default_571")] + #[serde(default = "default_573")] pub neighbour_tokens: Integer, - #[serde(default = "default_572")] + #[serde(default = "default_574")] pub note: String, - #[serde(default = "default_573")] + #[serde(default = "default_575")] pub verdict: String, - #[serde(default = "default_574")] + #[serde(default = "default_576")] pub template: String, - #[serde(default = "default_575")] + #[serde(default = "default_577")] pub error_code: String, - #[serde(default = "default_576")] + #[serde(default = "default_578")] pub coverage: f64, - #[serde(default = "default_577")] + #[serde(default = "default_579")] pub presence: Vec>, - #[serde(default = "default_578")] + #[serde(default = "default_580")] pub summary: std::collections::HashMap>, - #[serde(default = "default_579")] + #[serde(default = "default_581")] pub trace_run_id: String, - #[serde(default = "default_580")] + #[serde(default = "default_582")] pub partial: bool, - #[serde(default = "default_581")] + #[serde(default = "default_583")] pub partial_reason: String, - #[serde(default = "default_582")] + #[serde(default = "default_584")] pub fallback: CodeGrepOutputFallback, } @@ -10698,9 +10700,9 @@ impl CodeGrepInput { pub struct CodeHistoryOutput { pub prs: Vec>, pub paths: Vec, - #[serde(default = "default_583")] + #[serde(default = "default_585")] pub items: Vec>, - #[serde(default = "default_584")] + #[serde(default = "default_586")] pub trace_run_id: String, } @@ -10862,52 +10864,52 @@ impl CodeHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeImpactOutput { - #[serde(default = "default_585")] + #[serde(default = "default_587")] pub lessons: Vec>, - #[serde(default = "default_586")] + #[serde(default = "default_588")] pub lessons_left_out: Integer, pub impacted_symbols: Vec>, pub impacted_tests: Vec>, pub co_change_files: Vec>, - #[serde(default = "default_587")] + #[serde(default = "default_589")] pub blast_radius_score: f64, - #[serde(default = "default_588")] + #[serde(default = "default_590")] pub touched_symbols: Vec>, - #[serde(default = "default_589")] + #[serde(default = "default_591")] pub co_change_missing: Vec>, - #[serde(default = "default_590")] + #[serde(default = "default_592")] pub owners: Vec>, - #[serde(default = "default_591")] + #[serde(default = "default_593")] pub reverts: Vec>, - #[serde(default = "default_592")] + #[serde(default = "default_594")] pub counts_floor: bool, - #[serde(default = "default_593")] + #[serde(default = "default_595")] pub unresolved_calls: Integer, - #[serde(default = "default_594")] + #[serde(default = "default_596")] pub ambiguous_calls: Integer, - #[serde(default = "default_595")] + #[serde(default = "default_597")] pub epistemic: String, - #[serde(default = "default_596")] + #[serde(default = "default_598")] pub causes: Vec, - #[serde(default = "default_597")] + #[serde(default = "default_599")] pub by_hop_counts: std::collections::HashMap, - #[serde(default = "default_598")] + #[serde(default = "default_600")] pub truncated: bool, - #[serde(default = "default_599")] + #[serde(default = "default_601")] pub resolved_by: String, - #[serde(default = "default_600")] + #[serde(default = "default_602")] pub verdict: String, - #[serde(default = "default_601")] + #[serde(default = "default_603")] pub paths_seen: Vec>, - #[serde(default = "default_602")] + #[serde(default = "default_604")] pub overlay: bool, - #[serde(default = "default_603")] + #[serde(default = "default_605")] pub overlay_head_sha: String, - #[serde(default = "default_604")] + #[serde(default = "default_606")] pub overlay_added: Integer, - #[serde(default = "default_605")] + #[serde(default = "default_607")] pub overlay_note: String, - #[serde(default = "default_606")] + #[serde(default = "default_608")] pub trace_run_id: String, } @@ -11175,12 +11177,12 @@ impl CodeImpactInput { #[non_exhaustive] pub struct CodeIndexErrorRow { pub path: String, - #[serde(default = "default_607")] + #[serde(default = "default_609")] pub lang: String, pub error: String, - #[serde(default = "default_608")] + #[serde(default = "default_610")] pub indexed_commit: String, - #[serde(default = "default_609")] + #[serde(default = "default_611")] pub at: String, } @@ -11188,7 +11190,7 @@ pub struct CodeIndexErrorRow { #[non_exhaustive] pub struct CodeIndexErrorsOutput { pub rows: Vec, - #[serde(default = "default_610")] + #[serde(default = "default_612")] pub total: Integer, } @@ -11288,17 +11290,17 @@ pub struct CodeCompilerTier { pub tool: String, pub label: String, pub watermark_key: String, - #[serde(default = "default_620")] + #[serde(default = "default_622")] pub commit: String, - #[serde(default = "default_621")] + #[serde(default = "default_623")] pub lag: Integer, - #[serde(default = "default_622")] + #[serde(default = "default_624")] pub updated_at: String, - #[serde(default = "default_623")] + #[serde(default = "default_625")] pub primary: bool, - #[serde(default = "default_624")] + #[serde(default = "default_626")] pub workers: Vec, - #[serde(default = "default_625")] + #[serde(default = "default_627")] pub note: String, } @@ -11306,42 +11308,42 @@ pub struct CodeCompilerTier { #[non_exhaustive] pub struct CodeTierHealth { pub tier: String, - #[serde(default = "default_627")] + #[serde(default = "default_629")] pub state: String, - #[serde(default = "default_628")] + #[serde(default = "default_630")] pub kind: String, - #[serde(default = "default_629")] + #[serde(default = "default_631")] pub error: String, - #[serde(default = "default_630")] + #[serde(default = "default_632")] pub fix: String, - #[serde(default = "default_631")] + #[serde(default = "default_633")] pub failing_since: String, - #[serde(default = "default_632")] + #[serde(default = "default_634")] pub last_failed_at: String, - #[serde(default = "default_633")] + #[serde(default = "default_635")] pub failed_passes: Integer, - #[serde(default = "default_634")] + #[serde(default = "default_636")] pub last_ok_at: String, - #[serde(default = "default_635")] + #[serde(default = "default_637")] pub lag_commits: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeWorkerStatus { - #[serde(default = "default_651")] + #[serde(default = "default_653")] pub enabled: bool, - #[serde(default = "default_652")] + #[serde(default = "default_654")] pub interval_seconds: Integer, - #[serde(default = "default_653")] + #[serde(default = "default_655")] pub last_run_at: String, - #[serde(default = "default_654")] + #[serde(default = "default_656")] pub last_duration_ms: Integer, - #[serde(default = "default_655")] + #[serde(default = "default_657")] pub consecutive_failures: Integer, - #[serde(default = "default_656")] + #[serde(default = "default_658")] pub total_runs: Integer, - #[serde(default = "default_657")] + #[serde(default = "default_659")] pub last_error: String, } @@ -11350,84 +11352,84 @@ pub struct CodeWorkerStatus { pub struct CodeIndexStatusOutput { pub repo: String, pub branch: String, - #[serde(default = "default_611")] + #[serde(default = "default_613")] pub org: String, pub namespace: String, - #[serde(default = "default_612")] + #[serde(default = "default_614")] pub provider: String, - #[serde(default = "default_613")] + #[serde(default = "default_615")] pub profile: String, - #[serde(default = "default_614")] + #[serde(default = "default_616")] pub compiler_candidates: Vec, - #[serde(default = "default_615")] + #[serde(default = "default_617")] pub quality_warnings: Vec, - #[serde(default = "default_616")] + #[serde(default = "default_618")] pub git_head: String, - #[serde(default = "default_617")] + #[serde(default = "default_619")] pub scip_commit: String, - #[serde(default = "default_618")] + #[serde(default = "default_620")] pub scip_commit_py: String, - #[serde(default = "default_619")] + #[serde(default = "default_621")] pub scip_producer: String, - #[serde(default = "default_626")] + #[serde(default = "default_628")] pub compiler_tiers: Vec, - #[serde(default = "default_636")] + #[serde(default = "default_638")] pub tier_health: Vec, - #[serde(default = "default_637")] + #[serde(default = "default_639")] pub pr_cursor: String, - #[serde(default = "default_638")] + #[serde(default = "default_640")] pub commit_coverage: Option, - #[serde(default = "default_639")] + #[serde(default = "default_641")] pub clone_head: String, - #[serde(default = "default_640")] + #[serde(default = "default_642")] pub clone_fetched_at: String, - #[serde(default = "default_641")] + #[serde(default = "default_643")] pub fetch_overdue: bool, - #[serde(default = "default_642")] + #[serde(default = "default_644")] pub fast_tier_lag: Integer, - #[serde(default = "default_643")] + #[serde(default = "default_645")] pub scip_lag: Integer, - #[serde(default = "default_644")] + #[serde(default = "default_646")] pub scip_py_lag: Integer, - #[serde(default = "default_645")] + #[serde(default = "default_647")] pub last_refresh_at: String, - #[serde(default = "default_646")] + #[serde(default = "default_648")] pub last_refresh_detail: String, - #[serde(default = "default_647")] + #[serde(default = "default_649")] pub org_readable: bool, - #[serde(default = "default_648")] + #[serde(default = "default_650")] pub path_prefixes: Vec, - #[serde(default = "default_649")] + #[serde(default = "default_651")] pub counts: std::collections::HashMap, - #[serde(default = "default_650")] + #[serde(default = "default_652")] pub state: std::collections::HashMap>, - #[serde(default = "default_658")] + #[serde(default = "default_660")] pub workers: std::collections::HashMap, - #[serde(default = "default_659")] + #[serde(default = "default_661")] pub build_commit: String, - #[serde(default = "default_660")] + #[serde(default = "default_662")] pub ops: Vec, - #[serde(default = "default_661")] + #[serde(default = "default_663")] pub request_fields: std::collections::HashMap>, - #[serde(default = "default_662")] + #[serde(default = "default_664")] pub op_maturity: std::collections::HashMap, - #[serde(default = "default_663")] + #[serde(default = "default_665")] pub op_reach: std::collections::HashMap>, - #[serde(default = "default_664")] + #[serde(default = "default_666")] pub op_toolsets: std::collections::HashMap>, - #[serde(default = "default_665")] + #[serde(default = "default_667")] pub symbol_stats_rows: Integer, - #[serde(default = "default_666")] + #[serde(default = "default_668")] pub symbol_stats_at: String, - #[serde(default = "default_667")] + #[serde(default = "default_669")] pub unit_risk_rows: Integer, - #[serde(default = "default_668")] + #[serde(default = "default_670")] pub unit_risk_at: String, - #[serde(default = "default_669")] + #[serde(default = "default_671")] pub chunks_total: Integer, - #[serde(default = "default_670")] + #[serde(default = "default_672")] pub chunks_embedded: Integer, - #[serde(default = "default_671")] + #[serde(default = "default_673")] pub embedding_coverage: f64, } @@ -11551,9 +11553,9 @@ impl CodeIndexStatusInput { pub struct CodeMapOutput { pub map: String, pub tokens_used: Integer, - #[serde(default = "default_672")] + #[serde(default = "default_674")] pub commit_sha: String, - #[serde(default = "default_673")] + #[serde(default = "default_675")] pub trace_run_id: String, } @@ -11824,32 +11826,32 @@ impl CodeOutcomeInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeOutlineOutput { - #[serde(default = "default_674")] + #[serde(default = "default_676")] pub lessons: Vec>, - #[serde(default = "default_675")] + #[serde(default = "default_677")] pub lessons_left_out: Integer, pub path: String, pub entries: Vec>, pub total: Integer, pub returned: Integer, pub elided: Integer, - #[serde(default = "default_676")] + #[serde(default = "default_678")] pub next: String, - #[serde(default = "default_677")] + #[serde(default = "default_679")] pub indexed: bool, - #[serde(default = "default_678")] + #[serde(default = "default_680")] pub verdict: String, - #[serde(default = "default_679")] + #[serde(default = "default_681")] pub tokens_returned: Integer, - #[serde(default = "default_680")] + #[serde(default = "default_682")] pub took_ms: Integer, - #[serde(default = "default_681")] + #[serde(default = "default_683")] pub head: String, - #[serde(default = "default_682")] + #[serde(default = "default_684")] pub head_truncated: bool, - #[serde(default = "default_683")] + #[serde(default = "default_685")] pub as_of: std::collections::HashMap, - #[serde(default = "default_684")] + #[serde(default = "default_686")] pub trace_run_id: String, } @@ -12001,19 +12003,19 @@ pub enum CodePathGuardsOutputEpistemic { #[non_exhaustive] pub struct CodePathGuardsOutput { pub verdict: CodePathGuardsOutputVerdict, - #[serde(default = "default_685")] + #[serde(default = "default_687")] pub causes: Vec, - #[serde(default = "default_686")] + #[serde(default = "default_688")] pub epistemic: CodePathGuardsOutputEpistemic, - #[serde(default = "default_687")] + #[serde(default = "default_689")] pub explanation: String, - #[serde(default = "default_688")] + #[serde(default = "default_690")] pub hops: Vec>, - #[serde(default = "default_689")] + #[serde(default = "default_691")] pub named_at: Vec, - #[serde(default = "default_690")] + #[serde(default = "default_692")] pub visited_symbols: Integer, - #[serde(default = "default_691")] + #[serde(default = "default_693")] pub trace_run_id: String, } @@ -12119,21 +12121,21 @@ impl CodePathGuardsInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodePrCheckOutput { - #[serde(default = "default_692")] + #[serde(default = "default_694")] pub verdict: String, - #[serde(default = "default_693")] + #[serde(default = "default_695")] pub items: Vec>, - #[serde(default = "default_694")] + #[serde(default = "default_696")] pub undecided: bool, - #[serde(default = "default_695")] + #[serde(default = "default_697")] pub epistemic: String, - #[serde(default = "default_696")] + #[serde(default = "default_698")] pub thresholds: std::collections::HashMap, - #[serde(default = "default_697")] + #[serde(default = "default_699")] pub legs: std::collections::HashMap, - #[serde(default = "default_698")] + #[serde(default = "default_700")] pub draft: std::collections::HashMap, - #[serde(default = "default_699")] + #[serde(default = "default_701")] pub trace_run_id: String, } @@ -12322,22 +12324,22 @@ pub struct CodeReadRange { pub start_line: Integer, pub end_line: Integer, pub status: CodeReadRangeStatus, - #[serde(default = "default_702")] + #[serde(default = "default_704")] pub indexed_commit: String, - #[serde(default = "default_703")] + #[serde(default = "default_705")] pub windows: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeReadOutput { - #[serde(default = "default_700")] + #[serde(default = "default_702")] pub lessons: Vec>, - #[serde(default = "default_701")] + #[serde(default = "default_703")] pub lessons_left_out: Integer, pub results: Vec, pub as_of: std::collections::HashMap, - #[serde(default = "default_704")] + #[serde(default = "default_706")] pub trace_run_id: String, } @@ -12580,15 +12582,15 @@ impl CodeReadInput { #[non_exhaustive] pub struct CodeRecentCommitRow { pub commit: String, - #[serde(default = "default_705")] + #[serde(default = "default_707")] pub subject: String, - #[serde(default = "default_706")] + #[serde(default = "default_708")] pub committed_at: String, - #[serde(default = "default_707")] + #[serde(default = "default_709")] pub ingested_at: String, - #[serde(default = "default_708")] + #[serde(default = "default_710")] pub files: Integer, - #[serde(default = "default_709")] + #[serde(default = "default_711")] pub pr_number: Integer, } @@ -12691,11 +12693,11 @@ impl CodeRecentCommitsInput { #[non_exhaustive] pub struct CodeRefreshOutput { pub triggered: bool, - #[serde(default = "default_710")] + #[serde(default = "default_712")] pub already_running: bool, - #[serde(default = "default_711")] + #[serde(default = "default_713")] pub head_before: String, - #[serde(default = "default_712")] + #[serde(default = "default_714")] pub head_after: String, } @@ -12898,22 +12900,22 @@ pub struct CodeRepoAddOutput { pub org: String, pub namespace: String, pub repo: String, - #[serde(default = "default_713")] + #[serde(default = "default_715")] pub remote: String, - #[serde(default = "default_714")] + #[serde(default = "default_716")] pub provider: String, pub branch: String, pub join_policy: String, pub classification: String, - #[serde(default = "default_715")] + #[serde(default = "default_717")] pub index_stage: String, - #[serde(default = "default_716")] + #[serde(default = "default_718")] pub my_role: String, - #[serde(default = "default_717")] + #[serde(default = "default_719")] pub remote_head: String, - #[serde(default = "default_718")] + #[serde(default = "default_720")] pub also: Vec>, - #[serde(default = "default_719")] + #[serde(default = "default_721")] pub skipped: Vec>, } @@ -13141,29 +13143,29 @@ impl CodeRepoAddBranchInput { pub struct CodeRepoRemoteBranchesOutput { pub org: String, pub repo: String, - #[serde(default = "default_720")] + #[serde(default = "default_722")] pub remote: String, - #[serde(default = "default_721")] + #[serde(default = "default_723")] pub provider: String, - #[serde(default = "default_722")] + #[serde(default = "default_724")] pub warnings: Vec, - #[serde(default = "default_723")] + #[serde(default = "default_725")] pub default_branch: String, - #[serde(default = "default_724")] + #[serde(default = "default_726")] pub branches: Vec>, - #[serde(default = "default_725")] + #[serde(default = "default_727")] pub suggested: Vec, - #[serde(default = "default_726")] + #[serde(default = "default_728")] pub indexed: Vec>, - #[serde(default = "default_727")] + #[serde(default = "default_729")] pub cap: Integer, - #[serde(default = "default_728")] + #[serde(default = "default_730")] pub total: Integer, - #[serde(default = "default_729")] + #[serde(default = "default_731")] pub matched: Integer, - #[serde(default = "default_730")] + #[serde(default = "default_732")] pub truncated: bool, - #[serde(default = "default_731")] + #[serde(default = "default_733")] pub query: String, } @@ -13254,11 +13256,11 @@ pub struct CodeRepoRemoveOutput { pub registry_deactivated: bool, pub directory_deactivated: bool, pub purged_tables: Integer, - #[serde(default = "default_732")] + #[serde(default = "default_734")] pub erasure_id: String, - #[serde(default = "default_733")] + #[serde(default = "default_735")] pub mirror_removed: bool, - #[serde(default = "default_734")] + #[serde(default = "default_736")] pub sources_deactivated: Vec, } @@ -13392,14 +13394,14 @@ impl CodeRepoSetAccessInput { pub struct CodeRepoSetSourceOutput { pub org: String, pub namespace: String, - #[serde(default = "default_735")] + #[serde(default = "default_737")] pub tracker_namespaces: Vec, - #[serde(default = "default_736")] + #[serde(default = "default_738")] pub previous_tracker_namespaces: Vec, pub effective_within_s: Integer, - #[serde(default = "default_737")] + #[serde(default = "default_739")] pub not_covering: Vec, - #[serde(default = "default_738")] + #[serde(default = "default_740")] pub warning: String, } @@ -13814,43 +13816,43 @@ pub enum CodeReviewBriefOutputLedger { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeReviewBriefOutput { - #[serde(default = "default_739")] + #[serde(default = "default_741")] pub pr_number: Integer, - #[serde(default = "default_740")] + #[serde(default = "default_742")] pub merge_sha: String, - #[serde(default = "default_741")] + #[serde(default = "default_743")] pub source: CodeReviewBriefOutputSource, - #[serde(default = "default_742")] + #[serde(default = "default_744")] pub ledger: CodeReviewBriefOutputLedger, - #[serde(default = "default_743")] + #[serde(default = "default_745")] pub stored: bool, - #[serde(default = "default_744")] + #[serde(default = "default_746")] pub provenance: std::collections::HashMap, - #[serde(default = "default_745")] + #[serde(default = "default_747")] pub overlay: bool, - #[serde(default = "default_746")] + #[serde(default = "default_748")] pub overlay_head_sha: String, - #[serde(default = "default_747")] + #[serde(default = "default_749")] pub overlay_added: Integer, - #[serde(default = "default_748")] + #[serde(default = "default_750")] pub overlay_note: String, - #[serde(default = "default_749")] + #[serde(default = "default_751")] pub tier: String, - #[serde(default = "default_750")] + #[serde(default = "default_752")] pub built_at: String, - #[serde(default = "default_751")] + #[serde(default = "default_753")] pub indexed_commit: String, - #[serde(default = "default_752")] + #[serde(default = "default_754")] pub build_ms: Integer, - #[serde(default = "default_753")] + #[serde(default = "default_755")] pub tokens_used: Integer, - #[serde(default = "default_754")] + #[serde(default = "default_756")] pub token_budget: Integer, - #[serde(default = "default_755")] + #[serde(default = "default_757")] pub decisions: std::collections::HashMap, - #[serde(default = "default_756")] + #[serde(default = "default_758")] pub sections: std::collections::HashMap>, - #[serde(default = "default_757")] + #[serde(default = "default_759")] pub trace_run_id: String, } @@ -14235,11 +14237,11 @@ pub struct CodeScipStatusOutput { pub status: String, pub parts_received: Integer, pub total_parts: Integer, - #[serde(default = "default_758")] + #[serde(default = "default_760")] pub error: String, - #[serde(default = "default_759")] + #[serde(default = "default_761")] pub commit_sha: String, - #[serde(default = "default_760")] + #[serde(default = "default_762")] pub applied_at: String, } @@ -14398,63 +14400,63 @@ pub enum CodeSearchOutputEpistemic { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeSearchOutput { - #[serde(default = "default_761")] + #[serde(default = "default_763")] pub lessons: Vec>, - #[serde(default = "default_762")] + #[serde(default = "default_764")] pub lessons_left_out: Integer, pub results: Vec, pub route: String, - #[serde(default = "default_763")] + #[serde(default = "default_765")] pub next_cursor: String, - #[serde(default = "default_764")] + #[serde(default = "default_766")] pub has_more: bool, - #[serde(default = "default_765")] + #[serde(default = "default_767")] pub history: std::collections::HashMap, - #[serde(default = "default_766")] + #[serde(default = "default_768")] pub abstain: bool, - #[serde(default = "default_767")] + #[serde(default = "default_769")] pub abstain_code: CodeSearchOutputAbstainCode, - #[serde(default = "default_768")] + #[serde(default = "default_770")] pub abstain_reason: String, - #[serde(default = "default_769")] + #[serde(default = "default_771")] pub retrieval_risk: CodeSearchOutputRetrievalRisk, - #[serde(default = "default_770")] + #[serde(default = "default_772")] pub retrieval_confidence: f64, - #[serde(default = "default_771")] + #[serde(default = "default_773")] pub pick_confidence: CodeSearchOutputPickConfidence, - #[serde(default = "default_772")] + #[serde(default = "default_774")] pub route_agreement: f64, - #[serde(default = "default_773")] + #[serde(default = "default_775")] pub calibration_explanation: String, - #[serde(default = "default_774")] + #[serde(default = "default_776")] pub tokens_returned: Integer, - #[serde(default = "default_775")] + #[serde(default = "default_777")] pub constrained: bool, - #[serde(default = "default_776")] + #[serde(default = "default_778")] pub matched_files: Integer, - #[serde(default = "default_777")] + #[serde(default = "default_779")] pub as_of: std::collections::HashMap, - #[serde(default = "default_778")] + #[serde(default = "default_780")] pub score_explanation: String, - #[serde(default = "default_779")] + #[serde(default = "default_781")] pub retrieval_work: std::collections::HashMap, - #[serde(default = "default_780")] + #[serde(default = "default_782")] pub trace_run_id: String, - #[serde(default = "default_781")] + #[serde(default = "default_783")] pub top_similarity: f64, - #[serde(default = "default_782")] + #[serde(default = "default_784")] pub tracked: std::collections::HashMap, - #[serde(default = "default_783")] + #[serde(default = "default_785")] pub fanout: std::collections::HashMap, - #[serde(default = "default_784")] + #[serde(default = "default_786")] pub note: String, - #[serde(default = "default_785")] + #[serde(default = "default_787")] pub legs_timed_out: Vec, - #[serde(default = "default_786")] + #[serde(default = "default_788")] pub epistemic: CodeSearchOutputEpistemic, - #[serde(default = "default_787")] + #[serde(default = "default_789")] pub partial: bool, - #[serde(default = "default_788")] + #[serde(default = "default_790")] pub partial_reason: String, } @@ -14972,23 +14974,23 @@ impl CodeSearchInput { #[non_exhaustive] pub struct CodeSettingFactsOutput { pub name: String, - #[serde(default = "default_789")] + #[serde(default = "default_791")] pub verdict: String, - #[serde(default = "default_790")] + #[serde(default = "default_792")] pub causes: Vec, - #[serde(default = "default_791")] + #[serde(default = "default_793")] pub declaration: std::collections::HashMap, - #[serde(default = "default_792")] + #[serde(default = "default_794")] pub tier: String, - #[serde(default = "default_793")] + #[serde(default = "default_795")] pub history: Vec>, - #[serde(default = "default_794")] + #[serde(default = "default_796")] pub randomized_in_ci: std::collections::HashMap, - #[serde(default = "default_795")] + #[serde(default = "default_797")] pub tests_total: Integer, - #[serde(default = "default_796")] + #[serde(default = "default_798")] pub control: std::collections::HashMap, - #[serde(default = "default_797")] + #[serde(default = "default_799")] pub trace_run_id: String, } @@ -15410,31 +15412,31 @@ impl CodeSymbolInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeSymbolHistoryOutput { - #[serde(default = "default_798")] + #[serde(default = "default_800")] pub verdict: String, - #[serde(default = "default_799")] + #[serde(default = "default_801")] pub causes: Vec, - #[serde(default = "default_800")] + #[serde(default = "default_802")] pub epistemic: String, - #[serde(default = "default_801")] + #[serde(default = "default_803")] pub symbol: std::collections::HashMap, - #[serde(default = "default_802")] + #[serde(default = "default_804")] pub ambiguous: bool, - #[serde(default = "default_803")] + #[serde(default = "default_805")] pub candidates: Vec, - #[serde(default = "default_804")] + #[serde(default = "default_806")] pub prs: Vec>, - #[serde(default = "default_805")] + #[serde(default = "default_807")] pub review_comments: Vec>, - #[serde(default = "default_806")] + #[serde(default = "default_808")] pub open_issues_naming: Vec>, - #[serde(default = "default_807")] + #[serde(default = "default_809")] pub summary: std::collections::HashMap, - #[serde(default = "default_808")] + #[serde(default = "default_810")] pub tracker_namespace: String, - #[serde(default = "default_809")] + #[serde(default = "default_811")] pub tracker_unavailable: bool, - #[serde(default = "default_810")] + #[serde(default = "default_812")] pub trace_run_id: String, } @@ -15552,43 +15554,43 @@ impl CodeSymbolHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeTestGateOutput { - #[serde(default = "default_811")] + #[serde(default = "default_813")] pub tests: Vec>, - #[serde(default = "default_812")] + #[serde(default = "default_814")] pub untested: Vec>, - #[serde(default = "default_813")] + #[serde(default = "default_815")] pub unlinked: Vec>, - #[serde(default = "default_814")] + #[serde(default = "default_816")] pub changed_files: Vec, - #[serde(default = "default_815")] + #[serde(default = "default_817")] pub touched_symbols: Vec>, - #[serde(default = "default_816")] + #[serde(default = "default_818")] pub obligations: bool, - #[serde(default = "default_817")] + #[serde(default = "default_819")] pub tests_total: Integer, - #[serde(default = "default_818")] + #[serde(default = "default_820")] pub tests_unnamed: Integer, - #[serde(default = "default_819")] + #[serde(default = "default_821")] pub untested_total: Integer, - #[serde(default = "default_820")] + #[serde(default = "default_822")] pub unlinked_total: Integer, - #[serde(default = "default_821")] + #[serde(default = "default_823")] pub tests_capped: bool, - #[serde(default = "default_822")] + #[serde(default = "default_824")] pub untested_capped: bool, - #[serde(default = "default_823")] + #[serde(default = "default_825")] pub unlinked_capped: bool, - #[serde(default = "default_824")] + #[serde(default = "default_826")] pub counts_floor: bool, - #[serde(default = "default_825")] + #[serde(default = "default_827")] pub epistemic: String, - #[serde(default = "default_826")] + #[serde(default = "default_828")] pub causes: Vec, - #[serde(default = "default_827")] + #[serde(default = "default_829")] pub by_hop_counts: std::collections::HashMap, - #[serde(default = "default_828")] + #[serde(default = "default_830")] pub at_commit: std::collections::HashMap, - #[serde(default = "default_829")] + #[serde(default = "default_831")] pub trace_run_id: String, } @@ -15728,21 +15730,21 @@ impl CodeTestGateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeTestHomeOutput { - #[serde(default = "default_830")] + #[serde(default = "default_832")] pub verdict: String, - #[serde(default = "default_831")] + #[serde(default = "default_833")] pub home: String, - #[serde(default = "default_832")] + #[serde(default = "default_834")] pub candidates: Vec>, - #[serde(default = "default_833")] + #[serde(default = "default_835")] pub parts: Vec, - #[serde(default = "default_834")] + #[serde(default = "default_836")] pub src_paths: Vec, - #[serde(default = "default_835")] + #[serde(default = "default_837")] pub next_free_stateless_number: Integer, - #[serde(default = "default_836")] + #[serde(default = "default_838")] pub control: std::collections::HashMap, - #[serde(default = "default_837")] + #[serde(default = "default_839")] pub trace_run_id: String, } @@ -15882,29 +15884,29 @@ impl CodeTestHomeInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CodeTestsForOutput { - #[serde(default = "default_838")] + #[serde(default = "default_840")] pub tests: Vec>, - #[serde(default = "default_839")] + #[serde(default = "default_841")] pub total: Integer, - #[serde(default = "default_840")] + #[serde(default = "default_842")] pub truncated: bool, - #[serde(default = "default_841")] + #[serde(default = "default_843")] pub facets: Vec>, - #[serde(default = "default_842")] + #[serde(default = "default_844")] pub verdict: String, - #[serde(default = "default_843")] + #[serde(default = "default_845")] pub abstain: bool, - #[serde(default = "default_844")] + #[serde(default = "default_846")] pub uncovered_kinds: Vec, - #[serde(default = "default_845")] + #[serde(default = "default_847")] pub as_of: std::collections::HashMap, - #[serde(default = "default_846")] + #[serde(default = "default_848")] pub at_commit: std::collections::HashMap, - #[serde(default = "default_847")] + #[serde(default = "default_849")] pub tokens_returned: Integer, - #[serde(default = "default_848")] + #[serde(default = "default_850")] pub took_ms: Integer, - #[serde(default = "default_849")] + #[serde(default = "default_851")] pub trace_run_id: String, } @@ -16021,9 +16023,9 @@ impl CodeTestsForInput { pub struct CodeTraceOutput { pub frames: Vec>, pub definitions: Vec, - #[serde(default = "default_850")] + #[serde(default = "default_852")] pub tokens_returned: Integer, - #[serde(default = "default_851")] + #[serde(default = "default_853")] pub trace_run_id: String, } @@ -16139,16 +16141,16 @@ pub enum CodeVerifyOutputVerdict { #[non_exhaustive] pub struct CodeVerifyOutput { pub verdict: CodeVerifyOutputVerdict, - #[serde(default = "default_852")] + #[serde(default = "default_854")] pub reason: String, pub explanation: String, - #[serde(default = "default_853")] + #[serde(default = "default_855")] pub evidence: Vec>, - #[serde(default = "default_854")] + #[serde(default = "default_856")] pub floors: std::collections::HashMap, - #[serde(default = "default_855")] + #[serde(default = "default_857")] pub index_verdict: String, - #[serde(default = "default_856")] + #[serde(default = "default_858")] pub trace_run_id: String, } @@ -16270,29 +16272,29 @@ impl CodeVerifyInput { #[non_exhaustive] pub struct CodeVerifyCitationsOutput { pub verdict: String, - #[serde(default = "default_857")] + #[serde(default = "default_859")] pub counts: std::collections::HashMap, - #[serde(default = "default_858")] + #[serde(default = "default_860")] pub citations: Vec>, - #[serde(default = "default_859")] + #[serde(default = "default_861")] pub skipped: Vec>, - #[serde(default = "default_860")] + #[serde(default = "default_862")] pub truncated: bool, - #[serde(default = "default_861")] + #[serde(default = "default_863")] pub epistemic: std::collections::HashMap, - #[serde(default = "default_862")] + #[serde(default = "default_864")] pub at_commit: std::collections::HashMap, - #[serde(default = "default_863")] + #[serde(default = "default_865")] pub pr_diff: std::collections::HashMap, - #[serde(default = "default_864")] + #[serde(default = "default_866")] pub namespaces: Vec, - #[serde(default = "default_865")] + #[serde(default = "default_867")] pub took_ms: Integer, - #[serde(default = "default_866")] + #[serde(default = "default_868")] pub as_of: std::collections::HashMap, - #[serde(default = "default_867")] + #[serde(default = "default_869")] pub note: String, - #[serde(default = "default_868")] + #[serde(default = "default_870")] pub trace_run_id: String, } @@ -16551,7 +16553,7 @@ pub struct CollectionCreateOutput { pub namespace: String, pub parent: String, pub created: bool, - #[serde(default = "default_869")] + #[serde(default = "default_871")] pub title: String, } @@ -16649,9 +16651,9 @@ impl CollectionCreateInput { pub struct CollectionDeleteOutput { pub namespace: String, pub deleted: bool, - #[serde(default = "default_870")] + #[serde(default = "default_872")] pub erasure_id: String, - #[serde(default = "default_871")] + #[serde(default = "default_873")] pub erasure_status: String, } @@ -16693,11 +16695,11 @@ pub struct CollectionEntry { pub parent: String, pub personal: bool, pub role: String, - #[serde(default = "default_872")] + #[serde(default = "default_874")] pub description: String, - #[serde(default = "default_873")] + #[serde(default = "default_875")] pub title: String, - #[serde(default = "default_874")] + #[serde(default = "default_876")] pub document_count: Option, } @@ -16705,7 +16707,7 @@ pub struct CollectionEntry { #[non_exhaustive] pub struct CollectionListOutput { pub collections: Vec, - #[serde(default = "default_875")] + #[serde(default = "default_877")] pub next_cursor: Option, } @@ -17047,13 +17049,13 @@ pub struct ConflictRow { #[non_exhaustive] pub struct ConflictsListOutput { pub rows: Vec, - #[serde(default = "default_876")] + #[serde(default = "default_878")] pub next_before_version: Option, - #[serde(default = "default_877")] + #[serde(default = "default_879")] pub total: Option, - #[serde(default = "default_878")] + #[serde(default = "default_880")] pub proposals: Option, - #[serde(default = "default_879")] + #[serde(default = "default_881")] pub keys: Option>, } @@ -17205,7 +17207,7 @@ pub struct ConflictRevisionSuggestion { pub target_local_id: Integer, pub peer_local_ids: Vec, pub rationale: String, - #[serde(default = "default_881")] + #[serde(default = "default_883")] pub apply_operation: String, } @@ -17213,11 +17215,11 @@ pub struct ConflictRevisionSuggestion { #[non_exhaustive] pub struct ConflictsProposeRevisionOutput { pub found: bool, - #[serde(default = "default_880")] - pub memories: Vec, #[serde(default = "default_882")] + pub memories: Vec, + #[serde(default = "default_884")] pub suggestions: Vec, - #[serde(default = "default_883")] + #[serde(default = "default_885")] pub note: String, } @@ -17297,9 +17299,9 @@ pub struct ConflictsResolveOutput { pub resolved: bool, pub decision: ConflictsResolveOutputDecision, pub affected_memory_ids: Vec, - #[serde(default = "default_884")] + #[serde(default = "default_886")] pub resolved_at: Option, - #[serde(default = "default_885")] + #[serde(default = "default_887")] pub total: Option, } @@ -17456,13 +17458,13 @@ pub enum ConnectionEntryKind { pub struct ConnectionEntry { pub kind: ConnectionEntryKind, pub connected: bool, - #[serde(default = "default_886")] + #[serde(default = "default_888")] pub connect_available: bool, - #[serde(default = "default_887")] + #[serde(default = "default_889")] pub stored: bool, - #[serde(default = "default_888")] + #[serde(default = "default_890")] pub account_email: Option, - #[serde(default = "default_889")] + #[serde(default = "default_891")] pub scopes: Vec, pub connect_url: String, } @@ -17637,23 +17639,23 @@ impl ConsolidationsListInput { pub struct ContextFetchOutput { pub found: bool, pub blob_key: String, - #[serde(default = "default_890")] + #[serde(default = "default_892")] pub content: String, - #[serde(default = "default_891")] + #[serde(default = "default_893")] pub content_type: String, - #[serde(default = "default_892")] + #[serde(default = "default_894")] pub summary: String, - #[serde(default = "default_893")] + #[serde(default = "default_895")] pub total_chars: Integer, - #[serde(default = "default_894")] + #[serde(default = "default_896")] pub total_lines: Integer, - #[serde(default = "default_895")] + #[serde(default = "default_897")] pub offset: Integer, - #[serde(default = "default_896")] + #[serde(default = "default_898")] pub next_offset: Integer, - #[serde(default = "default_897")] + #[serde(default = "default_899")] pub matched_lines: Integer, - #[serde(default = "default_898")] + #[serde(default = "default_900")] pub expires_at: Option, } @@ -17947,9 +17949,9 @@ pub enum ConversationAppendOutputReason { pub struct ConversationAppendOutput { pub msg_id: String, pub ts: String, - #[serde(default = "default_899")] + #[serde(default = "default_901")] pub stored: bool, - #[serde(default = "default_900")] + #[serde(default = "default_902")] pub reason: ConversationAppendOutputReason, } @@ -18098,13 +18100,13 @@ impl ConversationAppendInput { pub struct ConversationCompactOutput { pub compacted: bool, pub messages_summarized: Integer, - #[serde(default = "default_901")] + #[serde(default = "default_903")] pub summary_msg_id: String, - #[serde(default = "default_902")] + #[serde(default = "default_904")] pub tokens_in: Integer, - #[serde(default = "default_903")] + #[serde(default = "default_905")] pub tokens_out: Integer, - #[serde(default = "default_904")] + #[serde(default = "default_906")] pub reason: String, } @@ -18368,7 +18370,7 @@ pub enum ConversationEntryRole { #[non_exhaustive] pub struct ConversationEntry { pub msg_id: String, - #[serde(default = "default_913")] + #[serde(default = "default_915")] pub agent: String, pub role: ConversationEntryRole, pub content: String, @@ -18385,25 +18387,25 @@ pub struct ConversationEntry { pub struct ConversationGetOutput { pub found: bool, pub thread_id: String, - #[serde(default = "default_905")] + #[serde(default = "default_907")] pub title: String, - #[serde(default = "default_906")] + #[serde(default = "default_908")] pub metadata: std::collections::HashMap, - #[serde(default = "default_907")] + #[serde(default = "default_909")] pub run_id: String, - #[serde(default = "default_908")] + #[serde(default = "default_910")] pub user_id: String, - #[serde(default = "default_909")] + #[serde(default = "default_911")] pub agent: String, - #[serde(default = "default_910")] + #[serde(default = "default_912")] pub created_at: Option, - #[serde(default = "default_911")] + #[serde(default = "default_913")] pub updated_at: Option, - #[serde(default = "default_912")] - pub msg_count: Integer, #[serde(default = "default_914")] + pub msg_count: Integer, + #[serde(default = "default_916")] pub messages: Vec, - #[serde(default = "default_915")] + #[serde(default = "default_917")] pub next_cursor: Option, } @@ -18517,7 +18519,7 @@ impl ConversationGetInput { #[non_exhaustive] pub struct ConversationListOutput { pub rows: Vec, - #[serde(default = "default_916")] + #[serde(default = "default_918")] pub next_cursor: Option, } @@ -18663,7 +18665,7 @@ pub struct SavedMessageHit { #[non_exhaustive] pub struct ConversationListSavedMessagesOutput { pub rows: Vec, - #[serde(default = "default_917")] + #[serde(default = "default_919")] pub next_cursor: Option, } @@ -18803,7 +18805,7 @@ pub struct ConversationSaveMessageOutput { pub conversation_id: String, pub message_id: String, pub indexed: bool, - #[serde(default = "default_918")] + #[serde(default = "default_920")] pub reason: ConversationSaveMessageOutputReason, pub ts: String, } @@ -18976,7 +18978,7 @@ pub struct ConversationHit { pub role: ConversationHitRole, pub content_excerpt: String, pub ts: String, - #[serde(default = "default_919")] + #[serde(default = "default_921")] pub namespace: String, } @@ -18984,7 +18986,7 @@ pub struct ConversationHit { #[non_exhaustive] pub struct ConversationSearchOutput { pub hits: Vec, - #[serde(default = "default_920")] + #[serde(default = "default_922")] pub namespaces_skipped: Vec, } @@ -19517,7 +19519,7 @@ pub struct ConversationUnsaveMessageOutput { pub conversation_id: String, pub message_id: String, pub found: bool, - #[serde(default = "default_921")] + #[serde(default = "default_923")] pub removed: bool, pub ts: String, } @@ -19590,7 +19592,7 @@ impl ConversationUnsaveMessageInput { pub struct ConversationUpdateOutput { pub updated: bool, pub thread_id: String, - #[serde(default = "default_922")] + #[serde(default = "default_924")] pub updated_at: Option, } @@ -19695,17 +19697,17 @@ impl ConversationUpdateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CostAgentSummaryRow { - #[serde(default = "default_923")] + #[serde(default = "default_925")] pub namespace: Option, - #[serde(default = "default_924")] + #[serde(default = "default_926")] pub agent: Option, - #[serde(default = "default_925")] + #[serde(default = "default_927")] pub day: Option, - #[serde(default = "default_926")] + #[serde(default = "default_928")] pub model: Option, - #[serde(default = "default_927")] + #[serde(default = "default_929")] pub consumer: Option, - #[serde(default = "default_928")] + #[serde(default = "default_930")] pub session_id: Option, pub turns: Integer, pub sessions: Integer, @@ -19854,18 +19856,18 @@ pub enum BudgetStatusOutputCapSource { #[non_exhaustive] pub struct BudgetStatusOutput { pub namespace: String, - #[serde(default = "default_929")] + #[serde(default = "default_931")] 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_930")] + #[serde(default = "default_932")] pub namespace_over_cap: Option, - #[serde(default = "default_931")] + #[serde(default = "default_933")] pub pct_of_cap: Option, - #[serde(default = "default_932")] + #[serde(default = "default_934")] pub namespaces_with_spend: Integer, } @@ -19938,11 +19940,11 @@ impl BudgetStatusInput { pub struct CostRecordTurnsOutput { pub recorded: Integer, pub priced: Integer, - #[serde(default = "default_933")] + #[serde(default = "default_935")] pub unpriced_models: Vec, - #[serde(default = "default_934")] + #[serde(default = "default_936")] pub cost_usd: f64, - #[serde(default = "default_935")] + #[serde(default = "default_937")] pub turns_dated_ahead: Integer, } @@ -20113,25 +20115,25 @@ impl CostRecordTurnsInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CostSummaryRow { - #[serde(default = "default_936")] + #[serde(default = "default_938")] pub namespace: Option, - #[serde(default = "default_937")] + #[serde(default = "default_939")] pub agent: Option, - #[serde(default = "default_938")] + #[serde(default = "default_940")] pub day: Option, - #[serde(default = "default_939")] + #[serde(default = "default_941")] pub operation: Option, - #[serde(default = "default_940")] + #[serde(default = "default_942")] pub memory_key: Option, - #[serde(default = "default_941")] + #[serde(default = "default_943")] pub user_id: Option, - #[serde(default = "default_942")] + #[serde(default = "default_944")] pub model: Option, - #[serde(default = "default_943")] + #[serde(default = "default_945")] pub traffic_class: Option, - #[serde(default = "default_944")] + #[serde(default = "default_946")] pub instance_label: Option, - #[serde(default = "default_945")] + #[serde(default = "default_947")] pub build_commit: Option, pub ops: Integer, pub errors: Integer, @@ -20141,9 +20143,9 @@ pub struct CostSummaryRow { pub latency_p50_ms: f64, pub latency_p95_ms: f64, pub latency_p99_ms: f64, - #[serde(default = "default_946")] + #[serde(default = "default_948")] pub cache_hits: Integer, - #[serde(default = "default_947")] + #[serde(default = "default_949")] pub cache_saved_usd: f64, } @@ -20154,9 +20156,9 @@ pub struct CostSummaryOutput { pub total_ops: Integer, pub total_errors: Integer, pub total_cost_usd: f64, - #[serde(default = "default_948")] + #[serde(default = "default_950")] pub cache_hits: Integer, - #[serde(default = "default_949")] + #[serde(default = "default_951")] pub cache_saved_usd: f64, } @@ -20343,31 +20345,31 @@ pub enum DecisionRowStage { #[non_exhaustive] pub struct DecisionRow { pub memory_key: String, - #[serde(default = "default_950")] + #[serde(default = "default_952")] pub category: String, - #[serde(default = "default_951")] + #[serde(default = "default_953")] pub scenario: String, - #[serde(default = "default_952")] + #[serde(default = "default_954")] pub reasoning: String, - #[serde(default = "default_953")] + #[serde(default = "default_955")] pub outcome: String, - #[serde(default = "default_954")] + #[serde(default = "default_956")] pub alternatives: Vec, - #[serde(default = "default_955")] + #[serde(default = "default_957")] pub confidence: Option, - #[serde(default = "default_956")] + #[serde(default = "default_958")] pub decision_maker: String, - #[serde(default = "default_957")] + #[serde(default = "default_959")] pub run_id: String, - #[serde(default = "default_958")] + #[serde(default = "default_960")] pub realized_outcome: String, - #[serde(default = "default_959")] + #[serde(default = "default_961")] pub success: Option, - #[serde(default = "default_960")] + #[serde(default = "default_962")] pub made_at: String, - #[serde(default = "default_961")] + #[serde(default = "default_963")] pub stage: DecisionRowStage, - #[serde(default = "default_962")] + #[serde(default = "default_964")] pub similarity: f64, } @@ -20379,7 +20381,7 @@ pub struct ChainNodeRow { pub relation: String, pub direction: String, pub via: String, - #[serde(default = "default_964")] + #[serde(default = "default_966")] pub decision: Option, } @@ -20387,7 +20389,7 @@ pub struct ChainNodeRow { #[non_exhaustive] pub struct DecisionChainOutput { pub seed: String, - #[serde(default = "default_963")] + #[serde(default = "default_965")] pub seed_decision: Option, pub nodes: Vec, } @@ -20472,7 +20474,7 @@ impl DecisionChainInput { pub struct DecisionOutcomeOutput { pub memory_key: String, pub updated: bool, - #[serde(default = "default_965")] + #[serde(default = "default_967")] pub memories_credited: Integer, } @@ -20550,7 +20552,7 @@ impl DecisionOutcomeInput { #[non_exhaustive] pub struct DecisionPrecedentsOutput { pub precedents: Vec, - #[serde(default = "default_966")] + #[serde(default = "default_968")] pub embedding_model: String, } @@ -20645,11 +20647,11 @@ impl DecisionPrecedentsInput { pub struct DecisionRecordOutput { pub memory_key: String, pub record_id: String, - #[serde(default = "default_967")] + #[serde(default = "default_969")] pub superseded_prior: bool, - #[serde(default = "default_968")] + #[serde(default = "default_970")] pub edges_written: Integer, - #[serde(default = "default_969")] + #[serde(default = "default_971")] pub next: String, } @@ -20925,7 +20927,7 @@ pub enum ErasureExportOutputScopeType { pub struct ErasureExportSection { pub rows: Vec>, pub count: Integer, - #[serde(default = "default_970")] + #[serde(default = "default_972")] pub truncated: bool, } @@ -21038,17 +21040,17 @@ pub struct ErasureListRow { pub requester: String, pub status: ErasureListRowStatus, pub requested_at: String, - #[serde(default = "default_971")] + #[serde(default = "default_973")] pub completed_at: Option, - #[serde(default = "default_972")] + #[serde(default = "default_974")] pub failure_reason: String, - #[serde(default = "default_973")] + #[serde(default = "default_975")] pub steps_completed_count: Integer, - #[serde(default = "default_974")] + #[serde(default = "default_976")] pub reversals_count: Integer, - #[serde(default = "default_975")] + #[serde(default = "default_977")] pub residue_count: Integer, - #[serde(default = "default_976")] + #[serde(default = "default_978")] pub verified_at: Option, } @@ -21145,7 +21147,7 @@ pub enum ErasureRequestOutputStatus { pub struct ErasureStepResult { pub step: String, pub rows_affected: Integer, - #[serde(default = "default_977")] + #[serde(default = "default_979")] pub notes: String, } @@ -21156,21 +21158,21 @@ pub struct ErasureRequestOutput { pub status: ErasureRequestOutputStatus, pub steps: Vec, pub requested_at: String, - #[serde(default = "default_978")] + #[serde(default = "default_980")] pub completed_at: Option, - #[serde(default = "default_979")] + #[serde(default = "default_981")] pub residue_count: Integer, - #[serde(default = "default_980")] + #[serde(default = "default_982")] pub residue: std::collections::HashMap, - #[serde(default = "default_981")] + #[serde(default = "default_983")] pub verified_at: Option, - #[serde(default = "default_982")] + #[serde(default = "default_984")] pub census: Option>, - #[serde(default = "default_983")] + #[serde(default = "default_985")] pub purge: bool, - #[serde(default = "default_984")] + #[serde(default = "default_986")] pub failure_reason: String, - #[serde(default = "default_985")] + #[serde(default = "default_987")] pub steps_completed: Vec, } @@ -21282,33 +21284,33 @@ pub enum ErasureStatusOutputStatus { pub struct ErasureStatusOutput { pub found: bool, pub erasure_id: String, - #[serde(default = "default_986")] + #[serde(default = "default_988")] pub org: Option, - #[serde(default = "default_987")] + #[serde(default = "default_989")] pub scope_type: Option, - #[serde(default = "default_988")] + #[serde(default = "default_990")] pub scope_value: Option, - #[serde(default = "default_989")] + #[serde(default = "default_991")] pub requester: Option, - #[serde(default = "default_990")] + #[serde(default = "default_992")] pub status: Option, - #[serde(default = "default_991")] + #[serde(default = "default_993")] pub current_step: Option, - #[serde(default = "default_992")] + #[serde(default = "default_994")] pub requested_at: Option, - #[serde(default = "default_993")] + #[serde(default = "default_995")] pub completed_at: Option, - #[serde(default = "default_994")] + #[serde(default = "default_996")] pub failure_reason: Option, - #[serde(default = "default_995")] + #[serde(default = "default_997")] pub residue_count: Integer, - #[serde(default = "default_996")] + #[serde(default = "default_998")] pub residue: std::collections::HashMap, - #[serde(default = "default_997")] + #[serde(default = "default_999")] pub verified_at: Option, - #[serde(default = "default_998")] + #[serde(default = "default_1000")] pub census: Option>, - #[serde(default = "default_999")] + #[serde(default = "default_1001")] pub purge: bool, } @@ -21345,9 +21347,9 @@ pub enum ExtractionPolicyOutputScope { #[non_exhaustive] pub struct NamespacePolicy { pub namespace: String, - #[serde(default = "default_1005")] + #[serde(default = "default_1007")] pub updated_by: String, - #[serde(default = "default_1006")] + #[serde(default = "default_1008")] pub updated_at: Option, } @@ -21356,17 +21358,17 @@ pub struct NamespacePolicy { pub struct ExtractionPolicyOutput { pub org: String, pub scope: ExtractionPolicyOutputScope, - #[serde(default = "default_1000")] + #[serde(default = "default_1002")] pub namespace: String, - #[serde(default = "default_1001")] + #[serde(default = "default_1003")] pub policy: String, - #[serde(default = "default_1002")] + #[serde(default = "default_1004")] pub updated_by: String, - #[serde(default = "default_1003")] + #[serde(default = "default_1005")] pub updated_at: Option, - #[serde(default = "default_1004")] + #[serde(default = "default_1006")] pub effective: String, - #[serde(default = "default_1007")] + #[serde(default = "default_1009")] pub namespace_policies: Vec, } @@ -21600,13 +21602,13 @@ pub struct FactRow { pub object: String, pub co_occur: Integer, pub last_seen: String, - #[serde(default = "default_1008")] + #[serde(default = "default_1010")] pub provenance: String, - #[serde(default = "default_1009")] + #[serde(default = "default_1011")] pub source_keys: Vec, - #[serde(default = "default_1010")] + #[serde(default = "default_1012")] pub sources: Vec, - #[serde(default = "default_1011")] + #[serde(default = "default_1013")] pub stale: bool, } @@ -21614,7 +21616,7 @@ pub struct FactRow { #[non_exhaustive] pub struct FactsListOutput { pub rows: Vec, - #[serde(default = "default_1012")] + #[serde(default = "default_1014")] pub truncated: bool, } @@ -21833,14 +21835,14 @@ impl FactsListInput { pub struct PathEdge { pub entity_a: String, pub entity_b: String, - #[serde(default = "default_1013")] + #[serde(default = "default_1015")] pub relation: String, - #[serde(default = "default_1014")] + #[serde(default = "default_1016")] pub direction: String, pub co_occur: Integer, - #[serde(default = "default_1015")] + #[serde(default = "default_1017")] pub valid_from: Option, - #[serde(default = "default_1016")] + #[serde(default = "default_1018")] pub valid_to: Option, } @@ -22071,23 +22073,23 @@ pub struct TraversalNode { pub hop: Integer, pub cumulative_weight: f64, pub via_co_occur: Integer, - #[serde(default = "default_1018")] + #[serde(default = "default_1020")] pub hub: bool, - #[serde(default = "default_1019")] + #[serde(default = "default_1021")] pub degree: Integer, - #[serde(default = "default_1020")] + #[serde(default = "default_1022")] pub via_relation: String, - #[serde(default = "default_1021")] + #[serde(default = "default_1023")] pub via_direction: String, - #[serde(default = "default_1022")] + #[serde(default = "default_1024")] pub via_provenance: String, - #[serde(default = "default_1023")] + #[serde(default = "default_1025")] pub valid_from: String, - #[serde(default = "default_1024")] + #[serde(default = "default_1026")] pub valid_to: String, - #[serde(default = "default_1025")] + #[serde(default = "default_1027")] pub community_id: Option, - #[serde(default = "default_1026")] + #[serde(default = "default_1028")] pub path: Vec, } @@ -22095,12 +22097,12 @@ pub struct TraversalNode { #[non_exhaustive] pub struct FactsTraverseOutput { pub seed: String, - #[serde(default = "default_1017")] + #[serde(default = "default_1019")] pub seed_community_id: Option, pub nodes: Vec, - #[serde(default = "default_1027")] + #[serde(default = "default_1029")] pub truncated: bool, - #[serde(default = "default_1028")] + #[serde(default = "default_1030")] pub hubs: Vec, } @@ -22309,7 +22311,7 @@ pub struct GrantsApproveOutput { pub subject: String, pub namespace: String, pub decision: GrantsApproveOutputDecision, - #[serde(default = "default_1029")] + #[serde(default = "default_1031")] pub role: Option, pub decided_at: String, } @@ -22588,9 +22590,9 @@ pub struct GrantEntry { #[non_exhaustive] pub struct GrantsListOutput { pub rows: Vec, - #[serde(default = "default_1030")] + #[serde(default = "default_1032")] pub next_cursor: Option, - #[serde(default = "default_1031")] + #[serde(default = "default_1033")] pub truncated: bool, } @@ -22706,12 +22708,12 @@ pub enum PendingForMeEntryRequestedRole { #[non_exhaustive] pub struct PendingForMeEntry { pub namespace: String, - #[serde(default = "default_1032")] + #[serde(default = "default_1034")] pub kind: String, pub subject: String, pub current_role: PendingForMeEntryCurrentRole, pub requested_role: PendingForMeEntryRequestedRole, - #[serde(default = "default_1033")] + #[serde(default = "default_1035")] pub pending_since: Option, } @@ -22770,7 +22772,7 @@ impl GrantsPendingForMeInput { #[non_exhaustive] pub struct GrantsRevokeOutput { pub revoked: bool, - #[serde(default = "default_1034")] + #[serde(default = "default_1036")] pub revoked_at: Option, } @@ -22900,7 +22902,7 @@ impl GrantsShareAgentInput { #[non_exhaustive] pub struct GrantsUnshareAgentOutput { pub revoked: bool, - #[serde(default = "default_1035")] + #[serde(default = "default_1037")] pub revoked_at: Option, } @@ -22960,7 +22962,7 @@ pub enum HelpGetOutputAudience { pub struct HelpOutlineEntry { pub section: String, pub anchor: String, - #[serde(default = "default_1043")] + #[serde(default = "default_1045")] pub heading: String, } @@ -22970,21 +22972,21 @@ pub struct HelpGetOutput { pub available: bool, pub found: bool, pub path: String, - #[serde(default = "default_1036")] + #[serde(default = "default_1038")] pub title: String, - #[serde(default = "default_1037")] + #[serde(default = "default_1039")] pub section: String, - #[serde(default = "default_1038")] + #[serde(default = "default_1040")] pub anchor: String, - #[serde(default = "default_1039")] + #[serde(default = "default_1041")] pub audience: HelpGetOutputAudience, - #[serde(default = "default_1040")] + #[serde(default = "default_1042")] pub text: String, - #[serde(default = "default_1041")] + #[serde(default = "default_1043")] pub truncated: bool, - #[serde(default = "default_1042")] - pub next_offset: Integer, #[serde(default = "default_1044")] + pub next_offset: Integer, + #[serde(default = "default_1046")] pub sections: Vec, } @@ -23129,21 +23131,21 @@ pub struct InboxPayload { pub inbox: String, pub owner_agent: String, pub owner_namespace: String, - #[serde(default = "default_1045")] + #[serde(default = "default_1047")] pub description: String, - #[serde(default = "default_1046")] + #[serde(default = "default_1048")] pub posters: Vec, - #[serde(default = "default_1047")] + #[serde(default = "default_1049")] 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_1048")] + #[serde(default = "default_1050")] pub webhook_url: String, - #[serde(default = "default_1049")] + #[serde(default = "default_1051")] pub created_by: String, - #[serde(default = "default_1050")] + #[serde(default = "default_1052")] pub owner_subject: String, pub created_at: String, pub updated_at: String, @@ -23253,9 +23255,9 @@ pub struct PolicyPayload { pub poster: String, pub kind: String, pub mode: PolicyPayloadMode, - #[serde(default = "default_1051")] + #[serde(default = "default_1053")] pub require_evidence: Vec, - #[serde(default = "default_1052")] + #[serde(default = "default_1054")] pub set_by: String, pub set_at: String, pub version: Integer, @@ -23325,7 +23327,7 @@ impl InboxPolicyListInput { pub struct InboxPolicySetOutput { #[serde(deserialize_with = "required_nullable")] pub policy: Option, - #[serde(default = "default_1053")] + #[serde(default = "default_1055")] pub removed: bool, } @@ -23454,15 +23456,15 @@ pub struct Principal { pub subject: String, pub label: String, pub kind: PrincipalKind, - #[serde(default = "default_1054")] + #[serde(default = "default_1056")] pub namespaces: Vec, - #[serde(default = "default_1055")] + #[serde(default = "default_1057")] pub roles: Vec, - #[serde(default = "default_1056")] + #[serde(default = "default_1058")] pub last_seen: Option, - #[serde(default = "default_1057")] + #[serde(default = "default_1059")] pub can_already_post: bool, - #[serde(default = "default_1058")] + #[serde(default = "default_1060")] pub listed: bool, } @@ -23824,15 +23826,15 @@ pub struct AnalysisColumn { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InsightsQueryOutput { - #[serde(default = "default_1059")] + #[serde(default = "default_1061")] pub columns: Vec, - #[serde(default = "default_1060")] + #[serde(default = "default_1062")] pub rows: Vec>, - #[serde(default = "default_1061")] + #[serde(default = "default_1063")] pub row_count: Integer, - #[serde(default = "default_1062")] + #[serde(default = "default_1064")] pub truncated: bool, - #[serde(default = "default_1063")] + #[serde(default = "default_1065")] pub sql_digest: String, } @@ -24131,32 +24133,32 @@ pub struct DatasetOut { pub dataset_id: String, pub source_uri: String, pub name: String, - #[serde(default = "default_1064")] + #[serde(default = "default_1066")] pub sheet: String, - #[serde(default = "default_1065")] + #[serde(default = "default_1067")] pub row_start: Integer, - #[serde(default = "default_1066")] + #[serde(default = "default_1068")] pub row_end: Integer, pub revision: Integer, pub snapshot_id: String, pub schema_state: String, pub columns: Vec, - #[serde(default = "default_1067")] + #[serde(default = "default_1069")] pub clarifications: Vec, pub row_count: Integer, - #[serde(default = "default_1068")] + #[serde(default = "default_1070")] pub rejected_rows: Integer, - #[serde(default = "default_1069")] + #[serde(default = "default_1071")] pub rejected: Vec, - #[serde(default = "default_1070")] + #[serde(default = "default_1072")] pub complete: bool, - #[serde(default = "default_1071")] + #[serde(default = "default_1073")] pub approved_by: String, - #[serde(default = "default_1072")] + #[serde(default = "default_1074")] pub approved_at: Option, - #[serde(default = "default_1073")] + #[serde(default = "default_1075")] pub created_at: Option, - #[serde(default = "default_1074")] + #[serde(default = "default_1076")] pub rows: Vec>, } @@ -24164,9 +24166,9 @@ pub struct DatasetOut { #[non_exhaustive] pub struct KnowledgeDatasetApproveOutput { pub found: bool, - #[serde(default = "default_1075")] + #[serde(default = "default_1077")] pub dataset: Option, - #[serde(default = "default_1076")] + #[serde(default = "default_1078")] pub retyped: bool, } @@ -24260,9 +24262,9 @@ impl KnowledgeDatasetApproveInput { #[non_exhaustive] pub struct KnowledgeDatasetGetOutput { pub found: bool, - #[serde(default = "default_1077")] + #[serde(default = "default_1079")] pub revision: Integer, - #[serde(default = "default_1078")] + #[serde(default = "default_1080")] pub datasets: Vec, } @@ -24335,7 +24337,7 @@ impl KnowledgeDatasetGetInput { pub struct KnowledgeDocCluster { pub content_sha256: String, pub doc_count: Integer, - #[serde(default = "default_1079")] + #[serde(default = "default_1081")] pub docs: Vec>, } @@ -24345,16 +24347,16 @@ pub struct KnowledgeChunkCluster { pub content_sha256: String, pub chunk_count: Integer, pub uri_count: Integer, - #[serde(default = "default_1081")] + #[serde(default = "default_1083")] pub samples: Vec>, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeDedupListOutput { - #[serde(default = "default_1080")] - pub doc_clusters: Vec, #[serde(default = "default_1082")] + pub doc_clusters: Vec, + #[serde(default = "default_1084")] pub chunk_clusters: Vec, } @@ -24431,7 +24433,7 @@ pub struct KnowledgeDedupResolveOutput { pub canonical_uri: String, pub duplicate_uri: String, pub decision: String, - #[serde(default = "default_1083")] + #[serde(default = "default_1085")] pub superseded_uri: String, } @@ -24550,24 +24552,24 @@ impl KnowledgeDeleteInput { #[non_exhaustive] pub struct KnowledgeFormat { pub format: String, - #[serde(default = "default_1084")] + #[serde(default = "default_1086")] pub extensions: Vec, - #[serde(default = "default_1085")] + #[serde(default = "default_1087")] pub media_types: Vec, - #[serde(default = "default_1086")] + #[serde(default = "default_1088")] pub available: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeFormatsOutput { - #[serde(default = "default_1087")] + #[serde(default = "default_1089")] pub formats: Vec, - #[serde(default = "default_1088")] + #[serde(default = "default_1090")] pub max_upload_bytes: Integer, - #[serde(default = "default_1089")] + #[serde(default = "default_1091")] pub refused_extensions: Vec, - #[serde(default = "default_1090")] + #[serde(default = "default_1092")] pub default_format: String, } @@ -24669,7 +24671,7 @@ impl KnowledgeGapsDraftInput { pub struct KnowledgeGap { pub gap_id: String, pub head: String, - #[serde(default = "default_1091")] + #[serde(default = "default_1093")] pub samples: Vec, pub askers: Integer, pub asks: Integer, @@ -24679,13 +24681,13 @@ pub struct KnowledgeGap { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeGapsListOutput { - #[serde(default = "default_1092")] + #[serde(default = "default_1094")] pub gaps: Vec, - #[serde(default = "default_1093")] + #[serde(default = "default_1095")] pub built_at: Option, - #[serde(default = "default_1094")] + #[serde(default = "default_1096")] pub capturing: Option, - #[serde(default = "default_1095")] + #[serde(default = "default_1097")] pub enabled: bool, } @@ -24751,7 +24753,7 @@ pub struct KnowledgeIngestOutput { pub ingestion_id: String, pub state: String, pub source_uri: String, - #[serde(default = "default_1096")] + #[serde(default = "default_1098")] pub namespace: String, } @@ -24970,9 +24972,9 @@ impl KnowledgeIngestInput { #[non_exhaustive] pub struct KnowledgeIngestCancelOutput { pub found: bool, - #[serde(default = "default_1097")] + #[serde(default = "default_1099")] pub state: String, - #[serde(default = "default_1098")] + #[serde(default = "default_1100")] pub cancelled: bool, } @@ -25023,39 +25025,39 @@ impl KnowledgeIngestCancelInput { pub struct KnowledgeIngestStatusOutput { pub found: bool, pub ingestion_id: String, - #[serde(default = "default_1099")] + #[serde(default = "default_1101")] pub source_uri: String, - #[serde(default = "default_1100")] + #[serde(default = "default_1102")] pub state: String, - #[serde(default = "default_1101")] + #[serde(default = "default_1103")] pub stage: String, - #[serde(default = "default_1102")] + #[serde(default = "default_1104")] pub attempts: Integer, - #[serde(default = "default_1103")] + #[serde(default = "default_1105")] pub error_code: String, - #[serde(default = "default_1104")] + #[serde(default = "default_1106")] pub error_message: String, - #[serde(default = "default_1105")] + #[serde(default = "default_1107")] pub format: String, - #[serde(default = "default_1106")] + #[serde(default = "default_1108")] pub coverage: Option>, - #[serde(default = "default_1107")] + #[serde(default = "default_1109")] pub warnings: Vec, - #[serde(default = "default_1108")] + #[serde(default = "default_1110")] pub chunks: Integer, - #[serde(default = "default_1109")] + #[serde(default = "default_1111")] pub revision: Integer, - #[serde(default = "default_1110")] + #[serde(default = "default_1112")] pub expected_revision: Option, - #[serde(default = "default_1111")] + #[serde(default = "default_1113")] pub filename: String, - #[serde(default = "default_1112")] + #[serde(default = "default_1114")] pub retrieval: String, - #[serde(default = "default_1113")] + #[serde(default = "default_1115")] pub cancel_requested: bool, - #[serde(default = "default_1114")] + #[serde(default = "default_1116")] pub created_at: Option, - #[serde(default = "default_1115")] + #[serde(default = "default_1117")] pub updated_at: Option, } @@ -25112,21 +25114,21 @@ pub struct DocumentCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct DocumentTotals { - #[serde(default = "default_1116")] + #[serde(default = "default_1118")] pub live: Option, - #[serde(default = "default_1117")] + #[serde(default = "default_1119")] pub deleted: Option, - #[serde(default = "default_1118")] + #[serde(default = "default_1120")] pub newest_ingested_at: Option, - #[serde(default = "default_1119")] + #[serde(default = "default_1121")] pub by_format: Vec, - #[serde(default = "default_1120")] + #[serde(default = "default_1122")] pub by_source_scheme: Vec, - #[serde(default = "default_1121")] + #[serde(default = "default_1123")] pub earlier_revisions: Option, - #[serde(default = "default_1122")] + #[serde(default = "default_1124")] pub unnumbered: Option, - #[serde(default = "default_1123")] + #[serde(default = "default_1125")] pub retired_versions: Option, } @@ -25141,15 +25143,15 @@ pub struct ChunkModelCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ChunkTotals { - #[serde(default = "default_1124")] + #[serde(default = "default_1126")] pub embedder_model: String, - #[serde(default = "default_1125")] + #[serde(default = "default_1127")] pub live: Option, - #[serde(default = "default_1126")] + #[serde(default = "default_1128")] pub searchable: Option, - #[serde(default = "default_1127")] + #[serde(default = "default_1129")] pub unembedded: Option, - #[serde(default = "default_1128")] + #[serde(default = "default_1130")] pub by_model: Vec, } @@ -25174,9 +25176,9 @@ pub struct DocumentDecisions { #[non_exhaustive] pub struct DecisionTotals { pub definition: String, - #[serde(default = "default_1129")] + #[serde(default = "default_1131")] pub refs: Vec, - #[serde(default = "default_1130")] + #[serde(default = "default_1132")] pub all_documents: Option, } @@ -25191,7 +25193,7 @@ pub struct DocumentChunks { pub min_chars: Integer, pub median_chars: Integer, pub max_chars: Integer, - #[serde(default = "default_1133")] + #[serde(default = "default_1135")] pub models: Vec, } @@ -25241,11 +25243,11 @@ pub struct IngestJob { pub failure_class: IngestJobFailureClass, pub queued_at: String, pub updated_at: String, - #[serde(default = "default_1138")] + #[serde(default = "default_1140")] pub ended_at: Option, - #[serde(default = "default_1139")] + #[serde(default = "default_1141")] pub next_attempt_at: Option, - #[serde(default = "default_1140")] + #[serde(default = "default_1142")] pub stalled: bool, } @@ -25255,11 +25257,11 @@ pub struct SourceJobs { pub source_uri: String, pub jobs: Integer, pub open_jobs: Integer, - #[serde(default = "default_1137")] + #[serde(default = "default_1139")] pub open_ingestion_id: String, pub latest: IngestJob, pub current: IngestJob, - #[serde(default = "default_1141")] + #[serde(default = "default_1143")] pub replaced: bool, } @@ -25272,18 +25274,18 @@ pub struct InspectDocument { pub source_scheme: String, pub version: Integer, pub revision: Integer, - #[serde(default = "default_1131")] + #[serde(default = "default_1133")] pub ingestion_id: String, pub ingested_at: String, - #[serde(default = "default_1132")] - pub retired_versions: Option, #[serde(default = "default_1134")] + pub retired_versions: Option, + #[serde(default = "default_1136")] pub chunks: Option, - #[serde(default = "default_1135")] + #[serde(default = "default_1137")] pub decisions: Option, - #[serde(default = "default_1136")] + #[serde(default = "default_1138")] pub extraction: Option, - #[serde(default = "default_1142")] + #[serde(default = "default_1144")] pub jobs: Option, } @@ -25328,40 +25330,40 @@ pub struct DocumentFinding { pub kind: DocumentFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1145")] + #[serde(default = "default_1147")] pub window_seconds: Option, - #[serde(default = "default_1146")] + #[serde(default = "default_1148")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1147")] + #[serde(default = "default_1149")] pub evidence: Vec, - #[serde(default = "default_1148")] + #[serde(default = "default_1150")] pub exceptions: String, - #[serde(default = "default_1149")] + #[serde(default = "default_1151")] pub uncertainty: String, pub code: String, pub severity: DocumentFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1150")] + #[serde(default = "default_1152")] pub samples: Vec, - #[serde(default = "default_1151")] + #[serde(default = "default_1153")] pub ingested: Integer, - #[serde(default = "default_1152")] + #[serde(default = "default_1154")] pub ingested_samples: Vec, pub detail: String, pub remedy: String, - #[serde(default = "default_1153")] + #[serde(default = "default_1155")] pub refs: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ReportCoverage { - #[serde(default = "default_1155")] + #[serde(default = "default_1157")] pub rules_run: Vec, - #[serde(default = "default_1156")] + #[serde(default = "default_1158")] pub rules_skipped: Vec, pub complete: bool, } @@ -25369,43 +25371,43 @@ pub struct ReportCoverage { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct IngestionTotals { - #[serde(default = "default_1157")] + #[serde(default = "default_1159")] pub sources: Option, - #[serde(default = "default_1158")] + #[serde(default = "default_1160")] pub without_document: Option, - #[serde(default = "default_1159")] + #[serde(default = "default_1161")] pub replaced: Option, - #[serde(default = "default_1160")] + #[serde(default = "default_1162")] pub pending: Option, - #[serde(default = "default_1161")] + #[serde(default = "default_1163")] pub processing: Option, - #[serde(default = "default_1162")] + #[serde(default = "default_1164")] pub stalled: Option, - #[serde(default = "default_1163")] + #[serde(default = "default_1165")] pub ready: Option, - #[serde(default = "default_1164")] + #[serde(default = "default_1166")] pub partial: Option, - #[serde(default = "default_1165")] + #[serde(default = "default_1167")] pub failed: Option, - #[serde(default = "default_1166")] + #[serde(default = "default_1168")] pub cancelled: Option, - #[serde(default = "default_1167")] + #[serde(default = "default_1169")] pub oldest_open_queued_at: Option, pub worker_enabled: bool, - #[serde(default = "default_1168")] + #[serde(default = "default_1170")] pub extractor_configured: Option, - #[serde(default = "default_1169")] + #[serde(default = "default_1171")] pub without_document_listed: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ExtractionTotals { - #[serde(default = "default_1170")] + #[serde(default = "default_1172")] pub documents: Option, - #[serde(default = "default_1171")] + #[serde(default = "default_1173")] pub incomplete: Option, - #[serde(default = "default_1172")] + #[serde(default = "default_1174")] pub lost: Vec, } @@ -25435,31 +25437,31 @@ pub struct IngestFinding { pub kind: IngestFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1173")] + #[serde(default = "default_1175")] pub window_seconds: Option, - #[serde(default = "default_1174")] + #[serde(default = "default_1176")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1175")] + #[serde(default = "default_1177")] pub evidence: Vec, - #[serde(default = "default_1176")] + #[serde(default = "default_1178")] pub exceptions: String, - #[serde(default = "default_1177")] + #[serde(default = "default_1179")] pub uncertainty: String, pub code: String, pub severity: IngestFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1178")] + #[serde(default = "default_1180")] pub samples: Vec, - #[serde(default = "default_1179")] + #[serde(default = "default_1181")] pub ingestion_ids: Vec, - #[serde(default = "default_1180")] + #[serde(default = "default_1182")] pub without_document: Integer, pub detail: String, pub remedy: String, - #[serde(default = "default_1181")] + #[serde(default = "default_1183")] pub refs: Vec, } @@ -25486,20 +25488,20 @@ pub struct KnowledgeInspectOutput { pub documents: DocumentTotals, pub chunks: ChunkTotals, pub decisions: DecisionTotals, - #[serde(default = "default_1143")] + #[serde(default = "default_1145")] pub listed: Vec, - #[serde(default = "default_1144")] + #[serde(default = "default_1146")] pub listed_complete: bool, - #[serde(default = "default_1154")] + #[serde(default = "default_1156")] pub findings: Vec, pub coverage: ReportCoverage, pub ingestions: IngestionTotals, pub extraction: ExtractionTotals, - #[serde(default = "default_1182")] + #[serde(default = "default_1184")] pub ingest_findings: Vec, - #[serde(default = "default_1183")] + #[serde(default = "default_1185")] pub memory_findings: Vec, - #[serde(default = "default_1184")] + #[serde(default = "default_1186")] pub skipped: Vec, } @@ -25646,7 +25648,7 @@ pub struct KnowledgeListEntry { #[non_exhaustive] pub struct KnowledgeListOutput { pub rows: Vec, - #[serde(default = "default_1185")] + #[serde(default = "default_1187")] pub next_cursor: Option, } @@ -25812,9 +25814,9 @@ pub enum KnowledgeMoveResultReason { #[non_exhaustive] pub struct KnowledgeMoveResult { pub source_uri: String, - #[serde(default = "default_1187")] + #[serde(default = "default_1189")] pub moved: bool, - #[serde(default = "default_1188")] + #[serde(default = "default_1190")] pub reason: KnowledgeMoveResultReason, } @@ -25822,9 +25824,9 @@ pub struct KnowledgeMoveResult { #[non_exhaustive] pub struct KnowledgeMoveOutput { pub found: bool, - #[serde(default = "default_1186")] + #[serde(default = "default_1188")] pub to_namespace: String, - #[serde(default = "default_1189")] + #[serde(default = "default_1191")] pub results: Vec, } @@ -25890,17 +25892,17 @@ pub struct OutlineEntry { pub struct KnowledgeOutlineOutput { pub found: bool, pub source_uri: String, - #[serde(default = "default_1190")] + #[serde(default = "default_1192")] pub title: String, - #[serde(default = "default_1191")] + #[serde(default = "default_1193")] pub structured: bool, - #[serde(default = "default_1192")] + #[serde(default = "default_1194")] pub chunk_count: Integer, - #[serde(default = "default_1193")] + #[serde(default = "default_1195")] pub sections: Vec, - #[serde(default = "default_1194")] + #[serde(default = "default_1196")] pub section_content: Option, - #[serde(default = "default_1195")] + #[serde(default = "default_1197")] pub section_chunk_idxs: Vec, } @@ -26007,12 +26009,12 @@ pub struct QueryReceipt { pub struct KnowledgeQueryOutput { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1196")] + #[serde(default = "default_1198")] pub row_ids: Vec>, - #[serde(default = "default_1197")] + #[serde(default = "default_1199")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1198")] + #[serde(default = "default_1200")] pub incomplete: Vec, pub receipt: QueryReceipt, } @@ -26685,9 +26687,9 @@ pub struct QueryHistoryListOutputQueryHistorySource { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct QueryHistoryListOutput { - #[serde(default = "default_1199")] + #[serde(default = "default_1201")] pub enabled: bool, - #[serde(default = "default_1200")] + #[serde(default = "default_1202")] pub sources: Vec, } @@ -26818,7 +26820,7 @@ impl QueryHistoryRemoveInput { #[non_exhaustive] pub struct KnowledgeReadsOutput { pub window_days: Integer, - #[serde(default = "default_1201")] + #[serde(default = "default_1203")] pub reads: Vec>, } @@ -26921,15 +26923,15 @@ pub enum KnowledgeRestoreOutputOriginal { #[non_exhaustive] pub struct KnowledgeRestoreOutput { pub restored: bool, - #[serde(default = "default_1202")] + #[serde(default = "default_1204")] pub reason: KnowledgeRestoreOutputReason, - #[serde(default = "default_1203")] + #[serde(default = "default_1205")] pub doc_id: String, - #[serde(default = "default_1204")] + #[serde(default = "default_1206")] pub revision: Option, - #[serde(default = "default_1205")] + #[serde(default = "default_1207")] pub chunks_restored: Integer, - #[serde(default = "default_1206")] + #[serde(default = "default_1208")] pub original: KnowledgeRestoreOutputOriginal, } @@ -27002,35 +27004,35 @@ pub struct KnowledgeSourceCrawlProof { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceProbe { - #[serde(default = "default_1211")] + #[serde(default = "default_1213")] pub documents: Integer, - #[serde(default = "default_1212")] + #[serde(default = "default_1214")] pub more: bool, - #[serde(default = "default_1213")] + #[serde(default = "default_1215")] pub sample: Vec, - #[serde(default = "default_1214")] + #[serde(default = "default_1216")] pub checked: Integer, - #[serde(default = "default_1215")] + #[serde(default = "default_1217")] pub sampled: bool, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceAddOutput { - #[serde(default = "default_1207")] + #[serde(default = "default_1209")] pub crawl_proof: Option, pub name: String, pub kind: String, pub namespace: String, - #[serde(default = "default_1208")] + #[serde(default = "default_1210")] pub items: Vec>, - #[serde(default = "default_1209")] + #[serde(default = "default_1211")] pub include: Vec, - #[serde(default = "default_1210")] + #[serde(default = "default_1212")] pub config: std::collections::HashMap, - #[serde(default = "default_1216")] + #[serde(default = "default_1218")] pub probe: KnowledgeSourceProbe, - #[serde(default = "default_1217")] + #[serde(default = "default_1219")] pub dry_run: bool, } @@ -27247,21 +27249,21 @@ impl KnowledgeSourceAddInput { #[non_exhaustive] pub struct KnowledgeSourceCheckOutput { pub name: String, - #[serde(default = "default_1218")] + #[serde(default = "default_1220")] pub reachable: bool, - #[serde(default = "default_1219")] + #[serde(default = "default_1221")] pub documents: Integer, - #[serde(default = "default_1220")] + #[serde(default = "default_1222")] pub more: bool, - #[serde(default = "default_1221")] + #[serde(default = "default_1223")] pub sample: Vec, - #[serde(default = "default_1222")] + #[serde(default = "default_1224")] pub checked: Integer, - #[serde(default = "default_1223")] + #[serde(default = "default_1225")] pub sampled: bool, - #[serde(default = "default_1224")] + #[serde(default = "default_1226")] pub summary: String, - #[serde(default = "default_1225")] + #[serde(default = "default_1227")] pub checked_at: String, } @@ -27310,37 +27312,37 @@ impl KnowledgeSourceCheckInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceSync { - #[serde(default = "default_1236")] + #[serde(default = "default_1238")] pub requested_at: String, - #[serde(default = "default_1237")] + #[serde(default = "default_1239")] pub last_synced_at: String, - #[serde(default = "default_1238")] + #[serde(default = "default_1240")] pub status: String, - #[serde(default = "default_1239")] + #[serde(default = "default_1241")] pub documents_seen: Integer, - #[serde(default = "default_1240")] + #[serde(default = "default_1242")] pub changed: Integer, - #[serde(default = "default_1241")] + #[serde(default = "default_1243")] pub removed: Integer, - #[serde(default = "default_1242")] + #[serde(default = "default_1244")] pub unconverted: Integer, - #[serde(default = "default_1243")] + #[serde(default = "default_1245")] pub unconverted_reasons: std::collections::HashMap, - #[serde(default = "default_1244")] + #[serde(default = "default_1246")] pub skipped: Integer, - #[serde(default = "default_1245")] + #[serde(default = "default_1247")] pub error: String, - #[serde(default = "default_1246")] + #[serde(default = "default_1248")] pub pending_extract: Integer, - #[serde(default = "default_1247")] + #[serde(default = "default_1249")] pub last_extracted_at: String, - #[serde(default = "default_1248")] + #[serde(default = "default_1250")] pub extracted: Integer, - #[serde(default = "default_1249")] + #[serde(default = "default_1251")] pub flagged_pinned: Integer, - #[serde(default = "default_1250")] + #[serde(default = "default_1252")] pub unextracted: Integer, - #[serde(default = "default_1251")] + #[serde(default = "default_1253")] pub extract_error: String, } @@ -27348,11 +27350,11 @@ pub struct KnowledgeSourceSync { #[non_exhaustive] pub struct KnowledgeSourceDocument { pub source_uri: String, - #[serde(default = "default_1253")] + #[serde(default = "default_1255")] pub title: String, - #[serde(default = "default_1254")] + #[serde(default = "default_1256")] pub source_revision: String, - #[serde(default = "default_1255")] + #[serde(default = "default_1257")] pub ingested_at: String, } @@ -27361,29 +27363,29 @@ pub struct KnowledgeSourceDocument { pub struct KnowledgeSourceInspectOutput { pub name: String, pub kind: String, - #[serde(default = "default_1226")] + #[serde(default = "default_1228")] pub credential_mode: String, - #[serde(default = "default_1227")] + #[serde(default = "default_1229")] pub owned_by_caller: bool, - #[serde(default = "default_1228")] + #[serde(default = "default_1230")] pub access: String, - #[serde(default = "default_1229")] + #[serde(default = "default_1231")] pub crawl_options: std::collections::HashMap, - #[serde(default = "default_1230")] + #[serde(default = "default_1232")] pub owner_subject: String, - #[serde(default = "default_1231")] + #[serde(default = "default_1233")] pub items: Vec>, - #[serde(default = "default_1232")] + #[serde(default = "default_1234")] pub include: Vec, - #[serde(default = "default_1233")] + #[serde(default = "default_1235")] pub config: std::collections::HashMap, - #[serde(default = "default_1234")] + #[serde(default = "default_1236")] pub created_by: String, - #[serde(default = "default_1235")] + #[serde(default = "default_1237")] pub created_at: String, - #[serde(default = "default_1252")] + #[serde(default = "default_1254")] pub sync: KnowledgeSourceSync, - #[serde(default = "default_1256")] + #[serde(default = "default_1258")] pub documents: Vec, } @@ -27436,40 +27438,40 @@ impl KnowledgeSourceInspectInput { pub struct KnowledgeSourceEntry { pub name: String, pub kind: String, - #[serde(default = "default_1257")] + #[serde(default = "default_1259")] pub credential_mode: String, - #[serde(default = "default_1258")] + #[serde(default = "default_1260")] pub owned_by_caller: bool, - #[serde(default = "default_1259")] + #[serde(default = "default_1261")] pub access: String, - #[serde(default = "default_1260")] + #[serde(default = "default_1262")] pub crawl_options: std::collections::HashMap, - #[serde(default = "default_1261")] + #[serde(default = "default_1263")] pub owner_subject: String, - #[serde(default = "default_1262")] + #[serde(default = "default_1264")] pub items: Vec>, - #[serde(default = "default_1263")] + #[serde(default = "default_1265")] pub include: Vec, - #[serde(default = "default_1264")] + #[serde(default = "default_1266")] pub config: std::collections::HashMap, - #[serde(default = "default_1265")] + #[serde(default = "default_1267")] pub created_by: String, - #[serde(default = "default_1266")] + #[serde(default = "default_1268")] pub created_at: String, - #[serde(default = "default_1267")] + #[serde(default = "default_1269")] pub sync: KnowledgeSourceSync, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceListOutput { - #[serde(default = "default_1268")] + #[serde(default = "default_1270")] pub sources: Vec, - #[serde(default = "default_1269")] + #[serde(default = "default_1271")] pub enabled: bool, - #[serde(default = "default_1270")] + #[serde(default = "default_1272")] pub accepts_sources: bool, - #[serde(default = "default_1271")] + #[serde(default = "default_1273")] pub self_service: bool, } @@ -27522,18 +27524,18 @@ impl KnowledgeSourceListInput { #[non_exhaustive] pub struct KnowledgeSourceParsedLink { pub link: String, - #[serde(default = "default_1272")] + #[serde(default = "default_1274")] pub kind: String, - #[serde(default = "default_1273")] + #[serde(default = "default_1275")] pub item: std::collections::HashMap, - #[serde(default = "default_1274")] + #[serde(default = "default_1276")] pub unreadable: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceParseLinksOutput { - #[serde(default = "default_1275")] + #[serde(default = "default_1277")] pub links: Vec, } @@ -27584,25 +27586,25 @@ impl KnowledgeSourceParseLinksInput { #[derive(Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct PushStatusOutput { - #[serde(default = "default_1276")] + #[serde(default = "default_1278")] pub enabled: bool, - #[serde(default = "default_1277")] + #[serde(default = "default_1279")] pub status: String, - #[serde(default = "default_1278")] + #[serde(default = "default_1280")] pub provider: String, - #[serde(default = "default_1279")] + #[serde(default = "default_1281")] pub generation: String, - #[serde(default = "default_1280")] + #[serde(default = "default_1282")] pub callback_url: String, - #[serde(default = "default_1281")] + #[serde(default = "default_1283")] pub provider_id: String, - #[serde(default = "default_1282")] + #[serde(default = "default_1284")] pub challenge_fingerprint: String, - #[serde(default = "default_1283")] + #[serde(default = "default_1285")] pub verification_token: String, - #[serde(default = "default_1284")] + #[serde(default = "default_1286")] pub channels: Integer, - #[serde(default = "default_1285")] + #[serde(default = "default_1287")] pub expires_at: f64, } impl std::fmt::Debug for PushStatusOutput { @@ -27847,7 +27849,7 @@ impl PushStatusInput { #[non_exhaustive] pub struct KnowledgeSourceRemoveOutput { pub name: String, - #[serde(default = "default_1286")] + #[serde(default = "default_1288")] pub documents_pending: Integer, } @@ -27909,12 +27911,12 @@ impl KnowledgeSourceRemoveInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceRotateOutput { - #[serde(default = "default_1287")] + #[serde(default = "default_1289")] pub crawl_proof: Option, pub name: String, - #[serde(default = "default_1288")] + #[serde(default = "default_1290")] pub probe: KnowledgeSourceProbe, - #[serde(default = "default_1289")] + #[serde(default = "default_1291")] pub rotated_at: String, } @@ -27966,7 +27968,7 @@ impl KnowledgeSourceRotateInput { #[non_exhaustive] pub struct KnowledgeSourceSyncNowOutput { pub name: String, - #[serde(default = "default_1290")] + #[serde(default = "default_1292")] pub enabled: bool, } @@ -28028,20 +28030,20 @@ impl KnowledgeSourceSyncNowInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceUpdateOutput { - #[serde(default = "default_1291")] + #[serde(default = "default_1293")] pub crawl_proof: Option, pub name: String, - #[serde(default = "default_1292")] + #[serde(default = "default_1294")] pub items: Vec>, - #[serde(default = "default_1293")] + #[serde(default = "default_1295")] pub include: Vec, - #[serde(default = "default_1294")] + #[serde(default = "default_1296")] pub config: std::collections::HashMap, - #[serde(default = "default_1295")] + #[serde(default = "default_1297")] pub added: Vec>, - #[serde(default = "default_1296")] + #[serde(default = "default_1298")] pub removed: Vec>, - #[serde(default = "default_1297")] + #[serde(default = "default_1299")] pub probe: KnowledgeSourceProbe, } @@ -28172,9 +28174,9 @@ impl KnowledgeSourceUpdateInput { pub struct CitedChunk { pub source_uri: String, pub chunk_idx: Integer, - #[serde(default = "default_1299")] + #[serde(default = "default_1301")] pub revision: Integer, - #[serde(default = "default_1300")] + #[serde(default = "default_1302")] pub locator: Option>, } @@ -28183,12 +28185,12 @@ pub struct CitedChunk { pub struct SynthesizeCalculation { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1307")] + #[serde(default = "default_1309")] pub row_ids: Vec>, - #[serde(default = "default_1308")] + #[serde(default = "default_1310")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1309")] + #[serde(default = "default_1311")] pub incomplete: Vec, pub receipt: QueryReceipt, pub citation: String, @@ -28202,23 +28204,23 @@ pub struct KnowledgeSynthesizeOutput { pub chunks_read: Integer, pub documents: Integer, pub reduce_rounds: Integer, - #[serde(default = "default_1298")] + #[serde(default = "default_1300")] pub citations: Vec, - #[serde(default = "default_1301")] + #[serde(default = "default_1303")] pub cited_chunks: Vec, - #[serde(default = "default_1302")] + #[serde(default = "default_1304")] pub unsupported_citations: Vec, - #[serde(default = "default_1303")] + #[serde(default = "default_1305")] pub truncated: bool, - #[serde(default = "default_1304")] + #[serde(default = "default_1306")] pub abstain: bool, - #[serde(default = "default_1305")] + #[serde(default = "default_1307")] pub abstain_reason: String, - #[serde(default = "default_1306")] + #[serde(default = "default_1308")] pub clarification: String, - #[serde(default = "default_1310")] + #[serde(default = "default_1312")] pub calculations: Vec, - #[serde(default = "default_1311")] + #[serde(default = "default_1313")] pub model: String, } @@ -28334,13 +28336,13 @@ impl KnowledgeSynthesizeInput { #[non_exhaustive] pub struct KnowledgeUpdateMetadataOutput { pub updated: bool, - #[serde(default = "default_1312")] + #[serde(default = "default_1314")] pub title: String, - #[serde(default = "default_1313")] + #[serde(default = "default_1315")] pub description: String, - #[serde(default = "default_1314")] + #[serde(default = "default_1316")] pub tags: Vec, - #[serde(default = "default_1315")] + #[serde(default = "default_1317")] pub chunks_reindexed: Integer, } @@ -28452,13 +28454,13 @@ pub struct KnowledgeUpsertOutput { pub chunks_superseded: Integer, pub embedding_model: String, pub embedding_dim: Integer, - #[serde(default = "default_1316")] + #[serde(default = "default_1318")] pub duplicate_of_uri: String, - #[serde(default = "default_1317")] + #[serde(default = "default_1319")] pub duplicate_chunk_count: Integer, - #[serde(default = "default_1318")] + #[serde(default = "default_1320")] pub namespace: String, - #[serde(default = "default_1319")] + #[serde(default = "default_1321")] pub source_uri: String, } @@ -28643,26 +28645,26 @@ pub struct LearningEntry { pub memory_type: String, pub proposed_value: Value, pub supporter_count: Integer, - #[serde(default = "default_1320")] + #[serde(default = "default_1322")] pub supporter_sessions: Integer, - #[serde(default = "default_1321")] + #[serde(default = "default_1323")] pub supporter_writers: Integer, pub confidence_avg: f64, pub supporters: Vec, pub rationale: String, - #[serde(default = "default_1322")] + #[serde(default = "default_1324")] pub source_kind: String, - #[serde(default = "default_1323")] + #[serde(default = "default_1325")] pub source_resource_id: String, - #[serde(default = "default_1324")] + #[serde(default = "default_1326")] pub agent: String, pub status: LearningEntryStatus, pub proposed_at: String, - #[serde(default = "default_1325")] + #[serde(default = "default_1327")] pub decided_at: Option, - #[serde(default = "default_1326")] + #[serde(default = "default_1328")] pub decided_by: String, - #[serde(default = "default_1327")] + #[serde(default = "default_1329")] pub decision_reason: String, } @@ -28865,11 +28867,11 @@ pub enum LearningsReviewOutputNewStatus { pub struct LearningsReviewOutput { pub candidate_id: String, pub new_status: LearningsReviewOutputNewStatus, - #[serde(default = "default_1328")] + #[serde(default = "default_1330")] pub promoted_to_shared: bool, - #[serde(default = "default_1329")] + #[serde(default = "default_1331")] pub promoted_to_knowledge: bool, - #[serde(default = "default_1330")] + #[serde(default = "default_1332")] pub knowledge_source_uri: String, pub decided_at: String, } @@ -29073,7 +29075,7 @@ impl MemoryAgentsListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct AggregateRow { - #[serde(default = "default_1331")] + #[serde(default = "default_1333")] pub group: std::collections::HashMap, pub metric: f64, } @@ -29081,9 +29083,9 @@ pub struct AggregateRow { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAggregateOutput { - #[serde(default = "default_1332")] + #[serde(default = "default_1334")] pub rows: Vec, - #[serde(default = "default_1333")] + #[serde(default = "default_1335")] pub sql_executed: String, } @@ -29251,15 +29253,15 @@ impl MemoryAggregateInput { pub struct BulkSetResult { pub memory_key: String, pub version: Integer, - #[serde(default = "default_1334")] + #[serde(default = "default_1336")] pub memory_id: String, - #[serde(default = "default_1335")] + #[serde(default = "default_1337")] pub conflict_verdict: String, - #[serde(default = "default_1336")] + #[serde(default = "default_1338")] pub peers: Vec, - #[serde(default = "default_1337")] + #[serde(default = "default_1339")] pub next: String, - #[serde(default = "default_1338")] + #[serde(default = "default_1340")] pub pinned_blocker_id: String, } @@ -29267,29 +29269,29 @@ pub struct BulkSetResult { #[non_exhaustive] pub struct MemoryBulkSetOutput { pub written: Vec, - #[serde(default = "default_1339")] + #[serde(default = "default_1341")] pub skipped_pinned: Vec, - #[serde(default = "default_1340")] + #[serde(default = "default_1342")] pub skipped_locked: Vec, - #[serde(default = "default_1341")] + #[serde(default = "default_1343")] pub skipped_blacklisted: Vec, - #[serde(default = "default_1342")] + #[serde(default = "default_1344")] pub merged: Vec, - #[serde(default = "default_1343")] + #[serde(default = "default_1345")] pub value_updates_linked: Integer, - #[serde(default = "default_1344")] + #[serde(default = "default_1346")] pub rejected_pinned: Vec, - #[serde(default = "default_1345")] + #[serde(default = "default_1347")] pub duplicates: Vec, - #[serde(default = "default_1346")] + #[serde(default = "default_1348")] pub conflicted: Vec, - #[serde(default = "default_1347")] + #[serde(default = "default_1349")] pub unchecked: Integer, - #[serde(default = "default_1348")] + #[serde(default = "default_1350")] pub retyped: Vec, - #[serde(default = "default_1349")] + #[serde(default = "default_1351")] pub identity_duplicates: std::collections::HashMap, - #[serde(default = "default_1350")] + #[serde(default = "default_1352")] pub stage_ms: std::collections::HashMap, } @@ -29439,18 +29441,18 @@ pub enum ApplyRowStatus { #[non_exhaustive] pub struct ApplyRow { pub memory_key: String, - #[serde(default = "default_1358")] + #[serde(default = "default_1360")] pub memory_id: String, - #[serde(default = "default_1359")] + #[serde(default = "default_1361")] pub agent: String, - #[serde(default = "default_1360")] + #[serde(default = "default_1362")] pub user_id: String, - #[serde(default = "default_1361")] + #[serde(default = "default_1363")] pub session_id: String, pub status: ApplyRowStatus, - #[serde(default = "default_1362")] + #[serde(default = "default_1364")] pub version: Option, - #[serde(default = "default_1363")] + #[serde(default = "default_1365")] pub detail: String, } @@ -29460,21 +29462,21 @@ pub struct MemoryApplyOutput { pub action: String, pub dry_run: bool, pub target: String, - #[serde(default = "default_1351")] + #[serde(default = "default_1353")] pub matched: Integer, - #[serde(default = "default_1352")] + #[serde(default = "default_1354")] pub applied: Integer, - #[serde(default = "default_1353")] + #[serde(default = "default_1355")] pub would_apply: Integer, - #[serde(default = "default_1354")] + #[serde(default = "default_1356")] pub refused: Integer, - #[serde(default = "default_1355")] + #[serde(default = "default_1357")] pub noop: Integer, - #[serde(default = "default_1356")] + #[serde(default = "default_1358")] pub failed: Integer, - #[serde(default = "default_1357")] + #[serde(default = "default_1359")] pub truncated: bool, - #[serde(default = "default_1364")] + #[serde(default = "default_1366")] pub rows: Vec, } @@ -30208,137 +30210,137 @@ pub enum MemoryAskOutputDeepFirst { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAskOutput { - #[serde(default = "default_1365")] + #[serde(default = "default_1367")] pub answer: String, - #[serde(default = "default_1366")] + #[serde(default = "default_1368")] pub source: MemoryAskOutputSource, - #[serde(default = "default_1367")] + #[serde(default = "default_1369")] pub abstain: bool, - #[serde(default = "default_1368")] + #[serde(default = "default_1370")] pub abstain_reason: String, - #[serde(default = "default_1369")] + #[serde(default = "default_1371")] pub memory_keys: Vec, - #[serde(default = "default_1370")] + #[serde(default = "default_1372")] pub results: Vec, - #[serde(default = "default_1371")] + #[serde(default = "default_1373")] pub cited_sessions: Vec, - #[serde(default = "default_1372")] + #[serde(default = "default_1374")] pub next: String, - #[serde(default = "default_1373")] + #[serde(default = "default_1375")] pub synth_model: String, - #[serde(default = "default_1374")] + #[serde(default = "default_1376")] pub route_tier: MemoryAskOutputRouteTier, - #[serde(default = "default_1375")] + #[serde(default = "default_1377")] pub route_reason: String, - #[serde(default = "default_1376")] + #[serde(default = "default_1378")] pub llm_cache_hits: Integer, - #[serde(default = "default_1377")] + #[serde(default = "default_1379")] pub llm_cache_misses: Integer, - #[serde(default = "default_1378")] + #[serde(default = "default_1380")] pub llm_cache: bool, - #[serde(default = "default_1379")] + #[serde(default = "default_1381")] pub llm_cache_saved_usd: f64, - #[serde(default = "default_1380")] + #[serde(default = "default_1382")] pub temporal_consistency: Option, - #[serde(default = "default_1381")] + #[serde(default = "default_1383")] pub citation_concentration: Option, - #[serde(default = "default_1382")] + #[serde(default = "default_1384")] pub escalated: bool, - #[serde(default = "default_1383")] + #[serde(default = "default_1385")] pub gate_mode: String, - #[serde(default = "default_1384")] + #[serde(default = "default_1386")] pub gate_kept: Integer, - #[serde(default = "default_1385")] + #[serde(default = "default_1387")] pub gate_dropped: Integer, - #[serde(default = "default_1386")] + #[serde(default = "default_1388")] pub pending_extraction: Integer, - #[serde(default = "default_1387")] + #[serde(default = "default_1389")] pub pending_evidence: Integer, - #[serde(default = "default_1388")] + #[serde(default = "default_1390")] pub retrieval_query: String, - #[serde(default = "default_1389")] + #[serde(default = "default_1391")] pub facets: Vec, - #[serde(default = "default_1390")] + #[serde(default = "default_1392")] pub facet_memories_added: Integer, - #[serde(default = "default_1391")] + #[serde(default = "default_1393")] pub consistency: MemoryAskOutputConsistency, - #[serde(default = "default_1392")] + #[serde(default = "default_1394")] pub consistency_score: f64, - #[serde(default = "default_1393")] + #[serde(default = "default_1395")] pub consistency_note: String, - #[serde(default = "default_1394")] + #[serde(default = "default_1396")] pub identifier_chase_hops: Integer, - #[serde(default = "default_1395")] + #[serde(default = "default_1397")] pub identifier_chase_added: Integer, - #[serde(default = "default_1396")] + #[serde(default = "default_1398")] pub premise_conflict: String, - #[serde(default = "default_1397")] + #[serde(default = "default_1399")] pub premise_note: String, - #[serde(default = "default_1398")] + #[serde(default = "default_1400")] pub premise_verdict: String, - #[serde(default = "default_1399")] + #[serde(default = "default_1401")] pub attribution_note: String, - #[serde(default = "default_1400")] + #[serde(default = "default_1402")] pub depth: MemoryAskOutputDepth, - #[serde(default = "default_1401")] + #[serde(default = "default_1403")] pub deep_fired: bool, - #[serde(default = "default_1402")] + #[serde(default = "default_1404")] pub decomposed: Vec, - #[serde(default = "default_1403")] + #[serde(default = "default_1405")] pub decomposed_parts: Integer, - #[serde(default = "default_1404")] + #[serde(default = "default_1406")] pub superseded_dropped: Integer, - #[serde(default = "default_1405")] + #[serde(default = "default_1407")] pub stale_sentences_masked: Integer, - #[serde(default = "default_1406")] + #[serde(default = "default_1408")] pub entity_followed: Vec, - #[serde(default = "default_1407")] + #[serde(default = "default_1409")] pub when_evidence_turns: Integer, - #[serde(default = "default_1408")] + #[serde(default = "default_1410")] pub decompose_failed: Integer, - #[serde(default = "default_1409")] + #[serde(default = "default_1411")] pub pool_k: Integer, - #[serde(default = "default_1410")] + #[serde(default = "default_1412")] pub grounding: MemoryAskOutputGrounding, - #[serde(default = "default_1411")] + #[serde(default = "default_1413")] pub deep_reason: String, - #[serde(default = "default_1412")] + #[serde(default = "default_1414")] pub deep_keys: Vec, - #[serde(default = "default_1413")] + #[serde(default = "default_1415")] pub deep_chars: Integer, - #[serde(default = "default_1414")] + #[serde(default = "default_1416")] pub code_hits: Integer, - #[serde(default = "default_1415")] + #[serde(default = "default_1417")] pub pool_facts: Integer, - #[serde(default = "default_1416")] + #[serde(default = "default_1418")] pub pool_chunks: Integer, - #[serde(default = "default_1417")] + #[serde(default = "default_1419")] pub prompt_blocks: std::collections::HashMap, - #[serde(default = "default_1418")] + #[serde(default = "default_1420")] pub deep_selector: MemoryAskOutputDeepSelector, - #[serde(default = "default_1419")] + #[serde(default = "default_1421")] pub deep_first: MemoryAskOutputDeepFirst, - #[serde(default = "default_1420")] + #[serde(default = "default_1422")] pub synth_calls: Integer, - #[serde(default = "default_1421")] + #[serde(default = "default_1423")] pub synth_input_tokens: Integer, - #[serde(default = "default_1422")] + #[serde(default = "default_1424")] pub synth_cached_input_tokens: Integer, - #[serde(default = "default_1423")] + #[serde(default = "default_1425")] pub synth_cache_write_tokens: Integer, - #[serde(default = "default_1424")] + #[serde(default = "default_1426")] pub synth_cost_usd: f64, - #[serde(default = "default_1425")] + #[serde(default = "default_1427")] pub context_tokens_est: Integer, - #[serde(default = "default_1426")] + #[serde(default = "default_1428")] pub context_trimmed: Integer, - #[serde(default = "default_1427")] + #[serde(default = "default_1429")] pub summary_hits: Integer, - #[serde(default = "default_1428")] + #[serde(default = "default_1430")] pub knowledge_hits: Integer, - #[serde(default = "default_1429")] + #[serde(default = "default_1431")] pub timeline_rows: Integer, - #[serde(default = "default_1430")] + #[serde(default = "default_1432")] pub count_recomputed: bool, } @@ -31293,36 +31295,36 @@ pub struct MemoryAutoRetirement { pub reason: String, pub memory_id: String, pub memory_key: String, - #[serde(default = "default_1431")] + #[serde(default = "default_1433")] pub agent: String, - #[serde(default = "default_1432")] + #[serde(default = "default_1434")] pub user_id: String, - #[serde(default = "default_1433")] + #[serde(default = "default_1435")] pub session_id: String, - #[serde(default = "default_1434")] + #[serde(default = "default_1436")] pub superseded_by: String, - #[serde(default = "default_1435")] + #[serde(default = "default_1437")] pub superseded_by_key: String, - #[serde(default = "default_1436")] + #[serde(default = "default_1438")] pub label: String, - #[serde(default = "default_1437")] + #[serde(default = "default_1439")] pub unconfirmed: bool, - #[serde(default = "default_1438")] + #[serde(default = "default_1440")] pub judge_verdict: String, - #[serde(default = "default_1439")] + #[serde(default = "default_1441")] pub judge_confidence: Option, - #[serde(default = "default_1440")] + #[serde(default = "default_1442")] pub judge_model: String, - #[serde(default = "default_1441")] + #[serde(default = "default_1443")] pub judge_prompt_version: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAutoRetirementsOutput { - #[serde(default = "default_1442")] + #[serde(default = "default_1444")] pub rows: Vec, - #[serde(default = "default_1443")] + #[serde(default = "default_1445")] pub next_cursor: Option, } @@ -31416,9 +31418,9 @@ impl MemoryAutoRetirementsInput { #[non_exhaustive] pub struct BacklinkVersion { pub version: Integer, - #[serde(default = "default_1445")] + #[serde(default = "default_1447")] pub status: String, - #[serde(default = "default_1446")] + #[serde(default = "default_1448")] pub created_at: String, } @@ -31426,7 +31428,7 @@ pub struct BacklinkVersion { #[non_exhaustive] pub struct BacklinkDigest { pub session_id: String, - #[serde(default = "default_1448")] + #[serde(default = "default_1450")] pub date: String, } @@ -31434,9 +31436,9 @@ pub struct BacklinkDigest { #[non_exhaustive] pub struct BacklinkEdge { pub memory_key: String, - #[serde(default = "default_1450")] + #[serde(default = "default_1452")] pub relation: String, - #[serde(default = "default_1451")] + #[serde(default = "default_1453")] pub created_at: String, } @@ -31444,7 +31446,7 @@ pub struct BacklinkEdge { #[non_exhaustive] pub struct BacklinkRelated { pub memory_key: String, - #[serde(default = "default_1455")] + #[serde(default = "default_1457")] pub shared_entities: Vec, } @@ -31452,19 +31454,19 @@ pub struct BacklinkRelated { #[non_exhaustive] pub struct MemoryBacklinksOutput { pub memory_key: String, - #[serde(default = "default_1444")] + #[serde(default = "default_1446")] pub found: bool, - #[serde(default = "default_1447")] - pub versions: Vec, #[serde(default = "default_1449")] + pub versions: Vec, + #[serde(default = "default_1451")] pub digests: Vec, - #[serde(default = "default_1452")] + #[serde(default = "default_1454")] pub links_in: Vec, - #[serde(default = "default_1453")] + #[serde(default = "default_1455")] pub links_out: Vec, - #[serde(default = "default_1454")] - pub evidence_count: Integer, #[serde(default = "default_1456")] + pub evidence_count: Integer, + #[serde(default = "default_1458")] pub related: Vec, } @@ -31569,36 +31571,36 @@ impl MemoryBacklinksInput { #[non_exhaustive] pub struct BriefEvidence { pub memory_key: String, - #[serde(default = "default_1461")] + #[serde(default = "default_1463")] pub source: String, - #[serde(default = "default_1462")] + #[serde(default = "default_1464")] pub source_class: String, - #[serde(default = "default_1463")] + #[serde(default = "default_1465")] pub verified: bool, - #[serde(default = "default_1464")] + #[serde(default = "default_1466")] pub when: String, - #[serde(default = "default_1465")] + #[serde(default = "default_1467")] pub session_id: String, - #[serde(default = "default_1466")] + #[serde(default = "default_1468")] pub excerpt: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBriefOutput { - #[serde(default = "default_1457")] + #[serde(default = "default_1459")] pub query: String, - #[serde(default = "default_1458")] + #[serde(default = "default_1460")] pub answer: String, - #[serde(default = "default_1459")] + #[serde(default = "default_1461")] pub abstained: bool, - #[serde(default = "default_1460")] + #[serde(default = "default_1462")] pub grounding: String, - #[serde(default = "default_1467")] + #[serde(default = "default_1469")] pub evidence: Vec, - #[serde(default = "default_1468")] + #[serde(default = "default_1470")] pub unknowns: Vec, - #[serde(default = "default_1469")] + #[serde(default = "default_1471")] pub next_reads: Vec, } @@ -32012,9 +32014,9 @@ pub struct MemoryBulkGetOutputMemoryGetOutput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBulkGetOutput { - #[serde(default = "default_1470")] + #[serde(default = "default_1472")] pub results: std::collections::HashMap, - #[serde(default = "default_1471")] + #[serde(default = "default_1473")] pub missing: Vec, } @@ -32527,7 +32529,7 @@ pub struct MemoryClearOutput { pub cleared_at: String, pub rows_affected: std::collections::HashMap, pub total: Integer, - #[serde(default = "default_1472")] + #[serde(default = "default_1474")] pub locked_skipped: Integer, } @@ -32615,21 +32617,21 @@ pub struct MemoryConsolidateResult { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryConsolidateOutput { - #[serde(default = "default_1473")] + #[serde(default = "default_1475")] pub consolidated: Vec, - #[serde(default = "default_1474")] + #[serde(default = "default_1476")] pub examined: Integer, - #[serde(default = "default_1475")] + #[serde(default = "default_1477")] pub clusters_found: Integer, - #[serde(default = "default_1476")] + #[serde(default = "default_1478")] pub clusters_failed: Integer, - #[serde(default = "default_1477")] + #[serde(default = "default_1479")] pub clusters_refused_lossy: Integer, - #[serde(default = "default_1478")] + #[serde(default = "default_1480")] pub skipped_in_flight: Integer, - #[serde(default = "default_1479")] + #[serde(default = "default_1481")] pub tokens_in: Integer, - #[serde(default = "default_1480")] + #[serde(default = "default_1482")] pub tokens_out: Integer, } @@ -32770,7 +32772,7 @@ impl MemoryConsolidateInput { #[non_exhaustive] pub struct MemoryCopyToOutput { pub copied: bool, - #[serde(default = "default_1481")] + #[serde(default = "default_1483")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, @@ -32881,11 +32883,11 @@ impl MemoryCopyToInput { #[non_exhaustive] pub struct MemoryCrossPromoteOutput { pub promoted: bool, - #[serde(default = "default_1482")] + #[serde(default = "default_1484")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, - #[serde(default = "default_1483")] + #[serde(default = "default_1485")] pub cross_promoted_from_memory_id: String, } @@ -32968,23 +32970,23 @@ pub struct DedupCollapsePair { #[non_exhaustive] pub struct MemoryDedupCollapseOutput { pub namespace: String, - #[serde(default = "default_1484")] + #[serde(default = "default_1486")] pub prefix: String, - #[serde(default = "default_1485")] + #[serde(default = "default_1487")] pub dry_run: bool, - #[serde(default = "default_1486")] + #[serde(default = "default_1488")] pub pairs: Integer, - #[serde(default = "default_1487")] + #[serde(default = "default_1489")] pub canonical_live: Integer, - #[serde(default = "default_1488")] + #[serde(default = "default_1490")] pub orphans: Integer, - #[serde(default = "default_1489")] + #[serde(default = "default_1491")] pub mirror_stale: Integer, - #[serde(default = "default_1490")] + #[serde(default = "default_1492")] pub restamped: Integer, - #[serde(default = "default_1491")] + #[serde(default = "default_1493")] pub truncated: bool, - #[serde(default = "default_1492")] + #[serde(default = "default_1494")] pub sample: Vec, } @@ -33083,7 +33085,7 @@ pub struct DedupDuplicate { pub memory_id: String, pub memory_key: String, pub agent: String, - #[serde(default = "default_1495")] + #[serde(default = "default_1497")] pub created_at: Option, } @@ -33091,12 +33093,12 @@ pub struct DedupDuplicate { #[non_exhaustive] pub struct DedupCluster { pub canonical_id: String, - #[serde(default = "default_1493")] + #[serde(default = "default_1495")] pub canonical_key: String, - #[serde(default = "default_1494")] + #[serde(default = "default_1496")] pub canonical_agent: String, pub dup_count: Integer, - #[serde(default = "default_1496")] + #[serde(default = "default_1498")] pub duplicates: Vec, } @@ -33168,11 +33170,11 @@ pub struct MemoryDedupResolveOutput { pub canonical_key: String, pub duplicate_key: String, pub decision: String, - #[serde(default = "default_1497")] + #[serde(default = "default_1499")] pub canonical_tombstoned: bool, - #[serde(default = "default_1498")] + #[serde(default = "default_1500")] pub duplicate_tombstoned: bool, - #[serde(default = "default_1499")] + #[serde(default = "default_1501")] pub ignored_args: Vec, } @@ -33310,17 +33312,17 @@ pub struct LostName { pub struct DefinitionEntry { pub memory_key: String, pub promoted_at: String, - #[serde(default = "default_1500")] + #[serde(default = "default_1502")] pub capped: bool, - #[serde(default = "default_1501")] + #[serde(default = "default_1503")] pub term: Option, - #[serde(default = "default_1502")] + #[serde(default = "default_1504")] pub aliases: Vec, - #[serde(default = "default_1503")] + #[serde(default = "default_1505")] pub verdict: Option, - #[serde(default = "default_1504")] + #[serde(default = "default_1506")] pub lapse_reason: Option, - #[serde(default = "default_1505")] + #[serde(default = "default_1507")] pub lost: Vec, } @@ -33381,15 +33383,15 @@ impl MemoryDefinitionsListInput { #[non_exhaustive] pub struct MemoryDeleteVersionOutput { pub tombstoned: bool, - #[serde(default = "default_1506")] + #[serde(default = "default_1508")] pub version: Integer, - #[serde(default = "default_1507")] + #[serde(default = "default_1509")] pub found: bool, - #[serde(default = "default_1508")] + #[serde(default = "default_1510")] pub reason: String, - #[serde(default = "default_1509")] + #[serde(default = "default_1511")] pub dependents_tombstoned: Integer, - #[serde(default = "default_1510")] + #[serde(default = "default_1512")] pub dependents_downgraded: Integer, } @@ -33516,21 +33518,21 @@ pub struct DemonstrationRow { pub struct MemoryDemonstrateOutput { pub query: String, pub demonstrations: Vec, - #[serde(default = "default_1511")] + #[serde(default = "default_1513")] pub votes: std::collections::HashMap, - #[serde(default = "default_1512")] + #[serde(default = "default_1514")] pub predicted_label: String, - #[serde(default = "default_1513")] + #[serde(default = "default_1515")] pub margin: f64, - #[serde(default = "default_1514")] + #[serde(default = "default_1516")] pub abstain: bool, - #[serde(default = "default_1515")] + #[serde(default = "default_1517")] pub abstain_reason: String, - #[serde(default = "default_1516")] + #[serde(default = "default_1518")] pub few_shot_block: String, - #[serde(default = "default_1517")] + #[serde(default = "default_1519")] pub examined: Integer, - #[serde(default = "default_1518")] + #[serde(default = "default_1520")] pub labelled: Integer, } @@ -33670,7 +33672,7 @@ impl MemoryDemonstrateInput { pub struct MemoryDemoteOutput { pub demoted: bool, pub was_reversible: bool, - #[serde(default = "default_1519")] + #[serde(default = "default_1521")] pub tombstoned_at: Option, } @@ -33732,15 +33734,15 @@ impl MemoryDemoteInput { pub struct DigestRow { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1520")] + #[serde(default = "default_1522")] pub key_facts: Vec, - #[serde(default = "default_1521")] + #[serde(default = "default_1523")] pub derived_from: Vec, - #[serde(default = "default_1522")] + #[serde(default = "default_1524")] pub valid_at: Option, - #[serde(default = "default_1523")] + #[serde(default = "default_1525")] pub created_at: Option, - #[serde(default = "default_1524")] + #[serde(default = "default_1526")] pub version: Integer, } @@ -33748,7 +33750,7 @@ pub struct DigestRow { #[non_exhaustive] pub struct MemoryDigestsOutput { pub rows: Vec, - #[serde(default = "default_1525")] + #[serde(default = "default_1527")] pub truncated: bool, } @@ -33873,17 +33875,17 @@ pub struct MemoryEvidenceItem { pub evidence_id: String, pub support_type: String, pub scope: MemoryEvidenceItemScope, - #[serde(default = "default_1529")] + #[serde(default = "default_1531")] pub role: String, - #[serde(default = "default_1530")] + #[serde(default = "default_1532")] pub observed_at: Option, - #[serde(default = "default_1531")] + #[serde(default = "default_1533")] pub content: String, - #[serde(default = "default_1532")] + #[serde(default = "default_1534")] pub char_start: Integer, - #[serde(default = "default_1533")] + #[serde(default = "default_1535")] pub char_end: Integer, - #[serde(default = "default_1534")] + #[serde(default = "default_1536")] pub span: String, } @@ -33891,23 +33893,23 @@ pub struct MemoryEvidenceItem { #[non_exhaustive] pub struct MemoryEvidenceOutput { pub found: bool, - #[serde(default = "default_1526")] + #[serde(default = "default_1528")] pub memory_key: String, - #[serde(default = "default_1527")] + #[serde(default = "default_1529")] pub memory_id: String, - #[serde(default = "default_1528")] + #[serde(default = "default_1530")] pub value: String, - #[serde(default = "default_1535")] + #[serde(default = "default_1537")] pub items: Vec, - #[serde(default = "default_1536")] + #[serde(default = "default_1538")] pub truncated: bool, - #[serde(default = "default_1537")] + #[serde(default = "default_1539")] pub cited: Integer, - #[serde(default = "default_1538")] + #[serde(default = "default_1540")] pub lexical: Integer, - #[serde(default = "default_1539")] + #[serde(default = "default_1541")] pub window: Integer, - #[serde(default = "default_1540")] + #[serde(default = "default_1542")] pub derived: Integer, } @@ -34012,26 +34014,26 @@ impl MemoryEvidenceInput { #[non_exhaustive] pub struct EvidenceChunk { pub session_id: String, - #[serde(default = "default_1541")] + #[serde(default = "default_1543")] pub chunk_index: Integer, pub content: String, - #[serde(default = "default_1542")] + #[serde(default = "default_1544")] pub content_sha256: String, - #[serde(default = "default_1543")] + #[serde(default = "default_1545")] pub agent: String, - #[serde(default = "default_1544")] + #[serde(default = "default_1546")] pub user_id: String, - #[serde(default = "default_1545")] + #[serde(default = "default_1547")] pub parent_memory_key: String, - #[serde(default = "default_1546")] + #[serde(default = "default_1548")] pub memory_keys: Vec, - #[serde(default = "default_1547")] + #[serde(default = "default_1549")] pub line_start: Integer, - #[serde(default = "default_1548")] + #[serde(default = "default_1550")] pub line_end: Integer, - #[serde(default = "default_1549")] + #[serde(default = "default_1551")] pub created_at: String, - #[serde(default = "default_1550")] + #[serde(default = "default_1552")] pub source_url: String, } @@ -34040,17 +34042,17 @@ pub struct EvidenceChunk { pub struct EvidenceDigest { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1552")] + #[serde(default = "default_1554")] pub agent: String, - #[serde(default = "default_1553")] + #[serde(default = "default_1555")] pub user_id: String, - #[serde(default = "default_1554")] + #[serde(default = "default_1556")] pub key_facts: Vec, - #[serde(default = "default_1555")] + #[serde(default = "default_1557")] pub derived_from: Vec, - #[serde(default = "default_1556")] + #[serde(default = "default_1558")] pub valid_at: String, - #[serde(default = "default_1557")] + #[serde(default = "default_1559")] pub created_at: String, } @@ -34060,28 +34062,28 @@ pub struct EvidenceEdge { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1559")] + #[serde(default = "default_1561")] pub confidence: f64, - #[serde(default = "default_1560")] + #[serde(default = "default_1562")] pub explanation: String, - #[serde(default = "default_1561")] + #[serde(default = "default_1563")] pub created_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExportEvidenceOutput { - #[serde(default = "default_1551")] + #[serde(default = "default_1553")] pub chunks: Vec, - #[serde(default = "default_1558")] + #[serde(default = "default_1560")] pub digests: Vec, - #[serde(default = "default_1562")] + #[serde(default = "default_1564")] pub edges: Vec, - #[serde(default = "default_1563")] + #[serde(default = "default_1565")] pub has_more: bool, - #[serde(default = "default_1564")] + #[serde(default = "default_1566")] pub next_cursor: String, - #[serde(default = "default_1565")] + #[serde(default = "default_1567")] pub held_high: Integer, } @@ -34274,15 +34276,15 @@ impl ExposureSummaryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionRetryMineOutput { - #[serde(default = "default_1566")] + #[serde(default = "default_1568")] pub requeued: Vec, - #[serde(default = "default_1567")] + #[serde(default = "default_1569")] pub not_failed: Vec, - #[serde(default = "default_1568")] + #[serde(default = "default_1570")] pub model_calls_off: Vec, - #[serde(default = "default_1569")] + #[serde(default = "default_1571")] pub expired: Vec, - #[serde(default = "default_1570")] + #[serde(default = "default_1572")] pub unknown: Vec, } @@ -34343,20 +34345,20 @@ pub struct ExtractionQueueRow { pub content_chars: Integer, pub written: Integer, pub last_error: String, - #[serde(default = "default_1571")] + #[serde(default = "default_1573")] pub enqueued_at: Option, - #[serde(default = "default_1572")] + #[serde(default = "default_1574")] pub updated_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusOutput { - #[serde(default = "default_1573")] + #[serde(default = "default_1575")] pub batches: Vec, - #[serde(default = "default_1574")] + #[serde(default = "default_1576")] pub pending: Integer, - #[serde(default = "default_1575")] + #[serde(default = "default_1577")] pub failed: Integer, } @@ -34504,13 +34506,13 @@ impl MemoryExtractionStatusInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusMineOutput { - #[serde(default = "default_1576")] + #[serde(default = "default_1578")] pub batches: Vec, - #[serde(default = "default_1577")] + #[serde(default = "default_1579")] pub unknown: Vec, - #[serde(default = "default_1578")] + #[serde(default = "default_1580")] pub pending: Integer, - #[serde(default = "default_1579")] + #[serde(default = "default_1581")] pub failed: Integer, } @@ -34631,39 +34633,39 @@ pub struct MemoryForFileHit { pub memory_key: String, pub memory_type: String, pub value: String, - #[serde(default = "default_1580")] + #[serde(default = "default_1582")] pub value_truncated: bool, - #[serde(default = "default_1581")] + #[serde(default = "default_1583")] pub tags: Vec, - #[serde(default = "default_1582")] + #[serde(default = "default_1584")] pub confidence: f64, - #[serde(default = "default_1583")] + #[serde(default = "default_1585")] pub pinned: bool, - #[serde(default = "default_1584")] + #[serde(default = "default_1586")] pub status: String, - #[serde(default = "default_1585")] + #[serde(default = "default_1587")] pub agent: String, - #[serde(default = "default_1586")] + #[serde(default = "default_1588")] pub updated_at: Option, - #[serde(default = "default_1587")] + #[serde(default = "default_1589")] pub namespace: String, - #[serde(default = "default_1588")] + #[serde(default = "default_1590")] pub actor: String, - #[serde(default = "default_1589")] + #[serde(default = "default_1591")] pub supersedes_key: String, - #[serde(default = "default_1590")] + #[serde(default = "default_1592")] pub supersedes: String, - #[serde(default = "default_1591")] + #[serde(default = "default_1593")] pub supersedes_kind: MemoryForFileHitSupersedesKind, - #[serde(default = "default_1592")] + #[serde(default = "default_1594")] pub matched_files: Vec, - #[serde(default = "default_1593")] + #[serde(default = "default_1595")] pub source_resource_id: String, - #[serde(default = "default_1594")] + #[serde(default = "default_1596")] pub verification: MemoryForFileHitVerification, - #[serde(default = "default_1595")] + #[serde(default = "default_1597")] pub code_state: MemoryForFileHitCodeState, - #[serde(default = "default_1596")] + #[serde(default = "default_1598")] pub code_moved: Vec, } @@ -34673,7 +34675,7 @@ pub struct MemoryForFilePrintedRow { pub namespace: String, pub memory_key: String, pub line: String, - #[serde(default = "default_1600")] + #[serde(default = "default_1602")] pub binding: bool, } @@ -34683,13 +34685,13 @@ pub struct MemoryForFileOutput { pub path: String, pub total: Integer, pub hits: Vec, - #[serde(default = "default_1597")] + #[serde(default = "default_1599")] pub rendered: String, - #[serde(default = "default_1598")] + #[serde(default = "default_1600")] pub tokens_estimate: Integer, - #[serde(default = "default_1599")] - pub truncated: bool, #[serde(default = "default_1601")] + pub truncated: bool, + #[serde(default = "default_1603")] pub printed: Vec, } @@ -34797,61 +34799,61 @@ impl MemoryForFileInput { #[non_exhaustive] pub struct MemoryGetByIdOutput { pub found: bool, - #[serde(default = "default_1602")] + #[serde(default = "default_1604")] pub memory_id: String, - #[serde(default = "default_1603")] + #[serde(default = "default_1605")] pub namespace: String, - #[serde(default = "default_1604")] + #[serde(default = "default_1606")] pub agent: String, - #[serde(default = "default_1605")] + #[serde(default = "default_1607")] pub user_id: String, - #[serde(default = "default_1606")] + #[serde(default = "default_1608")] pub session_id: String, - #[serde(default = "default_1607")] + #[serde(default = "default_1609")] pub memory_key: String, - #[serde(default = "default_1608")] + #[serde(default = "default_1610")] pub memory_type: Option, - #[serde(default = "default_1609")] + #[serde(default = "default_1611")] pub value: Value, - #[serde(default = "default_1610")] + #[serde(default = "default_1612")] pub confidence: Option, - #[serde(default = "default_1611")] + #[serde(default = "default_1613")] pub version: Option, - #[serde(default = "default_1612")] + #[serde(default = "default_1614")] pub created_at: Option, - #[serde(default = "default_1613")] + #[serde(default = "default_1615")] pub expires_at: Option, - #[serde(default = "default_1614")] + #[serde(default = "default_1616")] pub valid_at: Option, - #[serde(default = "default_1615")] + #[serde(default = "default_1617")] pub valid_to: Option, - #[serde(default = "default_1616")] + #[serde(default = "default_1618")] pub pinned: bool, - #[serde(default = "default_1617")] + #[serde(default = "default_1619")] pub content_sha256: String, - #[serde(default = "default_1618")] + #[serde(default = "default_1620")] pub verified_by: String, - #[serde(default = "default_1619")] + #[serde(default = "default_1621")] pub verified_at: Option, - #[serde(default = "default_1620")] + #[serde(default = "default_1622")] pub verification: String, - #[serde(default = "default_1621")] + #[serde(default = "default_1623")] pub sensitivity: String, - #[serde(default = "default_1622")] + #[serde(default = "default_1624")] pub actor: String, - #[serde(default = "default_1623")] + #[serde(default = "default_1625")] pub source_class: String, - #[serde(default = "default_1624")] + #[serde(default = "default_1626")] pub lock_mode: String, - #[serde(default = "default_1625")] + #[serde(default = "default_1627")] pub lock_reason: String, - #[serde(default = "default_1626")] + #[serde(default = "default_1628")] pub lock_until: Option, - #[serde(default = "default_1627")] + #[serde(default = "default_1629")] pub locked_by: String, - #[serde(default = "default_1628")] + #[serde(default = "default_1630")] pub on_expire: String, - #[serde(default = "default_1629")] + #[serde(default = "default_1631")] pub expire_reason: String, } @@ -34927,41 +34929,41 @@ pub struct MemoryHealthTopRow { pub memory_type: String, pub recall_count: Integer, pub used_count: Integer, - #[serde(default = "default_1632")] + #[serde(default = "default_1634")] pub harm_count: Integer, - #[serde(default = "default_1633")] + #[serde(default = "default_1635")] pub last_recalled_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthStaleness { - #[serde(default = "default_1635")] + #[serde(default = "default_1637")] pub by_age: std::collections::HashMap, - #[serde(default = "default_1636")] + #[serde(default = "default_1638")] pub with_validity_end: Integer, - #[serde(default = "default_1637")] + #[serde(default = "default_1639")] pub with_validity_end_share: f64, - #[serde(default = "default_1638")] + #[serde(default = "default_1640")] pub with_expiry: Integer, - #[serde(default = "default_1639")] + #[serde(default = "default_1641")] pub expiring_7d: Integer, - #[serde(default = "default_1640")] + #[serde(default = "default_1642")] pub pinned: Integer, - #[serde(default = "default_1641")] + #[serde(default = "default_1643")] pub days_since_reinforced_p50: Integer, - #[serde(default = "default_1642")] + #[serde(default = "default_1644")] pub days_since_reinforced_p90: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthFootprint { - #[serde(default = "default_1644")] + #[serde(default = "default_1646")] pub value_chars: Integer, - #[serde(default = "default_1645")] + #[serde(default = "default_1647")] pub value_tokens_est: Integer, - #[serde(default = "default_1646")] + #[serde(default = "default_1648")] pub tokens_per_row_est: f64, } @@ -34971,19 +34973,19 @@ pub struct MemoryHealthOutput { pub live: Integer, pub recalled_ever: Integer, pub used_ever: Integer, - #[serde(default = "default_1630")] + #[serde(default = "default_1632")] pub harmed_ever: Integer, pub silent: Integer, pub silent_older: Integer, pub silent_share: f64, pub silent_after_days: Integer, - #[serde(default = "default_1631")] + #[serde(default = "default_1633")] pub by_type: Vec, - #[serde(default = "default_1634")] + #[serde(default = "default_1636")] pub top_recalled: Vec, - #[serde(default = "default_1643")] + #[serde(default = "default_1645")] pub staleness: MemoryHealthStaleness, - #[serde(default = "default_1647")] + #[serde(default = "default_1649")] pub footprint: MemoryHealthFootprint, } @@ -35103,51 +35105,51 @@ impl MemoryHealthInput { pub struct MemoryHistoryRow { pub memory_id: String, pub version: Integer, - #[serde(default = "default_1648")] + #[serde(default = "default_1650")] pub version_text: String, - #[serde(default = "default_1649")] + #[serde(default = "default_1651")] pub value: Value, pub confidence: f64, - #[serde(default = "default_1650")] + #[serde(default = "default_1652")] pub source_trace: String, - #[serde(default = "default_1651")] + #[serde(default = "default_1653")] pub pinned: bool, pub created_at: String, - #[serde(default = "default_1652")] + #[serde(default = "default_1654")] pub expires_at: Option, - #[serde(default = "default_1653")] + #[serde(default = "default_1655")] pub tombstoned_at: Option, - #[serde(default = "default_1654")] + #[serde(default = "default_1656")] pub redacted_at: Option, - #[serde(default = "default_1655")] + #[serde(default = "default_1657")] pub redaction_reason: String, - #[serde(default = "default_1656")] + #[serde(default = "default_1658")] pub content_sha256: String, - #[serde(default = "default_1657")] + #[serde(default = "default_1659")] pub actor: String, - #[serde(default = "default_1658")] + #[serde(default = "default_1660")] pub source_class: String, - #[serde(default = "default_1659")] + #[serde(default = "default_1661")] pub agent: String, - #[serde(default = "default_1660")] + #[serde(default = "default_1662")] pub written_at: Option, - #[serde(default = "default_1661")] + #[serde(default = "default_1663")] pub status: String, - #[serde(default = "default_1662")] + #[serde(default = "default_1664")] pub conflict_with: Vec, - #[serde(default = "default_1663")] + #[serde(default = "default_1665")] pub tags: Vec, - #[serde(default = "default_1664")] + #[serde(default = "default_1666")] pub verified_at: Option, - #[serde(default = "default_1665")] + #[serde(default = "default_1667")] pub verified_by: String, - #[serde(default = "default_1666")] + #[serde(default = "default_1668")] pub verified_sha256: String, - #[serde(default = "default_1667")] + #[serde(default = "default_1669")] pub lock_mode: String, - #[serde(default = "default_1668")] + #[serde(default = "default_1670")] pub lock_reason: String, - #[serde(default = "default_1669")] + #[serde(default = "default_1671")] pub lock_until: Option, } @@ -35257,13 +35259,13 @@ impl MemoryHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportTotals { - #[serde(default = "default_1670")] + #[serde(default = "default_1672")] pub written: Integer, - #[serde(default = "default_1671")] + #[serde(default = "default_1673")] pub held: Integer, - #[serde(default = "default_1672")] + #[serde(default = "default_1674")] pub skipped: Integer, - #[serde(default = "default_1673")] + #[serde(default = "default_1675")] pub refused: Integer, } @@ -35346,11 +35348,11 @@ pub struct MemoryImportResult { pub index: Integer, pub key: String, pub outcome: MemoryImportResultOutcome, - #[serde(default = "default_1674")] + #[serde(default = "default_1676")] pub reason: MemoryImportResultReason, - #[serde(default = "default_1675")] + #[serde(default = "default_1677")] pub held_by: String, - #[serde(default = "default_1676")] + #[serde(default = "default_1678")] pub note: MemoryImportResultNote, } @@ -35359,7 +35361,7 @@ pub struct MemoryImportResult { pub struct MemoryImportOutput { pub totals: MemoryImportTotals, pub results: Vec, - #[serde(default = "default_1677")] + #[serde(default = "default_1679")] pub dry_run: bool, } @@ -35552,9 +35554,9 @@ pub struct MemoryImportCuratedRow { pub section_heading: String, pub bytes_written: Integer, pub verdict: String, - #[serde(default = "default_1678")] + #[serde(default = "default_1680")] pub rejection_reason: String, - #[serde(default = "default_1679")] + #[serde(default = "default_1681")] pub pinned_blocker_id: Option, } @@ -35646,21 +35648,21 @@ impl MemoryImportCuratedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportEvidenceOutput { - #[serde(default = "default_1680")] + #[serde(default = "default_1682")] pub chunks_written: Integer, - #[serde(default = "default_1681")] + #[serde(default = "default_1683")] pub links_written: Integer, - #[serde(default = "default_1682")] + #[serde(default = "default_1684")] pub digests_written: Integer, - #[serde(default = "default_1683")] + #[serde(default = "default_1685")] pub embedding_model: String, - #[serde(default = "default_1684")] + #[serde(default = "default_1686")] pub embedding_dim: Integer, - #[serde(default = "default_1685")] + #[serde(default = "default_1687")] pub edited: Vec, - #[serde(default = "default_1686")] + #[serde(default = "default_1688")] pub skipped: Integer, - #[serde(default = "default_1687")] + #[serde(default = "default_1689")] pub unchecked: Integer, } @@ -35997,7 +35999,7 @@ pub struct InspectRow { pub memory_key: String, pub memory_id: String, pub version: Integer, - #[serde(default = "default_1697")] + #[serde(default = "default_1699")] pub content_sha256: String, pub memory_type: String, pub status: String, @@ -36008,9 +36010,9 @@ pub struct InspectRow { pub actor: String, pub updated_at: String, pub sensitivity: String, - #[serde(default = "default_1698")] + #[serde(default = "default_1700")] pub versions: Integer, - #[serde(default = "default_1699")] + #[serde(default = "default_1701")] pub excerpt: String, } @@ -36018,27 +36020,27 @@ pub struct InspectRow { #[non_exhaustive] pub struct InspectView { pub definition: String, - #[serde(default = "default_1688")] + #[serde(default = "default_1690")] pub refs: Vec, - #[serde(default = "default_1689")] + #[serde(default = "default_1691")] pub live_rows: Integer, - #[serde(default = "default_1690")] + #[serde(default = "default_1692")] pub by_type: Vec, - #[serde(default = "default_1691")] + #[serde(default = "default_1693")] pub by_status: Vec, - #[serde(default = "default_1692")] + #[serde(default = "default_1694")] pub by_source_class: Vec, - #[serde(default = "default_1693")] + #[serde(default = "default_1695")] pub top_tags: Vec, - #[serde(default = "default_1694")] + #[serde(default = "default_1696")] pub categories: Vec, - #[serde(default = "default_1695")] + #[serde(default = "default_1697")] pub first_updated_at: Option, - #[serde(default = "default_1696")] + #[serde(default = "default_1698")] pub last_updated_at: Option, - #[serde(default = "default_1700")] + #[serde(default = "default_1702")] pub newest: Vec, - #[serde(default = "default_1701")] + #[serde(default = "default_1703")] pub complete: bool, } @@ -36054,32 +36056,32 @@ pub struct InspectCall { #[non_exhaustive] pub struct InspectActivity { pub window_seconds: Integer, - #[serde(default = "default_1702")] + #[serde(default = "default_1704")] pub calls: Vec, - #[serde(default = "default_1703")] + #[serde(default = "default_1705")] pub first_at: Option, - #[serde(default = "default_1704")] + #[serde(default = "default_1706")] pub last_at: Option, - #[serde(default = "default_1705")] + #[serde(default = "default_1707")] pub gap: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InspectSettings { - #[serde(default = "default_1706")] + #[serde(default = "default_1708")] pub guide_revision: Integer, - #[serde(default = "default_1707")] + #[serde(default = "default_1709")] pub guide_summary: String, - #[serde(default = "default_1708")] + #[serde(default = "default_1710")] pub categories_registered: Integer, - #[serde(default = "default_1709")] + #[serde(default = "default_1711")] pub extraction_policy: Option, - #[serde(default = "default_1710")] + #[serde(default = "default_1712")] pub extraction_policy_unavailable: String, - #[serde(default = "default_1711")] + #[serde(default = "default_1713")] pub extraction_instructions: String, - #[serde(default = "default_1712")] + #[serde(default = "default_1714")] pub extraction_instructions_refs: Vec, } @@ -36095,7 +36097,7 @@ pub struct MemoryInspectOutput { pub others: InspectView, pub activity: InspectActivity, pub settings: InspectSettings, - #[serde(default = "default_1713")] + #[serde(default = "default_1715")] pub skipped: Vec, } @@ -36189,7 +36191,7 @@ pub struct MemoryKeyRef { #[non_exhaustive] pub struct MemoryKeysOutput { pub keys: Vec, - #[serde(default = "default_1714")] + #[serde(default = "default_1716")] pub truncated: bool, } @@ -36292,9 +36294,9 @@ pub struct LineageCandidate { pub decided_at: String, pub decided_by: String, pub match_confidence: LineageCandidateMatchConfidence, - #[serde(default = "default_1723")] + #[serde(default = "default_1725")] pub seeded_from_thread_id: String, - #[serde(default = "default_1724")] + #[serde(default = "default_1726")] pub seeded_from_msg_id: String, } @@ -36312,25 +36314,25 @@ pub struct LineageAuditEvent { pub struct MemoryLineageOutput { pub found: bool, pub memory_key: String, - #[serde(default = "default_1715")] + #[serde(default = "default_1717")] pub promotion_event: String, - #[serde(default = "default_1716")] + #[serde(default = "default_1718")] pub promoted_by: String, - #[serde(default = "default_1717")] + #[serde(default = "default_1719")] pub promoted_at: Option, - #[serde(default = "default_1718")] + #[serde(default = "default_1720")] pub rationale: String, - #[serde(default = "default_1719")] + #[serde(default = "default_1721")] pub source_trace: String, - #[serde(default = "default_1720")] + #[serde(default = "default_1722")] pub source_resource_id: String, - #[serde(default = "default_1721")] + #[serde(default = "default_1723")] pub mechanism: MemoryLineageOutputMechanism, - #[serde(default = "default_1722")] + #[serde(default = "default_1724")] pub supporters: Vec, - #[serde(default = "default_1725")] + #[serde(default = "default_1727")] pub candidate: Option, - #[serde(default = "default_1726")] + #[serde(default = "default_1728")] pub audit_chain: Vec, } @@ -36459,11 +36461,11 @@ pub struct MemoryLinkOutput { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1727")] + #[serde(default = "default_1729")] pub confidence: f64, - #[serde(default = "default_1728")] + #[serde(default = "default_1730")] pub conflict_opened: bool, - #[serde(default = "default_1729")] + #[serde(default = "default_1731")] pub relation_defaulted: bool, } @@ -36777,17 +36779,17 @@ pub struct MemoryListEntry { pub struct MemoryListOutput { pub entries: Vec, pub truncated: bool, - #[serde(default = "default_1730")] + #[serde(default = "default_1732")] pub total: Integer, - #[serde(default = "default_1731")] + #[serde(default = "default_1733")] pub today: Integer, - #[serde(default = "default_1732")] + #[serde(default = "default_1734")] pub namespace_version: String, - #[serde(default = "default_1733")] + #[serde(default = "default_1735")] pub unchanged: bool, - #[serde(default = "default_1734")] + #[serde(default = "default_1736")] pub hidden: Integer, - #[serde(default = "default_1735")] + #[serde(default = "default_1737")] pub hidden_hint: String, } @@ -37173,19 +37175,19 @@ impl MemoryListInput { #[non_exhaustive] pub struct MemoryLockOutput { pub locked: bool, - #[serde(default = "default_1736")] + #[serde(default = "default_1738")] pub reason: String, - #[serde(default = "default_1737")] + #[serde(default = "default_1739")] pub memory_id: String, - #[serde(default = "default_1738")] + #[serde(default = "default_1740")] pub version: Option, - #[serde(default = "default_1739")] + #[serde(default = "default_1741")] pub lock_mode: String, - #[serde(default = "default_1740")] + #[serde(default = "default_1742")] pub lock_until: Option, - #[serde(default = "default_1741")] + #[serde(default = "default_1743")] pub locked_by: String, - #[serde(default = "default_1742")] + #[serde(default = "default_1744")] pub previous_mode: String, } @@ -37344,21 +37346,21 @@ pub struct MemoryMoveOutput { pub from_key: String, pub to_key: String, pub redirected: bool, - #[serde(default = "default_1743")] + #[serde(default = "default_1745")] pub memory_id: String, - #[serde(default = "default_1744")] + #[serde(default = "default_1746")] pub version: Integer, - #[serde(default = "default_1745")] + #[serde(default = "default_1747")] pub content_sha256: String, - #[serde(default = "default_1746")] + #[serde(default = "default_1748")] pub advisories: Vec, - #[serde(default = "default_1747")] + #[serde(default = "default_1749")] pub dry_run: bool, - #[serde(default = "default_1748")] + #[serde(default = "default_1750")] pub memory_type: String, - #[serde(default = "default_1749")] + #[serde(default = "default_1751")] pub value_preview: String, - #[serde(default = "default_1750")] + #[serde(default = "default_1752")] pub sensitivity: String, } @@ -37570,7 +37572,7 @@ impl MemoryMoveInput { pub struct MemoryOutcomeOutput { pub recorded: bool, pub evidence_count_after: Integer, - #[serde(default = "default_1751")] + #[serde(default = "default_1753")] pub quarantined: bool, } @@ -37813,13 +37815,13 @@ impl MemoryOutcomeRunInput { #[non_exhaustive] pub struct OutlineSession { pub session_id: String, - #[serde(default = "default_1753")] + #[serde(default = "default_1755")] pub date: String, - #[serde(default = "default_1754")] + #[serde(default = "default_1756")] pub headline: String, - #[serde(default = "default_1755")] + #[serde(default = "default_1757")] pub key_facts: Integer, - #[serde(default = "default_1756")] + #[serde(default = "default_1758")] pub rows: Integer, } @@ -37827,7 +37829,7 @@ pub struct OutlineSession { #[non_exhaustive] pub struct OutlineHub { pub entity: String, - #[serde(default = "default_1759")] + #[serde(default = "default_1761")] pub degree: Integer, } @@ -37835,28 +37837,28 @@ pub struct OutlineHub { #[non_exhaustive] pub struct OutlineCommunity { pub community_id: Integer, - #[serde(default = "default_1761")] + #[serde(default = "default_1763")] pub label: String, - #[serde(default = "default_1762")] + #[serde(default = "default_1764")] pub size: Integer, - #[serde(default = "default_1763")] + #[serde(default = "default_1765")] pub computed_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryOutlineOutput { - #[serde(default = "default_1752")] + #[serde(default = "default_1754")] pub rows_by_type: std::collections::HashMap, - #[serde(default = "default_1757")] + #[serde(default = "default_1759")] pub sessions: Vec, - #[serde(default = "default_1758")] - pub sessions_total: Integer, #[serde(default = "default_1760")] + pub sessions_total: Integer, + #[serde(default = "default_1762")] pub hubs: Vec, - #[serde(default = "default_1764")] + #[serde(default = "default_1766")] pub communities: Vec, - #[serde(default = "default_1765")] + #[serde(default = "default_1767")] pub profile_chars: Integer, } @@ -38008,7 +38010,7 @@ pub struct OwnerUsageRow { pub recalls: Integer, pub used: Integer, pub harm: Integer, - #[serde(default = "default_1766")] + #[serde(default = "default_1768")] pub last_recalled: Option, } @@ -38495,7 +38497,7 @@ pub struct MemoryPromoteOutput { pub shared_memory_key: String, pub promotion_event: String, pub reversible_until: String, - #[serde(default = "default_1767")] + #[serde(default = "default_1769")] pub ignored_args: Vec, } @@ -38664,18 +38666,18 @@ impl MemoryPromoteInput { pub struct MemoryProposalDecision { pub memory_key: String, pub decided: bool, - #[serde(default = "default_1769")] + #[serde(default = "default_1771")] pub status: String, - #[serde(default = "default_1770")] + #[serde(default = "default_1772")] pub reason: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalDecideOutput { - #[serde(default = "default_1768")] + #[serde(default = "default_1770")] pub decided: Integer, - #[serde(default = "default_1771")] + #[serde(default = "default_1773")] pub results: Vec, } @@ -38776,33 +38778,33 @@ pub enum MemoryProposalReady { pub struct MemoryProposal { pub memory_key: String, pub memory_id: String, - #[serde(default = "default_1772")] + #[serde(default = "default_1774")] pub content_sha256: String, - #[serde(default = "default_1773")] + #[serde(default = "default_1775")] pub agent: String, - #[serde(default = "default_1774")] + #[serde(default = "default_1776")] pub memory_type: String, - #[serde(default = "default_1775")] + #[serde(default = "default_1777")] pub value_preview: String, - #[serde(default = "default_1776")] + #[serde(default = "default_1778")] pub sensitivity: String, - #[serde(default = "default_1777")] + #[serde(default = "default_1779")] pub tags: Vec, - #[serde(default = "default_1778")] + #[serde(default = "default_1780")] pub created_at: String, - #[serde(default = "default_1779")] + #[serde(default = "default_1781")] pub graded_passes: Integer, - #[serde(default = "default_1780")] + #[serde(default = "default_1782")] pub graded_fails: Integer, - #[serde(default = "default_1781")] + #[serde(default = "default_1783")] pub last_graded_at: String, - #[serde(default = "default_1782")] + #[serde(default = "default_1784")] pub used_count: Integer, - #[serde(default = "default_1783")] + #[serde(default = "default_1785")] pub harm_count: Integer, - #[serde(default = "default_1784")] + #[serde(default = "default_1786")] pub ready: MemoryProposalReady, - #[serde(default = "default_1785")] + #[serde(default = "default_1787")] pub conflict_with: Vec, } @@ -38818,24 +38820,24 @@ pub enum ProposalPolicyMode { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProposalPolicy { - #[serde(default = "default_1788")] + #[serde(default = "default_1790")] pub mode: ProposalPolicyMode, - #[serde(default = "default_1789")] + #[serde(default = "default_1791")] pub min_passes: Integer, - #[serde(default = "default_1790")] + #[serde(default = "default_1792")] pub max_fails: Integer, - #[serde(default = "default_1791")] + #[serde(default = "default_1793")] pub reject_after_fails: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalsOutput { - #[serde(default = "default_1786")] + #[serde(default = "default_1788")] pub proposals: Vec, - #[serde(default = "default_1787")] + #[serde(default = "default_1789")] pub total: Integer, - #[serde(default = "default_1792")] + #[serde(default = "default_1794")] pub policy: ProposalPolicy, } @@ -38953,19 +38955,19 @@ impl MemoryProposalsInput { pub struct MemoryProvenanceLink { pub direction: String, pub memory_key: String, - #[serde(default = "default_1806")] + #[serde(default = "default_1808")] pub relation: String, - #[serde(default = "default_1807")] + #[serde(default = "default_1809")] pub label: String, - #[serde(default = "default_1808")] + #[serde(default = "default_1810")] pub explanation: String, - #[serde(default = "default_1809")] + #[serde(default = "default_1811")] pub evidence: Vec, - #[serde(default = "default_1810")] + #[serde(default = "default_1812")] pub confidence: f64, - #[serde(default = "default_1811")] + #[serde(default = "default_1813")] pub author: String, - #[serde(default = "default_1812")] + #[serde(default = "default_1814")] pub run_id: String, } @@ -38973,33 +38975,33 @@ pub struct MemoryProvenanceLink { #[non_exhaustive] pub struct MemoryProvenanceOutput { pub found: bool, - #[serde(default = "default_1793")] + #[serde(default = "default_1795")] pub source_trace: String, - #[serde(default = "default_1794")] + #[serde(default = "default_1796")] pub source_kind: String, - #[serde(default = "default_1795")] + #[serde(default = "default_1797")] pub actor: String, - #[serde(default = "default_1796")] + #[serde(default = "default_1798")] pub source_class: String, - #[serde(default = "default_1797")] + #[serde(default = "default_1799")] pub source_label: String, - #[serde(default = "default_1798")] + #[serde(default = "default_1800")] pub thread_id: String, - #[serde(default = "default_1799")] + #[serde(default = "default_1801")] pub thread_exists: bool, - #[serde(default = "default_1800")] + #[serde(default = "default_1802")] pub thread_title: String, - #[serde(default = "default_1801")] + #[serde(default = "default_1803")] pub agent: String, - #[serde(default = "default_1802")] + #[serde(default = "default_1804")] pub session_id: String, - #[serde(default = "default_1803")] + #[serde(default = "default_1805")] pub run_id: String, - #[serde(default = "default_1804")] + #[serde(default = "default_1806")] pub written_at: String, - #[serde(default = "default_1805")] + #[serde(default = "default_1807")] pub source_resource_id: String, - #[serde(default = "default_1813")] + #[serde(default = "default_1815")] pub links: Vec, } @@ -39094,17 +39096,17 @@ impl MemoryProvenanceInput { pub struct RecallTurn { pub evidence_id: String, pub session_id: String, - #[serde(default = "default_1814")] + #[serde(default = "default_1816")] pub role: String, - #[serde(default = "default_1815")] + #[serde(default = "default_1817")] pub actor: String, - #[serde(default = "default_1816")] + #[serde(default = "default_1818")] pub observed_at: String, - #[serde(default = "default_1817")] + #[serde(default = "default_1819")] pub content: String, - #[serde(default = "default_1818")] + #[serde(default = "default_1820")] pub truncated: bool, - #[serde(default = "default_1819")] + #[serde(default = "default_1821")] pub matched_tokens: Integer, } @@ -39121,21 +39123,21 @@ pub enum MemoryRecallOutputOrder { #[non_exhaustive] pub struct MemoryRecallOutput { pub turns: Vec, - #[serde(default = "default_1820")] + #[serde(default = "default_1822")] pub total_matched: Integer, - #[serde(default = "default_1821")] + #[serde(default = "default_1823")] pub returned: Integer, - #[serde(default = "default_1822")] + #[serde(default = "default_1824")] pub has_more: bool, - #[serde(default = "default_1823")] + #[serde(default = "default_1825")] pub next_cursor: String, - #[serde(default = "default_1824")] + #[serde(default = "default_1826")] pub next_offset: Integer, - #[serde(default = "default_1825")] + #[serde(default = "default_1827")] pub order: MemoryRecallOutputOrder, - #[serde(default = "default_1826")] + #[serde(default = "default_1828")] pub query_tokens: Vec, - #[serde(default = "default_1827")] + #[serde(default = "default_1829")] pub tokens_returned: Integer, } @@ -39417,19 +39419,19 @@ pub struct MemoryRecordConflictRow { pub schema_name: String, pub memory_key: String, pub field_name: String, - #[serde(default = "default_1828")] + #[serde(default = "default_1830")] pub prior_value: Value, - #[serde(default = "default_1829")] + #[serde(default = "default_1831")] pub incoming_value: Value, pub prior_record_id: String, pub incoming_record_id: String, - #[serde(default = "default_1830")] + #[serde(default = "default_1832")] pub prior_memory_id: String, - #[serde(default = "default_1831")] + #[serde(default = "default_1833")] pub incoming_memory_id: String, - #[serde(default = "default_1832")] + #[serde(default = "default_1834")] pub detected_at: Option, - #[serde(default = "default_1833")] + #[serde(default = "default_1835")] pub resolved_at: Option, } @@ -39437,7 +39439,7 @@ pub struct MemoryRecordConflictRow { #[non_exhaustive] pub struct MemoryRecordConflictsOutput { pub rows: Vec, - #[serde(default = "default_1834")] + #[serde(default = "default_1836")] pub truncated: bool, } @@ -39547,19 +39549,19 @@ pub enum MemoryRecordRowStatus { #[non_exhaustive] pub struct MemoryRecordRow { pub record_id: String, - #[serde(default = "default_1835")] + #[serde(default = "default_1837")] pub memory_key: String, - #[serde(default = "default_1836")] + #[serde(default = "default_1838")] pub memory_id: String, - #[serde(default = "default_1837")] + #[serde(default = "default_1839")] pub record: std::collections::HashMap, - #[serde(default = "default_1838")] + #[serde(default = "default_1840")] pub field_states: std::collections::HashMap, - #[serde(default = "default_1839")] + #[serde(default = "default_1841")] pub status: MemoryRecordRowStatus, - #[serde(default = "default_1840")] + #[serde(default = "default_1842")] pub valid_at: Option, - #[serde(default = "default_1841")] + #[serde(default = "default_1843")] pub valid_to: Option, } @@ -39626,7 +39628,7 @@ impl MemoryRecordHistoryInput { #[non_exhaustive] pub struct MemoryRecordQueryOutput { pub rows: Vec, - #[serde(default = "default_1842")] + #[serde(default = "default_1844")] pub truncated: bool, } @@ -39850,15 +39852,15 @@ pub enum MemoryRecordWriteOutputKeySource { pub struct MemoryRecordWriteOutput { pub record_id: String, pub field_count: Integer, - #[serde(default = "default_1843")] + #[serde(default = "default_1845")] pub memory_key: String, - #[serde(default = "default_1844")] + #[serde(default = "default_1846")] pub key_source: MemoryRecordWriteOutputKeySource, - #[serde(default = "default_1845")] + #[serde(default = "default_1847")] pub fold: std::collections::HashMap, - #[serde(default = "default_1846")] + #[serde(default = "default_1848")] pub superseded_record_id: String, - #[serde(default = "default_1847")] + #[serde(default = "default_1849")] pub conflicts: Integer, } @@ -40101,13 +40103,13 @@ impl MemoryRecordWriteInput { #[non_exhaustive] pub struct MemoryRedactOutput { pub redacted: bool, - #[serde(default = "default_1848")] + #[serde(default = "default_1850")] pub refused_head: bool, - #[serde(default = "default_1849")] + #[serde(default = "default_1851")] pub redacted_at: Option, - #[serde(default = "default_1850")] + #[serde(default = "default_1852")] pub cache_rows_deleted: Integer, - #[serde(default = "default_1851")] + #[serde(default = "default_1853")] pub precedent_rows_deleted: Integer, } @@ -40267,7 +40269,7 @@ impl MemoryReindexInput { #[non_exhaustive] pub struct MemoryRejectOutput { pub rejected: bool, - #[serde(default = "default_1852")] + #[serde(default = "default_1854")] pub rejected_at: Option, } @@ -40383,7 +40385,7 @@ pub struct MemoryRelatedHit { pub struct MemoryRelatedOutput { pub results: Vec, pub source_entities: Vec, - #[serde(default = "default_1853")] + #[serde(default = "default_1855")] pub reason: String, } @@ -40498,13 +40500,13 @@ impl MemoryRelatedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryResolveOrphanDuplicatesOutput { - #[serde(default = "default_1854")] + #[serde(default = "default_1856")] pub candidates: Integer, - #[serde(default = "default_1855")] + #[serde(default = "default_1857")] pub reactivated: Integer, - #[serde(default = "default_1856")] + #[serde(default = "default_1858")] pub dry_run: bool, - #[serde(default = "default_1857")] + #[serde(default = "default_1859")] pub memory_ids: Vec, } @@ -40581,15 +40583,15 @@ impl MemoryResolveOrphanDuplicatesInput { #[non_exhaustive] pub struct MemoryRestoreOutput { pub restored: bool, - #[serde(default = "default_1858")] + #[serde(default = "default_1860")] pub memory_id: Option, - #[serde(default = "default_1859")] + #[serde(default = "default_1861")] pub version: Option, - #[serde(default = "default_1860")] + #[serde(default = "default_1862")] pub expired: bool, - #[serde(default = "default_1861")] + #[serde(default = "default_1863")] pub redacted: bool, - #[serde(default = "default_1862")] + #[serde(default = "default_1864")] pub from_status: String, } @@ -40709,13 +40711,13 @@ pub struct SearchTraceHit { pub content_excerpt: String, pub distance: f64, pub similarity: f64, - #[serde(default = "default_1863")] + #[serde(default = "default_1865")] pub entity_boost: f64, pub rank_score: f64, pub rank: Integer, - #[serde(default = "default_1864")] + #[serde(default = "default_1866")] pub source: String, - #[serde(default = "default_1865")] + #[serde(default = "default_1867")] pub parent_memory_key: String, } @@ -40725,11 +40727,11 @@ pub struct MemorySearchTraceOutput { pub results: Vec, pub embedding_model: String, pub entity_filter: Vec, - #[serde(default = "default_1866")] + #[serde(default = "default_1868")] pub query_spellings: std::collections::HashMap, - #[serde(default = "default_1867")] + #[serde(default = "default_1869")] pub query_spellings_skipped: bool, - #[serde(default = "default_1868")] + #[serde(default = "default_1870")] pub stale_dropped: Integer, } @@ -41910,7 +41912,7 @@ pub struct SearchTraceLogRow { pub embedding_model: String, pub latency_ms: Integer, pub run_id: String, - #[serde(default = "default_1869")] + #[serde(default = "default_1871")] pub operation: String, } @@ -42019,71 +42021,71 @@ pub struct RefusedFact { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySetFromMessagesOutput { - #[serde(default = "default_1870")] + #[serde(default = "default_1872")] pub written: Vec, - #[serde(default = "default_1871")] + #[serde(default = "default_1873")] pub refused: Vec, - #[serde(default = "default_1872")] + #[serde(default = "default_1874")] pub tokens_in: Integer, - #[serde(default = "default_1873")] + #[serde(default = "default_1875")] pub tokens_out: Integer, - #[serde(default = "default_1874")] + #[serde(default = "default_1876")] pub llm_provider: String, - #[serde(default = "default_1875")] + #[serde(default = "default_1877")] pub llm_model: String, - #[serde(default = "default_1876")] + #[serde(default = "default_1878")] pub segments: Integer, - #[serde(default = "default_1877")] + #[serde(default = "default_1879")] pub foresight: Integer, - #[serde(default = "default_1878")] + #[serde(default = "default_1880")] pub forgotten: Integer, - #[serde(default = "default_1879")] + #[serde(default = "default_1881")] pub forgotten_keys: Vec, - #[serde(default = "default_1880")] + #[serde(default = "default_1882")] pub forget_requests: Integer, - #[serde(default = "default_1881")] + #[serde(default = "default_1883")] pub about_other: Integer, - #[serde(default = "default_1882")] + #[serde(default = "default_1884")] pub premise_facts: Integer, - #[serde(default = "default_1883")] + #[serde(default = "default_1885")] pub learning_candidates: Integer, - #[serde(default = "default_1884")] + #[serde(default = "default_1886")] pub ignored_args: Vec, - #[serde(default = "default_1885")] + #[serde(default = "default_1887")] pub segmenter: String, - #[serde(default = "default_1886")] + #[serde(default = "default_1888")] pub cached_tokens_in: Integer, - #[serde(default = "default_1887")] + #[serde(default = "default_1889")] pub ontology_warnings: Vec, - #[serde(default = "default_1888")] + #[serde(default = "default_1890")] pub evidence_ids: Vec, - #[serde(default = "default_1889")] + #[serde(default = "default_1891")] pub belief_source_links: Integer, - #[serde(default = "default_1890")] + #[serde(default = "default_1892")] pub pipeline_errors: Vec, - #[serde(default = "default_1891")] + #[serde(default = "default_1893")] pub value_updates_linked: Integer, - #[serde(default = "default_1892")] + #[serde(default = "default_1894")] pub stubbed_fields: Vec, - #[serde(default = "default_1893")] + #[serde(default = "default_1895")] pub degraded: Vec, - #[serde(default = "default_1894")] + #[serde(default = "default_1896")] pub deferred: bool, - #[serde(default = "default_1895")] + #[serde(default = "default_1897")] pub queue_id: String, - #[serde(default = "default_1896")] + #[serde(default = "default_1898")] pub deferred_by: String, - #[serde(default = "default_1897")] + #[serde(default = "default_1899")] pub stage_ms: std::collections::HashMap, - #[serde(default = "default_1898")] + #[serde(default = "default_1900")] pub observation_date_source: String, - #[serde(default = "default_1899")] + #[serde(default = "default_1901")] pub under_operator_policy: bool, - #[serde(default = "default_1900")] + #[serde(default = "default_1902")] pub extract_prompt_keys: Vec, - #[serde(default = "default_1901")] + #[serde(default = "default_1903")] pub llm_cache_hits: Integer, - #[serde(default = "default_1902")] + #[serde(default = "default_1904")] pub llm_cache_misses: Integer, } @@ -42538,22 +42540,22 @@ pub enum StackEntrySection { #[non_exhaustive] pub struct StackEntry { pub section: StackEntrySection, - #[serde(default = "default_1903")] + #[serde(default = "default_1905")] pub memory_key: String, - #[serde(default = "default_1904")] + #[serde(default = "default_1906")] pub memory_type: String, - #[serde(default = "default_1905")] + #[serde(default = "default_1907")] pub value: String, pub tokens: Integer, - #[serde(default = "default_1906")] + #[serde(default = "default_1908")] pub pinned: bool, - #[serde(default = "default_1907")] + #[serde(default = "default_1909")] pub recall_count: Integer, - #[serde(default = "default_1908")] + #[serde(default = "default_1910")] pub last_recalled_at: Option, - #[serde(default = "default_1909")] + #[serde(default = "default_1911")] pub actor: String, - #[serde(default = "default_1910")] + #[serde(default = "default_1912")] pub namespace: String, } @@ -42738,14 +42740,14 @@ impl MemoryStackInput { pub struct MemoryStatus { pub memory_id: String, pub status: String, - #[serde(default = "default_1911")] + #[serde(default = "default_1913")] pub superseded_by: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryStatusesOutput { - #[serde(default = "default_1912")] + #[serde(default = "default_1914")] pub rows: Vec, } @@ -42794,23 +42796,23 @@ impl MemoryStatusesInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySweepExpiredOutput { - #[serde(default = "default_1913")] + #[serde(default = "default_1915")] pub scanned: Integer, - #[serde(default = "default_1914")] + #[serde(default = "default_1916")] pub tombstoned: Integer, - #[serde(default = "default_1915")] + #[serde(default = "default_1917")] pub demoted: Integer, - #[serde(default = "default_1916")] + #[serde(default = "default_1918")] pub anonymized: Integer, - #[serde(default = "default_1917")] + #[serde(default = "default_1919")] pub locked_skipped: Integer, - #[serde(default = "default_1918")] + #[serde(default = "default_1920")] pub moved_skipped: Integer, - #[serde(default = "default_1919")] + #[serde(default = "default_1921")] pub dry_run: bool, - #[serde(default = "default_1920")] + #[serde(default = "default_1922")] pub sample: Vec>, - #[serde(default = "default_1921")] + #[serde(default = "default_1923")] pub failures: Vec, } @@ -42887,10 +42889,10 @@ pub struct MemoryTimelineEntry { pub memory_key: String, pub memory_type: String, pub content_excerpt: String, - #[serde(default = "default_1922")] + #[serde(default = "default_1924")] pub valid_at: Option, pub created_at: String, - #[serde(default = "default_1923")] + #[serde(default = "default_1925")] pub namespace: String, } @@ -42898,7 +42900,7 @@ pub struct MemoryTimelineEntry { #[non_exhaustive] pub struct MemoryTimelineOutput { pub events: Vec, - #[serde(default = "default_1924")] + #[serde(default = "default_1926")] pub total_matching: Integer, } @@ -43090,9 +43092,9 @@ impl MemoryTimelineInput { pub struct MemoryTouchResult { pub memory_key: String, pub touched: bool, - #[serde(default = "default_1927")] + #[serde(default = "default_1929")] pub version: Option, - #[serde(default = "default_1928")] + #[serde(default = "default_1930")] pub expires_at: Option, } @@ -43100,13 +43102,13 @@ pub struct MemoryTouchResult { #[non_exhaustive] pub struct MemoryTouchOutput { pub touched: bool, - #[serde(default = "default_1925")] + #[serde(default = "default_1927")] pub version: Option, - #[serde(default = "default_1926")] + #[serde(default = "default_1928")] pub expires_at: Option, - #[serde(default = "default_1929")] + #[serde(default = "default_1931")] pub results: Vec, - #[serde(default = "default_1930")] + #[serde(default = "default_1932")] pub touched_count: Integer, } @@ -43286,15 +43288,15 @@ impl MemoryTouchInput { #[non_exhaustive] pub struct MemoryUnlockOutput { pub unlocked: bool, - #[serde(default = "default_1931")] + #[serde(default = "default_1933")] pub reason: String, - #[serde(default = "default_1932")] + #[serde(default = "default_1934")] pub memory_id: String, - #[serde(default = "default_1933")] + #[serde(default = "default_1935")] pub version: Option, - #[serde(default = "default_1934")] + #[serde(default = "default_1936")] pub previous_mode: String, - #[serde(default = "default_1935")] + #[serde(default = "default_1937")] pub unlocked_by: String, } @@ -43399,11 +43401,11 @@ impl MemoryUnlockInput { #[non_exhaustive] pub struct MemoryUnpinOutput { pub unpinned: bool, - #[serde(default = "default_1936")] + #[serde(default = "default_1938")] pub reason: String, - #[serde(default = "default_1937")] + #[serde(default = "default_1939")] pub memory_id: String, - #[serde(default = "default_1938")] + #[serde(default = "default_1940")] pub version: Option, } @@ -43497,15 +43499,15 @@ impl MemoryUnpinInput { #[non_exhaustive] pub struct MemoryUpdateCandidate { pub memory_id: String, - #[serde(default = "default_1944")] + #[serde(default = "default_1946")] pub agent: String, - #[serde(default = "default_1945")] + #[serde(default = "default_1947")] pub user_id: String, - #[serde(default = "default_1946")] + #[serde(default = "default_1948")] pub session_id: String, - #[serde(default = "default_1947")] + #[serde(default = "default_1949")] pub version: Integer, - #[serde(default = "default_1948")] + #[serde(default = "default_1950")] pub status: String, } @@ -43513,23 +43515,23 @@ pub struct MemoryUpdateCandidate { #[non_exhaustive] pub struct MemoryUpdateOutput { pub updated: bool, - #[serde(default = "default_1939")] + #[serde(default = "default_1941")] pub memory_id: String, - #[serde(default = "default_1940")] + #[serde(default = "default_1942")] pub memory_key: String, - #[serde(default = "default_1941")] + #[serde(default = "default_1943")] pub new_version: Integer, - #[serde(default = "default_1942")] + #[serde(default = "default_1944")] pub content_sha256: String, - #[serde(default = "default_1943")] + #[serde(default = "default_1945")] pub reason: String, - #[serde(default = "default_1949")] + #[serde(default = "default_1951")] pub candidates: Vec, - #[serde(default = "default_1950")] + #[serde(default = "default_1952")] pub conflict_verdict: String, - #[serde(default = "default_1951")] + #[serde(default = "default_1953")] pub conflict_peers: Integer, - #[serde(default = "default_1952")] + #[serde(default = "default_1954")] pub duplicate_of: String, } @@ -43738,15 +43740,15 @@ impl MemoryUpdateInput { #[non_exhaustive] pub struct MemoryUpdateByIdOutput { pub updated: bool, - #[serde(default = "default_1953")] + #[serde(default = "default_1955")] pub new_version: Integer, - #[serde(default = "default_1954")] + #[serde(default = "default_1956")] pub content_sha256: String, - #[serde(default = "default_1955")] + #[serde(default = "default_1957")] pub conflict_verdict: String, - #[serde(default = "default_1956")] + #[serde(default = "default_1958")] pub conflict_peers: Integer, - #[serde(default = "default_1957")] + #[serde(default = "default_1959")] pub duplicate_of: String, } @@ -43874,23 +43876,23 @@ impl MemoryUpdateByIdInput { #[non_exhaustive] pub struct MemoryVerifyOutput { pub found: bool, - #[serde(default = "default_1958")] + #[serde(default = "default_1960")] pub changed: bool, - #[serde(default = "default_1959")] + #[serde(default = "default_1961")] pub memory_id: String, - #[serde(default = "default_1960")] + #[serde(default = "default_1962")] pub memory_key: String, - #[serde(default = "default_1961")] + #[serde(default = "default_1963")] pub namespace: String, - #[serde(default = "default_1962")] + #[serde(default = "default_1964")] pub verified_by: String, - #[serde(default = "default_1963")] + #[serde(default = "default_1965")] pub verified_at: Option, - #[serde(default = "default_1964")] + #[serde(default = "default_1966")] pub verification: String, - #[serde(default = "default_1965")] + #[serde(default = "default_1967")] pub version: Integer, - #[serde(default = "default_1966")] + #[serde(default = "default_1968")] pub content_sha256: String, } @@ -44095,13 +44097,13 @@ pub struct SchemaFieldOutput { #[serde(rename = "type")] pub r#type: String, pub required: bool, - #[serde(default = "default_1969")] + #[serde(default = "default_1971")] pub identity: bool, - #[serde(default = "default_1970")] + #[serde(default = "default_1972")] pub enum_values: Vec, - #[serde(default = "default_1971")] + #[serde(default = "default_1973")] pub constraints: std::collections::HashMap, - #[serde(default = "default_1972")] + #[serde(default = "default_1974")] pub description: String, } @@ -44110,11 +44112,11 @@ pub struct SchemaFieldOutput { pub struct MemorySchemaSummary { pub schema_id: String, pub name: String, - #[serde(default = "default_1967")] + #[serde(default = "default_1969")] pub description: String, - #[serde(default = "default_1968")] + #[serde(default = "default_1970")] pub status: String, - #[serde(default = "default_1973")] + #[serde(default = "default_1975")] pub fields: Vec, } @@ -44529,13 +44531,13 @@ impl MemorySchemaRegisterInput { #[non_exhaustive] pub struct MentorPlane { pub plane: String, - #[serde(default = "default_1975")] + #[serde(default = "default_1977")] pub calls: Integer, - #[serde(default = "default_1976")] + #[serde(default = "default_1978")] pub available: Option, - #[serde(default = "default_1977")] + #[serde(default = "default_1979")] pub when: String, - #[serde(default = "default_1978")] + #[serde(default = "default_1980")] pub mentored: bool, } @@ -44545,11 +44547,11 @@ pub struct MentorHint { pub code: String, pub severity: String, pub text: String, - #[serde(default = "default_1980")] + #[serde(default = "default_1982")] pub ops: Vec, - #[serde(default = "default_1981")] + #[serde(default = "default_1983")] pub evidence: std::collections::HashMap, - #[serde(default = "default_1982")] + #[serde(default = "default_1984")] pub plane: Option, } @@ -44557,9 +44559,9 @@ pub struct MentorHint { #[non_exhaustive] pub struct MentorAdoption { pub code: String, - #[serde(default = "default_1984")] + #[serde(default = "default_1986")] pub shown_sessions: Integer, - #[serde(default = "default_1985")] + #[serde(default = "default_1987")] pub followed_sessions: Integer, } @@ -44595,7 +44597,7 @@ pub enum UsageRungSource { #[non_exhaustive] pub struct UsageRung { pub rung: UsageRungRung, - #[serde(default = "default_1987")] + #[serde(default = "default_1989")] pub count: Option, pub source: UsageRungSource, pub meaning: String, @@ -44610,27 +44612,27 @@ pub struct MentorBriefOutput { pub window_seconds: Integer, pub computed_at: String, pub sessions: Integer, - #[serde(default = "default_1974")] + #[serde(default = "default_1976")] pub usage: std::collections::HashMap, - #[serde(default = "default_1979")] + #[serde(default = "default_1981")] pub planes: Vec, - #[serde(default = "default_1983")] + #[serde(default = "default_1985")] pub hints: Vec, - #[serde(default = "default_1986")] - pub adoption: Vec, #[serde(default = "default_1988")] + pub adoption: Vec, + #[serde(default = "default_1990")] pub usage_evidence: Vec, - #[serde(default = "default_1989")] + #[serde(default = "default_1991")] pub ledger_from: Option, - #[serde(default = "default_1990")] + #[serde(default = "default_1992")] pub ledger_retention_days: Option, - #[serde(default = "default_1991")] + #[serde(default = "default_1993")] pub agents: Vec, - #[serde(default = "default_1992")] + #[serde(default = "default_1994")] pub agent_defaulted: bool, - #[serde(default = "default_1993")] + #[serde(default = "default_1995")] pub skipped: Vec, - #[serde(default = "default_1994")] + #[serde(default = "default_1996")] pub healthy: bool, } @@ -44779,33 +44781,33 @@ impl MentorGuideInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct NamespaceAuditSummary { - #[serde(default = "default_1995")] + #[serde(default = "default_1997")] pub live_rows: Integer, - #[serde(default = "default_1996")] + #[serde(default = "default_1998")] pub live_bytes: Integer, - #[serde(default = "default_1997")] + #[serde(default = "default_1999")] pub excerpt_bytes: Integer, - #[serde(default = "default_1998")] + #[serde(default = "default_2000")] pub version_rows: Integer, - #[serde(default = "default_1999")] + #[serde(default = "default_2001")] pub version_bytes: Integer, - #[serde(default = "default_2000")] + #[serde(default = "default_2002")] pub unembedded_rows: Integer, - #[serde(default = "default_2001")] + #[serde(default = "default_2003")] pub gets: Integer, - #[serde(default = "default_2002")] + #[serde(default = "default_2004")] pub searches: Integer, - #[serde(default = "default_2003")] + #[serde(default = "default_2005")] pub sets: Integer, - #[serde(default = "default_2004")] + #[serde(default = "default_2006")] pub get_search_ratio: f64, - #[serde(default = "default_2005")] + #[serde(default = "default_2007")] pub inspector_calls: Integer, - #[serde(default = "default_2006")] + #[serde(default = "default_2008")] pub typed_gets: Integer, - #[serde(default = "default_2007")] + #[serde(default = "default_2009")] pub written_in_window: Integer, - #[serde(default = "default_2008")] + #[serde(default = "default_2010")] pub ledger_calls: Integer, } @@ -44837,25 +44839,25 @@ pub struct NamespaceAuditFinding { pub kind: NamespaceAuditFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_2009")] + #[serde(default = "default_2011")] pub window_seconds: Option, - #[serde(default = "default_2010")] + #[serde(default = "default_2012")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_2011")] + #[serde(default = "default_2013")] pub evidence: Vec, - #[serde(default = "default_2012")] + #[serde(default = "default_2014")] pub exceptions: String, - #[serde(default = "default_2013")] + #[serde(default = "default_2015")] pub uncertainty: String, pub code: String, pub severity: NamespaceAuditFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_2014")] + #[serde(default = "default_2016")] pub bytes: Integer, - #[serde(default = "default_2015")] + #[serde(default = "default_2017")] pub samples: Vec>, pub detail: String, pub remedy: String, @@ -44870,7 +44872,7 @@ pub struct NamespaceAuditOutput { pub window_seconds: Integer, pub summary: NamespaceAuditSummary, pub findings: Vec, - #[serde(default = "default_2016")] + #[serde(default = "default_2018")] pub skipped: Vec, pub coverage: ReportCoverage, pub healthy: bool, @@ -44961,29 +44963,29 @@ pub enum BrowseEntryMyStatus { #[non_exhaustive] pub struct BrowseEntry { pub namespace: String, - #[serde(default = "default_2017")] + #[serde(default = "default_2019")] pub kind: String, pub description: String, pub owner_email: String, pub member_count: Integer, - #[serde(default = "default_2018")] + #[serde(default = "default_2020")] pub requires_approval: bool, pub created_at: String, - #[serde(default = "default_2019")] + #[serde(default = "default_2021")] pub join_policy: String, - #[serde(default = "default_2020")] + #[serde(default = "default_2022")] pub visibility: String, - #[serde(default = "default_2021")] + #[serde(default = "default_2023")] pub my_status: BrowseEntryMyStatus, - #[serde(default = "default_2022")] + #[serde(default = "default_2024")] pub my_role: String, - #[serde(default = "default_2023")] + #[serde(default = "default_2025")] pub repo: String, - #[serde(default = "default_2024")] + #[serde(default = "default_2026")] pub branch: String, - #[serde(default = "default_2025")] + #[serde(default = "default_2027")] pub guide_revision: Integer, - #[serde(default = "default_2026")] + #[serde(default = "default_2028")] pub guide_summary: String, } @@ -45087,9 +45089,9 @@ pub enum NamespaceCancelRequestOutputClearedRole { pub struct NamespaceCancelRequestOutput { pub cancelled: bool, pub namespace: String, - #[serde(default = "default_2027")] + #[serde(default = "default_2029")] pub cleared_role: Option, - #[serde(default = "default_2028")] + #[serde(default = "default_2030")] pub cancelled_at: Option, } @@ -45161,7 +45163,7 @@ pub struct NamespaceDeleteOutput { pub deleted: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2029")] + #[serde(default = "default_2031")] pub sources_retired: Vec, } @@ -45230,67 +45232,67 @@ pub enum NamespaceGetOutputClassification { pub struct NamespaceGetOutput { pub found: bool, pub namespace: String, - #[serde(default = "default_2030")] + #[serde(default = "default_2032")] pub kind: Option, - #[serde(default = "default_2031")] + #[serde(default = "default_2033")] pub owner_email: Option, - #[serde(default = "default_2032")] + #[serde(default = "default_2034")] pub description: Option, - #[serde(default = "default_2033")] + #[serde(default = "default_2035")] pub tags: Option>, - #[serde(default = "default_2034")] + #[serde(default = "default_2036")] pub active: Option, - #[serde(default = "default_2035")] + #[serde(default = "default_2037")] pub conversation_logging_enabled: Option, - #[serde(default = "default_2036")] + #[serde(default = "default_2038")] pub capture_generation_io: Option, - #[serde(default = "default_2037")] + #[serde(default = "default_2039")] pub coverage_sweep: Option, - #[serde(default = "default_2038")] + #[serde(default = "default_2040")] pub consolidation_enabled: Option, - #[serde(default = "default_2039")] + #[serde(default = "default_2041")] pub daily_cost_cap_usd: Option, - #[serde(default = "default_2040")] + #[serde(default = "default_2042")] pub daily_user_cost_cap_usd: Option, - #[serde(default = "default_2041")] + #[serde(default = "default_2043")] pub budget_alert_inbox: Option, - #[serde(default = "default_2042")] + #[serde(default = "default_2044")] pub conflict_threshold: Option, - #[serde(default = "default_2043")] + #[serde(default = "default_2045")] pub retention_days: Option, - #[serde(default = "default_2044")] + #[serde(default = "default_2046")] pub warm_days: Option, - #[serde(default = "default_2045")] + #[serde(default = "default_2047")] pub visibility: Option, - #[serde(default = "default_2046")] + #[serde(default = "default_2048")] pub requires_approval: Option, - #[serde(default = "default_2047")] + #[serde(default = "default_2049")] pub join_policy: Option, - #[serde(default = "default_2048")] + #[serde(default = "default_2050")] pub effective_join_policy: Option, - #[serde(default = "default_2049")] + #[serde(default = "default_2051")] pub retrieval_defaults: Option>, - #[serde(default = "default_2050")] + #[serde(default = "default_2052")] pub rerank_endpoint: Option, - #[serde(default = "default_2051")] + #[serde(default = "default_2053")] pub classify_endpoint: Option, - #[serde(default = "default_2052")] + #[serde(default = "default_2054")] pub default_conflict_policy: Option, - #[serde(default = "default_2053")] + #[serde(default = "default_2055")] pub proposal_policy: Option, - #[serde(default = "default_2054")] + #[serde(default = "default_2056")] pub code_change_policy: Option, - #[serde(default = "default_2055")] + #[serde(default = "default_2057")] pub tag_registry: Option>>, - #[serde(default = "default_2056")] + #[serde(default = "default_2058")] pub classification: Option, - #[serde(default = "default_2057")] + #[serde(default = "default_2059")] pub guide_revision: Option, - #[serde(default = "default_2058")] + #[serde(default = "default_2060")] pub guide_summary: Option, - #[serde(default = "default_2059")] + #[serde(default = "default_2061")] pub created_at: Option, - #[serde(default = "default_2060")] + #[serde(default = "default_2062")] pub updated_at: Option, } @@ -45343,17 +45345,17 @@ impl NamespaceGetInput { #[non_exhaustive] pub struct NamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2061")] + #[serde(default = "default_2063")] pub revision: Integer, - #[serde(default = "default_2062")] + #[serde(default = "default_2064")] pub content: String, - #[serde(default = "default_2063")] + #[serde(default = "default_2065")] pub summary: String, - #[serde(default = "default_2064")] + #[serde(default = "default_2066")] pub note: String, - #[serde(default = "default_2065")] + #[serde(default = "default_2067")] pub updated_by: String, - #[serde(default = "default_2066")] + #[serde(default = "default_2068")] pub updated_at: Option, } @@ -45490,17 +45492,17 @@ impl NamespaceGuideHistoryInput { #[non_exhaustive] pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2068")] + #[serde(default = "default_2070")] pub revision: Integer, - #[serde(default = "default_2069")] + #[serde(default = "default_2071")] pub content: String, - #[serde(default = "default_2070")] + #[serde(default = "default_2072")] pub summary: String, - #[serde(default = "default_2071")] + #[serde(default = "default_2073")] pub note: String, - #[serde(default = "default_2072")] + #[serde(default = "default_2074")] pub updated_by: String, - #[serde(default = "default_2073")] + #[serde(default = "default_2075")] pub updated_at: Option, } @@ -45508,10 +45510,10 @@ pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { #[non_exhaustive] pub struct NamespaceGuideSetOutput { pub written: bool, - #[serde(default = "default_2067")] + #[serde(default = "default_2069")] pub conflict: bool, pub revision: Integer, - #[serde(default = "default_2074")] + #[serde(default = "default_2076")] pub current: Option, } @@ -45632,7 +45634,7 @@ pub struct InventorySection { #[serde(deserialize_with = "required_nullable")] pub latest_at: Option, pub complete: bool, - #[serde(default = "default_2075")] + #[serde(default = "default_2077")] pub reason: String, } @@ -45662,10 +45664,10 @@ pub struct InventoryPopulation { pub population: InventoryPopulationPopulation, #[serde(deserialize_with = "required_nullable")] pub total: Option, - #[serde(default = "default_2076")] + #[serde(default = "default_2078")] pub top: Vec, pub complete: bool, - #[serde(default = "default_2077")] + #[serde(default = "default_2079")] pub reason: String, } @@ -45831,11 +45833,11 @@ pub struct NamespaceJoinOutput { pub joined: bool, pub namespace: String, pub role: NamespaceJoinOutputRole, - #[serde(default = "default_2078")] + #[serde(default = "default_2080")] pub status: String, - #[serde(default = "default_2079")] + #[serde(default = "default_2081")] pub requested_role: Option, - #[serde(default = "default_2080")] + #[serde(default = "default_2082")] pub pending_admins: Vec, pub joined_at: String, } @@ -45927,7 +45929,7 @@ impl NamespaceJoinInput { pub struct NamespaceLeaveOutput { pub left: bool, pub namespace: String, - #[serde(default = "default_2081")] + #[serde(default = "default_2083")] pub left_at: Option, } @@ -46004,27 +46006,27 @@ pub enum NamespaceEntryVisibility { #[non_exhaustive] pub struct NamespaceEntry { pub namespace: String, - #[serde(default = "default_2082")] + #[serde(default = "default_2084")] pub kind: String, pub owner_email: String, pub description: String, pub tags: Vec, pub active: bool, - #[serde(default = "default_2083")] + #[serde(default = "default_2085")] pub consolidation_enabled: bool, - #[serde(default = "default_2084")] + #[serde(default = "default_2086")] pub daily_cost_cap_usd: f64, - #[serde(default = "default_2085")] + #[serde(default = "default_2087")] pub daily_user_cost_cap_usd: f64, - #[serde(default = "default_2086")] + #[serde(default = "default_2088")] pub budget_alert_inbox: String, - #[serde(default = "default_2087")] + #[serde(default = "default_2089")] pub conflict_threshold: Option, - #[serde(default = "default_2088")] + #[serde(default = "default_2090")] pub retention_days: Integer, - #[serde(default = "default_2089")] + #[serde(default = "default_2091")] pub warm_days: Integer, - #[serde(default = "default_2090")] + #[serde(default = "default_2092")] pub visibility: NamespaceEntryVisibility, pub created_at: String, pub updated_at: String, @@ -46179,27 +46181,27 @@ pub enum MineEntryVisibility { pub struct MineEntry { pub namespace: String, pub role: String, - #[serde(default = "default_2091")] + #[serde(default = "default_2093")] pub status: String, - #[serde(default = "default_2092")] + #[serde(default = "default_2094")] pub pending_role: Option, - #[serde(default = "default_2093")] + #[serde(default = "default_2095")] pub pending_since: Option, - #[serde(default = "default_2094")] + #[serde(default = "default_2096")] pub pending_admins: Vec, - #[serde(default = "default_2095")] + #[serde(default = "default_2097")] pub visibility: MineEntryVisibility, - #[serde(default = "default_2096")] + #[serde(default = "default_2098")] pub kind: String, - #[serde(default = "default_2097")] + #[serde(default = "default_2099")] pub title: String, - #[serde(default = "default_2098")] + #[serde(default = "default_2100")] pub description: String, - #[serde(default = "default_2099")] + #[serde(default = "default_2101")] pub joined_at: Option, - #[serde(default = "default_2100")] + #[serde(default = "default_2102")] pub is_new: bool, - #[serde(default = "default_2101")] + #[serde(default = "default_2103")] pub inherited: bool, } @@ -46265,7 +46267,7 @@ pub struct OntologyEntry { pub name: String, pub status: String, pub description: String, - #[serde(default = "default_2102")] + #[serde(default = "default_2104")] pub cardinality: String, pub created_by: String, pub updated_at: String, @@ -46458,7 +46460,7 @@ pub struct NamespaceRegisterOutput { pub registered: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2103")] + #[serde(default = "default_2105")] pub visibility: NamespaceRegisterOutputVisibility, } @@ -47538,7 +47540,7 @@ impl NamespaceRegisterOntologyInput { #[non_exhaustive] pub struct NamespaceRestoreOutput { pub restored: bool, - #[serde(default = "default_2104")] + #[serde(default = "default_2106")] pub publication_pending: bool, pub target_namespace: String, pub snapshot_id: String, @@ -48425,15 +48427,15 @@ pub struct NamespaceRollbackOutput { pub version_at: Integer, pub reinstate: Integer, pub remove: Integer, - #[serde(default = "default_2105")] + #[serde(default = "default_2107")] pub skipped_no_head: Integer, - #[serde(default = "default_2106")] + #[serde(default = "default_2108")] pub skipped_already_gone: Integer, - #[serde(default = "default_2107")] + #[serde(default = "default_2109")] pub truncated: bool, - #[serde(default = "default_2108")] + #[serde(default = "default_2110")] pub sample: Vec>, - #[serde(default = "default_2109")] + #[serde(default = "default_2111")] pub applied_at: Option, } @@ -48612,101 +48614,101 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub confidence: f64, pub source_trace: String, pub pinned: bool, - #[serde(default = "default_2110")] + #[serde(default = "default_2112")] pub expires_at: Option, - #[serde(default = "default_2111")] + #[serde(default = "default_2113")] pub entities: Vec, - #[serde(default = "default_2112")] + #[serde(default = "default_2114")] pub version: Integer, - #[serde(default = "default_2113")] + #[serde(default = "default_2115")] pub content_sha256: String, - #[serde(default = "default_2114")] + #[serde(default = "default_2116")] pub actor: String, - #[serde(default = "default_2115")] + #[serde(default = "default_2117")] pub source_class: String, - #[serde(default = "default_2116")] + #[serde(default = "default_2118")] pub source_resource_id: String, - #[serde(default = "default_2117")] + #[serde(default = "default_2119")] pub verified_by: String, - #[serde(default = "default_2118")] + #[serde(default = "default_2120")] pub verified_at: Option, - #[serde(default = "default_2119")] + #[serde(default = "default_2121")] pub verified_sha256: String, - #[serde(default = "default_2120")] + #[serde(default = "default_2122")] pub grounding: String, - #[serde(default = "default_2121")] + #[serde(default = "default_2123")] pub evidence: String, - #[serde(default = "default_2122")] + #[serde(default = "default_2124")] pub tags: Vec, - #[serde(default = "default_2123")] + #[serde(default = "default_2125")] pub valid_at: Option, - #[serde(default = "default_2124")] + #[serde(default = "default_2126")] pub valid_to: Option, - #[serde(default = "default_2125")] + #[serde(default = "default_2127")] pub created_at: Option, - #[serde(default = "default_2126")] + #[serde(default = "default_2128")] pub updated_at: Option, - #[serde(default = "default_2127")] + #[serde(default = "default_2129")] pub value_json: String, - #[serde(default = "default_2128")] + #[serde(default = "default_2130")] pub status: NamespaceSnapshotOutputSnapshotMemoryRowStatus, - #[serde(default = "default_2129")] + #[serde(default = "default_2131")] pub requires_review: Option, - #[serde(default = "default_2130")] + #[serde(default = "default_2132")] pub conflict_with: Vec, - #[serde(default = "default_2131")] + #[serde(default = "default_2133")] pub duplicate_of: String, - #[serde(default = "default_2132")] + #[serde(default = "default_2134")] pub evidence_count: Integer, - #[serde(default = "default_2133")] + #[serde(default = "default_2135")] pub recall_count: Integer, - #[serde(default = "default_2134")] + #[serde(default = "default_2136")] pub last_recalled_at: Option, - #[serde(default = "default_2135")] + #[serde(default = "default_2137")] pub cross_promoted_from_memory_id: String, - #[serde(default = "default_2136")] + #[serde(default = "default_2138")] pub cross_promoted_from_namespace: String, - #[serde(default = "default_2137")] + #[serde(default = "default_2139")] pub superseded_by: String, - #[serde(default = "default_2138")] + #[serde(default = "default_2140")] pub rejection_reason: String, - #[serde(default = "default_2139")] + #[serde(default = "default_2141")] pub temporal_anchor: Option, - #[serde(default = "default_2140")] + #[serde(default = "default_2142")] pub temporal_confidence: f64, - #[serde(default = "default_2141")] + #[serde(default = "default_2143")] pub invalid_at: Option, - #[serde(default = "default_2142")] + #[serde(default = "default_2144")] pub char_limit: Option, - #[serde(default = "default_2143")] + #[serde(default = "default_2145")] pub reinforcement_count: Integer, - #[serde(default = "default_2144")] + #[serde(default = "default_2146")] pub last_reinforced_at: Option, - #[serde(default = "default_2145")] + #[serde(default = "default_2147")] pub mentioned_at: Option, - #[serde(default = "default_2146")] + #[serde(default = "default_2148")] pub sensitivity: String, - #[serde(default = "default_2147")] + #[serde(default = "default_2149")] pub redacted_at: Option, - #[serde(default = "default_2148")] + #[serde(default = "default_2150")] pub redaction_reason: String, - #[serde(default = "default_2149")] + #[serde(default = "default_2151")] pub lock_mode: String, - #[serde(default = "default_2150")] + #[serde(default = "default_2152")] pub lock_reason: String, - #[serde(default = "default_2151")] + #[serde(default = "default_2153")] pub lock_until: Option, - #[serde(default = "default_2152")] + #[serde(default = "default_2154")] pub locked_by: String, - #[serde(default = "default_2153")] + #[serde(default = "default_2155")] pub locked_at: Option, - #[serde(default = "default_2154")] + #[serde(default = "default_2156")] pub on_expire: String, - #[serde(default = "default_2155")] + #[serde(default = "default_2157")] pub expire_reason: String, - #[serde(default = "default_2156")] + #[serde(default = "default_2158")] pub files: Vec, - #[serde(default = "default_2157")] + #[serde(default = "default_2159")] pub concepts: Vec, } @@ -48715,11 +48717,11 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub struct NamespaceSnapshotOutputSnapshotTypeRow { pub memory_type: String, pub retention_days: Integer, - #[serde(default = "default_2158")] + #[serde(default = "default_2160")] pub dedup_threshold: Option, - #[serde(default = "default_2159")] + #[serde(default = "default_2161")] pub hot_quota: Integer, - #[serde(default = "default_2160")] + #[serde(default = "default_2162")] pub conflict_policy: String, } @@ -48934,7 +48936,7 @@ pub struct TaxonomyCommunity { pub community_id: Integer, pub label: String, pub size: Integer, - #[serde(default = "default_2161")] + #[serde(default = "default_2163")] pub top_entities: Vec, } @@ -48945,9 +48947,9 @@ pub struct NamespaceTaxonomyOutput { pub entities: Vec, pub memory_count: Integer, pub memory_types: Vec, - #[serde(default = "default_2162")] + #[serde(default = "default_2164")] pub communities: Vec, - #[serde(default = "default_2163")] + #[serde(default = "default_2165")] pub communities_computed_at: String, } @@ -49047,15 +49049,15 @@ pub enum TuneProposalTarget { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TuneEvidence { - #[serde(default = "default_2165")] + #[serde(default = "default_2167")] pub finding_codes: Vec, - #[serde(default = "default_2166")] + #[serde(default = "default_2168")] pub supporting_count: Integer, - #[serde(default = "default_2167")] + #[serde(default = "default_2169")] pub supporting: Vec, - #[serde(default = "default_2168")] + #[serde(default = "default_2170")] pub counter_count: Option, - #[serde(default = "default_2169")] + #[serde(default = "default_2171")] pub documents: Vec, } @@ -49081,10 +49083,10 @@ pub enum TuneApplyVia { #[non_exhaustive] pub struct TuneApply { pub op: String, - #[serde(default = "default_2173")] + #[serde(default = "default_2175")] pub via: TuneApplyVia, pub args: std::collections::HashMap, - #[serde(default = "default_2174")] + #[serde(default = "default_2176")] pub args_complete: bool, pub required_role: String, pub guard: String, @@ -49103,7 +49105,7 @@ pub struct ChunkStats { pub sections: Integer, pub sections_cut: Integer, pub max_input_tokens: Integer, - #[serde(default = "default_2176")] + #[serde(default = "default_2178")] pub over_input_limit: Option, } @@ -49123,25 +49125,25 @@ pub struct TuneProposal { pub title: String, pub rationale: String, pub current: String, - #[serde(default = "default_2164")] + #[serde(default = "default_2166")] pub current_revision: Option, pub proposed: String, pub evidence: TuneEvidence, - #[serde(default = "default_2170")] + #[serde(default = "default_2172")] pub affected_agents: Vec, - #[serde(default = "default_2171")] + #[serde(default = "default_2173")] pub affected_agents_total: Option, - #[serde(default = "default_2172")] + #[serde(default = "default_2174")] pub effect: TuneProposalEffect, pub historical: String, pub apply: TuneApply, - #[serde(default = "default_2175")] - pub apply_also: Vec, #[serde(default = "default_2177")] + pub apply_also: Vec, + #[serde(default = "default_2179")] pub preview: Option, - #[serde(default = "default_2178")] + #[serde(default = "default_2180")] pub limits: String, - #[serde(default = "default_2179")] + #[serde(default = "default_2181")] pub refs: Vec, } @@ -49149,13 +49151,13 @@ pub struct TuneProposal { #[non_exhaustive] pub struct ChunkingSample { pub cap: Integer, - #[serde(default = "default_2185")] + #[serde(default = "default_2187")] pub population: Option, pub documents: Integer, pub unread: Integer, pub load_cap: Integer, pub embedder_model: String, - #[serde(default = "default_2186")] + #[serde(default = "default_2188")] pub input_token_limit: Option, pub current: ChunkStats, } @@ -49166,21 +49168,21 @@ pub struct NamespaceTuneOutput { pub org: String, pub namespace: String, pub computed_at: String, - #[serde(default = "default_2180")] + #[serde(default = "default_2182")] pub proposals: Vec, - #[serde(default = "default_2181")] + #[serde(default = "default_2183")] pub guide_revision: Option, - #[serde(default = "default_2182")] + #[serde(default = "default_2184")] pub categories_registered: Option, - #[serde(default = "default_2183")] + #[serde(default = "default_2185")] pub extraction_policy: Option, - #[serde(default = "default_2184")] + #[serde(default = "default_2186")] pub extraction_policy_unavailable: String, - #[serde(default = "default_2187")] + #[serde(default = "default_2189")] pub chunking: Option, - #[serde(default = "default_2188")] + #[serde(default = "default_2190")] pub skipped: Vec, - #[serde(default = "default_2189")] + #[serde(default = "default_2191")] pub model_used: bool, } @@ -49301,25 +49303,25 @@ pub struct NamespaceValidateFinding { pub kind: NamespaceValidateFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_2190")] + #[serde(default = "default_2192")] pub window_seconds: Option, - #[serde(default = "default_2191")] + #[serde(default = "default_2193")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_2192")] + #[serde(default = "default_2194")] pub evidence: Vec, - #[serde(default = "default_2193")] + #[serde(default = "default_2195")] pub exceptions: String, - #[serde(default = "default_2194")] + #[serde(default = "default_2196")] pub uncertainty: String, pub check: String, pub severity: NamespaceValidateFindingSeverity, pub count: Integer, - #[serde(default = "default_2195")] + #[serde(default = "default_2197")] pub samples: Vec>, pub detail: String, - #[serde(default = "default_2196")] + #[serde(default = "default_2198")] pub totals: std::collections::HashMap, } @@ -49333,9 +49335,9 @@ pub struct NamespaceValidateOutput { pub warnings: Integer, pub infos: Integer, pub findings: Vec, - #[serde(default = "default_2197")] + #[serde(default = "default_2199")] pub skipped: Vec, - #[serde(default = "default_2198")] + #[serde(default = "default_2200")] pub keys_scoped: Integer, pub coverage: ReportCoverage, pub checked_at: String, @@ -49455,9 +49457,9 @@ impl NamespaceValidateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ObserveCrystallizeOutput { - #[serde(default = "default_2199")] + #[serde(default = "default_2201")] pub enqueued: Integer, - #[serde(default = "default_2200")] + #[serde(default = "default_2202")] pub session_id: String, } @@ -49554,23 +49556,23 @@ impl ObserveCrystallizeInput { #[non_exhaustive] pub struct ObserveRecordOutput { pub memory_key: String, - #[serde(default = "default_2201")] + #[serde(default = "default_2203")] pub memory_id: String, - #[serde(default = "default_2202")] + #[serde(default = "default_2204")] pub kind: String, - #[serde(default = "default_2203")] + #[serde(default = "default_2205")] pub tags: Vec, - #[serde(default = "default_2204")] + #[serde(default = "default_2206")] pub file_paths: Vec, - #[serde(default = "default_2205")] + #[serde(default = "default_2207")] pub content_sha256: String, - #[serde(default = "default_2206")] + #[serde(default = "default_2208")] pub tool_name: String, - #[serde(default = "default_2207")] + #[serde(default = "default_2209")] pub has_error: bool, - #[serde(default = "default_2208")] + #[serde(default = "default_2210")] pub narrative_chars: Integer, - #[serde(default = "default_2209")] + #[serde(default = "default_2211")] pub skipped_reason: String, } @@ -49769,26 +49771,26 @@ pub struct ProjectionFailureRow { pub failure_id: String, pub org: String, pub namespace: String, - #[serde(default = "default_2210")] + #[serde(default = "default_2212")] pub agent: String, pub projection: String, - #[serde(default = "default_2211")] + #[serde(default = "default_2213")] pub source_operation: String, - #[serde(default = "default_2212")] + #[serde(default = "default_2214")] pub source_resource_id: String, - #[serde(default = "default_2213")] + #[serde(default = "default_2215")] pub memory_keys: Vec, - #[serde(default = "default_2214")] + #[serde(default = "default_2216")] pub error_type: String, - #[serde(default = "default_2215")] + #[serde(default = "default_2217")] pub error_message: String, - #[serde(default = "default_2216")] + #[serde(default = "default_2218")] pub payload: std::collections::HashMap, - #[serde(default = "default_2217")] + #[serde(default = "default_2219")] pub status: String, - #[serde(default = "default_2218")] + #[serde(default = "default_2220")] pub created_at: Option, - #[serde(default = "default_2219")] + #[serde(default = "default_2221")] pub resolved_at: Option, } @@ -49942,22 +49944,22 @@ pub struct ProjectionFailureRetryRow { pub projection: String, pub retried: bool, pub resolved: bool, - #[serde(default = "default_2220")] + #[serde(default = "default_2222")] pub abandoned: bool, - #[serde(default = "default_2221")] + #[serde(default = "default_2223")] pub reason: String, - #[serde(default = "default_2222")] + #[serde(default = "default_2224")] pub error: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProjectionFailureRetryOutput { - #[serde(default = "default_2223")] + #[serde(default = "default_2225")] pub results: Vec, pub retried: Integer, pub resolved: Integer, - #[serde(default = "default_2224")] + #[serde(default = "default_2226")] pub abandoned: Integer, } @@ -50039,15 +50041,15 @@ impl ProjectionFailureRetryInput { pub struct OrgModelCallsOutput { pub org: String, pub enabled: bool, - #[serde(default = "default_2225")] + #[serde(default = "default_2227")] pub reason: String, - #[serde(default = "default_2226")] + #[serde(default = "default_2228")] pub updated_by: String, - #[serde(default = "default_2227")] + #[serde(default = "default_2229")] pub updated_at: Option, - #[serde(default = "default_2228")] + #[serde(default = "default_2230")] pub locked: bool, - #[serde(default = "default_2229")] + #[serde(default = "default_2231")] pub locked_by: String, } @@ -50386,7 +50388,7 @@ impl PolicyDecisionsInput { #[non_exhaustive] pub struct PolicyDeleteOutput { pub removed: bool, - #[serde(default = "default_2230")] + #[serde(default = "default_2232")] pub widening: bool, } @@ -50452,12 +50454,12 @@ pub struct PolicyRuleOut { pub condition: std::collections::HashMap, pub description: String, pub enabled: bool, - #[serde(default = "default_2231")] + #[serde(default = "default_2233")] pub mode: String, pub created_by: String, - #[serde(default = "default_2232")] + #[serde(default = "default_2234")] pub created_at: Option, - #[serde(default = "default_2233")] + #[serde(default = "default_2235")] pub updated_at: Option, } @@ -50529,9 +50531,9 @@ impl PolicyListInput { pub struct PolicySetOutput { pub rule: PolicyRuleOut, pub leaf_count: Integer, - #[serde(default = "default_2234")] + #[serde(default = "default_2236")] pub widening: bool, - #[serde(default = "default_2235")] + #[serde(default = "default_2237")] pub change: Vec, } @@ -50801,37 +50803,37 @@ pub struct ProcedureEvolveOutput { pub revision: Integer, pub changed: bool, pub template: bool, - #[serde(default = "default_2236")] + #[serde(default = "default_2238")] pub folded_runs: Integer, - #[serde(default = "default_2237")] + #[serde(default = "default_2239")] pub gate: ProcedureEvolveOutputGate, - #[serde(default = "default_2238")] + #[serde(default = "default_2240")] pub gate_mode: String, - #[serde(default = "default_2239")] + #[serde(default = "default_2241")] pub gate_llr: f64, - #[serde(default = "default_2240")] + #[serde(default = "default_2242")] pub gate_before: std::collections::HashMap, - #[serde(default = "default_2241")] + #[serde(default = "default_2243")] pub gate_after: std::collections::HashMap, - #[serde(default = "default_2242")] + #[serde(default = "default_2244")] pub gate_cost_before: std::collections::HashMap, - #[serde(default = "default_2243")] + #[serde(default = "default_2245")] pub gate_cost_after: std::collections::HashMap, - #[serde(default = "default_2244")] + #[serde(default = "default_2246")] pub gate_reason: String, - #[serde(default = "default_2245")] + #[serde(default = "default_2247")] pub dead_end_steps: Vec, - #[serde(default = "default_2246")] + #[serde(default = "default_2248")] pub fail_prone_steps: Vec, - #[serde(default = "default_2247")] + #[serde(default = "default_2249")] pub fail_prone_transitions: Vec, - #[serde(default = "default_2248")] + #[serde(default = "default_2250")] pub run_stats: std::collections::HashMap, - #[serde(default = "default_2249")] + #[serde(default = "default_2251")] pub strikes: Integer, - #[serde(default = "default_2250")] + #[serde(default = "default_2252")] pub quarantined: bool, - #[serde(default = "default_2251")] + #[serde(default = "default_2253")] pub retention: std::collections::HashMap, } @@ -51054,9 +51056,9 @@ pub struct ProcedureForkOutput { pub memory_key: String, pub version: Integer, pub name: String, - #[serde(default = "default_2252")] + #[serde(default = "default_2254")] pub steps: Vec, - #[serde(default = "default_2253")] + #[serde(default = "default_2255")] pub forked_from: std::collections::HashMap, } @@ -51316,32 +51318,32 @@ pub enum ProcedureLocateOutputStatus { #[non_exhaustive] pub struct ProcedureLocateOutput { pub memory_key: String, - #[serde(default = "default_2254")] + #[serde(default = "default_2256")] pub name: String, - #[serde(default = "default_2255")] + #[serde(default = "default_2257")] pub status: ProcedureLocateOutputStatus, pub matched: bool, - #[serde(default = "default_2256")] + #[serde(default = "default_2258")] pub active: Option>, - #[serde(default = "default_2257")] + #[serde(default = "default_2259")] pub hops: Vec>>, - #[serde(default = "default_2258")] + #[serde(default = "default_2260")] pub entry_nodes: Vec, - #[serde(default = "default_2259")] + #[serde(default = "default_2261")] pub dominant_next: Vec, - #[serde(default = "default_2260")] + #[serde(default = "default_2262")] pub revisits: std::collections::HashMap, - #[serde(default = "default_2261")] + #[serde(default = "default_2263")] pub looping: bool, - #[serde(default = "default_2262")] + #[serde(default = "default_2264")] pub exits: Vec, - #[serde(default = "default_2263")] + #[serde(default = "default_2265")] pub failure_notes: Vec>, - #[serde(default = "default_2264")] + #[serde(default = "default_2266")] pub rendered: String, - #[serde(default = "default_2265")] + #[serde(default = "default_2267")] pub run_stats: std::collections::HashMap, - #[serde(default = "default_2266")] + #[serde(default = "default_2268")] pub for_agent: std::collections::HashMap, } @@ -51496,43 +51498,43 @@ pub struct ProcedureMatch { pub name: String, pub situation: String, pub steps: Vec, - #[serde(default = "default_2267")] + #[serde(default = "default_2269")] pub tags: Vec, - #[serde(default = "default_2268")] + #[serde(default = "default_2270")] pub metadata: std::collections::HashMap, pub similarity: f64, pub memory_key: String, pub namespace: String, - #[serde(default = "default_2269")] + #[serde(default = "default_2271")] pub graph: Option>, - #[serde(default = "default_2270")] + #[serde(default = "default_2272")] pub template: bool, - #[serde(default = "default_2271")] + #[serde(default = "default_2273")] pub run_stats: std::collections::HashMap, - #[serde(default = "default_2272")] + #[serde(default = "default_2274")] pub status: ProcedureMatchStatus, - #[serde(default = "default_2273")] + #[serde(default = "default_2275")] pub quarantined: Option>, - #[serde(default = "default_2274")] + #[serde(default = "default_2276")] pub fail_prone_steps: Vec, - #[serde(default = "default_2275")] + #[serde(default = "default_2277")] pub revision: Integer, - #[serde(default = "default_2276")] + #[serde(default = "default_2278")] pub rejected_revisions: Vec>, - #[serde(default = "default_2277")] + #[serde(default = "default_2279")] pub tool_overlap: f64, - #[serde(default = "default_2278")] + #[serde(default = "default_2280")] pub score: f64, - #[serde(default = "default_2279")] + #[serde(default = "default_2281")] pub utility: f64, - #[serde(default = "default_2280")] + #[serde(default = "default_2282")] pub goal_similarity: Option, - #[serde(default = "default_2281")] + #[serde(default = "default_2283")] pub for_agent: std::collections::HashMap, - #[serde(default = "default_2282")] + #[serde(default = "default_2284")] pub run_stats_by_agent: std::collections::HashMap>, - #[serde(default = "default_2283")] + #[serde(default = "default_2285")] pub actor: String, } @@ -51540,11 +51542,11 @@ pub struct ProcedureMatch { #[non_exhaustive] pub struct ProcedureMatchOutput { pub matches: Vec, - #[serde(default = "default_2284")] + #[serde(default = "default_2286")] pub matched: Integer, - #[serde(default = "default_2285")] + #[serde(default = "default_2287")] pub procedure_key: String, - #[serde(default = "default_2286")] + #[serde(default = "default_2288")] pub score: f64, } @@ -51936,9 +51938,9 @@ pub struct ProcedureReviseOutput { pub revision: Integer, pub prior_revision: Integer, pub digest: String, - #[serde(default = "default_2287")] + #[serde(default = "default_2289")] pub steps: Vec, - #[serde(default = "default_2288")] + #[serde(default = "default_2290")] pub outcome: ProcedureReviseOutputOutcome, } @@ -52050,14 +52052,14 @@ pub struct ProfileActivityEntry { pub agent: String, pub last_activated_at: String, pub event_count: Integer, - #[serde(default = "default_2289")] + #[serde(default = "default_2291")] pub operations: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProfileActivityOutput { - #[serde(default = "default_2290")] + #[serde(default = "default_2292")] pub entries: Vec, } @@ -52165,17 +52167,17 @@ impl ProfileActivityInput { #[non_exhaustive] pub struct ProfileMutationOutput { pub version: Integer, - #[serde(default = "default_2291")] + #[serde(default = "default_2293")] pub memory_id: String, - #[serde(default = "default_2292")] + #[serde(default = "default_2294")] pub content_sha256: String, - #[serde(default = "default_2293")] + #[serde(default = "default_2295")] pub namespace: String, - #[serde(default = "default_2294")] + #[serde(default = "default_2296")] pub label: String, - #[serde(default = "default_2295")] + #[serde(default = "default_2297")] pub char_limit: Option, - #[serde(default = "default_2296")] + #[serde(default = "default_2298")] pub value_length: Integer, } @@ -52284,7 +52286,7 @@ pub struct ProfileRenderOutput { pub rendered: String, pub section_count: Integer, pub total_chars: Integer, - #[serde(default = "default_2297")] + #[serde(default = "default_2299")] pub labels: Vec, } @@ -52669,17 +52671,17 @@ pub enum ProfileStructuredOutputStatus { #[non_exhaustive] pub struct ProfileStructuredOutput { pub status: ProfileStructuredOutputStatus, - #[serde(default = "default_2298")] + #[serde(default = "default_2300")] pub profile: std::collections::HashMap, - #[serde(default = "default_2299")] + #[serde(default = "default_2301")] pub built_at: Option, - #[serde(default = "default_2300")] + #[serde(default = "default_2302")] pub memory_id: String, - #[serde(default = "default_2301")] + #[serde(default = "default_2303")] pub version: Integer, - #[serde(default = "default_2302")] + #[serde(default = "default_2304")] pub version_text: String, - #[serde(default = "default_2303")] + #[serde(default = "default_2305")] pub schema_sha256: String, } @@ -52796,13 +52798,13 @@ impl ProfileStructuredInput { #[non_exhaustive] pub struct ProfileSchemaOutput { pub found: bool, - #[serde(default = "default_2304")] + #[serde(default = "default_2306")] pub json_schema: std::collections::HashMap, - #[serde(default = "default_2305")] + #[serde(default = "default_2307")] pub schema_sha256: String, - #[serde(default = "default_2306")] + #[serde(default = "default_2308")] pub updated_by: String, - #[serde(default = "default_2307")] + #[serde(default = "default_2309")] pub updated_at: Option, } @@ -52955,10 +52957,10 @@ pub enum RunBeginOutputStatus { #[non_exhaustive] pub struct RunBeginOutput { pub run_id: String, - #[serde(default = "default_2308")] + #[serde(default = "default_2310")] pub status: RunBeginOutputStatus, pub started_at: String, - #[serde(default = "default_2309")] + #[serde(default = "default_2311")] pub next: String, } @@ -53166,29 +53168,29 @@ pub struct RunCompleteOutput { pub run_id: String, pub status: RunCompleteOutputStatus, pub duration_ms: Integer, - #[serde(default = "default_2310")] + #[serde(default = "default_2312")] pub used_applied: Integer, - #[serde(default = "default_2311")] + #[serde(default = "default_2313")] pub evidence_applied: Integer, - #[serde(default = "default_2312")] + #[serde(default = "default_2314")] pub harm_applied: Integer, - #[serde(default = "default_2313")] + #[serde(default = "default_2315")] pub memories_written: Vec, - #[serde(default = "default_2314")] + #[serde(default = "default_2316")] pub recalled: Integer, - #[serde(default = "default_2315")] + #[serde(default = "default_2317")] pub observations: Integer, - #[serde(default = "default_2316")] + #[serde(default = "default_2318")] pub procedure_runs_recorded: Integer, - #[serde(default = "default_2317")] + #[serde(default = "default_2319")] pub reflection_key: String, - #[serde(default = "default_2318")] + #[serde(default = "default_2320")] pub retain: String, - #[serde(default = "default_2319")] + #[serde(default = "default_2321")] pub retained: Integer, - #[serde(default = "default_2320")] + #[serde(default = "default_2322")] pub demoted: Integer, - #[serde(default = "default_2321")] + #[serde(default = "default_2323")] pub expiring: Integer, } @@ -53709,25 +53711,25 @@ pub enum RunGetOutputOverBudgetItem { #[non_exhaustive] pub struct RunGetOutput { pub found: bool, - #[serde(default = "default_2322")] + #[serde(default = "default_2324")] pub run: Option, - #[serde(default = "default_2323")] + #[serde(default = "default_2325")] pub recalled: Integer, - #[serde(default = "default_2324")] + #[serde(default = "default_2326")] pub recalled_keys: Vec, - #[serde(default = "default_2325")] + #[serde(default = "default_2327")] pub memories_written: Vec, - #[serde(default = "default_2326")] + #[serde(default = "default_2328")] pub observations: Integer, - #[serde(default = "default_2327")] + #[serde(default = "default_2329")] pub turns: Integer, - #[serde(default = "default_2328")] + #[serde(default = "default_2330")] pub unpriced_turns: Integer, - #[serde(default = "default_2329")] + #[serde(default = "default_2331")] pub cost_usd: f64, - #[serde(default = "default_2330")] + #[serde(default = "default_2332")] pub elapsed_seconds: Integer, - #[serde(default = "default_2331")] + #[serde(default = "default_2333")] pub over_budget: Vec, } @@ -53794,17 +53796,17 @@ pub struct RunGradeProposal { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct RunGradeOutput { - #[serde(default = "default_2332")] + #[serde(default = "default_2334")] pub graded: Integer, - #[serde(default = "default_2333")] + #[serde(default = "default_2335")] pub run_ids: Vec, - #[serde(default = "default_2334")] + #[serde(default = "default_2336")] pub skipped_active: Integer, - #[serde(default = "default_2335")] + #[serde(default = "default_2337")] pub unchanged: Integer, - #[serde(default = "default_2336")] + #[serde(default = "default_2338")] pub memories_counted: Integer, - #[serde(default = "default_2337")] + #[serde(default = "default_2339")] pub proposals_decided: Vec, } @@ -53919,7 +53921,7 @@ impl RunGradeInput { #[non_exhaustive] pub struct RunListOutput { pub runs: Vec, - #[serde(default = "default_2338")] + #[serde(default = "default_2340")] pub total: Option, } @@ -54196,39 +54198,39 @@ pub struct LiveSearchHit { pub title: String, pub url: String, pub provider: LiveSearchHitProvider, - #[serde(default = "default_2341")] + #[serde(default = "default_2343")] pub content: String, - #[serde(default = "default_2342")] + #[serde(default = "default_2344")] pub live: LiveSearchHitLive, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct LiveSearchResults { - #[serde(default = "default_2340")] + #[serde(default = "default_2342")] pub live: LiveSearchResultsLive, - #[serde(default = "default_2343")] + #[serde(default = "default_2345")] pub results: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SearchOutput { - #[serde(default = "default_2339")] + #[serde(default = "default_2341")] pub tracker: Option>, - #[serde(default = "default_2344")] + #[serde(default = "default_2346")] pub live: Option, - #[serde(default = "default_2345")] + #[serde(default = "default_2347")] pub memory: std::collections::HashMap, - #[serde(default = "default_2346")] + #[serde(default = "default_2348")] pub knowledge: std::collections::HashMap, - #[serde(default = "default_2347")] + #[serde(default = "default_2349")] pub profile: std::collections::HashMap, - #[serde(default = "default_2348")] + #[serde(default = "default_2350")] pub conversations: std::collections::HashMap, - #[serde(default = "default_2349")] + #[serde(default = "default_2351")] pub withheld: Option>, - #[serde(default = "default_2350")] + #[serde(default = "default_2352")] pub namespaces_skipped: Vec, } @@ -54421,7 +54423,7 @@ impl SearchInput { pub struct SessionBriefDeleteOutput { pub deleted: bool, pub brief_key: String, - #[serde(default = "default_2351")] + #[serde(default = "default_2353")] pub revision: Integer, } @@ -54514,67 +54516,67 @@ impl SessionBriefDeleteInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDecision { - #[serde(default = "default_2360")] + #[serde(default = "default_2362")] pub what: String, - #[serde(default = "default_2361")] + #[serde(default = "default_2363")] pub why: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDeadEnd { - #[serde(default = "default_2363")] + #[serde(default = "default_2365")] pub tried: String, - #[serde(default = "default_2364")] + #[serde(default = "default_2366")] pub why_not: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDone { - #[serde(default = "default_2366")] + #[serde(default = "default_2368")] pub what: String, - #[serde(rename = "ref", default = "default_2367")] + #[serde(rename = "ref", default = "default_2369")] pub r#ref: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefFile { - #[serde(default = "default_2371")] + #[serde(default = "default_2373")] pub path: String, - #[serde(default = "default_2372")] + #[serde(default = "default_2374")] pub role: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefSections { - #[serde(default = "default_2357")] + #[serde(default = "default_2359")] pub goal: String, - #[serde(default = "default_2358")] + #[serde(default = "default_2360")] pub status: String, - #[serde(default = "default_2359")] + #[serde(default = "default_2361")] pub verification: String, - #[serde(default = "default_2362")] + #[serde(default = "default_2364")] pub decisions: Vec, - #[serde(default = "default_2365")] + #[serde(default = "default_2367")] pub dead_ends: Vec, - #[serde(default = "default_2368")] + #[serde(default = "default_2370")] pub done: Vec, - #[serde(default = "default_2369")] + #[serde(default = "default_2371")] pub open_questions: Vec, - #[serde(default = "default_2370")] + #[serde(default = "default_2372")] pub next_steps: Vec, - #[serde(default = "default_2373")] + #[serde(default = "default_2375")] pub files: Vec, - #[serde(default = "default_2374")] + #[serde(default = "default_2376")] pub constraints: Vec, - #[serde(default = "default_2375")] + #[serde(default = "default_2377")] pub pointers: Vec, - #[serde(default = "default_2376")] + #[serde(default = "default_2378")] pub client_summary: String, - #[serde(default = "default_2377")] + #[serde(default = "default_2379")] pub client_summary_at: String, } @@ -54582,45 +54584,45 @@ pub struct BriefSections { #[non_exhaustive] pub struct SessionBriefGetOutput { pub found: bool, - #[serde(default = "default_2352")] + #[serde(default = "default_2354")] pub brief_key: String, - #[serde(default = "default_2353")] + #[serde(default = "default_2355")] pub revision: Integer, - #[serde(default = "default_2354")] + #[serde(default = "default_2356")] pub snapshot_id: String, - #[serde(default = "default_2355")] + #[serde(default = "default_2357")] pub snapshot_key: String, - #[serde(default = "default_2356")] + #[serde(default = "default_2358")] pub rendered: String, - #[serde(default = "default_2378")] + #[serde(default = "default_2380")] pub sections: Option, - #[serde(default = "default_2379")] + #[serde(default = "default_2381")] pub project: String, - #[serde(default = "default_2380")] + #[serde(default = "default_2382")] pub branch: String, - #[serde(default = "default_2381")] + #[serde(default = "default_2383")] pub head_sha: String, - #[serde(default = "default_2382")] + #[serde(default = "default_2384")] pub author: String, - #[serde(default = "default_2383")] + #[serde(default = "default_2385")] pub trigger: String, - #[serde(default = "default_2384")] + #[serde(default = "default_2386")] pub actor: String, - #[serde(default = "default_2385")] + #[serde(default = "default_2387")] pub source_sessions: Vec, - #[serde(default = "default_2386")] + #[serde(default = "default_2388")] pub updated_at: Option, - #[serde(default = "default_2387")] + #[serde(default = "default_2389")] pub age_seconds: Integer, - #[serde(default = "default_2388")] + #[serde(default = "default_2390")] pub revisions: Integer, - #[serde(default = "default_2389")] + #[serde(default = "default_2391")] pub events_total: Integer, - #[serde(default = "default_2390")] + #[serde(default = "default_2392")] pub source_chars: Integer, - #[serde(default = "default_2391")] + #[serde(default = "default_2393")] pub brief_chars: Integer, - #[serde(default = "default_2392")] + #[serde(default = "default_2394")] pub deleted: bool, } @@ -54795,34 +54797,34 @@ impl SessionBriefGetInput { pub struct SessionBriefSummary { pub brief_key: String, pub revision: Integer, - #[serde(default = "default_2393")] + #[serde(default = "default_2395")] pub project: String, - #[serde(default = "default_2394")] + #[serde(default = "default_2396")] pub branch: String, - #[serde(default = "default_2395")] + #[serde(default = "default_2397")] pub agent: String, - #[serde(default = "default_2396")] + #[serde(default = "default_2398")] pub goal: String, - #[serde(default = "default_2397")] + #[serde(default = "default_2399")] pub status: String, - #[serde(default = "default_2398")] + #[serde(default = "default_2400")] pub author: String, - #[serde(default = "default_2399")] + #[serde(default = "default_2401")] pub actor: String, - #[serde(default = "default_2400")] + #[serde(default = "default_2402")] pub updated_at: Option, - #[serde(default = "default_2401")] + #[serde(default = "default_2403")] pub age_seconds: Integer, - #[serde(default = "default_2402")] + #[serde(default = "default_2404")] pub brief_chars: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefListOutput { - #[serde(default = "default_2403")] + #[serde(default = "default_2405")] pub briefs: Vec, - #[serde(default = "default_2404")] + #[serde(default = "default_2406")] pub rendered: String, } @@ -54962,25 +54964,25 @@ impl SessionBriefListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefStats { - #[serde(default = "default_2408")] + #[serde(default = "default_2410")] pub events_in: Integer, - #[serde(default = "default_2409")] + #[serde(default = "default_2411")] pub windows: Integer, - #[serde(default = "default_2410")] + #[serde(default = "default_2412")] pub events_total: Integer, - #[serde(default = "default_2411")] + #[serde(default = "default_2413")] pub source_chars: Integer, - #[serde(default = "default_2412")] + #[serde(default = "default_2414")] pub brief_chars: Integer, - #[serde(default = "default_2413")] + #[serde(default = "default_2415")] pub compression_ratio: f64, - #[serde(default = "default_2414")] + #[serde(default = "default_2416")] pub dropped_ungrounded: Integer, - #[serde(default = "default_2415")] + #[serde(default = "default_2417")] pub tokens_in: Integer, - #[serde(default = "default_2416")] + #[serde(default = "default_2418")] pub tokens_out: Integer, - #[serde(default = "default_2417")] + #[serde(default = "default_2419")] pub llm_model: String, } @@ -54990,13 +54992,13 @@ pub struct SessionBriefSaveOutput { pub brief_key: String, pub revision: Integer, pub changed: bool, - #[serde(default = "default_2405")] + #[serde(default = "default_2407")] pub author: String, - #[serde(default = "default_2406")] + #[serde(default = "default_2408")] pub reason: String, - #[serde(default = "default_2407")] + #[serde(default = "default_2409")] pub rendered: String, - #[serde(default = "default_2418")] + #[serde(default = "default_2420")] pub stats: SessionBriefStats, } @@ -55741,39 +55743,39 @@ pub struct TaskPayload { pub priority: Integer, pub disclosure: TaskPayloadDisclosure, pub status: TaskPayloadStatus, - #[serde(default = "default_2419")] + #[serde(default = "default_2421")] pub reason: String, - #[serde(default = "default_2420")] + #[serde(default = "default_2422")] pub blocked_on: String, - #[serde(default = "default_2421")] + #[serde(default = "default_2423")] pub not_before: Option, - #[serde(default = "default_2422")] + #[serde(default = "default_2424")] pub resume_at: Option, - #[serde(default = "default_2423")] + #[serde(default = "default_2425")] pub deadline: Option, - #[serde(default = "default_2424")] + #[serde(default = "default_2426")] pub defer_count: Integer, pub title: String, - #[serde(default = "default_2425")] + #[serde(default = "default_2427")] pub brief: std::collections::HashMap, pub from_agent: String, - #[serde(default = "default_2426")] + #[serde(default = "default_2428")] pub from_subject: String, - #[serde(default = "default_2427")] + #[serde(default = "default_2429")] pub origin: String, - #[serde(default = "default_2428")] + #[serde(default = "default_2430")] pub parent_task_id: Option, - #[serde(default = "default_2429")] + #[serde(default = "default_2431")] pub owner: String, - #[serde(default = "default_2430")] + #[serde(default = "default_2432")] pub attempt: Integer, - #[serde(default = "default_2431")] + #[serde(default = "default_2433")] pub fence: Integer, - #[serde(default = "default_2432")] + #[serde(default = "default_2434")] pub lease_until: Option, - #[serde(default = "default_2433")] + #[serde(default = "default_2435")] pub outcome: std::collections::HashMap, - #[serde(default = "default_2434")] + #[serde(default = "default_2436")] pub last_actor: String, pub created_at: String, pub updated_at: String, @@ -55784,7 +55786,7 @@ pub struct TaskPayload { #[non_exhaustive] pub struct TaskOutput { pub task: TaskPayload, - #[serde(default = "default_2435")] + #[serde(default = "default_2437")] pub seq: Integer, } @@ -56185,10 +56187,10 @@ impl TaskCompleteInput { pub struct InboxCount { pub inbox: String, pub status: String, - #[serde(default = "default_2436")] + #[serde(default = "default_2438")] pub blocked_on: String, pub n: Integer, - #[serde(default = "default_2437")] + #[serde(default = "default_2439")] pub oldest: Option, } @@ -56275,7 +56277,7 @@ pub struct TaskCreateOutput { pub task: TaskPayload, pub created: bool, pub seq: Integer, - #[serde(default = "default_2438")] + #[serde(default = "default_2440")] pub next: String, } @@ -56614,7 +56616,7 @@ impl TaskFailInput { #[non_exhaustive] pub struct TaskGetOutput { pub found: bool, - #[serde(default = "default_2439")] + #[serde(default = "default_2441")] pub task: Option, } @@ -56748,23 +56750,23 @@ pub struct TaskEventPayload { pub task_id: String, pub inbox: String, pub event: String, - #[serde(default = "default_2440")] + #[serde(default = "default_2442")] pub from_status: String, - #[serde(default = "default_2441")] + #[serde(default = "default_2443")] pub to_status: String, - #[serde(default = "default_2442")] + #[serde(default = "default_2444")] pub actor: String, - #[serde(default = "default_2443")] + #[serde(default = "default_2445")] pub agent: String, - #[serde(default = "default_2444")] + #[serde(default = "default_2446")] pub fence: Integer, - #[serde(default = "default_2445")] + #[serde(default = "default_2447")] pub version: Integer, - #[serde(default = "default_2446")] + #[serde(default = "default_2448")] pub reason: String, - #[serde(default = "default_2447")] + #[serde(default = "default_2449")] pub patch: std::collections::HashMap, - #[serde(default = "default_2448")] + #[serde(default = "default_2450")] pub note: String, pub ts: String, } @@ -57104,7 +57106,7 @@ pub struct TaskPullOutput { pub tasks: Vec, pub waited_ms: Integer, pub backend: String, - #[serde(default = "default_2449")] + #[serde(default = "default_2451")] pub note: String, } @@ -57500,7 +57502,7 @@ impl TaskUnblockInput { pub struct TaskUpdateOutput { pub task: TaskPayload, pub seq: Integer, - #[serde(default = "default_2450")] + #[serde(default = "default_2452")] pub conflict: bool, } @@ -57863,19 +57865,19 @@ impl TaskReasonInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerAnswerOutput { - #[serde(default = "default_2451")] + #[serde(default = "default_2453")] pub intent: String, - #[serde(default = "default_2452")] + #[serde(default = "default_2454")] pub anchors: std::collections::HashMap, - #[serde(default = "default_2453")] + #[serde(default = "default_2455")] pub sections: Vec>, - #[serde(default = "default_2454")] + #[serde(default = "default_2456")] pub searched: Vec, - #[serde(default = "default_2455")] + #[serde(default = "default_2457")] pub lines: Vec, - #[serde(default = "default_2456")] + #[serde(default = "default_2458")] pub restricted: bool, - #[serde(default = "default_2457")] + #[serde(default = "default_2459")] pub verdict: String, } @@ -57971,17 +57973,17 @@ impl TrackerAnswerInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerBindingOutput { - #[serde(default = "default_2458")] + #[serde(default = "default_2460")] pub tracker_namespace: String, - #[serde(default = "default_2459")] + #[serde(default = "default_2461")] pub tracker_namespaces: Vec, - #[serde(default = "default_2460")] + #[serde(default = "default_2462")] pub restricted: bool, - #[serde(default = "default_2461")] + #[serde(default = "default_2463")] pub kind: String, - #[serde(default = "default_2462")] + #[serde(default = "default_2464")] pub authorized: bool, - #[serde(default = "default_2463")] + #[serde(default = "default_2465")] pub templates: Vec, } @@ -58034,13 +58036,13 @@ impl TrackerBindingInput { #[non_exhaustive] pub struct TrackerComponentOutput { pub component: String, - #[serde(default = "default_2464")] + #[serde(default = "default_2466")] pub risk: std::collections::HashMap, - #[serde(default = "default_2465")] + #[serde(default = "default_2467")] pub open_issues: Vec>, - #[serde(default = "default_2466")] + #[serde(default = "default_2468")] pub known: bool, - #[serde(default = "default_2467")] + #[serde(default = "default_2469")] pub tracker_unavailable: bool, } @@ -58101,9 +58103,9 @@ impl TrackerComponentInput { #[non_exhaustive] pub struct TrackerContractOutput { pub database: String, - #[serde(default = "default_2468")] + #[serde(default = "default_2470")] pub tables: Vec>, - #[serde(default = "default_2469")] + #[serde(default = "default_2471")] pub templates: std::collections::HashMap, } @@ -58156,66 +58158,66 @@ impl TrackerContractInput { #[non_exhaustive] pub struct TrackerLegStatus { pub name: String, - #[serde(default = "default_2480")] + #[serde(default = "default_2482")] pub status: String, - #[serde(default = "default_2481")] + #[serde(default = "default_2483")] pub reason: String, - #[serde(default = "default_2482")] + #[serde(default = "default_2484")] pub message: String, - #[serde(default = "default_2483")] + #[serde(default = "default_2485")] pub retried: bool, - #[serde(default = "default_2484")] + #[serde(default = "default_2486")] pub ms: Integer, - #[serde(default = "default_2485")] + #[serde(default = "default_2487")] pub cause: String, - #[serde(default = "default_2486")] + #[serde(default = "default_2488")] pub namespace: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerDuplicateCheckOutput { - #[serde(default = "default_2470")] + #[serde(default = "default_2472")] pub verdict: String, - #[serde(default = "default_2471")] + #[serde(default = "default_2473")] pub items: Vec>, - #[serde(default = "default_2472")] + #[serde(default = "default_2474")] pub undecided: bool, - #[serde(default = "default_2473")] + #[serde(default = "default_2475")] pub epistemic: String, - #[serde(default = "default_2474")] + #[serde(default = "default_2476")] pub thresholds: std::collections::HashMap, - #[serde(default = "default_2475")] + #[serde(default = "default_2477")] pub judge: std::collections::HashMap, - #[serde(default = "default_2476")] + #[serde(default = "default_2478")] pub fit_at: String, - #[serde(default = "default_2477")] + #[serde(default = "default_2479")] pub fit: std::collections::HashMap, - #[serde(default = "default_2478")] + #[serde(default = "default_2480")] pub query: std::collections::HashMap, - #[serde(default = "default_2479")] + #[serde(default = "default_2481")] pub legs: std::collections::HashMap, - #[serde(default = "default_2487")] + #[serde(default = "default_2489")] pub leg_status: Vec, - #[serde(default = "default_2488")] + #[serde(default = "default_2490")] pub tracker_unavailable: bool, - #[serde(default = "default_2489")] + #[serde(default = "default_2491")] pub namespaces: Vec, - #[serde(default = "default_2490")] + #[serde(default = "default_2492")] pub by_namespace: std::collections::HashMap>, - #[serde(default = "default_2491")] + #[serde(default = "default_2493")] pub closest: Vec>, - #[serde(default = "default_2492")] + #[serde(default = "default_2494")] pub needs: Vec>, - #[serde(default = "default_2493")] + #[serde(default = "default_2495")] pub closest_note: String, - #[serde(default = "default_2494")] + #[serde(default = "default_2496")] pub nearest: Vec>, - #[serde(default = "default_2495")] + #[serde(default = "default_2497")] pub rerank: std::collections::HashMap, - #[serde(default = "default_2496")] + #[serde(default = "default_2498")] pub answer: String, - #[serde(default = "default_2497")] + #[serde(default = "default_2499")] pub related_prs: Vec>, } @@ -58422,17 +58424,17 @@ impl TrackerDuplicateCheckInput { #[non_exhaustive] pub struct TrackerFlakyOutput { pub test_name: String, - #[serde(default = "default_2498")] + #[serde(default = "default_2500")] pub known_flaky: bool, - #[serde(default = "default_2499")] + #[serde(default = "default_2501")] pub open_issues: Integer, - #[serde(default = "default_2500")] + #[serde(default = "default_2502")] pub issues: Vec>, - #[serde(default = "default_2501")] + #[serde(default = "default_2503")] pub verdict: String, - #[serde(default = "default_2502")] + #[serde(default = "default_2504")] pub tracker_unavailable: bool, - #[serde(default = "default_2503")] + #[serde(default = "default_2505")] pub signal: Option>, } @@ -58515,9 +58517,9 @@ impl TrackerFlakyInput { #[non_exhaustive] pub struct TrackerItemOutput { pub items: Vec>, - #[serde(default = "default_2504")] + #[serde(default = "default_2506")] pub unknown: Vec, - #[serde(default = "default_2505")] + #[serde(default = "default_2507")] pub tracker_unavailable: bool, } @@ -58566,19 +58568,19 @@ impl TrackerItemInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerLinksOutput { - #[serde(default = "default_2506")] + #[serde(default = "default_2508")] pub subject: std::collections::HashMap, - #[serde(default = "default_2507")] + #[serde(default = "default_2509")] pub verdict: String, - #[serde(default = "default_2508")] + #[serde(default = "default_2510")] pub items: Vec>, - #[serde(default = "default_2509")] + #[serde(default = "default_2511")] pub epistemic: String, - #[serde(default = "default_2510")] + #[serde(default = "default_2512")] pub record: std::collections::HashMap, - #[serde(default = "default_2511")] + #[serde(default = "default_2513")] pub computed_at: String, - #[serde(default = "default_2512")] + #[serde(default = "default_2514")] pub tracker_unavailable: bool, } @@ -58676,11 +58678,11 @@ impl TrackerLinksInput { pub struct TrackerReleaseOutput { pub version: String, pub blockers: Vec>, - #[serde(default = "default_2513")] + #[serde(default = "default_2515")] pub active_blockers: Integer, - #[serde(default = "default_2514")] + #[serde(default = "default_2516")] pub health: std::collections::HashMap, - #[serde(default = "default_2515")] + #[serde(default = "default_2517")] pub tracker_unavailable: bool, } @@ -58729,17 +58731,17 @@ impl TrackerReleaseInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSimilarOutput { - #[serde(default = "default_2516")] + #[serde(default = "default_2518")] pub items: Vec>, - #[serde(default = "default_2517")] + #[serde(default = "default_2519")] pub query: std::collections::HashMap, - #[serde(default = "default_2518")] + #[serde(default = "default_2520")] pub legs: std::collections::HashMap, - #[serde(default = "default_2519")] + #[serde(default = "default_2521")] pub epistemic: String, - #[serde(default = "default_2520")] + #[serde(default = "default_2522")] pub tracker_unavailable: bool, - #[serde(default = "default_2521")] + #[serde(default = "default_2523")] pub namespaces: Vec, } @@ -58860,19 +58862,19 @@ pub struct TrackerSourceAddOutput { pub name: String, pub host: String, pub database: String, - #[serde(default = "default_2522")] + #[serde(default = "default_2524")] pub namespaces: Vec>, - #[serde(default = "default_2523")] + #[serde(default = "default_2525")] pub contract: std::collections::HashMap, - #[serde(default = "default_2524")] + #[serde(default = "default_2526")] pub roles: Vec, - #[serde(default = "default_2525")] + #[serde(default = "default_2527")] pub my_role: String, - #[serde(default = "default_2526")] + #[serde(default = "default_2528")] pub dry_run: bool, - #[serde(default = "default_2527")] + #[serde(default = "default_2529")] pub written: bool, - #[serde(default = "default_2528")] + #[serde(default = "default_2530")] pub view_templates: std::collections::HashMap, } @@ -59035,13 +59037,13 @@ impl TrackerSourceAddInput { #[non_exhaustive] pub struct TrackerSourceCheckOutput { pub name: String, - #[serde(default = "default_2529")] + #[serde(default = "default_2531")] pub database: String, - #[serde(default = "default_2530")] + #[serde(default = "default_2532")] pub reachable: bool, - #[serde(default = "default_2531")] + #[serde(default = "default_2533")] pub contract: std::collections::HashMap, - #[serde(default = "default_2532")] + #[serde(default = "default_2534")] pub view_templates: std::collections::HashMap, } @@ -59081,11 +59083,11 @@ impl TrackerSourceCheckInput { pub struct TrackerSourceInspectOutput { pub host: String, pub database: String, - #[serde(default = "default_2533")] + #[serde(default = "default_2535")] pub tables: Vec>, - #[serde(default = "default_2534")] + #[serde(default = "default_2536")] pub roles: Vec, - #[serde(default = "default_2535")] + #[serde(default = "default_2537")] pub proposal: std::collections::HashMap, } @@ -59214,9 +59216,9 @@ impl TrackerSourceInspectInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSourceListOutput { - #[serde(default = "default_2536")] + #[serde(default = "default_2538")] pub sources: Vec>, - #[serde(default = "default_2537")] + #[serde(default = "default_2539")] pub self_service: bool, } @@ -59269,9 +59271,9 @@ impl TrackerSourceListInput { #[non_exhaustive] pub struct TrackerSourceRemoveOutput { pub name: String, - #[serde(default = "default_2538")] + #[serde(default = "default_2540")] pub deactivated: bool, - #[serde(default = "default_2539")] + #[serde(default = "default_2541")] pub namespaces_retired: Vec, } @@ -59312,9 +59314,9 @@ impl TrackerSourceRemoveInput { #[non_exhaustive] pub struct TrackerSourceRotateOutput { pub name: String, - #[serde(default = "default_2540")] + #[serde(default = "default_2542")] pub contract: std::collections::HashMap, - #[serde(default = "default_2541")] + #[serde(default = "default_2543")] pub rotated_at: String, } @@ -59361,11 +59363,11 @@ impl TrackerSourceRotateInput { #[non_exhaustive] pub struct TrackerSourceSetMappingOutput { pub name: String, - #[serde(default = "default_2542")] + #[serde(default = "default_2544")] pub contract: std::collections::HashMap, - #[serde(default = "default_2543")] + #[serde(default = "default_2545")] pub dry_run: bool, - #[serde(default = "default_2544")] + #[serde(default = "default_2546")] pub written: bool, } @@ -59432,45 +59434,45 @@ impl TrackerSourceSetMappingInput { #[non_exhaustive] pub struct TrackerTestSignalOutput { pub test_name: String, - #[serde(default = "default_2545")] + #[serde(default = "default_2547")] pub verdict: String, - #[serde(default = "default_2546")] + #[serde(default = "default_2548")] pub why: Vec, - #[serde(default = "default_2547")] + #[serde(default = "default_2549")] pub lower_bound: f64, - #[serde(default = "default_2548")] + #[serde(default = "default_2550")] pub window_days: Integer, - #[serde(default = "default_2549")] + #[serde(default = "default_2551")] pub since: String, - #[serde(default = "default_2550")] + #[serde(default = "default_2552")] pub features: std::collections::HashMap, - #[serde(default = "default_2551")] + #[serde(default = "default_2553")] pub infra: std::collections::HashMap, - #[serde(default = "default_2552")] + #[serde(default = "default_2554")] pub churn: std::collections::HashMap, - #[serde(default = "default_2553")] + #[serde(default = "default_2555")] pub thresholds: std::collections::HashMap, - #[serde(default = "default_2554")] + #[serde(default = "default_2556")] pub source: String, - #[serde(default = "default_2555")] + #[serde(default = "default_2557")] pub timings_ms: std::collections::HashMap, - #[serde(default = "default_2556")] + #[serde(default = "default_2558")] pub tracker_unavailable: bool, - #[serde(default = "default_2557")] + #[serde(default = "default_2559")] pub rollup: std::collections::HashMap, - #[serde(default = "default_2558")] + #[serde(default = "default_2560")] pub streak: std::collections::HashMap, - #[serde(default = "default_2559")] + #[serde(default = "default_2561")] pub smells: std::collections::HashMap, - #[serde(default = "default_2560")] + #[serde(default = "default_2562")] pub prior: std::collections::HashMap, - #[serde(default = "default_2561")] + #[serde(default = "default_2563")] pub unavailable_reason: String, - #[serde(default = "default_2562")] + #[serde(default = "default_2564")] pub candidates: Vec>, - #[serde(default = "default_2563")] + #[serde(default = "default_2565")] pub candidate_matches: Integer, - #[serde(default = "default_2564")] + #[serde(default = "default_2566")] pub resolved_from: String, } @@ -59574,9 +59576,9 @@ impl TrackerTestSignalInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct UiVitalsOutput { - #[serde(default = "default_2565")] + #[serde(default = "default_2567")] pub recorded: bool, - #[serde(default = "default_2566")] + #[serde(default = "default_2568")] pub route: String, } @@ -59760,7 +59762,7 @@ pub struct WebhookDelivery { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookDeliveriesOutput { - #[serde(default = "default_2567")] + #[serde(default = "default_2569")] pub deliveries: Vec, } @@ -59882,14 +59884,14 @@ pub struct WebhookInfo { pub secret_ref: String, pub events: Vec, pub created_at: String, - #[serde(default = "default_2568")] + #[serde(default = "default_2570")] pub secret_present: bool, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookListOutput { - #[serde(default = "default_2569")] + #[serde(default = "default_2571")] pub webhooks: Vec, } @@ -60071,7 +60073,7 @@ pub struct WorkingMemoryMutationOutput { pub version: Integer, pub char_limit: Integer, pub value_length: Integer, - #[serde(default = "default_2570")] + #[serde(default = "default_2572")] pub fill_ratio: f64, } @@ -60295,15 +60297,15 @@ impl WorkingMemoryDeleteInput { pub struct WorkingMemoryGetOutput { pub found: bool, pub block_key: String, - #[serde(default = "default_2571")] + #[serde(default = "default_2573")] pub content: String, - #[serde(default = "default_2572")] + #[serde(default = "default_2574")] pub char_limit: Integer, - #[serde(default = "default_2573")] + #[serde(default = "default_2575")] pub version: Integer, - #[serde(default = "default_2574")] + #[serde(default = "default_2576")] pub updated_at: Option, - #[serde(default = "default_2575")] + #[serde(default = "default_2577")] pub fill_ratio: f64, } @@ -60414,7 +60416,7 @@ pub struct WorkingMemoryBlock { pub content: String, pub char_limit: Integer, pub version: Integer, - #[serde(default = "default_2576")] + #[serde(default = "default_2578")] pub updated_at: Option, } @@ -60422,7 +60424,7 @@ pub struct WorkingMemoryBlock { #[non_exhaustive] pub struct WorkingMemoryRenderOutput { pub rendered: String, - #[serde(default = "default_2577")] + #[serde(default = "default_2579")] pub blocks: Vec, pub block_count: Integer, pub total_chars: Integer, @@ -61740,221 +61742,221 @@ fn default_315() -> bool { fn default_316() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_317() -> Vec> { +fn default_317() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_318() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_319() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_318() -> Integer { +fn default_320() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_319() -> String { +fn default_321() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_320() -> String { +fn default_322() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_321() -> bool { +fn default_323() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_322() -> String { +fn default_324() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_323() -> Integer { +fn default_325() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_324() -> String { +fn default_326() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_325() -> String { +fn default_327() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_326() -> bool { +fn default_328() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_327() -> Vec { +fn default_329() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_328() -> Vec> { +fn default_330() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_329() -> String { +fn default_331() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_330() -> bool { +fn default_332() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_331() -> bool { +fn default_333() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_332() -> Integer { +fn default_334() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_333() -> Integer { +fn default_335() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_334() -> String { +fn default_336() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_335() -> Vec { +fn default_337() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_336() -> std::collections::HashMap { +fn default_338() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_337() -> String { +fn default_339() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_338() -> Integer { +fn default_340() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_339() -> Integer { +fn default_341() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_340() -> bool { +fn default_342() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_341() -> bool { +fn default_343() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_342() -> std::collections::HashMap { +fn default_344() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_343() -> String { +fn default_345() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_344() -> String { +fn default_346() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_345() -> Integer { +fn default_347() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_346() -> Vec { +fn default_348() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_347() -> String { +fn default_349() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_348() -> Option { +fn default_350() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_349() -> String { +fn default_351() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_350() -> Vec> { +fn default_352() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_351() -> Integer { +fn default_353() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_352() -> bool { +fn default_354() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_353() -> String { +fn default_355() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_354() -> String { +fn default_356() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_355() -> String { +fn default_357() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_356() -> Integer { +fn default_358() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_357() -> String { +fn default_359() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_358() -> String { +fn default_360() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_359() -> String { +fn default_361() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_360() -> String { +fn default_362() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_361() -> Integer { +fn default_363() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_362() -> Integer { +fn default_364() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_363() -> String { +fn default_365() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_364() -> String { +fn default_366() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_365() -> Vec { +fn default_367() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_366() -> String { +fn default_368() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_367() -> String { +fn default_369() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_368() -> String { +fn default_370() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_369() -> String { +fn default_371() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_370() -> String { +fn default_372() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_371() -> Integer { +fn default_373() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_372() -> Integer { +fn default_374() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_373() -> Integer { +fn default_375() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_374() -> bool { +fn default_376() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_375() -> Vec> { +fn default_377() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_376() -> std::collections::HashMap { +fn default_378() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_377() -> std::collections::HashMap { +fn default_379() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_378() -> Vec { +fn default_380() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_379() -> String { +fn default_381() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_380() -> String { +fn default_382() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_381() -> Integer { +fn default_383() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_382() -> Integer { +fn default_384() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_383() -> String { +fn default_385() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_384() -> String { +fn default_386() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_385() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_386() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_387() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_388() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_388() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_389() -> Integer { serde_json::from_str("0").expect("schema default") @@ -61977,709 +61979,709 @@ fn default_394() -> String { fn default_395() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_396() -> Integer { +fn default_396() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_397() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_398() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_397() -> f64 { +fn default_399() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_398() -> Integer { +fn default_400() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_399() -> Integer { +fn default_401() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_400() -> f64 { +fn default_402() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_401() -> Integer { +fn default_403() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_402() -> Integer { +fn default_404() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_403() -> f64 { +fn default_405() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_404() -> Option { +fn default_406() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_405() -> String { +fn default_407() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_406() -> String { +fn default_408() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_407() -> String { +fn default_409() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_408() -> bool { +fn default_410() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_409() -> String { +fn default_411() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_410() -> String { +fn default_412() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_411() -> String { +fn default_413() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_412() -> bool { +fn default_414() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_413() -> bool { +fn default_415() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_414() -> Option { +fn default_416() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_415() -> String { +fn default_417() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_416() -> bool { +fn default_418() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_417() -> Option { +fn default_419() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_418() -> String { +fn default_420() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_419() -> String { +fn default_421() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_420() -> String { +fn default_422() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_421() -> String { +fn default_423() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_422() -> Option { +fn default_424() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_423() -> Integer { +fn default_425() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_424() -> Vec { +fn default_426() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_425() -> bool { +fn default_427() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_426() -> Vec { +fn default_428() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_427() -> Integer { +fn default_429() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_428() -> Vec { +fn default_430() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_429() -> Integer { +fn default_431() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_430() -> bool { +fn default_432() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_431() -> Vec { +fn default_433() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_432() -> Option { +fn default_434() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_433() -> String { +fn default_435() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_434() -> String { +fn default_436() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_435() -> String { +fn default_437() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_436() -> Vec> { +fn default_438() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_437() -> Integer { +fn default_439() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_438() -> Vec { +fn default_440() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_439() -> String { +fn default_441() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_440() -> String { +fn default_442() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_441() -> std::collections::HashMap { +fn default_443() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_442() -> String { +fn default_444() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_443() -> std::collections::HashMap { +fn default_445() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_444() -> std::collections::HashMap { +fn default_446() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_445() -> String { +fn default_447() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_446() -> String { +fn default_448() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_447() -> Integer { +fn default_449() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_448() -> Integer { +fn default_450() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_449() -> String { +fn default_451() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_450() -> String { +fn default_452() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_451() -> String { +fn default_453() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_452() -> String { +fn default_454() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_453() -> bool { +fn default_455() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_454() -> String { +fn default_456() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_455() -> String { +fn default_457() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_456() -> String { +fn default_458() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_457() -> f64 { +fn default_459() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_458() -> Vec> { +fn default_460() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_459() -> Vec> { +fn default_461() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_460() -> Vec> { +fn default_462() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_461() -> String { +fn default_463() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_462() -> Vec> { +fn default_464() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_463() -> bool { +fn default_465() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_464() -> Integer { +fn default_466() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_465() -> Integer { +fn default_467() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_466() -> bool { +fn default_468() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_467() -> Vec> { +fn default_469() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_468() -> String { +fn default_470() -> String { serde_json::from_str("\"unit\"").expect("schema default") } -fn default_469() -> String { +fn default_471() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_470() -> Vec> { +fn default_472() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_471() -> Integer { +fn default_473() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_472() -> String { +fn default_474() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_473() -> Integer { +fn default_475() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_474() -> Integer { +fn default_476() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_475() -> String { +fn default_477() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_476() -> Integer { +fn default_478() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_477() -> bool { +fn default_479() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_478() -> std::collections::HashMap>> +fn default_480() -> std::collections::HashMap>> { serde_json::from_str("{}").expect("schema default") } -fn default_479() -> Vec> { +fn default_481() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_480() -> Integer { +fn default_482() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_481() -> String { +fn default_483() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_482() -> Option { +fn default_484() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_483() -> bool { +fn default_485() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_484() -> String { +fn default_486() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_485() -> Integer { +fn default_487() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_486() -> String { +fn default_488() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_487() -> String { +fn default_489() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_488() -> Vec> { +fn default_490() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_489() -> Vec> { +fn default_491() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_490() -> Integer { +fn default_492() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_491() -> Integer { +fn default_493() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_492() -> Vec> { +fn default_494() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_493() -> std::collections::HashMap> { +fn default_495() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_494() -> Vec { +fn default_496() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_495() -> Vec> { +fn default_497() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_496() -> String { +fn default_498() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_497() -> Vec> { +fn default_499() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_498() -> std::collections::HashMap>> +fn default_500() -> std::collections::HashMap>> { serde_json::from_str("{}").expect("schema default") } -fn default_499() -> Vec> { +fn default_501() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_500() -> String { +fn default_502() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_501() -> String { +fn default_503() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_502() -> Vec { +fn default_504() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_503() -> Option> { +fn default_505() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_504() -> Vec> { +fn default_506() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_505() -> Integer { +fn default_507() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_506() -> std::collections::HashMap { +fn default_508() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_507() -> Integer { +fn default_509() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_508() -> Integer { +fn default_510() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_509() -> Integer { +fn default_511() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_510() -> Vec> { +fn default_512() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_511() -> Integer { +fn default_513() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_512() -> bool { +fn default_514() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_513() -> Integer { +fn default_515() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_514() -> String { +fn default_516() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_515() -> Vec> { +fn default_517() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_516() -> Integer { +fn default_518() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_517() -> bool { +fn default_519() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_518() -> std::collections::HashMap { +fn default_520() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_519() -> bool { +fn default_521() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_520() -> String { +fn default_522() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_521() -> String { +fn default_523() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_522() -> String { +fn default_524() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_523() -> Vec { +fn default_525() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_524() -> String { +fn default_526() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_525() -> String { +fn default_527() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_526() -> Integer { +fn default_528() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_527() -> String { +fn default_529() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_528() -> String { +fn default_530() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_529() -> bool { +fn default_531() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_530() -> bool { +fn default_532() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_531() -> std::collections::HashMap { +fn default_533() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_532() -> Option { +fn default_534() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_533() -> Integer { +fn default_535() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_534() -> Integer { +fn default_536() -> Integer { serde_json::from_str("72").expect("schema default") } -fn default_535() -> Integer { +fn default_537() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_536() -> Integer { +fn default_538() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_537() -> Vec> { +fn default_539() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_538() -> Vec { +fn default_540() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_539() -> Vec { +fn default_541() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_540() -> String { +fn default_542() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_541() -> String { +fn default_543() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_542() -> String { +fn default_544() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_543() -> bool { +fn default_545() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_544() -> String { +fn default_546() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_545() -> Vec> { +fn default_547() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_546() -> Integer { +fn default_548() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_547() -> Vec> { +fn default_549() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_548() -> bool { +fn default_550() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_549() -> Vec> { +fn default_551() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_550() -> bool { +fn default_552() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_551() -> String { +fn default_553() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_552() -> bool { +fn default_554() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_553() -> Vec { +fn default_555() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_554() -> Option { +fn default_556() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_555() -> Vec> { +fn default_557() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_556() -> bool { +fn default_558() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_557() -> Vec> { +fn default_559() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_558() -> bool { +fn default_560() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_559() -> String { +fn default_561() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_560() -> String { +fn default_562() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_561() -> bool { +fn default_563() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_562() -> Vec> { +fn default_564() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_563() -> Integer { +fn default_565() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_564() -> bool { +fn default_566() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_565() -> bool { +fn default_567() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_566() -> std::collections::HashMap { +fn default_568() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_567() -> bool { +fn default_569() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_568() -> Vec> { +fn default_570() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_569() -> Integer { +fn default_571() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_570() -> bool { +fn default_572() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_571() -> Integer { +fn default_573() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_572() -> String { +fn default_574() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_573() -> String { +fn default_575() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_574() -> String { +fn default_576() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_575() -> String { +fn default_577() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_576() -> f64 { +fn default_578() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_577() -> Vec> { +fn default_579() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_578() -> std::collections::HashMap> { +fn default_580() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_579() -> String { +fn default_581() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_580() -> bool { +fn default_582() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_581() -> String { +fn default_583() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_582() -> CodeGrepOutputFallback { +fn default_584() -> CodeGrepOutputFallback { serde_json::from_str("\"\"").expect("schema default") } -fn default_583() -> Vec> { +fn default_585() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_584() -> String { +fn default_586() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_585() -> Vec> { +fn default_587() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_586() -> Integer { +fn default_588() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_587() -> f64 { +fn default_589() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_588() -> Vec> { +fn default_590() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_589() -> Vec> { +fn default_591() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_590() -> Vec> { +fn default_592() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_591() -> Vec> { +fn default_593() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_592() -> bool { +fn default_594() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_593() -> Integer { +fn default_595() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_594() -> Integer { +fn default_596() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_595() -> String { +fn default_597() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_596() -> Vec { +fn default_598() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_597() -> std::collections::HashMap { +fn default_599() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_598() -> bool { +fn default_600() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_599() -> String { +fn default_601() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_600() -> String { +fn default_602() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_601() -> Vec> { +fn default_603() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_602() -> bool { +fn default_604() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_603() -> String { +fn default_605() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_604() -> Integer { +fn default_606() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_605() -> String { +fn default_607() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_606() -> String { +fn default_608() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_607() -> String { +fn default_609() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_608() -> String { +fn default_610() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_609() -> String { +fn default_611() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_610() -> Integer { +fn default_612() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_611() -> String { +fn default_613() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_612() -> String { +fn default_614() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_613() -> String { +fn default_615() -> String { serde_json::from_str("\"generic\"").expect("schema default") } -fn default_614() -> Vec { +fn default_616() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_615() -> Vec { +fn default_617() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_616() -> String { +fn default_618() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_617() -> String { +fn default_619() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_618() -> String { +fn default_620() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_619() -> String { +fn default_621() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_620() -> String { +fn default_622() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_621() -> Integer { +fn default_623() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_622() -> String { +fn default_624() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_623() -> bool { +fn default_625() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_624() -> Vec { +fn default_626() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_625() -> String { +fn default_627() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_626() -> Vec { +fn default_628() -> 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") -} fn default_629() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"ok\"").expect("schema default") } fn default_630() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -62690,714 +62692,714 @@ fn default_631() -> String { fn default_632() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_633() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_633() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_634() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_635() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_636() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_637() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_636() -> Vec { +fn default_638() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_637() -> String { +fn default_639() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_638() -> Option { +fn default_640() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_639() -> String { +fn default_641() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_640() -> String { +fn default_642() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_641() -> bool { +fn default_643() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_642() -> Integer { +fn default_644() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_643() -> Integer { +fn default_645() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_644() -> Integer { +fn default_646() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_645() -> String { +fn default_647() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_646() -> String { +fn default_648() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_647() -> bool { +fn default_649() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_648() -> Vec { +fn default_650() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_649() -> std::collections::HashMap { +fn default_651() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_650() -> std::collections::HashMap> { +fn default_652() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_651() -> bool { +fn default_653() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_652() -> Integer { +fn default_654() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_653() -> String { +fn default_655() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_654() -> Integer { +fn default_656() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_655() -> Integer { +fn default_657() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_656() -> Integer { +fn default_658() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_657() -> String { +fn default_659() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_658() -> std::collections::HashMap { +fn default_660() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_659() -> String { +fn default_661() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_660() -> Vec { +fn default_662() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_661() -> std::collections::HashMap> { +fn default_663() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_662() -> std::collections::HashMap { +fn default_664() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_663() -> std::collections::HashMap> { +fn default_665() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_664() -> std::collections::HashMap> { +fn default_666() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_665() -> Integer { +fn default_667() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_666() -> String { +fn default_668() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_667() -> Integer { +fn default_669() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_668() -> String { +fn default_670() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_669() -> Integer { +fn default_671() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_670() -> Integer { +fn default_672() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_671() -> f64 { +fn default_673() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_672() -> String { +fn default_674() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_673() -> String { +fn default_675() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_674() -> Vec> { +fn default_676() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_675() -> Integer { +fn default_677() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_676() -> String { +fn default_678() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_677() -> bool { +fn default_679() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_678() -> String { +fn default_680() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_679() -> Integer { +fn default_681() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_680() -> Integer { +fn default_682() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_681() -> String { +fn default_683() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_682() -> bool { +fn default_684() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_683() -> std::collections::HashMap { +fn default_685() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_684() -> String { +fn default_686() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_685() -> Vec { +fn default_687() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_686() -> CodePathGuardsOutputEpistemic { +fn default_688() -> CodePathGuardsOutputEpistemic { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_687() -> String { +fn default_689() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_688() -> Vec> { +fn default_690() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_689() -> Vec { +fn default_691() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_690() -> Integer { +fn default_692() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_691() -> String { +fn default_693() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_692() -> String { +fn default_694() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_693() -> Vec> { +fn default_695() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_694() -> bool { +fn default_696() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_695() -> String { +fn default_697() -> String { serde_json::from_str("\"heuristic\"").expect("schema default") } -fn default_696() -> std::collections::HashMap { +fn default_698() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_697() -> std::collections::HashMap { +fn default_699() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_698() -> std::collections::HashMap { +fn default_700() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_699() -> String { +fn default_701() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_700() -> Vec> { +fn default_702() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_701() -> Integer { +fn default_703() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_702() -> String { +fn default_704() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_703() -> Vec { +fn default_705() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_704() -> String { +fn default_706() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_705() -> String { +fn default_707() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_706() -> String { +fn default_708() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_707() -> String { +fn default_709() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_708() -> Integer { +fn default_710() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_709() -> Integer { +fn default_711() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_710() -> bool { +fn default_712() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_711() -> String { +fn default_713() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_712() -> String { +fn default_714() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_713() -> String { +fn default_715() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_714() -> String { +fn default_716() -> String { serde_json::from_str("\"git\"").expect("schema default") } -fn default_715() -> String { +fn default_717() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_716() -> String { +fn default_718() -> String { serde_json::from_str("\"admin\"").expect("schema default") } -fn default_717() -> String { +fn default_719() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_718() -> Vec> { +fn default_720() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_719() -> Vec> { +fn default_721() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_720() -> String { +fn default_722() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_721() -> String { +fn default_723() -> String { serde_json::from_str("\"git\"").expect("schema default") } -fn default_722() -> Vec { +fn default_724() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_723() -> String { +fn default_725() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_724() -> Vec> { +fn default_726() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_725() -> Vec { +fn default_727() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_726() -> Vec> { +fn default_728() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_727() -> Integer { +fn default_729() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_728() -> Integer { +fn default_730() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_729() -> Integer { +fn default_731() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_730() -> bool { +fn default_732() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_731() -> String { +fn default_733() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_732() -> String { +fn default_734() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_733() -> bool { +fn default_735() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_734() -> Vec { +fn default_736() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_735() -> Vec { +fn default_737() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_736() -> Vec { +fn default_738() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_737() -> Vec { +fn default_739() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_738() -> String { +fn default_740() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_739() -> Integer { +fn default_741() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_740() -> String { +fn default_742() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_741() -> CodeReviewBriefOutputSource { +fn default_743() -> CodeReviewBriefOutputSource { serde_json::from_str("\"missing\"").expect("schema default") } -fn default_742() -> CodeReviewBriefOutputLedger { +fn default_744() -> CodeReviewBriefOutputLedger { serde_json::from_str("\"\"").expect("schema default") } -fn default_743() -> bool { +fn default_745() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_744() -> std::collections::HashMap { +fn default_746() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_745() -> bool { +fn default_747() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_746() -> String { +fn default_748() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_747() -> Integer { +fn default_749() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_748() -> String { +fn default_750() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_749() -> String { +fn default_751() -> String { serde_json::from_str("\"standard\"").expect("schema default") } -fn default_750() -> String { +fn default_752() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_751() -> String { +fn default_753() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_752() -> Integer { +fn default_754() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_753() -> Integer { +fn default_755() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_754() -> Integer { +fn default_756() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_755() -> std::collections::HashMap { +fn default_757() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_756() -> std::collections::HashMap> { +fn default_758() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_757() -> String { +fn default_759() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_758() -> String { +fn default_760() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_759() -> String { +fn default_761() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_760() -> String { +fn default_762() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_761() -> Vec> { +fn default_763() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_762() -> Integer { +fn default_764() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_763() -> String { +fn default_765() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_764() -> bool { +fn default_766() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_765() -> std::collections::HashMap { +fn default_767() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_766() -> bool { +fn default_768() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_767() -> CodeSearchOutputAbstainCode { +fn default_769() -> CodeSearchOutputAbstainCode { serde_json::from_str("\"\"").expect("schema default") } -fn default_768() -> String { +fn default_770() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_769() -> CodeSearchOutputRetrievalRisk { +fn default_771() -> CodeSearchOutputRetrievalRisk { serde_json::from_str("\"low\"").expect("schema default") } -fn default_770() -> f64 { +fn default_772() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_771() -> CodeSearchOutputPickConfidence { +fn default_773() -> CodeSearchOutputPickConfidence { serde_json::from_str("\"\"").expect("schema default") } -fn default_772() -> f64 { +fn default_774() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_773() -> String { +fn default_775() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_774() -> Integer { +fn default_776() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_775() -> bool { +fn default_777() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_776() -> Integer { +fn default_778() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_777() -> std::collections::HashMap { +fn default_779() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_778() -> String { +fn default_780() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_779() -> std::collections::HashMap { +fn default_781() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_780() -> String { +fn default_782() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_781() -> f64 { +fn default_783() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_782() -> std::collections::HashMap { +fn default_784() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_783() -> std::collections::HashMap { +fn default_785() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_784() -> String { +fn default_786() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_785() -> Vec { +fn default_787() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_786() -> CodeSearchOutputEpistemic { +fn default_788() -> CodeSearchOutputEpistemic { serde_json::from_str("\"\"").expect("schema default") } -fn default_787() -> bool { +fn default_789() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_788() -> String { +fn default_790() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_789() -> String { +fn default_791() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_790() -> Vec { +fn default_792() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_791() -> std::collections::HashMap { +fn default_793() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_792() -> String { +fn default_794() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_793() -> Vec> { +fn default_795() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_794() -> std::collections::HashMap { +fn default_796() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_795() -> Integer { +fn default_797() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_796() -> std::collections::HashMap { +fn default_798() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_797() -> String { +fn default_799() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_798() -> String { +fn default_800() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_799() -> Vec { +fn default_801() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_800() -> String { +fn default_802() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_801() -> std::collections::HashMap { +fn default_803() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_802() -> bool { +fn default_804() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_803() -> Vec { +fn default_805() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_804() -> Vec> { +fn default_806() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_805() -> Vec> { +fn default_807() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_806() -> Vec> { +fn default_808() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_807() -> std::collections::HashMap { +fn default_809() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_808() -> String { +fn default_810() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_809() -> bool { +fn default_811() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_810() -> String { +fn default_812() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_811() -> Vec> { +fn default_813() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_812() -> Vec> { +fn default_814() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_813() -> Vec> { +fn default_815() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_814() -> Vec { +fn default_816() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_815() -> Vec> { +fn default_817() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_816() -> bool { +fn default_818() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_817() -> Integer { +fn default_819() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_818() -> Integer { +fn default_820() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_819() -> Integer { +fn default_821() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_820() -> Integer { +fn default_822() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_821() -> bool { +fn default_823() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_822() -> bool { +fn default_824() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_823() -> bool { +fn default_825() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_824() -> bool { +fn default_826() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_825() -> String { +fn default_827() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_826() -> Vec { +fn default_828() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_827() -> std::collections::HashMap { +fn default_829() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_828() -> std::collections::HashMap { +fn default_830() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_829() -> String { +fn default_831() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_830() -> String { +fn default_832() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_831() -> String { +fn default_833() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_832() -> Vec> { +fn default_834() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_833() -> Vec { +fn default_835() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_834() -> Vec { +fn default_836() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_835() -> Integer { +fn default_837() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_836() -> std::collections::HashMap { +fn default_838() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_837() -> String { +fn default_839() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_838() -> Vec> { +fn default_840() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_839() -> Integer { +fn default_841() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_840() -> bool { +fn default_842() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_841() -> Vec> { +fn default_843() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_842() -> String { +fn default_844() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_843() -> bool { +fn default_845() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_844() -> Vec { +fn default_846() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_845() -> std::collections::HashMap { +fn default_847() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_846() -> std::collections::HashMap { +fn default_848() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_847() -> Integer { +fn default_849() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_848() -> Integer { +fn default_850() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_849() -> String { +fn default_851() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_850() -> Integer { +fn default_852() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_851() -> String { +fn default_853() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_852() -> String { +fn default_854() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_853() -> Vec> { +fn default_855() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_854() -> std::collections::HashMap { +fn default_856() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_855() -> String { +fn default_857() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_856() -> String { +fn default_858() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_857() -> std::collections::HashMap { +fn default_859() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_858() -> Vec> { +fn default_860() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_859() -> Vec> { +fn default_861() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_860() -> bool { +fn default_862() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_861() -> std::collections::HashMap { +fn default_863() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_862() -> std::collections::HashMap { +fn default_864() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_863() -> std::collections::HashMap { +fn default_865() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_864() -> Vec { +fn default_866() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_865() -> Integer { +fn default_867() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_866() -> std::collections::HashMap { +fn default_868() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_867() -> String { - serde_json::from_str("\"\"").expect("schema default") -} -fn default_868() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_869() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -63413,156 +63415,156 @@ fn default_872() -> String { fn default_873() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_874() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_874() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_875() -> Option { - serde_json::from_str("null").expect("schema default") +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_877() -> Option { +fn default_877() -> Option { serde_json::from_str("null").expect("schema default") } fn default_878() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_879() -> Option> { +fn default_879() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_880() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_881() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_880() -> Vec { +fn default_882() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_881() -> String { +fn default_883() -> String { serde_json::from_str("\"conflicts.resolve\"").expect("schema default") } -fn default_882() -> Vec { +fn default_884() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_883() -> String { +fn default_885() -> String { serde_json::from_str("\"No changes were applied.\"").expect("schema default") } -fn default_884() -> Option { +fn default_886() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_885() -> Option { +fn default_887() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_886() -> bool { +fn default_888() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_887() -> bool { +fn default_889() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_888() -> Option { +fn default_890() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_889() -> Vec { +fn default_891() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_890() -> String { +fn default_892() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_891() -> String { +fn default_893() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_892() -> String { +fn default_894() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_893() -> Integer { +fn default_895() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_894() -> Integer { +fn default_896() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_895() -> Integer { +fn default_897() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_896() -> Integer { +fn default_898() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_897() -> Integer { +fn default_899() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_898() -> Option { +fn default_900() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_899() -> bool { +fn default_901() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_900() -> ConversationAppendOutputReason { +fn default_902() -> ConversationAppendOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_901() -> String { +fn default_903() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_902() -> Integer { +fn default_904() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_903() -> Integer { +fn default_905() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_904() -> String { +fn default_906() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_905() -> String { +fn default_907() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_906() -> std::collections::HashMap { +fn default_908() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_907() -> String { +fn default_909() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_908() -> String { +fn default_910() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_909() -> String { +fn default_911() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_910() -> Option { +fn default_912() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_911() -> Option { +fn default_913() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_912() -> Integer { +fn default_914() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_913() -> String { +fn default_915() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_914() -> Vec { +fn default_916() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_915() -> Option { +fn default_917() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_916() -> Option { +fn default_918() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_917() -> Option { +fn default_919() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_918() -> ConversationSaveMessageOutputReason { +fn default_920() -> ConversationSaveMessageOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_919() -> String { +fn default_921() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_920() -> Vec { +fn default_922() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_921() -> bool { +fn default_923() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_922() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_923() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_924() -> Option { serde_json::from_str("null").expect("schema default") } @@ -63581,30 +63583,30 @@ fn default_928() -> Option { fn default_929() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_930() -> Option { +fn default_930() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_931() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_932() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_931() -> Option { +fn default_933() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_932() -> Integer { +fn default_934() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_933() -> Vec { +fn default_935() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_934() -> f64 { +fn default_936() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_935() -> Integer { +fn default_937() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_936() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_937() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_938() -> Option { serde_json::from_str("null").expect("schema default") } @@ -63629,11 +63631,11 @@ fn default_944() -> Option { fn default_945() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_946() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_946() -> Option { + serde_json::from_str("null").expect("schema default") } -fn default_947() -> f64 { - serde_json::from_str("0.0").expect("schema default") +fn default_947() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_948() -> Integer { serde_json::from_str("0").expect("schema default") @@ -63641,11 +63643,11 @@ fn default_948() -> Integer { fn default_949() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_950() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_950() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_951() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_951() -> f64 { + serde_json::from_str("0.0").expect("schema default") } fn default_952() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -63653,621 +63655,621 @@ fn default_952() -> String { fn default_953() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_954() -> Vec { +fn default_954() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_955() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_956() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_955() -> Option { +fn default_957() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_956() -> String { +fn default_958() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_957() -> String { +fn default_959() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_958() -> String { +fn default_960() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_959() -> Option { +fn default_961() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_960() -> String { +fn default_962() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_961() -> DecisionRowStage { +fn default_963() -> DecisionRowStage { serde_json::from_str("\"decided\"").expect("schema default") } -fn default_962() -> f64 { +fn default_964() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_963() -> Option { +fn default_965() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_964() -> Option { +fn default_966() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_965() -> Integer { +fn default_967() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_966() -> String { +fn default_968() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_967() -> bool { +fn default_969() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_968() -> Integer { +fn default_970() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_969() -> String { +fn default_971() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_970() -> bool { +fn default_972() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_971() -> Option { +fn default_973() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_972() -> String { +fn default_974() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_973() -> Integer { +fn default_975() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_974() -> Integer { +fn default_976() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_975() -> Integer { +fn default_977() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_976() -> Option { +fn default_978() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_977() -> String { +fn default_979() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_978() -> Option { +fn default_980() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_979() -> Integer { +fn default_981() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_980() -> std::collections::HashMap { +fn default_982() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_981() -> Option { +fn default_983() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_982() -> Option> { +fn default_984() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_983() -> bool { +fn default_985() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_984() -> String { +fn default_986() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_985() -> Vec { +fn default_987() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_986() -> Option { +fn default_988() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_987() -> Option { +fn default_989() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_988() -> Option { +fn default_990() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_989() -> Option { +fn default_991() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_990() -> Option { +fn default_992() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_991() -> Option { +fn default_993() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_992() -> Option { +fn default_994() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_993() -> Option { +fn default_995() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_994() -> Option { +fn default_996() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_995() -> Integer { +fn default_997() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_996() -> std::collections::HashMap { +fn default_998() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_997() -> Option { +fn default_999() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_998() -> Option> { +fn default_1000() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_999() -> bool { +fn default_1001() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1000() -> String { +fn default_1002() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1001() -> String { +fn default_1003() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1002() -> String { +fn default_1004() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1003() -> Option { +fn default_1005() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1004() -> String { +fn default_1006() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1005() -> String { +fn default_1007() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1006() -> Option { +fn default_1008() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1007() -> Vec { +fn default_1009() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1008() -> String { +fn default_1010() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1009() -> Vec { +fn default_1011() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1010() -> Vec { +fn default_1012() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1011() -> bool { +fn default_1013() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1012() -> bool { +fn default_1014() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1013() -> String { +fn default_1015() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1014() -> String { +fn default_1016() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1015() -> Option { +fn default_1017() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1016() -> Option { +fn default_1018() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1017() -> Option { +fn default_1019() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1018() -> bool { +fn default_1020() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1019() -> Integer { +fn default_1021() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1020() -> String { +fn default_1022() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1021() -> String { +fn default_1023() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1022() -> String { +fn default_1024() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1023() -> String { +fn default_1025() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1024() -> String { +fn default_1026() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1025() -> Option { +fn default_1027() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1026() -> Vec { +fn default_1028() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1027() -> bool { +fn default_1029() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1028() -> Vec { +fn default_1030() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1029() -> Option { +fn default_1031() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1030() -> Option { +fn default_1032() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1031() -> bool { +fn default_1033() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1032() -> String { +fn default_1034() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_1033() -> Option { +fn default_1035() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1034() -> Option { +fn default_1036() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1035() -> Option { +fn default_1037() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1036() -> String { +fn default_1038() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1037() -> String { +fn default_1039() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1038() -> String { +fn default_1040() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1039() -> HelpGetOutputAudience { +fn default_1041() -> HelpGetOutputAudience { serde_json::from_str("\"user\"").expect("schema default") } -fn default_1040() -> String { +fn default_1042() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1041() -> bool { +fn default_1043() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1042() -> Integer { +fn default_1044() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1043() -> String { +fn default_1045() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1044() -> Vec { +fn default_1046() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1045() -> String { +fn default_1047() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1046() -> Vec { +fn default_1048() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1047() -> Vec { +fn default_1049() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1048() -> String { +fn default_1050() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1049() -> String { +fn default_1051() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1050() -> String { +fn default_1052() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1051() -> Vec { +fn default_1053() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1052() -> String { +fn default_1054() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1053() -> bool { +fn default_1055() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1054() -> Vec { +fn default_1056() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1055() -> Vec { +fn default_1057() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1056() -> Option { +fn default_1058() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1057() -> bool { +fn default_1059() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1058() -> bool { +fn default_1060() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1059() -> Vec { +fn default_1061() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1060() -> Vec> { +fn default_1062() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1061() -> Integer { +fn default_1063() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1062() -> bool { +fn default_1064() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1063() -> String { +fn default_1065() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1064() -> String { +fn default_1066() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1065() -> Integer { +fn default_1067() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1066() -> Integer { +fn default_1068() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1067() -> Vec { +fn default_1069() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1068() -> Integer { +fn default_1070() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1069() -> Vec { +fn default_1071() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1070() -> bool { +fn default_1072() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1071() -> String { +fn default_1073() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1072() -> Option { +fn default_1074() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1073() -> Option { +fn default_1075() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1074() -> Vec> { +fn default_1076() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1075() -> Option { +fn default_1077() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1076() -> bool { +fn default_1078() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1077() -> Integer { +fn default_1079() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1078() -> Vec { +fn default_1080() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1079() -> Vec> { +fn default_1081() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1080() -> Vec { +fn default_1082() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1081() -> Vec> { +fn default_1083() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1082() -> Vec { +fn default_1084() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1083() -> String { +fn default_1085() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1084() -> Vec { +fn default_1086() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1085() -> Vec { +fn default_1087() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1086() -> Option { +fn default_1088() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1087() -> Vec { +fn default_1089() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1088() -> Integer { +fn default_1090() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1089() -> Vec { +fn default_1091() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1090() -> String { +fn default_1092() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1091() -> Vec { +fn default_1093() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1092() -> Vec { +fn default_1094() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1093() -> Option { +fn default_1095() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1094() -> Option { +fn default_1096() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1095() -> bool { +fn default_1097() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1096() -> String { +fn default_1098() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1097() -> String { +fn default_1099() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1098() -> bool { +fn default_1100() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1099() -> String { +fn default_1101() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1100() -> String { +fn default_1102() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1101() -> String { +fn default_1103() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1102() -> Integer { +fn default_1104() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1103() -> String { +fn default_1105() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1104() -> String { +fn default_1106() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1105() -> String { +fn default_1107() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1106() -> Option> { +fn default_1108() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1107() -> Vec { +fn default_1109() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1108() -> Integer { +fn default_1110() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1109() -> Integer { +fn default_1111() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1110() -> Option { +fn default_1112() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1111() -> String { +fn default_1113() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1112() -> String { +fn default_1114() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1113() -> bool { +fn default_1115() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1114() -> Option { +fn default_1116() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1115() -> Option { +fn default_1117() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1116() -> Option { +fn default_1118() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1117() -> Option { +fn default_1119() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1118() -> Option { +fn default_1120() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1119() -> Vec { +fn default_1121() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1120() -> Vec { +fn default_1122() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1121() -> Option { +fn default_1123() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1122() -> Option { +fn default_1124() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1123() -> Option { +fn default_1125() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1124() -> String { +fn default_1126() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1125() -> Option { +fn default_1127() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1126() -> Option { +fn default_1128() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1127() -> Option { +fn default_1129() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1128() -> Vec { +fn default_1130() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1129() -> Vec { +fn default_1131() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1130() -> Option { +fn default_1132() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1131() -> String { +fn default_1133() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1132() -> Option { +fn default_1134() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1133() -> Vec { +fn default_1135() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1134() -> Option { +fn default_1136() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1135() -> Option { +fn default_1137() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1136() -> Option { +fn default_1138() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1137() -> String { +fn default_1139() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1138() -> Option { +fn default_1140() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1139() -> Option { +fn default_1141() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1140() -> bool { +fn default_1142() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1141() -> bool { +fn default_1143() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1142() -> Option { +fn default_1144() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1143() -> Vec { +fn default_1145() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1144() -> bool { +fn default_1146() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1145() -> Option { +fn default_1147() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1146() -> Option { +fn default_1148() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1147() -> Vec { +fn default_1149() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1148() -> String { +fn default_1150() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1149() -> String { +fn default_1151() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1150() -> Vec { +fn default_1152() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1151() -> Integer { +fn default_1153() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1152() -> Vec { +fn default_1154() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1153() -> Vec { +fn default_1155() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1154() -> Vec { +fn default_1156() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1155() -> Vec { +fn default_1157() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1156() -> Vec { +fn default_1158() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1157() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_1158() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_1159() -> Option { serde_json::from_str("null").expect("schema default") } @@ -64292,216 +64294,216 @@ fn default_1165() -> Option { fn default_1166() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1167() -> Option { +fn default_1167() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1168() -> Option { +fn default_1168() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1169() -> Vec { +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_1171() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1170() -> Option { +fn default_1172() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1171() -> Option { +fn default_1173() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1172() -> Vec { +fn default_1174() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1173() -> Option { +fn default_1175() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1174() -> Option { +fn default_1176() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1175() -> Vec { +fn default_1177() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1176() -> String { +fn default_1178() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1177() -> String { +fn default_1179() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1178() -> Vec { +fn default_1180() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1179() -> Vec { +fn default_1181() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1180() -> Integer { +fn default_1182() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1181() -> Vec { +fn default_1183() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1182() -> Vec { +fn default_1184() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1183() -> Vec { +fn default_1185() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1184() -> Vec { +fn default_1186() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1185() -> Option { +fn default_1187() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1186() -> String { +fn default_1188() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1187() -> bool { +fn default_1189() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1188() -> KnowledgeMoveResultReason { +fn default_1190() -> KnowledgeMoveResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1189() -> Vec { +fn default_1191() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1190() -> String { +fn default_1192() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1191() -> bool { +fn default_1193() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1192() -> Integer { +fn default_1194() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1193() -> Vec { +fn default_1195() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1194() -> Option { +fn default_1196() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1195() -> Vec { +fn default_1197() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1196() -> Vec> { +fn default_1198() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1197() -> bool { +fn default_1199() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1198() -> Vec { +fn default_1200() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1199() -> bool { +fn default_1201() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1200() -> Vec { +fn default_1202() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1201() -> Vec> { +fn default_1203() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1202() -> KnowledgeRestoreOutputReason { +fn default_1204() -> KnowledgeRestoreOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1203() -> String { +fn default_1205() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1204() -> Option { +fn default_1206() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1205() -> Integer { +fn default_1207() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1206() -> KnowledgeRestoreOutputOriginal { +fn default_1208() -> KnowledgeRestoreOutputOriginal { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1207() -> Option { +fn default_1209() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1208() -> Vec> { +fn default_1210() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1209() -> Vec { +fn default_1211() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1210() -> std::collections::HashMap { +fn default_1212() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1211() -> Integer { +fn default_1213() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1212() -> bool { +fn default_1214() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1213() -> Vec { +fn default_1215() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1214() -> Integer { +fn default_1216() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1215() -> bool { +fn default_1217() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1216() -> KnowledgeSourceProbe { +fn default_1218() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1217() -> bool { +fn default_1219() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1218() -> bool { +fn default_1220() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1219() -> Integer { +fn default_1221() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1220() -> bool { +fn default_1222() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1221() -> Vec { +fn default_1223() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1222() -> Integer { +fn default_1224() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1223() -> bool { +fn default_1225() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1224() -> String { +fn default_1226() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1225() -> String { +fn default_1227() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1226() -> String { +fn default_1228() -> String { serde_json::from_str("\"shared\"").expect("schema default") } -fn default_1227() -> bool { +fn default_1229() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1228() -> String { +fn default_1230() -> String { serde_json::from_str("\"namespace\"").expect("schema default") } -fn default_1229() -> std::collections::HashMap { +fn default_1231() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1230() -> String { +fn default_1232() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1231() -> Vec> { +fn default_1233() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1232() -> Vec { +fn default_1234() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1233() -> std::collections::HashMap { +fn default_1235() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1234() -> String { - serde_json::from_str("\"\"").expect("schema default") -} -fn default_1235() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1236() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -64511,11 +64513,11 @@ fn default_1237() -> String { fn default_1238() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1239() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1239() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1240() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1240() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1241() -> Integer { serde_json::from_str("0").expect("schema default") @@ -64523,14 +64525,14 @@ fn default_1241() -> Integer { fn default_1242() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1243() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") +fn default_1243() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1244() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1245() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1245() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") } fn default_1246() -> Integer { serde_json::from_str("0").expect("schema default") @@ -64541,98 +64543,98 @@ fn default_1247() -> String { fn default_1248() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1249() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1249() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1250() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1251() -> String { +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 { serde_json::from_str("\"\"").expect("schema default") } -fn default_1252() -> KnowledgeSourceSync { +fn default_1254() -> 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_1253() -> String { +fn default_1255() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1254() -> String { +fn default_1256() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1255() -> String { +fn default_1257() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1256() -> Vec { +fn default_1258() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1257() -> String { +fn default_1259() -> String { serde_json::from_str("\"shared\"").expect("schema default") } -fn default_1258() -> bool { +fn default_1260() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1259() -> String { +fn default_1261() -> String { serde_json::from_str("\"namespace\"").expect("schema default") } -fn default_1260() -> std::collections::HashMap { +fn default_1262() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1261() -> String { +fn default_1263() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1262() -> Vec> { +fn default_1264() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1263() -> Vec { +fn default_1265() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1264() -> std::collections::HashMap { +fn default_1266() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1265() -> String { +fn default_1267() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1266() -> String { +fn default_1268() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1267() -> KnowledgeSourceSync { +fn default_1269() -> 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_1268() -> Vec { +fn default_1270() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1269() -> bool { +fn default_1271() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1270() -> bool { +fn default_1272() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1271() -> bool { +fn default_1273() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1272() -> String { +fn default_1274() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1273() -> std::collections::HashMap { +fn default_1275() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1274() -> String { +fn default_1276() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1275() -> Vec { +fn default_1277() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1276() -> bool { +fn default_1278() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1277() -> String { - serde_json::from_str("\"disabled\"").expect("schema default") -} -fn default_1278() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1279() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"disabled\"").expect("schema default") } fn default_1280() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -64646,219 +64648,219 @@ fn default_1282() -> String { fn default_1283() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1284() -> Integer { +fn default_1284() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1285() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1286() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1285() -> f64 { +fn default_1287() -> f64 { serde_json::from_str("0").expect("schema default") } -fn default_1286() -> Integer { +fn default_1288() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1287() -> Option { +fn default_1289() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1288() -> KnowledgeSourceProbe { +fn default_1290() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1289() -> String { +fn default_1291() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1290() -> bool { +fn default_1292() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1291() -> Option { +fn default_1293() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1292() -> Vec> { +fn default_1294() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1293() -> Vec { +fn default_1295() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1294() -> std::collections::HashMap { +fn default_1296() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1295() -> Vec> { +fn default_1297() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1296() -> Vec> { +fn default_1298() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1297() -> KnowledgeSourceProbe { +fn default_1299() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1298() -> Vec { +fn default_1300() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1299() -> Integer { +fn default_1301() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1300() -> Option> { +fn default_1302() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1301() -> Vec { +fn default_1303() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1302() -> Vec { +fn default_1304() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1303() -> bool { +fn default_1305() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1304() -> bool { +fn default_1306() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1305() -> String { +fn default_1307() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1306() -> String { +fn default_1308() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1307() -> Vec> { +fn default_1309() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1308() -> bool { +fn default_1310() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1309() -> Vec { +fn default_1311() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1310() -> Vec { +fn default_1312() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1311() -> String { +fn default_1313() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1312() -> String { +fn default_1314() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1313() -> String { +fn default_1315() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1314() -> Vec { +fn default_1316() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1315() -> Integer { +fn default_1317() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1316() -> String { +fn default_1318() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1317() -> Integer { +fn default_1319() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1318() -> String { +fn default_1320() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1319() -> String { +fn default_1321() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1320() -> Integer { +fn default_1322() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1321() -> Integer { +fn default_1323() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1322() -> String { +fn default_1324() -> String { serde_json::from_str("\"memory_supporters\"").expect("schema default") } -fn default_1323() -> String { +fn default_1325() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1324() -> String { +fn default_1326() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1325() -> Option { +fn default_1327() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1326() -> String { +fn default_1328() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1327() -> String { +fn default_1329() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1328() -> bool { +fn default_1330() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1329() -> bool { +fn default_1331() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1330() -> String { +fn default_1332() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1331() -> std::collections::HashMap { +fn default_1333() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1332() -> Vec { +fn default_1334() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1333() -> String { +fn default_1335() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1334() -> String { +fn default_1336() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1335() -> String { +fn default_1337() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1336() -> Vec { +fn default_1338() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1337() -> String { +fn default_1339() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1338() -> String { +fn default_1340() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1339() -> Vec { +fn default_1341() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1340() -> Vec { +fn default_1342() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1341() -> Vec { +fn default_1343() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1342() -> Vec { +fn default_1344() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1343() -> Integer { +fn default_1345() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1344() -> Vec { +fn default_1346() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1345() -> Vec { +fn default_1347() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1346() -> Vec { +fn default_1348() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1347() -> Integer { +fn default_1349() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1348() -> Vec { +fn default_1350() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1349() -> std::collections::HashMap { +fn default_1351() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1350() -> std::collections::HashMap { +fn default_1352() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1351() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_1352() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1353() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -64871,215 +64873,215 @@ fn default_1355() -> Integer { fn default_1356() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1357() -> bool { +fn default_1357() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1358() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1359() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1358() -> String { +fn default_1360() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1359() -> String { +fn default_1361() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1360() -> String { +fn default_1362() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1361() -> String { +fn default_1363() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1362() -> Option { +fn default_1364() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1363() -> String { +fn default_1365() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1364() -> Vec { +fn default_1366() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1365() -> String { +fn default_1367() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1366() -> MemoryAskOutputSource { +fn default_1368() -> MemoryAskOutputSource { serde_json::from_str("\"synthesized\"").expect("schema default") } -fn default_1367() -> bool { +fn default_1369() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1368() -> String { +fn default_1370() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1369() -> Vec { +fn default_1371() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1370() -> Vec { +fn default_1372() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1371() -> Vec { +fn default_1373() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1372() -> String { +fn default_1374() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1373() -> String { +fn default_1375() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1374() -> MemoryAskOutputRouteTier { +fn default_1376() -> MemoryAskOutputRouteTier { serde_json::from_str("\"\"").expect("schema default") } -fn default_1375() -> String { +fn default_1377() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1376() -> Integer { +fn default_1378() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1377() -> Integer { +fn default_1379() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1378() -> bool { +fn default_1380() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1379() -> f64 { +fn default_1381() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1380() -> Option { +fn default_1382() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1381() -> Option { +fn default_1383() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1382() -> bool { +fn default_1384() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1383() -> String { +fn default_1385() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1384() -> Integer { +fn default_1386() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1385() -> Integer { +fn default_1387() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1386() -> Integer { +fn default_1388() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1387() -> Integer { +fn default_1389() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1388() -> String { +fn default_1390() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1389() -> Vec { +fn default_1391() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1390() -> Integer { +fn default_1392() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1391() -> MemoryAskOutputConsistency { +fn default_1393() -> MemoryAskOutputConsistency { serde_json::from_str("\"\"").expect("schema default") } -fn default_1392() -> f64 { +fn default_1394() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1393() -> String { +fn default_1395() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1394() -> Integer { +fn default_1396() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1395() -> Integer { +fn default_1397() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1396() -> String { +fn default_1398() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1397() -> String { +fn default_1399() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1398() -> String { +fn default_1400() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1399() -> String { +fn default_1401() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1400() -> MemoryAskOutputDepth { +fn default_1402() -> MemoryAskOutputDepth { serde_json::from_str("\"\"").expect("schema default") } -fn default_1401() -> bool { +fn default_1403() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1402() -> Vec { +fn default_1404() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1403() -> Integer { +fn default_1405() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1404() -> Integer { +fn default_1406() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1405() -> Integer { +fn default_1407() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1406() -> Vec { +fn default_1408() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1407() -> Integer { +fn default_1409() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1408() -> Integer { +fn default_1410() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1409() -> Integer { +fn default_1411() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1410() -> MemoryAskOutputGrounding { +fn default_1412() -> MemoryAskOutputGrounding { serde_json::from_str("\"\"").expect("schema default") } -fn default_1411() -> String { +fn default_1413() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1412() -> Vec { +fn default_1414() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1413() -> Integer { +fn default_1415() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1414() -> Integer { +fn default_1416() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1415() -> Integer { +fn default_1417() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1416() -> Integer { +fn default_1418() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1417() -> std::collections::HashMap { +fn default_1419() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1418() -> MemoryAskOutputDeepSelector { +fn default_1420() -> MemoryAskOutputDeepSelector { serde_json::from_str("\"\"").expect("schema default") } -fn default_1419() -> MemoryAskOutputDeepFirst { +fn default_1421() -> MemoryAskOutputDeepFirst { serde_json::from_str("\"\"").expect("schema default") } -fn default_1420() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_1421() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1422() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_1423() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1424() -> f64 { - serde_json::from_str("0.0").expect("schema default") +fn default_1424() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1425() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1426() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1426() -> f64 { + serde_json::from_str("0.0").expect("schema default") } fn default_1427() -> Integer { serde_json::from_str("0").expect("schema default") @@ -65090,143 +65092,143 @@ fn default_1428() -> Integer { fn default_1429() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1430() -> bool { +fn default_1430() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1431() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1432() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1431() -> String { +fn default_1433() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1432() -> String { +fn default_1434() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1433() -> String { +fn default_1435() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1434() -> String { +fn default_1436() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1435() -> String { +fn default_1437() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1436() -> String { +fn default_1438() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1437() -> bool { +fn default_1439() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1438() -> String { +fn default_1440() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1439() -> Option { +fn default_1441() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1440() -> String { +fn default_1442() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1441() -> String { +fn default_1443() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1442() -> Vec { +fn default_1444() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1443() -> Option { +fn default_1445() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1444() -> bool { +fn default_1446() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1445() -> String { +fn default_1447() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1446() -> String { +fn default_1448() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1447() -> Vec { +fn default_1449() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1448() -> String { +fn default_1450() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1449() -> Vec { +fn default_1451() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1450() -> String { +fn default_1452() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1451() -> String { +fn default_1453() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1452() -> Vec { +fn default_1454() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1453() -> Vec { +fn default_1455() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1454() -> Integer { +fn default_1456() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1455() -> Vec { +fn default_1457() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1456() -> Vec { +fn default_1458() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1457() -> String { +fn default_1459() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1458() -> String { +fn default_1460() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1459() -> bool { +fn default_1461() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1460() -> String { +fn default_1462() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1461() -> String { +fn default_1463() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1462() -> String { +fn default_1464() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1463() -> bool { +fn default_1465() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1464() -> String { +fn default_1466() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1465() -> String { +fn default_1467() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1466() -> String { +fn default_1468() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1467() -> Vec { - serde_json::from_str("[]").expect("schema default") -} -fn default_1468() -> Vec { +fn default_1469() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1469() -> Vec { +fn default_1470() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1470() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") -} fn default_1471() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1472() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1472() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") } -fn default_1473() -> Vec { +fn default_1473() -> Vec { serde_json::from_str("[]").expect("schema default") } fn default_1474() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1475() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1475() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1476() -> Integer { serde_json::from_str("0").expect("schema default") @@ -65243,11 +65245,11 @@ fn default_1479() -> Integer { fn default_1480() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1481() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1481() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_1482() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1482() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1483() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -65255,14 +65257,14 @@ fn default_1483() -> String { fn default_1484() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1485() -> bool { - serde_json::from_str("true").expect("schema default") +fn default_1485() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1486() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1486() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1487() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1487() -> bool { + serde_json::from_str("true").expect("schema default") } fn default_1488() -> Integer { serde_json::from_str("0").expect("schema default") @@ -65273,345 +65275,345 @@ fn default_1489() -> Integer { fn default_1490() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1491() -> bool { +fn default_1491() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1492() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1493() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1492() -> Vec { +fn default_1494() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1493() -> String { +fn default_1495() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1494() -> String { +fn default_1496() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1495() -> Option { +fn default_1497() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1496() -> Vec { +fn default_1498() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1497() -> bool { +fn default_1499() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1498() -> bool { +fn default_1500() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1499() -> Vec { +fn default_1501() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1500() -> bool { +fn default_1502() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1501() -> Option { +fn default_1503() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1502() -> Vec { +fn default_1504() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1503() -> Option { +fn default_1505() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1504() -> Option { +fn default_1506() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1505() -> Vec { +fn default_1507() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1506() -> Integer { +fn default_1508() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1507() -> bool { +fn default_1509() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1508() -> String { +fn default_1510() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1509() -> Integer { +fn default_1511() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1510() -> Integer { +fn default_1512() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1511() -> std::collections::HashMap { +fn default_1513() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1512() -> String { +fn default_1514() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1513() -> f64 { +fn default_1515() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1514() -> bool { +fn default_1516() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1515() -> String { +fn default_1517() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1516() -> String { +fn default_1518() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1517() -> Integer { +fn default_1519() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1518() -> Integer { +fn default_1520() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1519() -> Option { +fn default_1521() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1520() -> Vec { +fn default_1522() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1521() -> Vec { +fn default_1523() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1522() -> Option { +fn default_1524() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1523() -> Option { +fn default_1525() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1524() -> Integer { +fn default_1526() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1525() -> bool { +fn default_1527() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1526() -> String { +fn default_1528() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1527() -> String { +fn default_1529() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1528() -> String { +fn default_1530() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1529() -> String { +fn default_1531() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1530() -> Option { +fn default_1532() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1531() -> String { +fn default_1533() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1532() -> Integer { +fn default_1534() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1533() -> Integer { +fn default_1535() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1534() -> String { +fn default_1536() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1535() -> Vec { +fn default_1537() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1536() -> bool { +fn default_1538() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1537() -> Integer { +fn default_1539() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1538() -> Integer { +fn default_1540() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1539() -> Integer { +fn default_1541() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1540() -> Integer { +fn default_1542() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1541() -> Integer { +fn default_1543() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1542() -> String { +fn default_1544() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1543() -> String { +fn default_1545() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1544() -> String { +fn default_1546() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1545() -> String { +fn default_1547() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1546() -> Vec { +fn default_1548() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1547() -> Integer { +fn default_1549() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1548() -> Integer { +fn default_1550() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1549() -> String { +fn default_1551() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1550() -> String { +fn default_1552() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1551() -> Vec { +fn default_1553() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1552() -> String { +fn default_1554() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1553() -> String { +fn default_1555() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1554() -> Vec { +fn default_1556() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1555() -> Vec { +fn default_1557() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1556() -> String { +fn default_1558() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1557() -> String { +fn default_1559() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1558() -> Vec { +fn default_1560() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1559() -> f64 { +fn default_1561() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1560() -> String { +fn default_1562() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1561() -> String { +fn default_1563() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1562() -> Vec { +fn default_1564() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1563() -> bool { +fn default_1565() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1564() -> String { +fn default_1566() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1565() -> Integer { +fn default_1567() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1566() -> Vec { +fn default_1568() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1567() -> Vec { +fn default_1569() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1568() -> Vec { +fn default_1570() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1569() -> Vec { +fn default_1571() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1570() -> Vec { +fn default_1572() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1571() -> Option { +fn default_1573() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1572() -> Option { +fn default_1574() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1573() -> Vec { +fn default_1575() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1574() -> Integer { +fn default_1576() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1575() -> Integer { +fn default_1577() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1576() -> Vec { +fn default_1578() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1577() -> Vec { +fn default_1579() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1578() -> Integer { +fn default_1580() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1579() -> Integer { +fn default_1581() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1580() -> bool { +fn default_1582() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1581() -> Vec { +fn default_1583() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1582() -> f64 { +fn default_1584() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1583() -> bool { +fn default_1585() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1584() -> String { +fn default_1586() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1585() -> String { +fn default_1587() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1586() -> Option { +fn default_1588() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1587() -> String { +fn default_1589() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1588() -> String { +fn default_1590() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1589() -> String { +fn default_1591() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1590() -> String { +fn default_1592() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1591() -> MemoryForFileHitSupersedesKind { +fn default_1593() -> MemoryForFileHitSupersedesKind { serde_json::from_str("\"\"").expect("schema default") } -fn default_1592() -> Vec { +fn default_1594() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1593() -> String { +fn default_1595() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1594() -> MemoryForFileHitVerification { +fn default_1596() -> MemoryForFileHitVerification { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1595() -> MemoryForFileHitCodeState { +fn default_1597() -> MemoryForFileHitCodeState { serde_json::from_str("\"\"").expect("schema default") } -fn default_1596() -> Vec { +fn default_1598() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1597() -> String { +fn default_1599() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1598() -> Integer { +fn default_1600() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1599() -> bool { +fn default_1601() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1600() -> bool { +fn default_1602() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1601() -> Vec { +fn default_1603() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1602() -> String { - serde_json::from_str("\"\"").expect("schema default") -} -fn default_1603() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1604() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65624,22 +65626,22 @@ fn default_1606() -> String { fn default_1607() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1608() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1608() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1609() -> Value { - serde_json::from_str("null").expect("schema default") +fn default_1609() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1610() -> Option { +fn default_1610() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1611() -> Option { +fn default_1611() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1612() -> Option { +fn default_1612() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1613() -> Option { +fn default_1613() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1614() -> Option { @@ -65648,548 +65650,548 @@ fn default_1614() -> Option { fn default_1615() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1616() -> bool { +fn default_1616() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1617() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1618() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1617() -> String { +fn default_1619() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1618() -> String { +fn default_1620() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1619() -> Option { +fn default_1621() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1620() -> String { +fn default_1622() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1621() -> String { +fn default_1623() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1622() -> String { +fn default_1624() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1623() -> String { +fn default_1625() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1624() -> String { +fn default_1626() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1625() -> String { +fn default_1627() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1626() -> Option { +fn default_1628() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1627() -> String { +fn default_1629() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1628() -> String { +fn default_1630() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1629() -> String { +fn default_1631() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1630() -> Integer { +fn default_1632() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1631() -> Vec { +fn default_1633() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1632() -> Integer { +fn default_1634() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1633() -> Option { +fn default_1635() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1634() -> Vec { +fn default_1636() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1635() -> std::collections::HashMap { +fn default_1637() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1636() -> Integer { +fn default_1638() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1637() -> f64 { +fn default_1639() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1638() -> Integer { +fn default_1640() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1639() -> Integer { +fn default_1641() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1640() -> Integer { +fn default_1642() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1641() -> Integer { +fn default_1643() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1642() -> Integer { +fn default_1644() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1643() -> MemoryHealthStaleness { +fn default_1645() -> 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_1644() -> Integer { +fn default_1646() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1645() -> Integer { +fn default_1647() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1646() -> f64 { +fn default_1648() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1647() -> MemoryHealthFootprint { +fn default_1649() -> MemoryHealthFootprint { serde_json::from_str("{\"value_chars\":0,\"value_tokens_est\":0,\"tokens_per_row_est\":0.0}") .expect("schema default") } -fn default_1648() -> String { +fn default_1650() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1649() -> Value { +fn default_1651() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1650() -> String { +fn default_1652() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1651() -> bool { +fn default_1653() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1652() -> Option { +fn default_1654() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1653() -> Option { +fn default_1655() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1654() -> Option { +fn default_1656() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1655() -> String { +fn default_1657() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1656() -> String { +fn default_1658() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1657() -> String { +fn default_1659() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1658() -> String { +fn default_1660() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1659() -> String { +fn default_1661() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1660() -> Option { +fn default_1662() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1661() -> String { +fn default_1663() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1662() -> Vec { +fn default_1664() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1663() -> Vec { +fn default_1665() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1664() -> Option { +fn default_1666() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1665() -> String { +fn default_1667() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1666() -> String { +fn default_1668() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1667() -> String { +fn default_1669() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1668() -> String { +fn default_1670() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1669() -> Option { +fn default_1671() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1670() -> Integer { +fn default_1672() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1671() -> Integer { +fn default_1673() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1672() -> Integer { +fn default_1674() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1673() -> Integer { +fn default_1675() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1674() -> MemoryImportResultReason { +fn default_1676() -> MemoryImportResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1675() -> String { +fn default_1677() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1676() -> MemoryImportResultNote { +fn default_1678() -> MemoryImportResultNote { serde_json::from_str("\"\"").expect("schema default") } -fn default_1677() -> bool { +fn default_1679() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1678() -> String { +fn default_1680() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1679() -> Option { +fn default_1681() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1680() -> Integer { +fn default_1682() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1681() -> Integer { +fn default_1683() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1682() -> Integer { +fn default_1684() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1683() -> String { +fn default_1685() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1684() -> Integer { +fn default_1686() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1685() -> Vec { +fn default_1687() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1686() -> Integer { +fn default_1688() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1687() -> Integer { +fn default_1689() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1688() -> Vec { +fn default_1690() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1689() -> Integer { +fn default_1691() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1690() -> Vec { +fn default_1692() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1691() -> Vec { +fn default_1693() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1692() -> Vec { +fn default_1694() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1693() -> Vec { +fn default_1695() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1694() -> Vec { +fn default_1696() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1695() -> Option { +fn default_1697() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1696() -> Option { +fn default_1698() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1697() -> String { +fn default_1699() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1698() -> Integer { +fn default_1700() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1699() -> String { +fn default_1701() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1700() -> Vec { +fn default_1702() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1701() -> bool { +fn default_1703() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1702() -> Vec { +fn default_1704() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1703() -> Option { +fn default_1705() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1704() -> Option { +fn default_1706() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1705() -> String { +fn default_1707() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1706() -> Integer { +fn default_1708() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1707() -> String { +fn default_1709() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1708() -> Integer { +fn default_1710() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1709() -> Option { +fn default_1711() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1710() -> String { +fn default_1712() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1711() -> String { +fn default_1713() -> 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_1712() -> Vec { +fn default_1714() -> Vec { serde_json::from_str("[\"memory.set_from_messages\",\"extraction_instructions\"]") .expect("schema default") } -fn default_1713() -> Vec { +fn default_1715() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1714() -> bool { +fn default_1716() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1715() -> String { +fn default_1717() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1716() -> String { +fn default_1718() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1717() -> Option { +fn default_1719() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1718() -> String { +fn default_1720() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1719() -> String { +fn default_1721() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1720() -> String { +fn default_1722() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1721() -> MemoryLineageOutputMechanism { +fn default_1723() -> MemoryLineageOutputMechanism { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_1722() -> Vec { +fn default_1724() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1723() -> String { +fn default_1725() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1724() -> String { +fn default_1726() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1725() -> Option { +fn default_1727() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1726() -> Vec { +fn default_1728() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1727() -> f64 { +fn default_1729() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1728() -> bool { +fn default_1730() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1729() -> bool { +fn default_1731() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1730() -> Integer { +fn default_1732() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1731() -> Integer { +fn default_1733() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1732() -> String { +fn default_1734() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1733() -> bool { +fn default_1735() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1734() -> Integer { +fn default_1736() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1735() -> String { +fn default_1737() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1736() -> String { +fn default_1738() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1737() -> String { +fn default_1739() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1738() -> Option { +fn default_1740() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1739() -> String { +fn default_1741() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1740() -> Option { +fn default_1742() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1741() -> String { +fn default_1743() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1742() -> String { +fn default_1744() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1743() -> String { +fn default_1745() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1744() -> Integer { +fn default_1746() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1745() -> String { +fn default_1747() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1746() -> Vec { +fn default_1748() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1747() -> bool { +fn default_1749() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1748() -> String { +fn default_1750() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1749() -> String { +fn default_1751() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1750() -> String { +fn default_1752() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1751() -> bool { +fn default_1753() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1752() -> std::collections::HashMap { +fn default_1754() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1753() -> String { +fn default_1755() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1754() -> String { +fn default_1756() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1755() -> Integer { +fn default_1757() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1756() -> Integer { +fn default_1758() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1757() -> Vec { +fn default_1759() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1758() -> Integer { +fn default_1760() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1759() -> Integer { +fn default_1761() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1760() -> Vec { +fn default_1762() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1761() -> String { +fn default_1763() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1762() -> Integer { +fn default_1764() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1763() -> String { +fn default_1765() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1764() -> Vec { +fn default_1766() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1765() -> Integer { +fn default_1767() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1766() -> Option { +fn default_1768() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1767() -> Vec { +fn default_1769() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1768() -> Integer { +fn default_1770() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1769() -> String { +fn default_1771() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1770() -> String { +fn default_1772() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1771() -> Vec { +fn default_1773() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1772() -> String { +fn default_1774() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1773() -> String { +fn default_1775() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1774() -> String { +fn default_1776() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1775() -> String { +fn default_1777() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1776() -> String { +fn default_1778() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1777() -> Vec { +fn default_1779() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1778() -> String { +fn default_1780() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1779() -> Integer { +fn default_1781() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1780() -> Integer { +fn default_1782() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1781() -> String { +fn default_1783() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1782() -> Integer { +fn default_1784() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1783() -> Integer { +fn default_1785() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1784() -> MemoryProposalReady { +fn default_1786() -> MemoryProposalReady { serde_json::from_str("\"\"").expect("schema default") } -fn default_1785() -> Vec { +fn default_1787() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1786() -> Vec { +fn default_1788() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1787() -> Integer { +fn default_1789() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1788() -> ProposalPolicyMode { +fn default_1790() -> ProposalPolicyMode { serde_json::from_str("\"manual\"").expect("schema default") } -fn default_1789() -> Integer { +fn default_1791() -> Integer { serde_json::from_str("2").expect("schema default") } -fn default_1790() -> Integer { +fn default_1792() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1791() -> Integer { +fn default_1793() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1792() -> ProposalPolicy { +fn default_1794() -> ProposalPolicy { serde_json::from_str( "{\"mode\":\"manual\",\"min_passes\":2,\"max_fails\":0,\"reject_after_fails\":0}", ) .expect("schema default") } -fn default_1793() -> String { - serde_json::from_str("\"\"").expect("schema default") -} -fn default_1794() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1795() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66202,14 +66204,14 @@ fn default_1797() -> String { fn default_1798() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1799() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_1799() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1800() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1801() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1801() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_1802() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66232,324 +66234,324 @@ fn default_1807() -> String { fn default_1808() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1809() -> Vec { +fn default_1809() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1810() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1811() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1810() -> f64 { +fn default_1812() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1811() -> String { +fn default_1813() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1812() -> String { +fn default_1814() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1813() -> Vec { +fn default_1815() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1814() -> String { +fn default_1816() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1815() -> String { +fn default_1817() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1816() -> String { +fn default_1818() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1817() -> String { +fn default_1819() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1818() -> bool { +fn default_1820() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1819() -> Integer { +fn default_1821() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1820() -> Integer { +fn default_1822() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1821() -> Integer { +fn default_1823() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1822() -> bool { +fn default_1824() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1823() -> String { +fn default_1825() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1824() -> Integer { +fn default_1826() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_1825() -> MemoryRecallOutputOrder { +fn default_1827() -> MemoryRecallOutputOrder { serde_json::from_str("\"recent\"").expect("schema default") } -fn default_1826() -> Vec { +fn default_1828() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1827() -> Integer { +fn default_1829() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1828() -> Value { +fn default_1830() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1829() -> Value { +fn default_1831() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1830() -> String { +fn default_1832() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1831() -> String { +fn default_1833() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1832() -> Option { +fn default_1834() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1833() -> Option { +fn default_1835() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1834() -> bool { +fn default_1836() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1835() -> String { +fn default_1837() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1836() -> String { +fn default_1838() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1837() -> std::collections::HashMap { +fn default_1839() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1838() -> std::collections::HashMap { +fn default_1840() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1839() -> MemoryRecordRowStatus { +fn default_1841() -> MemoryRecordRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1840() -> Option { +fn default_1842() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1841() -> Option { +fn default_1843() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1842() -> bool { +fn default_1844() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1843() -> String { +fn default_1845() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1844() -> MemoryRecordWriteOutputKeySource { +fn default_1846() -> MemoryRecordWriteOutputKeySource { serde_json::from_str("\"anonymous\"").expect("schema default") } -fn default_1845() -> std::collections::HashMap { +fn default_1847() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1846() -> String { +fn default_1848() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1847() -> Integer { +fn default_1849() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1848() -> bool { +fn default_1850() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1849() -> Option { +fn default_1851() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1850() -> Integer { +fn default_1852() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1851() -> Integer { +fn default_1853() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1852() -> Option { +fn default_1854() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1853() -> String { +fn default_1855() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1854() -> Integer { +fn default_1856() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1855() -> Integer { +fn default_1857() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1856() -> bool { +fn default_1858() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1857() -> Vec { +fn default_1859() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1858() -> Option { +fn default_1860() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1859() -> Option { +fn default_1861() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1860() -> bool { +fn default_1862() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1861() -> bool { +fn default_1863() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1862() -> String { +fn default_1864() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1863() -> f64 { +fn default_1865() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1864() -> String { +fn default_1866() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1865() -> String { +fn default_1867() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1866() -> std::collections::HashMap { +fn default_1868() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1867() -> bool { +fn default_1869() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1868() -> Integer { +fn default_1870() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1869() -> String { +fn default_1871() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1870() -> Vec { +fn default_1872() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1871() -> Vec { +fn default_1873() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1872() -> Integer { +fn default_1874() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1873() -> Integer { +fn default_1875() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1874() -> String { +fn default_1876() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1875() -> String { +fn default_1877() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1876() -> Integer { +fn default_1878() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_1877() -> Integer { +fn default_1879() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1878() -> Integer { +fn default_1880() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1879() -> Vec { +fn default_1881() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1880() -> Integer { +fn default_1882() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1881() -> Integer { +fn default_1883() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1882() -> Integer { +fn default_1884() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1883() -> Integer { +fn default_1885() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1884() -> Vec { +fn default_1886() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1885() -> String { +fn default_1887() -> String { serde_json::from_str("\"whole\"").expect("schema default") } -fn default_1886() -> Integer { +fn default_1888() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1887() -> Vec { +fn default_1889() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1888() -> Vec { +fn default_1890() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1889() -> Integer { +fn default_1891() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1890() -> Vec { +fn default_1892() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1891() -> Integer { +fn default_1893() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1892() -> Vec { +fn default_1894() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1893() -> Vec { +fn default_1895() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1894() -> bool { +fn default_1896() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1895() -> String { +fn default_1897() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1896() -> String { +fn default_1898() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1897() -> std::collections::HashMap { +fn default_1899() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1898() -> String { +fn default_1900() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1899() -> bool { +fn default_1901() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1900() -> Vec { +fn default_1902() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1901() -> Integer { +fn default_1903() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1902() -> Integer { +fn default_1904() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1903() -> String { +fn default_1905() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1904() -> String { +fn default_1906() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1905() -> String { +fn default_1907() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1906() -> bool { +fn default_1908() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1907() -> Integer { +fn default_1909() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1908() -> Option { +fn default_1910() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1909() -> String { +fn default_1911() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1910() -> String { +fn default_1912() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1911() -> String { +fn default_1913() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1912() -> Vec { +fn default_1914() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1913() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_1914() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1915() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -66562,56 +66564,56 @@ fn default_1917() -> Integer { fn default_1918() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1919() -> bool { +fn default_1919() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1920() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1921() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1920() -> Vec> { +fn default_1922() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1921() -> Vec { +fn default_1923() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1922() -> Option { +fn default_1924() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1923() -> String { +fn default_1925() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1924() -> Integer { +fn default_1926() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1925() -> Option { +fn default_1927() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1926() -> Option { +fn default_1928() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1927() -> Option { +fn default_1929() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1928() -> Option { +fn default_1930() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1929() -> Vec { +fn default_1931() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1930() -> Integer { +fn default_1932() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1931() -> String { - serde_json::from_str("\"\"").expect("schema default") -} -fn default_1932() -> String { +fn default_1933() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1933() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_1934() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1935() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1935() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_1936() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66619,23 +66621,23 @@ fn default_1936() -> String { fn default_1937() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1938() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1938() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1939() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1940() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1940() -> Option { + serde_json::from_str("null").expect("schema default") } -fn default_1941() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1941() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1942() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1943() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1943() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1944() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66646,20 +66648,20 @@ fn default_1945() -> String { fn default_1946() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1947() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1947() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1948() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1949() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_1949() -> Integer { + serde_json::from_str("0").expect("schema default") } 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() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1952() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66670,23 +66672,23 @@ fn default_1953() -> Integer { fn default_1954() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1955() -> String { - serde_json::from_str("\"\"").expect("schema default") -} -fn default_1956() -> Integer { +fn default_1955() -> Integer { serde_json::from_str("0").expect("schema default") } +fn default_1956() -> String { + serde_json::from_str("\"\"").expect("schema default") +} fn default_1957() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1958() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_1958() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1959() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1960() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1960() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_1961() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66694,108 +66696,108 @@ fn default_1961() -> String { fn default_1962() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1963() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1963() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1964() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1965() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1966() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1965() -> Integer { +fn default_1967() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1966() -> String { +fn default_1968() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1967() -> String { +fn default_1969() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1968() -> String { +fn default_1970() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1969() -> bool { +fn default_1971() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1970() -> Vec { +fn default_1972() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1971() -> std::collections::HashMap { +fn default_1973() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1972() -> String { +fn default_1974() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1973() -> Vec { +fn default_1975() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1974() -> std::collections::HashMap { +fn default_1976() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1975() -> Integer { +fn default_1977() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1976() -> Option { +fn default_1978() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1977() -> String { +fn default_1979() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1978() -> bool { +fn default_1980() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1979() -> Vec { +fn default_1981() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1980() -> Vec { +fn default_1982() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1981() -> std::collections::HashMap { +fn default_1983() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1982() -> Option { +fn default_1984() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1983() -> Vec { +fn default_1985() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1984() -> Integer { +fn default_1986() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1985() -> Integer { +fn default_1987() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1986() -> Vec { +fn default_1988() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1987() -> Option { +fn default_1989() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1988() -> Vec { +fn default_1990() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1989() -> Option { +fn default_1991() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1990() -> Option { +fn default_1992() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1991() -> Vec { +fn default_1993() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1992() -> bool { +fn default_1994() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1993() -> Vec { +fn default_1995() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1994() -> bool { +fn default_1996() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1995() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_1996() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1997() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -66817,14 +66819,14 @@ fn default_2002() -> Integer { fn default_2003() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2004() -> f64 { - serde_json::from_str("0.0").expect("schema default") +fn default_2004() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_2005() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2006() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2006() -> f64 { + serde_json::from_str("0.0").expect("schema default") } fn default_2007() -> Integer { serde_json::from_str("0").expect("schema default") @@ -66832,85 +66834,85 @@ fn default_2007() -> Integer { fn default_2008() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2009() -> Option { +fn default_2009() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2010() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2011() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2010() -> Option { +fn default_2012() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2011() -> Vec { +fn default_2013() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2012() -> String { +fn default_2014() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2013() -> String { +fn default_2015() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2014() -> Integer { +fn default_2016() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2015() -> Vec> { +fn default_2017() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2016() -> Vec { +fn default_2018() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2017() -> String { +fn default_2019() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2018() -> bool { +fn default_2020() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2019() -> String { +fn default_2021() -> String { serde_json::from_str("\"approval\"").expect("schema default") } -fn default_2020() -> String { +fn default_2022() -> String { serde_json::from_str("\"public\"").expect("schema default") } -fn default_2021() -> BrowseEntryMyStatus { +fn default_2023() -> BrowseEntryMyStatus { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2022() -> String { +fn default_2024() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2023() -> String { +fn default_2025() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2024() -> String { +fn default_2026() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2025() -> Integer { +fn default_2027() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2026() -> String { +fn default_2028() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2027() -> Option { +fn default_2029() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2028() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_2029() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_2030() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2031() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_2031() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_2032() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2033() -> Option> { +fn default_2033() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2034() -> Option { +fn default_2034() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2035() -> Option { +fn default_2035() -> Option> { serde_json::from_str("null").expect("schema default") } fn default_2036() -> Option { @@ -66922,344 +66924,344 @@ fn default_2037() -> Option { fn default_2038() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2039() -> Option { +fn default_2039() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2040() -> Option { +fn default_2040() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2041() -> Option { +fn default_2041() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2042() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2043() -> Option { +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 { +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 { serde_json::from_str("null").expect("schema default") } -fn default_2051() -> Option { +fn default_2051() -> Option> { serde_json::from_str("null").expect("schema default") } 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 { +fn default_2054() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2055() -> 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 { serde_json::from_str("null").expect("schema default") } -fn default_2061() -> Integer { +fn default_2061() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_2062() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_2063() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2062() -> String { +fn default_2064() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2063() -> String { +fn default_2065() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2064() -> String { +fn default_2066() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2065() -> String { +fn default_2067() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2066() -> Option { +fn default_2068() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2067() -> bool { +fn default_2069() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2068() -> Integer { +fn default_2070() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2069() -> String { +fn default_2071() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2070() -> String { +fn default_2072() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2071() -> String { +fn default_2073() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2072() -> String { +fn default_2074() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2073() -> Option { +fn default_2075() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2074() -> Option { +fn default_2076() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2075() -> String { +fn default_2077() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2076() -> Vec { +fn default_2078() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2077() -> String { +fn default_2079() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2078() -> String { +fn default_2080() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2079() -> Option { +fn default_2081() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2080() -> Vec { +fn default_2082() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2081() -> Option { +fn default_2083() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2082() -> String { +fn default_2084() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2083() -> bool { +fn default_2085() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2084() -> f64 { +fn default_2086() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2085() -> f64 { +fn default_2087() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2086() -> String { +fn default_2088() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2087() -> Option { +fn default_2089() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2088() -> Integer { +fn default_2090() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2089() -> Integer { +fn default_2091() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2090() -> NamespaceEntryVisibility { +fn default_2092() -> NamespaceEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2091() -> String { +fn default_2093() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2092() -> Option { +fn default_2094() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2093() -> Option { +fn default_2095() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2094() -> Vec { +fn default_2096() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2095() -> MineEntryVisibility { +fn default_2097() -> MineEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2096() -> String { +fn default_2098() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2097() -> String { +fn default_2099() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2098() -> String { +fn default_2100() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2099() -> Option { +fn default_2101() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2100() -> bool { +fn default_2102() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2101() -> bool { +fn default_2103() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2102() -> String { +fn default_2104() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2103() -> NamespaceRegisterOutputVisibility { +fn default_2105() -> NamespaceRegisterOutputVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2104() -> bool { +fn default_2106() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2105() -> Integer { +fn default_2107() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2106() -> Integer { +fn default_2108() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2107() -> bool { +fn default_2109() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2108() -> Vec> { +fn default_2110() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2109() -> Option { +fn default_2111() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2110() -> Option { +fn default_2112() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2111() -> Vec { +fn default_2113() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2112() -> Integer { +fn default_2114() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2113() -> String { +fn default_2115() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2114() -> String { +fn default_2116() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2115() -> String { +fn default_2117() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2116() -> String { +fn default_2118() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2117() -> String { +fn default_2119() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2118() -> Option { +fn default_2120() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2119() -> String { +fn default_2121() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2120() -> String { +fn default_2122() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2121() -> String { +fn default_2123() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2122() -> Vec { +fn default_2124() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2123() -> Option { +fn default_2125() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2124() -> Option { +fn default_2126() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2125() -> Option { +fn default_2127() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2126() -> Option { +fn default_2128() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2127() -> String { +fn default_2129() -> String { serde_json::from_str("\"{}\"").expect("schema default") } -fn default_2128() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { +fn default_2130() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2129() -> Option { +fn default_2131() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2130() -> Vec { +fn default_2132() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2131() -> String { +fn default_2133() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2132() -> Integer { +fn default_2134() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2133() -> Integer { +fn default_2135() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2134() -> Option { +fn default_2136() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2135() -> String { +fn default_2137() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2136() -> String { +fn default_2138() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2137() -> String { +fn default_2139() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2138() -> String { +fn default_2140() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2139() -> Option { +fn default_2141() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2140() -> f64 { +fn default_2142() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2141() -> Option { +fn default_2143() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2142() -> Option { +fn default_2144() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2143() -> Integer { +fn default_2145() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2144() -> Option { +fn default_2146() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2145() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_2146() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2147() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2148() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2149() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2149() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_2150() -> String { serde_json::from_str("\"\"").expect("schema default") } -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") @@ -67270,608 +67272,608 @@ fn default_2153() -> Option { fn default_2154() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2155() -> String { +fn default_2155() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_2156() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2157() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2156() -> Vec { +fn default_2158() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2157() -> Vec { +fn default_2159() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2158() -> Option { +fn default_2160() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2159() -> Integer { +fn default_2161() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2160() -> String { +fn default_2162() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2161() -> Vec { +fn default_2163() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2162() -> Vec { +fn default_2164() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2163() -> String { +fn default_2165() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2164() -> Option { +fn default_2166() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2165() -> Vec { +fn default_2167() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2166() -> Integer { +fn default_2168() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2167() -> Vec { +fn default_2169() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2168() -> Option { +fn default_2170() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2169() -> Vec { +fn default_2171() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2170() -> Vec { +fn default_2172() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2171() -> Option { +fn default_2173() -> Option { serde_json::from_str("0").expect("schema default") } -fn default_2172() -> TuneProposalEffect { +fn default_2174() -> TuneProposalEffect { serde_json::from_str("\"future\"").expect("schema default") } -fn default_2173() -> TuneApplyVia { +fn default_2175() -> TuneApplyVia { serde_json::from_str("\"op\"").expect("schema default") } -fn default_2174() -> bool { +fn default_2176() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2175() -> Vec { +fn default_2177() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2176() -> Option { +fn default_2178() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2177() -> Option { +fn default_2179() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2178() -> String { +fn default_2180() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2179() -> Vec { +fn default_2181() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2180() -> Vec { +fn default_2182() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2181() -> Option { +fn default_2183() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2182() -> Option { +fn default_2184() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2183() -> Option { +fn default_2185() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2184() -> String { +fn default_2186() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2185() -> Option { +fn default_2187() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2186() -> Option { +fn default_2188() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2187() -> Option { +fn default_2189() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2188() -> Vec { +fn default_2190() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2189() -> bool { +fn default_2191() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2190() -> Option { +fn default_2192() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2191() -> Option { +fn default_2193() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2192() -> Vec { +fn default_2194() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2193() -> String { +fn default_2195() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2194() -> String { +fn default_2196() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2195() -> Vec> { +fn default_2197() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2196() -> std::collections::HashMap { +fn default_2198() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2197() -> Vec { +fn default_2199() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2198() -> Integer { +fn default_2200() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2199() -> Integer { +fn default_2201() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2200() -> String { +fn default_2202() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2201() -> String { +fn default_2203() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2202() -> String { +fn default_2204() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2203() -> Vec { +fn default_2205() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2204() -> Vec { +fn default_2206() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2205() -> String { +fn default_2207() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2206() -> String { +fn default_2208() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2207() -> bool { +fn default_2209() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2208() -> Integer { +fn default_2210() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2209() -> String { +fn default_2211() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2210() -> String { +fn default_2212() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2211() -> String { +fn default_2213() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2212() -> String { +fn default_2214() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2213() -> Vec { +fn default_2215() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2214() -> String { +fn default_2216() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2215() -> String { +fn default_2217() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2216() -> std::collections::HashMap { +fn default_2218() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2217() -> String { +fn default_2219() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2218() -> Option { +fn default_2220() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2219() -> Option { +fn default_2221() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2220() -> bool { +fn default_2222() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2221() -> String { +fn default_2223() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2222() -> String { +fn default_2224() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2223() -> Vec { +fn default_2225() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2224() -> Integer { +fn default_2226() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2225() -> String { +fn default_2227() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2226() -> String { +fn default_2228() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2227() -> Option { +fn default_2229() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2228() -> bool { +fn default_2230() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2229() -> String { +fn default_2231() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2230() -> bool { +fn default_2232() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2231() -> String { +fn default_2233() -> String { serde_json::from_str("\"inherit\"").expect("schema default") } -fn default_2232() -> Option { +fn default_2234() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2233() -> Option { +fn default_2235() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2234() -> bool { +fn default_2236() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2235() -> Vec { +fn default_2237() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2236() -> Integer { +fn default_2238() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2237() -> ProcedureEvolveOutputGate { +fn default_2239() -> ProcedureEvolveOutputGate { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2238() -> String { +fn default_2240() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2239() -> f64 { +fn default_2241() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2240() -> std::collections::HashMap { +fn default_2242() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2241() -> std::collections::HashMap { +fn default_2243() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2242() -> std::collections::HashMap { +fn default_2244() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2243() -> std::collections::HashMap { +fn default_2245() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2244() -> String { +fn default_2246() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2245() -> Vec { +fn default_2247() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2246() -> Vec { +fn default_2248() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2247() -> Vec { +fn default_2249() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2248() -> std::collections::HashMap { +fn default_2250() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2249() -> Integer { +fn default_2251() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2250() -> bool { +fn default_2252() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2251() -> std::collections::HashMap { +fn default_2253() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2252() -> Vec { +fn default_2254() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2253() -> std::collections::HashMap { +fn default_2255() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2254() -> String { +fn default_2256() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2255() -> ProcedureLocateOutputStatus { +fn default_2257() -> ProcedureLocateOutputStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2256() -> Option> { +fn default_2258() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2257() -> Vec>> { +fn default_2259() -> Vec>> { serde_json::from_str("[]").expect("schema default") } -fn default_2258() -> Vec { +fn default_2260() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2259() -> Vec { +fn default_2261() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2260() -> std::collections::HashMap { +fn default_2262() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2261() -> bool { +fn default_2263() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2262() -> Vec { +fn default_2264() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2263() -> Vec> { +fn default_2265() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2264() -> String { +fn default_2266() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2265() -> std::collections::HashMap { +fn default_2267() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2266() -> std::collections::HashMap { +fn default_2268() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2267() -> Vec { +fn default_2269() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2268() -> std::collections::HashMap { +fn default_2270() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2269() -> Option> { +fn default_2271() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2270() -> bool { +fn default_2272() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2271() -> std::collections::HashMap { +fn default_2273() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2272() -> ProcedureMatchStatus { +fn default_2274() -> ProcedureMatchStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2273() -> Option> { +fn default_2275() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2274() -> Vec { +fn default_2276() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2275() -> Integer { +fn default_2277() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2276() -> Vec> { +fn default_2278() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2277() -> f64 { +fn default_2279() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2278() -> f64 { +fn default_2280() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2279() -> f64 { +fn default_2281() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2280() -> Option { +fn default_2282() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2281() -> std::collections::HashMap { +fn default_2283() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2282() -> std::collections::HashMap> { +fn default_2284() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2283() -> String { +fn default_2285() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2284() -> Integer { +fn default_2286() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2285() -> String { +fn default_2287() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2286() -> f64 { +fn default_2288() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2287() -> Vec { +fn default_2289() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2288() -> ProcedureReviseOutputOutcome { +fn default_2290() -> ProcedureReviseOutputOutcome { serde_json::from_str("\"opened\"").expect("schema default") } -fn default_2289() -> Vec { +fn default_2291() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2290() -> Vec { +fn default_2292() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2291() -> String { +fn default_2293() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2292() -> String { +fn default_2294() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2293() -> String { +fn default_2295() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2294() -> String { +fn default_2296() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2295() -> Option { +fn default_2297() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2296() -> Integer { +fn default_2298() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2297() -> Vec { +fn default_2299() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2298() -> std::collections::HashMap { +fn default_2300() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2299() -> Option { +fn default_2301() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2300() -> String { +fn default_2302() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2301() -> Integer { +fn default_2303() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2302() -> String { +fn default_2304() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2303() -> String { +fn default_2305() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2304() -> std::collections::HashMap { +fn default_2306() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2305() -> String { +fn default_2307() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2306() -> String { +fn default_2308() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2307() -> Option { +fn default_2309() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2308() -> RunBeginOutputStatus { +fn default_2310() -> RunBeginOutputStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2309() -> String { +fn default_2311() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2310() -> Integer { +fn default_2312() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2311() -> Integer { +fn default_2313() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2312() -> Integer { +fn default_2314() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2313() -> Vec { +fn default_2315() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2314() -> Integer { +fn default_2316() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2315() -> Integer { +fn default_2317() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2316() -> Integer { +fn default_2318() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2317() -> String { +fn default_2319() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2318() -> String { +fn default_2320() -> String { serde_json::from_str("\"keep\"").expect("schema default") } -fn default_2319() -> Integer { +fn default_2321() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2320() -> Integer { +fn default_2322() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2321() -> Integer { +fn default_2323() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2322() -> Option { +fn default_2324() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2323() -> Integer { +fn default_2325() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2324() -> Vec { +fn default_2326() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2325() -> Vec { +fn default_2327() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2326() -> Integer { +fn default_2328() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2327() -> Integer { +fn default_2329() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2328() -> Integer { +fn default_2330() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2329() -> f64 { +fn default_2331() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2330() -> Integer { +fn default_2332() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2331() -> Vec { +fn default_2333() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2332() -> Integer { +fn default_2334() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2333() -> Vec { +fn default_2335() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2334() -> Integer { +fn default_2336() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2335() -> Integer { +fn default_2337() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2336() -> Integer { +fn default_2338() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2337() -> Vec { +fn default_2339() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2338() -> Option { +fn default_2340() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2339() -> Option> { +fn default_2341() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2340() -> LiveSearchResultsLive { +fn default_2342() -> LiveSearchResultsLive { serde_json::from_str("true").expect("schema default") } -fn default_2341() -> String { +fn default_2343() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2342() -> LiveSearchHitLive { +fn default_2344() -> LiveSearchHitLive { serde_json::from_str("true").expect("schema default") } -fn default_2343() -> Vec { +fn default_2345() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2344() -> Option { +fn default_2346() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2345() -> std::collections::HashMap { +fn default_2347() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2346() -> std::collections::HashMap { +fn default_2348() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2347() -> std::collections::HashMap { +fn default_2349() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2348() -> std::collections::HashMap { +fn default_2350() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2349() -> Option> { +fn default_2351() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2350() -> Vec { +fn default_2352() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2351() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_2352() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2353() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_2354() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2355() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2355() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_2356() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -67891,62 +67893,62 @@ fn default_2360() -> String { fn default_2361() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2362() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_2362() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2363() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2364() -> String { +fn default_2364() -> Vec { + serde_json::from_str("[]").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") } -fn default_2365() -> Vec { +fn default_2367() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2366() -> String { +fn default_2368() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2367() -> String { +fn default_2369() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2368() -> Vec { +fn default_2370() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2369() -> Vec { +fn default_2371() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2370() -> Vec { +fn default_2372() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2371() -> String { +fn default_2373() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2372() -> String { +fn default_2374() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2373() -> Vec { +fn default_2375() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2374() -> Vec { +fn default_2376() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2375() -> Vec { +fn default_2377() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2376() -> String { - 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() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_2379() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2380() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2380() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_2381() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -67960,17 +67962,17 @@ fn default_2383() -> String { fn default_2384() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2385() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_2385() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_2386() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_2386() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_2387() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2387() -> Vec { + serde_json::from_str("[]").expect("schema default") } -fn default_2388() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2388() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_2389() -> Integer { serde_json::from_str("0").expect("schema default") @@ -67981,14 +67983,14 @@ fn default_2390() -> Integer { fn default_2391() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2392() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_2392() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_2393() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2393() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_2394() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2394() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_2395() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -68005,537 +68007,543 @@ fn default_2398() -> String { fn default_2399() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2400() -> Option { +fn default_2400() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2401() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2402() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2401() -> Integer { +fn default_2403() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2402() -> Integer { +fn default_2404() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2403() -> Vec { +fn default_2405() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2404() -> String { +fn default_2406() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2405() -> String { +fn default_2407() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2406() -> String { +fn default_2408() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2407() -> String { +fn default_2409() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2408() -> Integer { +fn default_2410() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2409() -> Integer { +fn default_2411() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2410() -> Integer { +fn default_2412() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2411() -> Integer { +fn default_2413() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2412() -> Integer { +fn default_2414() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2413() -> f64 { +fn default_2415() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2414() -> Integer { +fn default_2416() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2415() -> Integer { +fn default_2417() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2416() -> Integer { +fn default_2418() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2417() -> String { +fn default_2419() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2418() -> SessionBriefStats { +fn default_2420() -> 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_2419() -> String { +fn default_2421() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2420() -> String { +fn default_2422() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2421() -> Option { +fn default_2423() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2422() -> Option { +fn default_2424() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2423() -> Option { +fn default_2425() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2424() -> Integer { +fn default_2426() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2425() -> std::collections::HashMap { +fn default_2427() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2426() -> String { +fn default_2428() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2427() -> String { +fn default_2429() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2428() -> Option { +fn default_2430() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2429() -> String { +fn default_2431() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2430() -> Integer { +fn default_2432() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2431() -> Integer { +fn default_2433() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2432() -> Option { +fn default_2434() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2433() -> std::collections::HashMap { +fn default_2435() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2434() -> String { +fn default_2436() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2435() -> Integer { +fn default_2437() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2436() -> String { +fn default_2438() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2437() -> Option { +fn default_2439() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2438() -> String { +fn default_2440() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2439() -> Option { +fn default_2441() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2440() -> String { +fn default_2442() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2441() -> String { +fn default_2443() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2442() -> String { +fn default_2444() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2443() -> String { +fn default_2445() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2444() -> Integer { +fn default_2446() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2445() -> Integer { +fn default_2447() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2446() -> String { +fn default_2448() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2447() -> std::collections::HashMap { +fn default_2449() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2448() -> String { +fn default_2450() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2449() -> String { +fn default_2451() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2450() -> bool { +fn default_2452() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2451() -> String { +fn default_2453() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2452() -> std::collections::HashMap { +fn default_2454() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2453() -> Vec> { +fn default_2455() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2454() -> Vec { +fn default_2456() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2455() -> Vec { +fn default_2457() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2456() -> bool { +fn default_2458() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2457() -> String { +fn default_2459() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_2458() -> String { +fn default_2460() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2459() -> Vec { +fn default_2461() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2460() -> bool { +fn default_2462() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2461() -> String { +fn default_2463() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2462() -> bool { +fn default_2464() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2463() -> Vec { +fn default_2465() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2464() -> std::collections::HashMap { +fn default_2466() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2465() -> Vec> { +fn default_2467() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2466() -> bool { +fn default_2468() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2467() -> bool { +fn default_2469() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2468() -> Vec> { +fn default_2470() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2469() -> std::collections::HashMap { +fn default_2471() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2470() -> String { +fn default_2472() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2471() -> Vec> { +fn default_2473() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2472() -> bool { +fn default_2474() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2473() -> String { +fn default_2475() -> String { serde_json::from_str("\"calibrated\"").expect("schema default") } -fn default_2474() -> std::collections::HashMap { +fn default_2476() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2475() -> std::collections::HashMap { +fn default_2477() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2476() -> String { +fn default_2478() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2477() -> std::collections::HashMap { +fn default_2479() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2478() -> std::collections::HashMap { +fn default_2480() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2479() -> std::collections::HashMap { +fn default_2481() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2480() -> String { +fn default_2482() -> String { serde_json::from_str("\"ok\"").expect("schema default") } -fn default_2481() -> String { +fn default_2483() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2482() -> String { +fn default_2484() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2483() -> bool { +fn default_2485() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2484() -> Integer { +fn default_2486() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2485() -> String { +fn default_2487() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2486() -> String { +fn default_2488() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2487() -> Vec { +fn default_2489() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2488() -> bool { +fn default_2490() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2489() -> Vec { +fn default_2491() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2490() -> std::collections::HashMap> { +fn default_2492() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2491() -> Vec> { +fn default_2493() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2492() -> Vec> { +fn default_2494() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2493() -> String { +fn default_2495() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2494() -> Vec> { +fn default_2496() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2495() -> std::collections::HashMap { +fn default_2497() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2496() -> String { +fn default_2498() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2497() -> Vec> { +fn default_2499() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2498() -> bool { +fn default_2500() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2499() -> Integer { +fn default_2501() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2500() -> Vec> { +fn default_2502() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2501() -> String { +fn default_2503() -> String { serde_json::from_str("\"no_flaky_signal\"").expect("schema default") } -fn default_2502() -> bool { +fn default_2504() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2503() -> Option> { +fn default_2505() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2504() -> Vec { +fn default_2506() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2505() -> bool { +fn default_2507() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2506() -> std::collections::HashMap { +fn default_2508() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2507() -> String { +fn default_2509() -> String { serde_json::from_str("\"not_computed\"").expect("schema default") } -fn default_2508() -> Vec> { +fn default_2510() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2509() -> String { +fn default_2511() -> String { serde_json::from_str("\"candidate\"").expect("schema default") } -fn default_2510() -> std::collections::HashMap { +fn default_2512() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2511() -> String { +fn default_2513() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2512() -> bool { +fn default_2514() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2513() -> Integer { +fn default_2515() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2514() -> std::collections::HashMap { +fn default_2516() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2515() -> bool { +fn default_2517() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2516() -> Vec> { +fn default_2518() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2517() -> std::collections::HashMap { +fn default_2519() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2518() -> std::collections::HashMap { +fn default_2520() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2519() -> String { +fn default_2521() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_2520() -> bool { +fn default_2522() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2521() -> Vec { +fn default_2523() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2522() -> Vec> { +fn default_2524() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2523() -> std::collections::HashMap { +fn default_2525() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2524() -> Vec { +fn default_2526() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2525() -> String { +fn default_2527() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2526() -> bool { +fn default_2528() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2527() -> bool { +fn default_2529() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2528() -> std::collections::HashMap { +fn default_2530() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2529() -> String { +fn default_2531() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2530() -> bool { +fn default_2532() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2531() -> std::collections::HashMap { +fn default_2533() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2532() -> std::collections::HashMap { +fn default_2534() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2533() -> Vec> { +fn default_2535() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2534() -> Vec { +fn default_2536() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2535() -> std::collections::HashMap { +fn default_2537() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2536() -> Vec> { +fn default_2538() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2537() -> bool { +fn default_2539() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2538() -> bool { +fn default_2540() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2539() -> Vec { +fn default_2541() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2540() -> std::collections::HashMap { +fn default_2542() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2541() -> String { +fn default_2543() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2542() -> std::collections::HashMap { +fn default_2544() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2543() -> bool { +fn default_2545() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2544() -> bool { +fn default_2546() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2545() -> String { +fn default_2547() -> String { serde_json::from_str("\"no_signal\"").expect("schema default") } -fn default_2546() -> Vec { +fn default_2548() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2547() -> f64 { +fn default_2549() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2548() -> Integer { +fn default_2550() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2549() -> String { +fn default_2551() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2550() -> std::collections::HashMap { +fn default_2552() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2551() -> std::collections::HashMap { +fn default_2553() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2552() -> std::collections::HashMap { +fn default_2554() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2553() -> std::collections::HashMap { +fn default_2555() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2554() -> String { +fn default_2556() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2555() -> std::collections::HashMap { +fn default_2557() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2556() -> bool { +fn default_2558() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2557() -> std::collections::HashMap { +fn default_2559() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2558() -> std::collections::HashMap { +fn default_2560() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2559() -> std::collections::HashMap { +fn default_2561() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2560() -> std::collections::HashMap { +fn default_2562() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2561() -> String { +fn default_2563() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2562() -> Vec> { +fn default_2564() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2563() -> Integer { +fn default_2565() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2564() -> String { +fn default_2566() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2565() -> bool { +fn default_2567() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2566() -> String { +fn default_2568() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2567() -> Vec { +fn default_2569() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2568() -> bool { +fn default_2570() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2569() -> Vec { +fn default_2571() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2570() -> f64 { +fn default_2572() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2571() -> String { +fn default_2573() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2572() -> Integer { +fn default_2574() -> Integer { serde_json::from_str("4096").expect("schema default") } -fn default_2573() -> Integer { +fn default_2575() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2574() -> Option { +fn default_2576() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2575() -> f64 { +fn default_2577() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2576() -> Option { +fn default_2578() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2577() -> Vec { +fn default_2579() -> 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 69033921c88..15782f64a46 100644 --- a/sdk/rust/tests/registry_contracts.rs +++ b/sdk/rust/tests/registry_contracts.rs @@ -11787,9 +11787,19 @@ fn code_calibrate() { let value: clickhouse_loom::CodeCalibrateInput = serde_json::from_str("{}").unwrap(); let encoded = serde_json::to_value(value).unwrap(); assert!(encoded.is_object()); - let value: clickhouse_loom::CodeCalibrateOutput = serde_json::from_str("{\"noise_floor\":1.0,\"abstain_threshold\":1.0,\"rerank_skip_above\":1.0,\"embedder_model\":\"sample\",\"positives\":1,\"distractors\":1,\"probe_source\":\"namespace\",\"strata\":1}").unwrap(); + let value: clickhouse_loom::CodeCalibrateOutput = serde_json::from_str("{\"noise_floor\":1.0,\"abstain_threshold\":1.0,\"rerank_skip_above\":1.0,\"embedder_model\":\"sample\",\"positives\":1,\"distractors\":1}").unwrap(); let encoded = serde_json::to_value(value).unwrap(); assert!(encoded.is_object()); + assert_eq!( + encoded["probe_source"], + serde_json::from_str::("null").unwrap(), + "code.calibrate:probe_source" + ); + assert_eq!( + encoded["strata"], + serde_json::from_str::("null").unwrap(), + "code.calibrate:strata" + ); } #[test] fn code_coverage_watch() { diff --git a/sdk/typescript/src/generated/ops.ts b/sdk/typescript/src/generated/ops.ts index a57180a5be0..2e209a504fa 100644 --- a/sdk/typescript/src/generated/ops.ts +++ b/sdk/typescript/src/generated/ops.ts @@ -433,8 +433,8 @@ export interface CodeCalibrateOutput { embedder_model: string; positives: number; distractors: number; - probe_source: "namespace" | "fixture"; - strata: number; + probe_source?: "namespace" | "fixture" | null; + strata?: number | null; } export interface CodeCallersInput { diff --git a/server/code/api/models_ingest.py b/server/code/api/models_ingest.py index e613bddaa4b..e45d6d56013 100644 --- a/server/code/api/models_ingest.py +++ b/server/code/api/models_ingest.py @@ -163,8 +163,10 @@ class CodeCalibrateOutput(BaseModel): positives: int # Query/distractor pairs the thresholds were derived from. distractors: int - # Where the probes came from: `namespace` (its own documented functions) or - # `fixture` (the fixed corpus, for a namespace with too few documented functions). - probe_source: Literal["namespace", "fixture"] - # Language-and-directory strata the namespace probes were drawn from; 0 for the fixture. - strata: int + # Where the probes came from: `namespace` (its own documented functions) or `fixture` + # (the fixed corpus); None on a reply from a build without this field means unknown, + # not `fixture`. + probe_source: Literal["namespace", "fixture"] | None = None + # Language-and-directory strata the namespace probes were drawn from; 0 for the + # fixture; None on a reply from a build without this field means unknown, not the fixture. + strata: int | None = None diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index c2e92dbca86..bbcdf4dff33 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -327,3 +327,21 @@ def test_code_calibrate_probes_is_bounded() -> None: CodeSettings(code_calibrate_probes=bad) assert CodeSettings(code_calibrate_probes=20).code_calibrate_probes == 20 assert CodeSettings(code_calibrate_probes=1000).code_calibrate_probes == 1000 + + +def test_an_older_builds_reply_reads_as_unknown_not_as_the_fixture() -> None: + """A replica on the build before this one answers code.calibrate without the fields + this build added. The reply must read as unknown, not as the fixture's 0 strata.""" + from server.code.api.models_ingest import CodeCalibrateOutput + + reply = { + "noise_floor": 0.41, + "abstain_threshold": 0.46, + "rerank_skip_above": 0.72, + "embedder_model": "probe-test-embedder", + "positives": 120, + "distractors": 120, + } + output = CodeCalibrateOutput.model_validate(reply) + assert output.probe_source is None + assert output.strata is None From a5ebbc9191af5301567326a32231ac5b0c3b6263 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Thu, 3 Dec 2026 17:39:40 +0000 Subject: [PATCH 10/27] code.calibrate: an older build's absent fields stay absent The two response fields added by this branch decoded as null when a replica on the previous build omitted them. Rust's Option collapsed "no key" and "null" into the same value, and the generated contract test pinned that null. The other SDK readers already keep absence and null apart. Mark the two fields presence-absent in the model schema and emit Option> with present_nullable for them in Rust, so a missing key decodes as absent while an explicit null still decodes as unknown. Regenerate the Rust and Go artifacts. The regression fixture is the previous build's six-field reply: before this change it re-encoded both fields as null, after it omits them. A second case keeps an explicit null distinct. docs/architecture/llm-architecture.md: the cap is the 10th percentile of the query-to-function cosines over up to 200 sampled probe pairs; it does not bound abstention for functions outside the sample or queries whose correct hit never enters the candidate set. The operations guide says the same and no longer calls an old reply "unknown". Signed-off-by: Kaloyan Naumov --- docs/architecture/llm-architecture.md | 10 +++-- docs/operations/code-index-operations.md | 10 +++-- docs/reference/operations/code.md | 4 +- scripts/codegen/sdk_rust_gen.py | 21 +++++++++- sdk/go/wire/models.gen.go | 2 +- sdk/rust/src/wire_models.rs | 20 ++++++--- sdk/rust/tests/code_calibrate_compat.rs | 41 +++++++++++++++++++ .../fixtures/code_calibrate_previous.json | 1 + sdk/rust/tests/registry_contracts.rs | 14 +++---- server/code/api/models_ingest.py | 19 ++++++--- tests/unit/test_code_calibration_probes.py | 19 ++++++--- tests/unit/test_sdk_rust_codegen.py | 21 ++++++++++ 12 files changed, 146 insertions(+), 36 deletions(-) create mode 100644 sdk/rust/tests/code_calibrate_compat.rs create mode 100644 sdk/rust/tests/fixtures/code_calibrate_previous.json diff --git a/docs/architecture/llm-architecture.md b/docs/architecture/llm-architecture.md index 88eabb74efe..84b950437e4 100644 --- a/docs/architecture/llm-architecture.md +++ b/docs/architecture/llm-architecture.md @@ -192,9 +192,13 @@ distractor), or from a fixed corpus for a namespace with fewer than 20 of them: | conflict | paraphrase p50 | | duplicate | paraphrase p75 | -`code.calibrate` then caps abstain at its question-to-answer p10 and keeps the noise floor -0.05 under it, so a namespace abstains on at most one in ten of its own documented -functions. +`code.calibrate` then caps abstain at the 10th percentile of the query-to-function +cosines it measured on its sampled probe pairs — up to `LOOM_CODE_CALIBRATE_PROBES` +(200 by default) documented functions, or the fixed corpus for a namespace with fewer +than 20 of them — and keeps the noise floor 0.05 under it. That percentile describes +the sampled pairs, not the namespace: it places no bound on how often search abstains +for a function the sample did not draw, or for a query whose correct hit never enters +the candidate set. Each search resolves thresholds in three tiers: diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 52db25d1c33..102115ca83b 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -405,10 +405,12 @@ Then: usable documented functions is calibrated on `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image) instead; `probe_source` in a reply from this build says which; a reply from a build before - the field reads as unknown, not as `fixture`. The abstain threshold is at most the - probes' 10th-percentile query-to-function cosine: functions of one repository share - its vocabulary, so an unrelated one scores close to the right one, and the distractor - percentile alone would abstain on many right answers. Run it for every code namespace, + the field leaves it absent, not `fixture`. The abstain threshold is capped at the + sampled probes' 10th-percentile query-to-function cosine: functions of one repository + share its vocabulary, so an unrelated one scores close to the right one, and the + distractor percentile alone would abstain on many right answers. That percentile is + over the sampled pairs and does not bound abstention for unsampled functions or a + query whose correct hit never enters the candidate set. Run it for every code namespace, and again after a change of embedding model. A namespace without its own calibration (`calibration.get` reads `source: cluster`) reads code on the embedder's boot calibration, which is derived from prose. On an embedding diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index 9c3bedde4fc..a4c5175d70f 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -260,8 +260,8 @@ Derive this namespace's calibration and persist it: the code-specific abstention | `embedder_model` | `str` | The embedding model the probes ran against; the calibration applies to it. | | `positives` | `int` | Query/positive pairs the thresholds were derived from. | | `distractors` | `int` | Query/distractor pairs the thresholds were derived from. | -| `probe_source` | `Literal['namespace', 'fixture'] \| None` | Where the probes came from: `namespace` (its own documented functions) or `fixture` (the fixed corpus); None on a reply from a build without this field means unknown, not `fixture`. | -| `strata` | `int \| None` | Language-and-directory strata the namespace probes were drawn from; 0 for the fixture; None on a reply from a build without this field means unknown, not the fixture. | +| `probe_source` | `Literal['namespace', 'fixture'] \| None` | Where the probes came from: `namespace` (its own documented functions) or `fixture` (the fixed corpus); a reply from a build before the field leaves it absent, not `fixture`. | +| `strata` | `int \| None` | Language-and-directory strata the namespace probes were drawn from; 0 for the fixture; a reply from a build before the field leaves it absent, not the fixture. | ## `code.callees` diff --git a/scripts/codegen/sdk_rust_gen.py b/scripts/codegen/sdk_rust_gen.py index bb2fb4bebda..b260b483d6f 100644 --- a/scripts/codegen/sdk_rust_gen.py +++ b/scripts/codegen/sdk_rust_gen.py @@ -411,9 +411,16 @@ def field( # JSON value uses Value::Null directly, without an extra Option. raw = override or self.wire_type(base, model + pascal(wire)) nullable = nullable and raw != "Value" + # A response field marked presence-absent keeps a missing key distinct from an + # explicit null: the outer Option is absence, the inner one is the JSON null. + presence = ( + not request and not required and nullable and prop.get("x-loom-presence") == "absent" + ) optional = request and not required ty = f"Option<{raw}>" if nullable else raw - if optional or (not request and not required and "default" not in prop and not nullable): + if presence: + ty = f"Option>" + elif optional or (not request and not required and "default" not in prop and not nullable): ty = f"Option<{ty}>" attrs = [f"rename = {rust_string(wire)}"] if field != wire else [] if optional: @@ -422,6 +429,12 @@ def field( 'skip_serializing_if = "Option::is_none"', f'deserialize_with = "{"present_nullable" if nullable else "present_value"}"', ] + elif presence: + attrs += [ + self.default_attr(prop, ty), + 'skip_serializing_if = "Option::is_none"', + 'deserialize_with = "present_nullable"', + ] elif not required: attrs += [self.default_attr(prop, ty)] if required and nullable: @@ -878,6 +891,12 @@ def build_contract_tests(selected: tuple[str, ...] | None = None) -> str: if not request and not schema.get("_rust_projected"): for key, prop in schema["properties"].items(): if key not in schema.get("required", []) and "default" in prop: + if prop.get("x-loom-presence") == "absent": + lines.append( + f"assert!(encoded.get({rust_string(key)}).is_none(), " + f"{rust_string(op.name + ':' + key + ' absent')});" + ) + continue value = prop["default"] # JSON Schema may describe a float default with an integer token. if split_nullable(prop)[0].get("type") == "number" and value is not None: diff --git a/sdk/go/wire/models.gen.go b/sdk/go/wire/models.gen.go index ff4676eff80..27ee66a6501 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: 6fece1a573bc9b16c326b878248ec3838038b0b2fcfe1fcfd8e9bb11fa804f9a +// Registry model schema SHA-256: 091be5367aa03da0eb4400313b392b1cdc010fe47abe4c2ebb7232f84c96dff9 // Package wire contains the Go requests and responses for Loom operations. package wire diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs index 299219aca39..2bcddc0eeca 100644 --- a/sdk/rust/src/wire_models.rs +++ b/sdk/rust/src/wire_models.rs @@ -7517,10 +7517,18 @@ pub struct CodeCalibrateOutput { pub embedder_model: String, pub positives: Integer, pub distractors: Integer, - #[serde(default = "default_317")] - pub probe_source: Option, - #[serde(default = "default_318")] - pub strata: Option, + #[serde( + default = "default_317", + skip_serializing_if = "Option::is_none", + deserialize_with = "present_nullable" + )] + pub probe_source: Option>, + #[serde( + default = "default_318", + skip_serializing_if = "Option::is_none", + deserialize_with = "present_nullable" + )] + pub strata: Option>, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -61742,10 +61750,10 @@ fn default_315() -> bool { fn default_316() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_317() -> Option { +fn default_317() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_318() -> Option { +fn default_318() -> Option> { serde_json::from_str("null").expect("schema default") } fn default_319() -> Vec> { diff --git a/sdk/rust/tests/code_calibrate_compat.rs b/sdk/rust/tests/code_calibrate_compat.rs new file mode 100644 index 00000000000..e56c2e4804b --- /dev/null +++ b/sdk/rust/tests/code_calibrate_compat.rs @@ -0,0 +1,41 @@ +// A replica on the previous build answers `code.calibrate` without the two fields this +// build added. The reply must keep them absent: an older build did not say "unknown"; +// it never had the keys. An explicit null is the new build's unknown and must survive. +use clickhouse_loom::CodeCalibrateOutput; +use serde_json::{json, Value}; + +const PREVIOUS_BUILD_REPLY: &str = include_str!("fixtures/code_calibrate_previous.json"); + +#[test] +fn a_previous_builds_reply_keeps_the_new_fields_absent() { + let decoded: CodeCalibrateOutput = serde_json::from_str(PREVIOUS_BUILD_REPLY).unwrap(); + assert_eq!(decoded.noise_floor, 0.41); + assert_eq!(decoded.embedder_model, "bge-m3"); + let encoded = serde_json::to_value(&decoded).unwrap(); + assert!( + encoded.get("probe_source").is_none(), + "probe_source must stay absent, not become null" + ); + assert!( + encoded.get("strata").is_none(), + "strata must stay absent, not become null" + ); +} + +#[test] +fn an_explicit_null_is_not_absence() { + let mut reply: Value = json!({ + "noise_floor": 0.41, + "abstain_threshold": 0.46, + "rerank_skip_above": 0.72, + "embedder_model": "bge-m3", + "positives": 120, + "distractors": 120, + "probe_source": null, + "strata": null + }); + let decoded: CodeCalibrateOutput = serde_json::from_value(reply.take()).unwrap(); + let encoded = serde_json::to_value(&decoded).unwrap(); + assert_eq!(encoded["probe_source"], Value::Null); + assert_eq!(encoded["strata"], Value::Null); +} diff --git a/sdk/rust/tests/fixtures/code_calibrate_previous.json b/sdk/rust/tests/fixtures/code_calibrate_previous.json new file mode 100644 index 00000000000..3ad361c0854 --- /dev/null +++ b/sdk/rust/tests/fixtures/code_calibrate_previous.json @@ -0,0 +1 @@ +{"noise_floor":0.41,"abstain_threshold":0.46,"rerank_skip_above":0.72,"embedder_model":"bge-m3","positives":120,"distractors":120} diff --git a/sdk/rust/tests/registry_contracts.rs b/sdk/rust/tests/registry_contracts.rs index 15782f64a46..b34039d4679 100644 --- a/sdk/rust/tests/registry_contracts.rs +++ b/sdk/rust/tests/registry_contracts.rs @@ -11790,15 +11790,13 @@ fn code_calibrate() { let value: clickhouse_loom::CodeCalibrateOutput = serde_json::from_str("{\"noise_floor\":1.0,\"abstain_threshold\":1.0,\"rerank_skip_above\":1.0,\"embedder_model\":\"sample\",\"positives\":1,\"distractors\":1}").unwrap(); let encoded = serde_json::to_value(value).unwrap(); assert!(encoded.is_object()); - assert_eq!( - encoded["probe_source"], - serde_json::from_str::("null").unwrap(), - "code.calibrate:probe_source" + assert!( + encoded.get("probe_source").is_none(), + "code.calibrate:probe_source absent" ); - assert_eq!( - encoded["strata"], - serde_json::from_str::("null").unwrap(), - "code.calibrate:strata" + assert!( + encoded.get("strata").is_none(), + "code.calibrate:strata absent" ); } #[test] diff --git a/server/code/api/models_ingest.py b/server/code/api/models_ingest.py index e45d6d56013..d9aa56060c0 100644 --- a/server/code/api/models_ingest.py +++ b/server/code/api/models_ingest.py @@ -6,7 +6,7 @@ from __future__ import annotations import uuid -from typing import Literal +from typing import Any, Literal from pydantic import BaseModel, Field, field_validator @@ -147,6 +147,11 @@ class CodeCalibrateInput(_CodeIdentity): pass +# An omitted response key is a distinct wire state from an explicit null: a build before +# the field says nothing, while a build that has it can still answer null (unknown). +WIRE_PRESENCE_ABSENT: dict[str, Any] = {"x-loom-presence": "absent"} + + class CodeCalibrateOutput(BaseModel): # Cosine below which a hit is noise: the distractors' 90th percentile plus 0.02, or # 0.05 under the abstain threshold when that is capped, whichever is lower. @@ -164,9 +169,11 @@ class CodeCalibrateOutput(BaseModel): # Query/distractor pairs the thresholds were derived from. distractors: int # Where the probes came from: `namespace` (its own documented functions) or `fixture` - # (the fixed corpus); None on a reply from a build without this field means unknown, - # not `fixture`. - probe_source: Literal["namespace", "fixture"] | None = None + # (the fixed corpus); a reply from a build before the field leaves it absent, not + # `fixture`. + probe_source: Literal["namespace", "fixture"] | None = Field( + default=None, json_schema_extra=WIRE_PRESENCE_ABSENT + ) # Language-and-directory strata the namespace probes were drawn from; 0 for the - # fixture; None on a reply from a build without this field means unknown, not the fixture. - strata: int | None = None + # fixture; a reply from a build before the field leaves it absent, not the fixture. + strata: int | None = Field(default=None, json_schema_extra=WIRE_PRESENCE_ABSENT) diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index bbcdf4dff33..94e4d26fefd 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -329,9 +329,10 @@ def test_code_calibrate_probes_is_bounded() -> None: assert CodeSettings(code_calibrate_probes=1000).code_calibrate_probes == 1000 -def test_an_older_builds_reply_reads_as_unknown_not_as_the_fixture() -> None: - """A replica on the build before this one answers code.calibrate without the fields - this build added. The reply must read as unknown, not as the fixture's 0 strata.""" +def test_an_older_builds_reply_leaves_the_new_fields_absent() -> None: + # A replica on the build before this one answers without the fields this build + # added. They stay absent - not the fixture's `fixture`/0, and not an explicit + # unknown the old build never said. from server.code.api.models_ingest import CodeCalibrateOutput reply = { @@ -343,5 +344,13 @@ def test_an_older_builds_reply_reads_as_unknown_not_as_the_fixture() -> None: "distractors": 120, } output = CodeCalibrateOutput.model_validate(reply) - assert output.probe_source is None - assert output.strata is None + assert "probe_source" not in output.model_fields_set + assert "strata" not in output.model_fields_set + assert "probe_source" not in output.model_dump(exclude_unset=True) + assert "strata" not in output.model_dump(exclude_unset=True) + + # A build that has the fields can still answer null; that is unknown, not absence. + answered = CodeCalibrateOutput.model_validate({**reply, "probe_source": None, "strata": None}) + assert {"probe_source", "strata"} <= answered.model_fields_set + assert answered.probe_source is None + assert answered.strata is None diff --git a/tests/unit/test_sdk_rust_codegen.py b/tests/unit/test_sdk_rust_codegen.py index 1e460d31ae4..2b8969b096a 100644 --- a/tests/unit/test_sdk_rust_codegen.py +++ b/tests/unit/test_sdk_rust_codegen.py @@ -253,6 +253,27 @@ def test_required_nullable_default_and_keyword_fields() -> None: assert 'from_str("5")' in em.defaults[0] +def test_a_presence_absent_response_keeps_missing_distinct_from_null() -> None: + em = gen.Emitter() + em.model( + "Contract", + { + "properties": { + "source": { + "anyOf": [{"type": "string"}, {"type": "null"}], + "default": None, + "x-loom-presence": "absent", + } + }, + }, + request=False, + ) + text = em.declarations["Contract"] + assert "pub source: Option>" in text + assert 'deserialize_with = "present_nullable"' in text + assert 'skip_serializing_if = "Option::is_none"' in text + + def test_type_field_and_method_collisions_are_refused() -> None: em = gen.Emitter() em.wire_type({"type": "string", "enum": ["yes"]}, "Label") From 40158c0def0b774aa6c89783468d3a567371d974 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Thu, 3 Dec 2026 19:36:57 +0000 Subject: [PATCH 11/27] Format the calibrate previous-build fixture with the pinned Biome The regression fixture landed as one line, which the format gate rejects. This is the repository formatter's own output: npx --yes @biomejs/biome@2.5.14 format --write, reading the root biome.json (2-space, lineWidth 120). No other file is touched and the values are unchanged. Signed-off-by: Kaloyan Naumov --- sdk/rust/tests/fixtures/code_calibrate_previous.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sdk/rust/tests/fixtures/code_calibrate_previous.json b/sdk/rust/tests/fixtures/code_calibrate_previous.json index 3ad361c0854..a4ce7716f17 100644 --- a/sdk/rust/tests/fixtures/code_calibrate_previous.json +++ b/sdk/rust/tests/fixtures/code_calibrate_previous.json @@ -1 +1,8 @@ -{"noise_floor":0.41,"abstain_threshold":0.46,"rerank_skip_above":0.72,"embedder_model":"bge-m3","positives":120,"distractors":120} +{ + "noise_floor": 0.41, + "abstain_threshold": 0.46, + "rerank_skip_above": 0.72, + "embedder_model": "bge-m3", + "positives": 120, + "distractors": 120 +} From f2126ec56fb4644156ca7a01bb24860cffb7f389 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Fri, 4 Dec 2026 03:36:55 +0200 Subject: [PATCH 12/27] code.calibrate round-trip: a present null must not read as a missing key serde_json indexing returns Value::Null for an absent key as well as a present one, so encoded["probe_source"] == Value::Null passed with the key gone. Both fields now assert through .get: None for absence, Some(&Value::Null) for the new build's explicit unknown. Verified red against a serialiser that skips Option>::Some(None) and green with the real one. Signed-off-by: Kaloyan Naumov --- sdk/rust/tests/code_calibrate_compat.rs | 31 ++++++++++++++++++------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/sdk/rust/tests/code_calibrate_compat.rs b/sdk/rust/tests/code_calibrate_compat.rs index e56c2e4804b..2cd8315bf70 100644 --- a/sdk/rust/tests/code_calibrate_compat.rs +++ b/sdk/rust/tests/code_calibrate_compat.rs @@ -12,13 +12,18 @@ fn a_previous_builds_reply_keeps_the_new_fields_absent() { assert_eq!(decoded.noise_floor, 0.41); assert_eq!(decoded.embedder_model, "bge-m3"); let encoded = serde_json::to_value(&decoded).unwrap(); - assert!( - encoded.get("probe_source").is_none(), - "probe_source must stay absent, not become null" + // `.get` is the only read that tells an absent key from a present null: indexing + // a missing key yields `Value::Null` too, so `encoded["probe_source"] == Value::Null` + // would pass with the key gone. + assert_eq!( + encoded.get("probe_source"), + None, + "probe_source must stay absent, not become a present null" ); - assert!( - encoded.get("strata").is_none(), - "strata must stay absent, not become null" + assert_eq!( + encoded.get("strata"), + None, + "strata must stay absent, not become a present null" ); } @@ -36,6 +41,16 @@ fn an_explicit_null_is_not_absence() { }); let decoded: CodeCalibrateOutput = serde_json::from_value(reply.take()).unwrap(); let encoded = serde_json::to_value(&decoded).unwrap(); - assert_eq!(encoded["probe_source"], Value::Null); - assert_eq!(encoded["strata"], Value::Null); + // `Some(&Value::Null)`, not `Value::Null`: a serialiser that drops explicit nulls + // still renders the key as absent, and indexing would not notice the difference. + assert_eq!( + encoded.get("probe_source"), + Some(&Value::Null), + "an explicit null must serialise as a present key holding null" + ); + assert_eq!( + encoded.get("strata"), + Some(&Value::Null), + "an explicit null must serialise as a present key holding null" + ); } From fc795eb510196bcc87b412cfe55764cc985caa72 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Fri, 4 Dec 2026 21:48:04 +0000 Subject: [PATCH 13/27] Read code-calibration units in batches at the probe ceiling (#2011) At code_calibrate_probes=1000 a namespace samples 5,000 documented functions; bound whole as one Array(String) parameter those ids are 180,000 bytes, over ClickHouse's 128 KiB http_max_field_value_size, so the namespace probe read failed with "Field value too long" exactly at the ceiling. Read the ids in ch_params.chunks batches that fit, each statement returning its rows in the server draw order, and merge on cityHash64(chunk_id) so the merged first documented rows are the ones an unbounded read returned. Also note the embedder-unavailable probe fallback in degraded so the degraded-response gate holds and the reply names the fixed corpus. --- server/code/app/admin.py | 7 +- server/code/store/index/search.py | 46 +++++--- .../test_code_calibration_parameter_bounds.py | 110 ++++++++++++++++++ tests/unit/test_code_calibration_probes.py | 7 +- tests/unit/test_degraded_fallback_notes.py | 12 ++ 5 files changed, 164 insertions(+), 18 deletions(-) create mode 100644 tests/unit/test_code_calibration_parameter_bounds.py diff --git a/server/code/app/admin.py b/server/code/app/admin.py index ab46036bed9..b9986b85881 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -19,6 +19,7 @@ from server.code.store.index import CodeRepo from server.core.errors import NotFoundError, ValidationError from server.core.paths import REPO_ROOT +from server.observability import degradations from server.settings import settings if TYPE_CHECKING: @@ -77,13 +78,15 @@ def _fixture_probes() -> Probes: async def _namespace_probes(org: str, ns: str) -> Probes: """Probes sampled from the namespace's documented functions under the served - embedding model; empty when the embedder is unavailable.""" + embedding model; empty when the embedder is unavailable, noted in `degraded` so the + reply names the fixed corpus rather than a namespace read that did not happen.""" from server.embedding.embedder import get_embedder try: model = str(get_embedder().model_name) - except Exception as e: # noqa: BLE001 — no embedder: calibrate_embedder reports it + except Exception as e: # noqa: BLE001 — no embedder: the probes come from the fixture logger.info("code.calibrate: embedder unavailable (%s)", e) + degradations.partial("embedder", "calibration_probes_unread", e) return Probes() size = settings.code_calibrate_probes # Most doc comments pass the query filter; five candidates per probe keep a diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index 46557768869..4ea02eeebf5 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -16,6 +16,7 @@ from server.code.store.index.base import CodeRepoBase from server.code.store.index.sql import _gather_batched, _scope_sql, skip_tests_sql from server.code.store.index.symbol_rank import SYMBOL_NOISE_PATH_RE +from server.core.ch_params import chunks from server.core.datetimes import naive_utc_now as _now @@ -341,7 +342,8 @@ async def calibration_units( """(documented units, pool) for `code.calibrate`'s probes: up to `documented` live function chunks whose unit has a doc comment, each with that comment, and up to `pool` live function chunks of any kind. Both are read in a hash order of their - ids, so a rerun on an unchanged index reads the same rows.""" + ids, so a rerun on an unchanged index reads the same rows. The documented symbols + are read in batches that each fit one HTTP form field.""" from server.core.vectors.code_tables import code_vector_table table = code_vector_table(model) @@ -369,27 +371,41 @@ async def calibration_units( """ units: list[dict[str, Any]] = [] if doc_of: - rows = await self._ch.query_all( - f""" - SELECT path, context_text, symbol_id FROM ( - SELECT path, context_text, chunk_id, symbol_ids[1] AS symbol_id, start_line - {chunk_filter} - AND symbol_ids[1] IN {{ids:Array(String)}} - ORDER BY symbol_id, start_line - LIMIT 1 BY symbol_id + # `documented` is 5,000 at `code_calibrate_probes`'s 1,000 ceiling: bound whole, + # those ids are ~180 KB in one `Array(String)` form field, over the server's + # 128 KiB field limit. Read them in batches that fit, each statement in the one + # draw order, then merge on it. `draw` is the server's `cityHash64(chunk_id)`, so + # the merged first `documented` rows are the ones an unbounded read returned: one + # batch can contribute at most `documented` to them, and one unit per symbol makes + # `symbol_id` a tie-break. + rows: list[dict[str, Any]] = [] + for part in chunks(list(doc_of)): + rows.extend( + await self._ch.query_all( + f""" + SELECT path, context_text, symbol_id, cityHash64(chunk_id) AS draw + FROM ( + SELECT path, context_text, chunk_id, + symbol_ids[1] AS symbol_id, start_line + {chunk_filter} + AND symbol_ids[1] IN {{ids:Array(String)}} + ORDER BY symbol_id, start_line + LIMIT 1 BY symbol_id + ) + ORDER BY draw + LIMIT {{limit:UInt32}} + """, + {"org": org, "ns": ns, "model": model, "ids": part, "limit": documented}, + ) ) - ORDER BY cityHash64(chunk_id) - LIMIT {{limit:UInt32}} - """, - {"org": org, "ns": ns, "model": model, "ids": list(doc_of), "limit": documented}, - ) + rows.sort(key=lambda r: (int(r["draw"]), str(r["symbol_id"]))) units = [ { "path": r["path"], "context_text": r["context_text"], "doc": doc_of[str(r["symbol_id"])], } - for r in rows + for r in rows[:documented] ] others = await self._ch.query_all( f""" diff --git a/tests/unit/test_code_calibration_parameter_bounds.py b/tests/unit/test_code_calibration_parameter_bounds.py new file mode 100644 index 00000000000..abe646698e8 --- /dev/null +++ b/tests/unit/test_code_calibration_parameter_bounds.py @@ -0,0 +1,110 @@ +"""`code.calibrate` at its supported maximum: every read fits one HTTP form field. + +`code_calibrate_probes` is bounded at 1,000, and `_namespace_probes` asks the store +for five documented functions per probe. At the ceiling that is 5,000 symbol ids. +Bound as one `{ids:Array(String)}` parameter they are 5,000 x 36 bytes ≈ 180,000 +bytes in a single form field, over ClickHouse's default +`http_max_field_value_size` of 128 KiB, so the namespace read failed with "Field +value too long" on exactly the namespaces the ceiling exists for. + +The fake below refuses a bound parameter the way the server does, and answers the +documented-symbol, unit and pool reads from one fixture. +""" + +from __future__ import annotations + +from types import SimpleNamespace +from typing import Any + +import pytest +from clickhouse_connect.driver.binding import format_bind_value + +from server.code.store.index import CodeRepo + +_HTTP_FIELD_BYTES = 128 * 1024 +# `server/settings/catalog.py` bounds code_calibrate_probes at 1000, and +# `_namespace_probes` reads five documented functions per probe. +_MAX_PROBES = 1000 +_DOCUMENTED = _MAX_PROBES * 5 + + +class _BoundedCH: + """ClickHouse's HTTP field limit, and the three reads `calibration_units` makes.""" + + def __init__(self, documented: int) -> None: + self.documented = documented + self.symbols = [ + (f"{i:032x}", f"Return the total weight of bucket {i} now.") for i in range(documented) + ] + # A draw order the server's `cityHash64(chunk_id)` would give: fixed, and not + # the id order, so a merge that keeps chunk order instead of the hash fails. + self.draw = {s: (i * 7919) % documented for i, (s, _) in enumerate(self.symbols)} + self.paths = {s: f"src/d{i % 4}/m{i}.py" for i, (s, _) in enumerate(self.symbols)} + self.docs = dict(self.symbols) + self.calls: list[tuple[str, dict[str, Any]]] = [] + + async def query_all(self, sql: str, params: dict[str, Any]) -> list[dict[str, Any]]: + for name, value in params.items(): + size = len(format_bind_value(value).encode()) + assert size <= _HTTP_FIELD_BYTES, ( + f"param {name} is {size} bytes, over ClickHouse's " + f"{_HTTP_FIELD_BYTES}-byte http_max_field_value_size" + ) + self.calls.append((sql, params)) + limit = int(params["limit"]) + if "FROM loom.code_symbols" in sql: + return [{"symbol_id": s, "doc": d} for s, d in self.symbols[:limit]] + if "symbol_ids[1] IN" in sql: + ids = params["ids"] if "ids" in params else [s for s, _ in self.symbols[:limit]] + rows = [ + { + "path": self.paths[s], + "context_text": f"{self.paths[s]} · src/d · symbol {s}", + "symbol_id": s, + "draw": self.draw[s], + } + for s in ids + ] + return sorted(rows, key=lambda r: int(r["draw"]))[:limit] + assert "context_text" in sql # the pool read + return [ + {"path": self.paths[s], "context_text": f"{self.paths[s]} · src/d · symbol {s}"} + for s, _ in self.symbols[:limit] + ] + + +@pytest.mark.asyncio +async def test_calibration_units_at_the_supported_maximum_fit_one_form_field() -> None: + ch = _BoundedCH(_DOCUMENTED) + units, pool = await CodeRepo(ch).calibration_units( # type: ignore[arg-type] + "org", "ns", "m", documented=_DOCUMENTED, pool=_DOCUMENTED + ) + + # Every documented symbol was read, in the draw order the merge must preserve. + text_of = {s: f"{ch.paths[s]} · src/d · symbol {s}" for s, _ in ch.symbols} + symbol_of = {text: s for s, text in text_of.items()} + assert len(units) == _DOCUMENTED + assert len(pool) == _DOCUMENTED + assert [ch.draw[symbol_of[u["context_text"]]] for u in units] == sorted(ch.draw.values()) + assert [u["doc"] for u in units] == [ch.docs[symbol_of[u["context_text"]]] for u in units] + + +@pytest.mark.asyncio +async def test_namespace_probes_at_the_supported_maximum_are_read_and_sampled( + monkeypatch: pytest.MonkeyPatch, +) -> None: + from server.code.app import admin + from server.core import ch as ch_module + from server.embedding import embedder as embedder_module + from server.settings import settings + + ch = _BoundedCH(_DOCUMENTED) + monkeypatch.setattr(ch_module, "get_client", lambda: ch) + monkeypatch.setattr( + embedder_module, "get_embedder", lambda: SimpleNamespace(model_name="probe-test-embedder") + ) + monkeypatch.setattr(settings, "code_calibrate_probes", _MAX_PROBES) + + probes = await admin._namespace_probes("org", "ns") + + assert (len(probes.positives), len(probes.distractors)) == (_MAX_PROBES, _MAX_PROBES) diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 94e4d26fefd..548a7e125a9 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -288,7 +288,10 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment text = "a/x.py · a\nf()\n---\ndef f():\n pass\n" ch = RecordingCH() ch.on("FROM loom.code_symbols", [{"symbol_id": "s1", "doc": "Sum each row."}]) - ch.on("symbol_ids[1] IN", [{"path": "a/x.py", "context_text": text, "symbol_id": "s1"}]) + ch.on( + "symbol_ids[1] IN", + [{"path": "a/x.py", "context_text": text, "symbol_id": "s1", "draw": 3}], + ) ch.on("SELECT path, context_text", [{"path": "b/y.py", "context_text": "b"}]) units, pool = await CodeRepo(ch).calibration_units("org", "ns", "m", documented=10, pool=7) assert units == [{"path": "a/x.py", "context_text": text, "doc": "Sum each row."}] @@ -310,6 +313,8 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment assert "symbol_ids[1] IN" in chunks.sql assert "ORDER BY symbol_id, start_line" in chunks.sql assert "LIMIT 1 BY symbol_id" in chunks.sql + # The read carries the server's draw key so batches of ids merge in one order. + assert "cityHash64(chunk_id) AS draw" in chunks.sql for read in (chunks, others): assert "kind = 'function'" in read.sql assert "tombstoned_at IS NULL" in read.sql diff --git a/tests/unit/test_degraded_fallback_notes.py b/tests/unit/test_degraded_fallback_notes.py index ee07b929526..839f9d604dc 100644 --- a/tests/unit/test_degraded_fallback_notes.py +++ b/tests/unit/test_degraded_fallback_notes.py @@ -626,6 +626,17 @@ async def _over(*_a: Any, **_k: Any) -> Any: return await term_leg._read("o", "n", "q", set(), None, "") +async def _namespace_probes_unread(mp: pytest.MonkeyPatch) -> Any: + from server.code.app import admin + from server.embedding import embedder + + def _no_embedder() -> Any: + raise RuntimeError("no embedder") + + mp.setattr(embedder, "get_embedder", _no_embedder) + return await admin._namespace_probes("o", "n") + + async def _branch_code_state(mp: pytest.MonkeyPatch) -> Any: from server.code.app import memory_links from server.code.app.index import gitrepo @@ -696,6 +707,7 @@ async def _unreadable(_read: Any) -> Any: (_term_leg_wait, "memory.search: term_definitions_withheld (TimeoutError)"), (_term_leg_work, "memory.search: term_definitions_withheld (TimeoutError)"), (_branch_code_state, "code_lessons: branch_code_state_unread (GitError)"), + (_namespace_probes_unread, "embedder: calibration_probes_unread (RuntimeError)"), ] From a605eaa679517d9e2c005a58c5f3aa35151ed3f5 Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 01:07:59 +0530 Subject: [PATCH 14/27] Bound code.calibrate's embedding calls and drop the presence extension calibrate_embedder gathered every pair at once: 400 calls in flight at the default 200 probes and 2,000 at the ceiling, on the model client every search embeds its query through. Eight pairs at a time keep it to 16. The two new reply fields are plain nullable fields: no build sends null, so a missing key already reads as None in every SDK. A missing embedder now raises ValidationError up front, the batch merge loses a slice that could not bind, and the abstain cap reads as one branch. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- docs/architecture/llm-architecture.md | 4 +- docs/operations/code-index-operations.md | 7 +-- docs/reference/operations/code.md | 6 +- scripts/codegen/sdk_rust_gen.py | 21 +------ sdk/rust/src/wire_models.rs | 20 ++----- sdk/rust/tests/code_calibrate_compat.rs | 56 ------------------- .../fixtures/code_calibrate_previous.json | 8 --- sdk/rust/tests/registry_contracts.rs | 14 +++-- server/code/api/models_ingest.py | 21 ++----- server/code/app/admin.py | 21 +++---- server/code/store/index/search.py | 11 +--- server/memory/app/embedder_calibration.py | 19 +++++-- .../test_code_calibration_parameter_bounds.py | 3 +- tests/unit/test_code_calibration_probes.py | 1 - tests/unit/test_degraded_fallback_notes.py | 12 ---- tests/unit/test_embedder_calibration.py | 25 +++++++++ tests/unit/test_sdk_rust_codegen.py | 21 ------- 17 files changed, 78 insertions(+), 192 deletions(-) delete mode 100644 sdk/rust/tests/code_calibrate_compat.rs delete mode 100644 sdk/rust/tests/fixtures/code_calibrate_previous.json diff --git a/docs/architecture/llm-architecture.md b/docs/architecture/llm-architecture.md index b5139d822a1..88a0a06cdab 100644 --- a/docs/architecture/llm-architecture.md +++ b/docs/architecture/llm-architecture.md @@ -179,8 +179,8 @@ vectors; question/fact and distractor pairs use query/document vectors. `code.ca explicitly uses query/document vectors for its query/code positives in both positive distributions, including the persisted conflict and duplicate gates. Its probes come from the namespace's documented functions (the doc comment's first paragraph as the query, the -function without it as the positive, a function from another directory as the -distractor), or from a fixed corpus for a namespace with fewer than 20 of them: +function without it as the positive, a function from another directory or language as +the distractor), or from a fixed corpus for a namespace with fewer than 20 of them: | Threshold | Derived as | | ------------- | ------------------------------------------ | diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index ea74c352a0f..27964a82c83 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -401,11 +401,10 @@ Then: namespace's own code. It samples up to `LOOM_CODE_CALIBRATE_PROBES` (200) documented functions across the namespace's languages and directories. Each probe embeds the first paragraph of the function's doc comment as the query against the function without that - comment, and against a function from another directory. A namespace with fewer than 20 - usable documented functions is calibrated on + comment, and against a function from another directory or language. A namespace with + fewer than 20 usable documented functions is calibrated on `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image) instead; - `probe_source` in a reply from this build says which; a reply from a build before - the field leaves it absent, not `fixture`. The abstain threshold is capped at the + `probe_source` in the reply says which. The abstain threshold is capped at the sampled probes' 10th-percentile query-to-function cosine: functions of one repository share its vocabulary, so an unrelated one scores close to the right one, and the distractor percentile alone would abstain on many right answers. That percentile is diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index 6e9f4e8aabd..8dda90757fd 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -254,14 +254,14 @@ Derive this namespace's calibration and persist it: the code-specific abstention | Output field | Type | Meaning | | --- | --- | --- | -| `noise_floor` | `float` | Cosine below which a hit is noise: the distractors' 90th percentile plus 0.02, or 0.05 under the abstain threshold when that is capped, whichever is lower. | +| `noise_floor` | `float` | Cosine below which a hit is noise: the distractors' 90th percentile plus 0.02, or 0.05 under the abstain threshold when that is capped. | | `abstain_threshold` | `float` | Cosine below which the search abstains: `noise_floor` plus 0.05, or the probes' 10th-percentile question-to-answer cosine when that is lower. | | `rerank_skip_above` | `float` | Cosine of a confident hit, the probes' 75th-percentile question-to-answer cosine: where `code.search`'s `retrieval_confidence` reads 1.0. | | `embedder_model` | `str` | The embedding model the probes ran against; the calibration applies to it. | | `positives` | `int` | Query/positive pairs the thresholds were derived from. | | `distractors` | `int` | Query/distractor pairs the thresholds were derived from. | -| `probe_source` | `Literal['namespace', 'fixture'] \| None` | Where the probes came from: `namespace` (its own documented functions) or `fixture` (the fixed corpus); a reply from a build before the field leaves it absent, not `fixture`. | -| `strata` | `int \| None` | Language-and-directory strata the namespace probes were drawn from; 0 for the fixture; a reply from a build before the field leaves it absent, not the fixture. | +| `probe_source` | `Literal['namespace', 'fixture'] \| None` | Where the probes came from: `namespace` (its own documented functions) or `fixture` (the fixed corpus). | +| `strata` | `int \| None` | Language-and-directory strata the namespace probes were drawn from; 0 for the fixture. | ## `code.callees` diff --git a/scripts/codegen/sdk_rust_gen.py b/scripts/codegen/sdk_rust_gen.py index 9cbce809841..9cec1c3a5ae 100644 --- a/scripts/codegen/sdk_rust_gen.py +++ b/scripts/codegen/sdk_rust_gen.py @@ -421,16 +421,9 @@ def field( # JSON value uses Value::Null directly, without an extra Option. raw = override or self.wire_type(base, model + pascal(wire)) nullable = nullable and raw != "Value" - # A response field marked presence-absent keeps a missing key distinct from an - # explicit null: the outer Option is absence, the inner one is the JSON null. - presence = ( - not request and not required and nullable and prop.get("x-loom-presence") == "absent" - ) optional = request and not required ty = f"Option<{raw}>" if nullable else raw - if presence: - ty = f"Option>" - elif optional or (not request and not required and "default" not in prop and not nullable): + if optional or (not request and not required and "default" not in prop and not nullable): ty = f"Option<{ty}>" attrs = [f"rename = {rust_string(wire)}"] if field != wire else [] if optional: @@ -439,12 +432,6 @@ def field( 'skip_serializing_if = "Option::is_none"', f'deserialize_with = "{"present_nullable" if nullable else "present_value"}"', ] - elif presence: - attrs += [ - self.default_attr(model, field, prop, ty), - 'skip_serializing_if = "Option::is_none"', - 'deserialize_with = "present_nullable"', - ] elif not required: attrs += [self.default_attr(model, field, prop, ty)] if required and nullable: @@ -905,12 +892,6 @@ def build_contract_tests(selected: tuple[str, ...] | None = None) -> str: if not request and not schema.get("_rust_projected"): for key, prop in schema["properties"].items(): if key not in schema.get("required", []) and "default" in prop: - if prop.get("x-loom-presence") == "absent": - lines.append( - f"assert!(encoded.get({rust_string(key)}).is_none(), " - f"{rust_string(op.name + ':' + key + ' absent')});" - ) - continue value = prop["default"] # JSON Schema may describe a float default with an integer token. if split_nullable(prop)[0].get("type") == "number" and value is not None: diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs index ed6e9235dad..52950bc32a1 100644 --- a/sdk/rust/src/wire_models.rs +++ b/sdk/rust/src/wire_models.rs @@ -7665,18 +7665,10 @@ pub struct CodeCalibrateOutput { pub embedder_model: String, pub positives: Integer, pub distractors: Integer, - #[serde( - default = "default_code_calibrate_output_probe_source", - skip_serializing_if = "Option::is_none", - deserialize_with = "present_nullable" - )] - pub probe_source: Option>, - #[serde( - default = "default_code_calibrate_output_strata", - skip_serializing_if = "Option::is_none", - deserialize_with = "present_nullable" - )] - pub strata: Option>, + #[serde(default = "default_code_calibrate_output_probe_source")] + pub probe_source: Option, + #[serde(default = "default_code_calibrate_output_strata")] + pub strata: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -66107,10 +66099,10 @@ fn default_code_blame_range_output_tracker_unavailable() -> bool { fn default_code_blame_range_output_trace_run_id() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_code_calibrate_output_probe_source() -> Option> { +fn default_code_calibrate_output_probe_source() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_code_calibrate_output_strata() -> Option> { +fn default_code_calibrate_output_strata() -> Option { serde_json::from_str("null").expect("schema default") } fn default_code_callers_output_lessons() -> Vec> { diff --git a/sdk/rust/tests/code_calibrate_compat.rs b/sdk/rust/tests/code_calibrate_compat.rs deleted file mode 100644 index 2cd8315bf70..00000000000 --- a/sdk/rust/tests/code_calibrate_compat.rs +++ /dev/null @@ -1,56 +0,0 @@ -// A replica on the previous build answers `code.calibrate` without the two fields this -// build added. The reply must keep them absent: an older build did not say "unknown"; -// it never had the keys. An explicit null is the new build's unknown and must survive. -use clickhouse_loom::CodeCalibrateOutput; -use serde_json::{json, Value}; - -const PREVIOUS_BUILD_REPLY: &str = include_str!("fixtures/code_calibrate_previous.json"); - -#[test] -fn a_previous_builds_reply_keeps_the_new_fields_absent() { - let decoded: CodeCalibrateOutput = serde_json::from_str(PREVIOUS_BUILD_REPLY).unwrap(); - assert_eq!(decoded.noise_floor, 0.41); - assert_eq!(decoded.embedder_model, "bge-m3"); - let encoded = serde_json::to_value(&decoded).unwrap(); - // `.get` is the only read that tells an absent key from a present null: indexing - // a missing key yields `Value::Null` too, so `encoded["probe_source"] == Value::Null` - // would pass with the key gone. - assert_eq!( - encoded.get("probe_source"), - None, - "probe_source must stay absent, not become a present null" - ); - assert_eq!( - encoded.get("strata"), - None, - "strata must stay absent, not become a present null" - ); -} - -#[test] -fn an_explicit_null_is_not_absence() { - let mut reply: Value = json!({ - "noise_floor": 0.41, - "abstain_threshold": 0.46, - "rerank_skip_above": 0.72, - "embedder_model": "bge-m3", - "positives": 120, - "distractors": 120, - "probe_source": null, - "strata": null - }); - let decoded: CodeCalibrateOutput = serde_json::from_value(reply.take()).unwrap(); - let encoded = serde_json::to_value(&decoded).unwrap(); - // `Some(&Value::Null)`, not `Value::Null`: a serialiser that drops explicit nulls - // still renders the key as absent, and indexing would not notice the difference. - assert_eq!( - encoded.get("probe_source"), - Some(&Value::Null), - "an explicit null must serialise as a present key holding null" - ); - assert_eq!( - encoded.get("strata"), - Some(&Value::Null), - "an explicit null must serialise as a present key holding null" - ); -} diff --git a/sdk/rust/tests/fixtures/code_calibrate_previous.json b/sdk/rust/tests/fixtures/code_calibrate_previous.json deleted file mode 100644 index a4ce7716f17..00000000000 --- a/sdk/rust/tests/fixtures/code_calibrate_previous.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "noise_floor": 0.41, - "abstain_threshold": 0.46, - "rerank_skip_above": 0.72, - "embedder_model": "bge-m3", - "positives": 120, - "distractors": 120 -} diff --git a/sdk/rust/tests/registry_contracts.rs b/sdk/rust/tests/registry_contracts.rs index 64903f2d3d2..56b9817e2ce 100644 --- a/sdk/rust/tests/registry_contracts.rs +++ b/sdk/rust/tests/registry_contracts.rs @@ -12234,13 +12234,15 @@ fn code_calibrate() { let value: clickhouse_loom::CodeCalibrateOutput = serde_json::from_str("{\"noise_floor\":1.0,\"abstain_threshold\":1.0,\"rerank_skip_above\":1.0,\"embedder_model\":\"sample\",\"positives\":1,\"distractors\":1}").unwrap(); let encoded = serde_json::to_value(value).unwrap(); assert!(encoded.is_object()); - assert!( - encoded.get("probe_source").is_none(), - "code.calibrate:probe_source absent" + assert_eq!( + encoded["probe_source"], + serde_json::from_str::("null").unwrap(), + "code.calibrate:probe_source" ); - assert!( - encoded.get("strata").is_none(), - "code.calibrate:strata absent" + assert_eq!( + encoded["strata"], + serde_json::from_str::("null").unwrap(), + "code.calibrate:strata" ); } #[test] diff --git a/server/code/api/models_ingest.py b/server/code/api/models_ingest.py index d9aa56060c0..14c6d9a6cda 100644 --- a/server/code/api/models_ingest.py +++ b/server/code/api/models_ingest.py @@ -6,7 +6,7 @@ from __future__ import annotations import uuid -from typing import Any, Literal +from typing import Literal from pydantic import BaseModel, Field, field_validator @@ -147,14 +147,9 @@ class CodeCalibrateInput(_CodeIdentity): pass -# An omitted response key is a distinct wire state from an explicit null: a build before -# the field says nothing, while a build that has it can still answer null (unknown). -WIRE_PRESENCE_ABSENT: dict[str, Any] = {"x-loom-presence": "absent"} - - class CodeCalibrateOutput(BaseModel): # Cosine below which a hit is noise: the distractors' 90th percentile plus 0.02, or - # 0.05 under the abstain threshold when that is capped, whichever is lower. + # 0.05 under the abstain threshold when that is capped. noise_floor: float # Cosine below which the search abstains: `noise_floor` plus 0.05, or the probes' # 10th-percentile question-to-answer cosine when that is lower. @@ -169,11 +164,7 @@ class CodeCalibrateOutput(BaseModel): # Query/distractor pairs the thresholds were derived from. distractors: int # Where the probes came from: `namespace` (its own documented functions) or `fixture` - # (the fixed corpus); a reply from a build before the field leaves it absent, not - # `fixture`. - probe_source: Literal["namespace", "fixture"] | None = Field( - default=None, json_schema_extra=WIRE_PRESENCE_ABSENT - ) - # Language-and-directory strata the namespace probes were drawn from; 0 for the - # fixture; a reply from a build before the field leaves it absent, not the fixture. - strata: int | None = Field(default=None, json_schema_extra=WIRE_PRESENCE_ABSENT) + # (the fixed corpus). + probe_source: Literal["namespace", "fixture"] | None = None + # Language-and-directory strata the namespace probes were drawn from; 0 for the fixture. + strata: int | None = None diff --git a/server/code/app/admin.py b/server/code/app/admin.py index b9986b85881..9b447d67f28 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -19,7 +19,6 @@ from server.code.store.index import CodeRepo from server.core.errors import NotFoundError, ValidationError from server.core.paths import REPO_ROOT -from server.observability import degradations from server.settings import settings if TYPE_CHECKING: @@ -78,16 +77,14 @@ def _fixture_probes() -> Probes: async def _namespace_probes(org: str, ns: str) -> Probes: """Probes sampled from the namespace's documented functions under the served - embedding model; empty when the embedder is unavailable, noted in `degraded` so the - reply names the fixed corpus rather than a namespace read that did not happen.""" + embedding model. Raises `ValidationError` when the embedder cannot be built: the + fixed corpus would need it too.""" from server.embedding.embedder import get_embedder try: model = str(get_embedder().model_name) - except Exception as e: # noqa: BLE001 — no embedder: the probes come from the fixture - logger.info("code.calibrate: embedder unavailable (%s)", e) - degradations.partial("embedder", "calibration_probes_unread", e) - return Probes() + except Exception as e: # any build failure means no probe can run + raise ValidationError(f"embedder unavailable: {e}") from e size = settings.code_calibrate_probes # Most doc comments pass the query filter; five candidates per probe keep a # namespace with a few documented strata from running dry. @@ -107,14 +104,10 @@ def _bounded_by_answers(calibration: CalibrationResult) -> CalibrationResult: query-to-answer cosine, and the noise floor kept 0.05 under it. Units of one repository share its vocabulary, so an unrelated unit scores close to the right one and the distractors' 90th percentile alone would abstain on many right answers.""" - abstain = min(calibration.abstain_threshold, calibration.question_fact_p10) - if abstain >= calibration.abstain_threshold: + p10 = calibration.question_fact_p10 + if p10 >= calibration.abstain_threshold: return calibration - return replace( - calibration, - abstain_threshold=abstain, - noise_floor=min(calibration.noise_floor, abstain - 0.05), - ) + return replace(calibration, abstain_threshold=p10, noise_floor=p10 - 0.05) async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutput: diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index 4ea02eeebf5..d2355ef5932 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -371,13 +371,8 @@ async def calibration_units( """ units: list[dict[str, Any]] = [] if doc_of: - # `documented` is 5,000 at `code_calibrate_probes`'s 1,000 ceiling: bound whole, - # those ids are ~180 KB in one `Array(String)` form field, over the server's - # 128 KiB field limit. Read them in batches that fit, each statement in the one - # draw order, then merge on it. `draw` is the server's `cityHash64(chunk_id)`, so - # the merged first `documented` rows are the ones an unbounded read returned: one - # batch can contribute at most `documented` to them, and one unit per symbol makes - # `symbol_id` a tie-break. + # At the 1,000-probe ceiling the ids fill ~180 KB, over the server's 128 KiB form + # field: read them in batches and merge on the one draw order. rows: list[dict[str, Any]] = [] for part in chunks(list(doc_of)): rows.extend( @@ -405,7 +400,7 @@ async def calibration_units( "context_text": r["context_text"], "doc": doc_of[str(r["symbol_id"])], } - for r in rows[:documented] + for r in rows ] others = await self._ch.query_all( f""" diff --git a/server/memory/app/embedder_calibration.py b/server/memory/app/embedder_calibration.py index 7cf6ee86b26..fd22f88f90f 100644 --- a/server/memory/app/embedder_calibration.py +++ b/server/memory/app/embedder_calibration.py @@ -349,15 +349,22 @@ async def calibrate_embedder( ) return None + # code.calibrate sends up to 1,000 pairs a phase through the model client every + # search embeds its query on; eight at a time keep the probe from crowding it out. + in_flight = asyncio.Semaphore(8) + async def _embed_pair(a: str, b: str, *, query: bool) -> float: # The recalibration worker's fixed pairs are the deployment's; code.calibrate # probes a namespace's corpus under its request's org, which wins. - with customer.system(): - if query: - va, documents = await asyncio.gather(embedder.embed(a), embedder.embed_many([b])) - vb = documents[0] - else: - va, vb = await embedder.embed_many([a, b]) + async with in_flight: + with customer.system(): + if query: + va, documents = await asyncio.gather( + embedder.embed(a), embedder.embed_many([b]) + ) + vb = documents[0] + else: + va, vb = await embedder.embed_many([a, b]) return _cosine(va, vb) try: diff --git a/tests/unit/test_code_calibration_parameter_bounds.py b/tests/unit/test_code_calibration_parameter_bounds.py index abe646698e8..6b0304961d3 100644 --- a/tests/unit/test_code_calibration_parameter_bounds.py +++ b/tests/unit/test_code_calibration_parameter_bounds.py @@ -55,7 +55,6 @@ async def query_all(self, sql: str, params: dict[str, Any]) -> list[dict[str, An if "FROM loom.code_symbols" in sql: return [{"symbol_id": s, "doc": d} for s, d in self.symbols[:limit]] if "symbol_ids[1] IN" in sql: - ids = params["ids"] if "ids" in params else [s for s, _ in self.symbols[:limit]] rows = [ { "path": self.paths[s], @@ -63,7 +62,7 @@ async def query_all(self, sql: str, params: dict[str, Any]) -> list[dict[str, An "symbol_id": s, "draw": self.draw[s], } - for s in ids + for s in params["ids"] ] return sorted(rows, key=lambda r: int(r["draw"]))[:limit] assert "context_text" in sql # the pool read diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 548a7e125a9..b1d87ef5849 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -322,7 +322,6 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment def test_code_calibrate_probes_is_bounded() -> None: - import pytest from pydantic import ValidationError from server.settings.catalog import CodeSettings diff --git a/tests/unit/test_degraded_fallback_notes.py b/tests/unit/test_degraded_fallback_notes.py index 839f9d604dc..ee07b929526 100644 --- a/tests/unit/test_degraded_fallback_notes.py +++ b/tests/unit/test_degraded_fallback_notes.py @@ -626,17 +626,6 @@ async def _over(*_a: Any, **_k: Any) -> Any: return await term_leg._read("o", "n", "q", set(), None, "") -async def _namespace_probes_unread(mp: pytest.MonkeyPatch) -> Any: - from server.code.app import admin - from server.embedding import embedder - - def _no_embedder() -> Any: - raise RuntimeError("no embedder") - - mp.setattr(embedder, "get_embedder", _no_embedder) - return await admin._namespace_probes("o", "n") - - async def _branch_code_state(mp: pytest.MonkeyPatch) -> Any: from server.code.app import memory_links from server.code.app.index import gitrepo @@ -707,7 +696,6 @@ async def _unreadable(_read: Any) -> Any: (_term_leg_wait, "memory.search: term_definitions_withheld (TimeoutError)"), (_term_leg_work, "memory.search: term_definitions_withheld (TimeoutError)"), (_branch_code_state, "code_lessons: branch_code_state_unread (GitError)"), - (_namespace_probes_unread, "embedder: calibration_probes_unread (RuntimeError)"), ] diff --git a/tests/unit/test_embedder_calibration.py b/tests/unit/test_embedder_calibration.py index c66c94b58e4..af76802af64 100644 --- a/tests/unit/test_embedder_calibration.py +++ b/tests/unit/test_embedder_calibration.py @@ -11,6 +11,7 @@ from __future__ import annotations +import asyncio import json import math import random @@ -289,6 +290,30 @@ async def test_per_ns_probe_defaults_to_module_question_fact_corpus(monkeypatch) assert r.question_fact_pairs_n == len(ec.QUESTION_FACT_PAIRS) +async def test_probe_keeps_its_embedding_calls_bounded(monkeypatch) -> None: + # Each pair sends two calls; 200 pairs gathered at once would hold 400 open. + class Counting(_HashEmbedder): + now = peak = 0 + + async def embed(self, text: str) -> list[float]: + Counting.now += 1 + Counting.peak = max(Counting.peak, Counting.now) + await asyncio.sleep(0) + Counting.now -= 1 + return await super().embed(text) + + monkeypatch.setattr("server.embedding.embedder.get_embedder", Counting) + pairs = [(f"q{i}", f"d{i}") for i in range(200)] + r = await ec.calibrate_embedder( + paraphrase_pairs=pairs, + distractor_pairs=pairs, + question_fact_pairs=pairs, + paraphrase_pair_purpose="query_document", + ) + assert r is not None + assert Counting.peak == 16 + + async def test_probe_failure_returns_none(monkeypatch) -> None: def _broken() -> None: raise RuntimeError("no embedder configured") diff --git a/tests/unit/test_sdk_rust_codegen.py b/tests/unit/test_sdk_rust_codegen.py index 25e4831c749..d9f79d33ffa 100644 --- a/tests/unit/test_sdk_rust_codegen.py +++ b/tests/unit/test_sdk_rust_codegen.py @@ -255,27 +255,6 @@ def test_required_nullable_default_and_keyword_fields() -> None: assert 'from_str("5")' in em.defaults["default_contract_count"] -def test_a_presence_absent_response_keeps_missing_distinct_from_null() -> None: - em = gen.Emitter() - em.model( - "Contract", - { - "properties": { - "source": { - "anyOf": [{"type": "string"}, {"type": "null"}], - "default": None, - "x-loom-presence": "absent", - } - }, - }, - request=False, - ) - text = em.declarations["Contract"] - assert "pub source: Option>" in text - assert 'deserialize_with = "present_nullable"' in text - assert 'skip_serializing_if = "Option::is_none"' in text - - def test_type_field_and_method_collisions_are_refused() -> None: em = gen.Emitter() em.wire_type({"type": "string", "enum": ["yes"]}, "Label") From 79ae18a4951e8182d8b51d92b0f448fc2b7a004f Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 01:39:13 +0530 Subject: [PATCH 15/27] Derive code.calibrate's gates from the capped floor and stop a failed probe phase The abstain cap now applies inside derive_thresholds, before the trigger gates are clamped to the floor, so rerank_skip_above stays the probes' p75 under the cap. Each probe phase runs in a TaskGroup, so a failed pair cancels the rest, and a pair already measured is not embedded again. The documented read drops test files before its limit, through query_all_sliced. A missing embedder's error names its kind only, block closers match in lower case only, and the worker logs the probe source it used. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- docs/architecture/llm-architecture.md | 8 +-- server/code/app/admin.py | 24 ++----- server/code/domain/calibration_probes.py | 3 +- server/code/store/index/search.py | 72 +++++++++---------- server/code/workers/calibration.py | 9 ++- server/memory/app/embedder_calibration.py | 42 +++++++---- .../test_code_calibration_parameter_bounds.py | 8 +-- tests/unit/test_code_calibration_probes.py | 61 +++++++--------- tests/unit/test_code_calibration_worker.py | 17 ++++- tests/unit/test_embedder_calibration.py | 62 ++++++++++++---- 10 files changed, 177 insertions(+), 129 deletions(-) diff --git a/docs/architecture/llm-architecture.md b/docs/architecture/llm-architecture.md index 8251981c4ed..3a3d6d31227 100644 --- a/docs/architecture/llm-architecture.md +++ b/docs/architecture/llm-architecture.md @@ -192,10 +192,10 @@ the distractor), or from a fixed corpus for a namespace with fewer than 20 of th | conflict | paraphrase p50 | | duplicate | paraphrase p75 | -`code.calibrate` then caps abstain at the 10th percentile of the query-to-function -cosines it measured on its sampled probe pairs — up to `LOOM_CODE_CALIBRATE_PROBES` -(200 by default) documented functions, or the fixed corpus for a namespace with fewer -than 20 of them — and keeps the noise floor 0.05 under it. That percentile describes +`code.calibrate` caps abstain at the 10th percentile of the query-to-function cosines +it measured on its sampled probe pairs (up to `LOOM_CODE_CALIBRATE_PROBES`, 200 by +default) and keeps the noise floor 0.05 under it; the trigger gates are then clamped to +that floor. That percentile describes the sampled pairs, not the namespace: it places no bound on how often search abstains for a function the sample did not draw, or for a query whose correct hit never enters the candidate set. diff --git a/server/code/app/admin.py b/server/code/app/admin.py index 9b447d67f28..1013fc8185c 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -4,8 +4,7 @@ import json import logging -from dataclasses import replace -from typing import TYPE_CHECKING, Literal +from typing import Literal from server.code.api.models_ingest import ( CodeCalibrateInput, @@ -17,13 +16,10 @@ from server.code.domain.calibration_probes import Probes, Unit, sample_probes from server.code.domain.index.repos import repo_for_namespace from server.code.store.index import CodeRepo -from server.core.errors import NotFoundError, ValidationError +from server.core.errors import NotFoundError, ValidationError, caller_text from server.core.paths import REPO_ROOT from server.settings import settings -if TYPE_CHECKING: - from server.memory.app.embedder_calibration import CalibrationResult - logger = logging.getLogger(__name__) _PROBES_PATH = REPO_ROOT / "bench" / "fixtures" / "code_calibration_probes.jsonl" @@ -84,7 +80,8 @@ async def _namespace_probes(org: str, ns: str) -> Probes: try: model = str(get_embedder().model_name) except Exception as e: # any build failure means no probe can run - raise ValidationError(f"embedder unavailable: {e}") from e + logger.warning("code.calibrate: embedder unavailable: %s", e) + raise ValidationError(f"embedder unavailable: {caller_text(e)}") from e size = settings.code_calibrate_probes # Most doc comments pass the query filter; five candidates per probe keep a # namespace with a few documented strata from running dry. @@ -99,17 +96,6 @@ async def _namespace_probes(org: str, ns: str) -> Probes: ) -def _bounded_by_answers(calibration: CalibrationResult) -> CalibrationResult: - """`calibration` with its abstain threshold at most the probes' 10th-percentile - query-to-answer cosine, and the noise floor kept 0.05 under it. Units of one - repository share its vocabulary, so an unrelated unit scores close to the right one - and the distractors' 90th percentile alone would abstain on many right answers.""" - p10 = calibration.question_fact_p10 - if p10 >= calibration.abstain_threshold: - return calibration - return replace(calibration, abstain_threshold=p10, noise_floor=p10 - 0.05) - - async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutput: """Derive this namespace's calibration and persist it: the code-specific abstention thresholds and the confident-hit cosine at the top of the @@ -155,13 +141,13 @@ async def calibrate_namespace(org: str, ns: str) -> CodeCalibrateOutput: distractor_pairs=distractors, question_fact_pairs=positives, paraphrase_pair_purpose="query_document", + cap_at_answers=True, ) if calibration is None: raise ValidationError( "calibration probe failed (fake embedder or provider error) — thresholds unchanged" ) - calibration = _bounded_by_answers(calibration) await persist_namespace_calibration(org, ns, calibration) return CodeCalibrateOutput( noise_floor=calibration.noise_floor, diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index 44c0e503365..c7afa6f48b8 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -31,7 +31,8 @@ _SECTION = re.compile( r"^(?:[@\\:]\w+|(?:Args|Arguments|Returns?|Raises|Yields|Parameters|Example)s?:)" ) -_NOT_PROSE = re.compile(r"://|^namespace(?:\s+\w+)?\s*$|^(?:end|endif)\b", re.IGNORECASE) +# `end`/`endif` close a block in lower case; a description can start with "End". +_NOT_PROSE = re.compile(r"://|^namespace(?:\s+\w+)?\s*$|(?-i:^(?:end|endif)\b)", re.IGNORECASE) _WORD = re.compile(r"[A-Za-z]{2}") _NOT_DESCRIPTION = ("todo", "fixme", "xxx", "hack", "copyright", "spdx", "noqa", "type:", "pylint") diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index d2355ef5932..4a1975ca61d 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -16,8 +16,8 @@ from server.code.store.index.base import CodeRepoBase from server.code.store.index.sql import _gather_batched, _scope_sql, skip_tests_sql from server.code.store.index.symbol_rank import SYMBOL_NOISE_PATH_RE -from server.core.ch_params import chunks from server.core.datetimes import naive_utc_now as _now +from server.core.repo_base import query_all_sliced def _nearest_first(rows: list[dict[str, Any]], *keys: str) -> list[dict[str, Any]]: @@ -349,16 +349,17 @@ async def calibration_units( table = code_vector_table(model) # The aggregate's alias must not share the column's name: the WHERE would then read # the aggregate, which ClickHouse refuses (ILLEGAL_AGGREGATION). + # Test files are dropped here, before the limit, so they cannot use up the budget. docs = await self._ch.query_all( - """ + f""" SELECT symbol_id, any(doc_comment) AS doc FROM loom.code_symbols FINAL - WHERE org = {org:String} AND namespace = {ns:String} + WHERE org = {{org:String}} AND namespace = {{ns:String}} AND kind = 'function' AND doc_comment != '' AND tombstoned_at IS NULL - AND tier = 'treesitter' + AND tier = 'treesitter'{skip_tests_sql("path")} GROUP BY symbol_id ORDER BY cityHash64(symbol_id) - LIMIT {limit:UInt32} + LIMIT {{limit:UInt32}} """, {"org": org, "ns": ns, "limit": documented}, ) @@ -369,39 +370,34 @@ async def calibration_units( AND embedding_model = {{model:String}} AND embedding_dim > 0 AND tombstoned_at IS NULL AND kind = 'function' AND context_text != '' """ - units: list[dict[str, Any]] = [] - if doc_of: - # At the 1,000-probe ceiling the ids fill ~180 KB, over the server's 128 KiB form - # field: read them in batches and merge on the one draw order. - rows: list[dict[str, Any]] = [] - for part in chunks(list(doc_of)): - rows.extend( - await self._ch.query_all( - f""" - SELECT path, context_text, symbol_id, cityHash64(chunk_id) AS draw - FROM ( - SELECT path, context_text, chunk_id, - symbol_ids[1] AS symbol_id, start_line - {chunk_filter} - AND symbol_ids[1] IN {{ids:Array(String)}} - ORDER BY symbol_id, start_line - LIMIT 1 BY symbol_id - ) - ORDER BY draw - LIMIT {{limit:UInt32}} - """, - {"org": org, "ns": ns, "model": model, "ids": part, "limit": documented}, - ) - ) - rows.sort(key=lambda r: (int(r["draw"]), str(r["symbol_id"]))) - units = [ - { - "path": r["path"], - "context_text": r["context_text"], - "doc": doc_of[str(r["symbol_id"])], - } - for r in rows - ] + # At the 1,000-probe ceiling the ids fill ~180 KB, over the server's 128 KiB form + # field: read them a slice at a time and merge on the one draw order. + rows = await query_all_sliced( + self._ch, + f""" + SELECT path, context_text, symbol_id, cityHash64(chunk_id) AS draw + FROM ( + SELECT path, context_text, chunk_id, symbol_ids[1] AS symbol_id, start_line + {chunk_filter} + AND symbol_ids[1] IN {{ids:Array(String)}} + ORDER BY symbol_id, start_line + LIMIT 1 BY symbol_id + ) + ORDER BY draw + LIMIT {{limit:UInt32}} + """, + {"org": org, "ns": ns, "model": model, "ids": list(doc_of), "limit": documented}, + "ids", + ) + rows.sort(key=lambda r: (int(r["draw"]), str(r["symbol_id"]))) + units = [ + { + "path": r["path"], + "context_text": r["context_text"], + "doc": doc_of[str(r["symbol_id"])], + } + for r in rows + ] others = await self._ch.query_all( f""" SELECT path, context_text {chunk_filter} diff --git a/server/code/workers/calibration.py b/server/code/workers/calibration.py index 543c7b9a0df..729f011382a 100644 --- a/server/code/workers/calibration.py +++ b/server/code/workers/calibration.py @@ -131,7 +131,7 @@ async def _run(result: CodeCalibrationResult) -> None: set_worker_identity("code_calibration", org=org, namespace=ns) _failed[(org, ns)] = _now() with customer.for_org(org, namespace=ns): - await calibrate_namespace(org, ns) + out = await calibrate_namespace(org, ns) except Exception as e: # noqa: BLE001 — the next pass reads the namespace again logger.warning("code_calibration: %s/%s not calibrated: %s", org, ns, e) _failed[(org, ns)] = _now() @@ -139,4 +139,11 @@ async def _run(result: CodeCalibrationResult) -> None: else: _failed.pop((org, ns), None) result.calibrated = f"{org}/{ns}" + logger.info( + "code_calibration: %s/%s calibrated from %s probes (%d strata)", + org, + ns, + out.probe_source, + out.strata or 0, + ) return # one namespace a pass, calibrated or failed diff --git a/server/memory/app/embedder_calibration.py b/server/memory/app/embedder_calibration.py index fd22f88f90f..e5dea183936 100644 --- a/server/memory/app/embedder_calibration.py +++ b/server/memory/app/embedder_calibration.py @@ -238,13 +238,16 @@ def derive_thresholds( distractor_cosines: list[float], *, embedder_model: str, + cap_at_answers: bool = False, ) -> CalibrationResult: """Pure derivation: probe cosine distributions → CalibrationResult. Filter gates (noise_floor, abstain) anchor to the distractor distribution; read-time trigger gates (rerank_skip, hyde, query_rewrite) to question→fact; write-time gates (conflict, - duplicate) to paraphrase. + duplicate) to paraphrase. `cap_at_answers` keeps abstain at most the + question→fact 10th percentile, with the floor 0.05 under it, before the + trigger gates are clamped to that floor. """ sim_p10 = _percentile(similar_cosines, 10) sim_p25 = _percentile(similar_cosines, 25) @@ -261,6 +264,10 @@ def derive_thresholds( # legitimate hits under the floor. noise_floor = dist_p90 + 0.02 abstain_threshold = noise_floor + 0.05 + # Units of one code repository share its vocabulary, so an unrelated unit scores + # close to the right one, and the distractors alone would abstain on many answers. + if cap_at_answers and qf_p10 < abstain_threshold: + abstain_threshold, noise_floor = qf_p10, qf_p10 - 0.05 # Trigger gates can't fire below the floor (sub-floor hits already # dropped), so clamp each to floor + margin; the max() chain keeps @@ -306,6 +313,7 @@ async def calibrate_embedder( question_fact_pairs: list[tuple[str, str]] | None = None, *, paraphrase_pair_purpose: Literal["document_document", "query_document"] = "document_document", + cap_at_answers: bool = False, ) -> CalibrationResult | None: """Probe the configured embedder and compute percentile-based thresholds. Returns None on probe failure (gates fall through to @@ -367,23 +375,33 @@ async def _embed_pair(a: str, b: str, *, query: bool) -> float: va, vb = await embedder.embed_many([a, b]) return _cosine(va, vb) + # Code calibration passes its positives as both positive corpora: each pair is + # embedded once. + measured: dict[tuple[str, str, bool], float] = {} + + async def _cosines(pairs: list[tuple[str, str]], *, query: bool) -> list[float]: + todo = dict.fromkeys((a, b, query) for a, b in pairs if (a, b, query) not in measured) + # A failed pair cancels the rest of the phase instead of leaving it running. + async with asyncio.TaskGroup() as group: + tasks = {key: group.create_task(_embed_pair(*key[:2], query=query)) for key in todo} + measured.update({key: task.result() for key, task in tasks.items()}) + return [measured[(a, b, query)] for a, b in pairs] + try: - similar_cosines = await asyncio.gather( - *(_embed_pair(a, b, query=paraphrase_pair_purpose == "query_document") for a, b in para) - ) - question_fact_cosines = await asyncio.gather( - *(_embed_pair(a, b, query=True) for a, b in qf) - ) - distractor_cosines = await asyncio.gather(*(_embed_pair(a, b, query=True) for a, b in dist)) + similar_cosines = await _cosines(para, query=paraphrase_pair_purpose == "query_document") + question_fact_cosines = await _cosines(qf, query=True) + distractor_cosines = await _cosines(dist, query=True) except Exception as e: # noqa: BLE001 — a failed probe: the scalar gates serve - log.warning("calibration: probe failed (%s); falling back to scalar settings", e) + cause = e.exceptions[0] if isinstance(e, ExceptionGroup) else e + log.warning("calibration: probe failed (%s); falling back to scalar settings", cause) return None result = derive_thresholds( - list(similar_cosines), - list(question_fact_cosines), - list(distractor_cosines), + similar_cosines, + question_fact_cosines, + distractor_cosines, embedder_model=embedder.model_name, + cap_at_answers=cap_at_answers, ) log.info( "calibration: embedder=%s similar_p50=%.3f question_fact_p25=%.3f " diff --git a/tests/unit/test_code_calibration_parameter_bounds.py b/tests/unit/test_code_calibration_parameter_bounds.py index 6b0304961d3..7197b7bc391 100644 --- a/tests/unit/test_code_calibration_parameter_bounds.py +++ b/tests/unit/test_code_calibration_parameter_bounds.py @@ -2,10 +2,10 @@ `code_calibrate_probes` is bounded at 1,000, and `_namespace_probes` asks the store for five documented functions per probe. At the ceiling that is 5,000 symbol ids. -Bound as one `{ids:Array(String)}` parameter they are 5,000 x 36 bytes ≈ 180,000 -bytes in a single form field, over ClickHouse's default -`http_max_field_value_size` of 128 KiB, so the namespace read failed with "Field -value too long" on exactly the namespaces the ceiling exists for. +Bound as one `{ids:Array(String)}` parameter they would be 5,000 x 36 bytes ≈ +180,000 bytes in a single form field, over ClickHouse's default +`http_max_field_value_size` of 128 KiB, which the server refuses with "Field value +too long". The fake below refuses a bound parameter the way the server does, and answers the documented-symbol, unit and pool reads from one fixture. diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index b1d87ef5849..bce09c0a609 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -43,6 +43,12 @@ def test_probe_query_refuses_what_does_not_describe_the_unit() -> None: assert probe_query("// namespace\n// Conv stage of the linear attention path.") == ( "Conv stage of the linear attention path." ) + assert probe_query("// end namespace vllm\n// Conv stage of the linear attention path.") == ( + "Conv stage of the linear attention path." + ) + assert probe_query("End the span and record its duration.") == ( + "End the span and record its duration." + ) def test_probe_query_keeps_a_glob_that_ends_a_line() -> None: @@ -135,8 +141,8 @@ def test_sample_probes_draws_each_distractor_from_another_stratum() -> None: def test_sample_probes_parses_each_unit_path_once_not_once_per_probe(monkeypatch) -> None: - """The distractor draw grouped the pool again for every probe: size x pool - path parses, seconds of blocked event loop at the 1,000-probe bound.""" + """Grouping the pool again for every probe would parse size x pool paths: + seconds of blocked event loop at the 1,000-probe bound.""" from server.code.domain import calibration_probes calls = 0 @@ -244,7 +250,7 @@ async def test_code_calibrate_samples_the_namespace(monkeypatch, tmp_path) -> No assert (row["org"], row["namespace"], row["distractor_pairs_n"]) == ("org", "team", 24) -async def test_code_calibrate_abstains_on_at_most_a_tenth_of_the_namespaces_answers( +async def test_code_calibrate_caps_abstain_at_the_probes_p10( monkeypatch, ) -> None: """Units of one repository share its vocabulary, so an unrelated unit can score @@ -262,6 +268,20 @@ async def test_code_calibrate_abstains_on_at_most_a_tenth_of_the_namespaces_answ assert result.noise_floor <= result.abstain_threshold <= result.rerank_skip_above +async def test_code_calibrate_names_an_unbuilt_embedder_by_its_kind(monkeypatch) -> None: + from server.code.app import admin + from server.core.errors import ValidationError + from server.embedding import embedder + + def _unbuilt() -> None: + raise RuntimeError("connect to the embedding host refused") + + monkeypatch.setattr(embedder, "get_embedder", _unbuilt) + with pytest.raises(ValidationError) as raised: + await admin._namespace_probes("org", "team") + assert raised.value.message == "embedder unavailable: RuntimeError" + + async def test_code_calibrate_falls_back_to_the_fixture_for_a_small_namespace( monkeypatch, tmp_path ) -> None: @@ -307,14 +327,6 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment 10, ) assert (others.params["model"], others.params["limit"]) == ("m", 7) - # An oversized function is stored as several `function` chunks sharing one symbol id; only - # the piece that starts the symbol answers its doc comment, so the read keeps one chunk - # per documented symbol, the first. - assert "symbol_ids[1] IN" in chunks.sql - assert "ORDER BY symbol_id, start_line" in chunks.sql - assert "LIMIT 1 BY symbol_id" in chunks.sql - # The read carries the server's draw key so batches of ids merge in one order. - assert "cityHash64(chunk_id) AS draw" in chunks.sql for read in (chunks, others): assert "kind = 'function'" in read.sql assert "tombstoned_at IS NULL" in read.sql @@ -333,28 +345,9 @@ def test_code_calibrate_probes_is_bounded() -> None: assert CodeSettings(code_calibrate_probes=1000).code_calibrate_probes == 1000 -def test_an_older_builds_reply_leaves_the_new_fields_absent() -> None: - # A replica on the build before this one answers without the fields this build - # added. They stay absent - not the fixture's `fixture`/0, and not an explicit - # unknown the old build never said. +def test_the_probe_fields_are_optional_in_the_reply() -> None: + # A replica on the build before this one answers without them. from server.code.api.models_ingest import CodeCalibrateOutput - reply = { - "noise_floor": 0.41, - "abstain_threshold": 0.46, - "rerank_skip_above": 0.72, - "embedder_model": "probe-test-embedder", - "positives": 120, - "distractors": 120, - } - output = CodeCalibrateOutput.model_validate(reply) - assert "probe_source" not in output.model_fields_set - assert "strata" not in output.model_fields_set - assert "probe_source" not in output.model_dump(exclude_unset=True) - assert "strata" not in output.model_dump(exclude_unset=True) - - # A build that has the fields can still answer null; that is unknown, not absence. - answered = CodeCalibrateOutput.model_validate({**reply, "probe_source": None, "strata": None}) - assert {"probe_source", "strata"} <= answered.model_fields_set - assert answered.probe_source is None - assert answered.strata is None + required = CodeCalibrateOutput.model_json_schema()["required"] + assert "probe_source" not in required and "strata" not in required diff --git a/tests/unit/test_code_calibration_worker.py b/tests/unit/test_code_calibration_worker.py index 4bcd1ee56a9..058ac825c45 100644 --- a/tests/unit/test_code_calibration_worker.py +++ b/tests/unit/test_code_calibration_worker.py @@ -12,6 +12,7 @@ import pytest +from server.code.api.models_ingest import CodeCalibrateOutput from server.code.app import admin from server.code.app.index import erasing from server.code.domain.index import repos as repos_mod @@ -24,6 +25,16 @@ ORG = "acme" SERVED = "m-new" +REPLY = CodeCalibrateOutput( + noise_floor=0.2, + abstain_threshold=0.25, + rerank_skip_above=0.7, + embedder_model=SERVED, + positives=24, + distractors=24, + probe_source="namespace", + strata=4, +) class _Cfg: @@ -111,12 +122,13 @@ def __init__(self) -> None: def world(monkeypatch: pytest.MonkeyPatch) -> Iterator[_World]: out = _World() - async def calibrate(org: str, ns: str) -> None: + async def calibrate(org: str, ns: str) -> CodeCalibrateOutput: out.calibrated.append(ns) if ns in out.cancelled: raise asyncio.CancelledError if out.fail or ns in out.failing: raise RuntimeError("probe failed") + return REPLY async def no_erasure(org: str, ns: str) -> bool: return False @@ -367,9 +379,10 @@ async def test_a_bare_label_row_the_worker_refreshed_reads_as_missing_after_a_wi rows = {"a": SERVED} _namespaces(monkeypatch, {"a": (0, 5)}, rows) - async def calibrate(org: str, ns: str) -> None: + async def calibrate(org: str, ns: str) -> CodeCalibrateOutput: world.calibrated.append(ns) rows[ns] = _stored(SERVED) # what persist_namespace_calibration writes + return REPLY monkeypatch.setattr(admin, "calibrate_namespace", calibrate) assert await ec.get_namespace_calibration(ORG, "a") is not None diff --git a/tests/unit/test_embedder_calibration.py b/tests/unit/test_embedder_calibration.py index af76802af64..a338b9cb3b5 100644 --- a/tests/unit/test_embedder_calibration.py +++ b/tests/unit/test_embedder_calibration.py @@ -290,28 +290,62 @@ async def test_per_ns_probe_defaults_to_module_question_fact_corpus(monkeypatch) assert r.question_fact_pairs_n == len(ec.QUESTION_FACT_PAIRS) -async def test_probe_keeps_its_embedding_calls_bounded(monkeypatch) -> None: - # Each pair sends two calls; 200 pairs gathered at once would hold 400 open. - class Counting(_HashEmbedder): - now = peak = 0 +class _Counting(_HashEmbedder): + """Counts query embeddings and the most in flight; `fail` raises on that query.""" + + def __init__(self, fail: str = "") -> None: + self.fail, self.calls, self.now, self.peak = fail, 0, 0, 0 - async def embed(self, text: str) -> list[float]: - Counting.now += 1 - Counting.peak = max(Counting.peak, Counting.now) + async def embed(self, text: str) -> list[float]: + self.calls += 1 + self.now += 1 + self.peak = max(self.peak, self.now) + try: await asyncio.sleep(0) - Counting.now -= 1 + if text == self.fail: + raise RuntimeError("provider refused") return await super().embed(text) + finally: + self.now -= 1 - monkeypatch.setattr("server.embedding.embedder.get_embedder", Counting) - pairs = [(f"q{i}", f"d{i}") for i in range(200)] + +async def test_probe_embeds_each_pair_once_with_its_calls_bounded(monkeypatch) -> None: + # Each pair sends two calls; 200 pairs gathered at once would hold 400 open. + embedder = _Counting() + monkeypatch.setattr("server.embedding.embedder.get_embedder", lambda: embedder) + positives = [(f"q{i}", f"d{i}") for i in range(200)] r = await ec.calibrate_embedder( - paraphrase_pairs=pairs, - distractor_pairs=pairs, - question_fact_pairs=pairs, + paraphrase_pairs=positives, + distractor_pairs=[(f"q{i}", f"x{i}") for i in range(200)], + question_fact_pairs=positives, paraphrase_pair_purpose="query_document", ) assert r is not None - assert Counting.peak == 16 + assert embedder.peak == 16 + # two calls a pair; the positives, passed as both positive corpora, are embedded once + assert embedder.calls == 800 + + +async def test_a_failed_pair_stops_the_rest_of_its_phase(monkeypatch) -> None: + embedder = _Counting(fail="q0") + monkeypatch.setattr("server.embedding.embedder.get_embedder", lambda: embedder) + pairs = [(f"q{i}", f"d{i}") for i in range(200)] + assert await ec.calibrate_embedder(pairs, pairs, pairs) is None + for _ in range(1000): # a pair still running would start its call here + await asyncio.sleep(0) + assert embedder.calls <= 16 # the pairs already started when the first one failed + + +def test_the_answer_cap_moves_the_trigger_gates_with_the_floor() -> None: + answers = [0.40 + 0.01 * i for i in range(17)] # p10 0.416, p75 0.52 + r = ec.derive_thresholds(answers, answers, [0.60] * 20, embedder_model="m", cap_at_answers=True) + assert r.abstain_threshold == pytest.approx(r.question_fact_p10) + assert r.noise_floor == pytest.approx(r.question_fact_p10 - 0.05) + assert r.query_rewrite_threshold == pytest.approx(r.question_fact_p10) + assert r.rerank_skip_above == pytest.approx(r.question_fact_p75) + # the memory derivation keeps the distractors' floor + uncapped = ec.derive_thresholds(answers, answers, [0.60] * 20, embedder_model="m") + assert uncapped.abstain_threshold == pytest.approx(0.67) async def test_probe_failure_returns_none(monkeypatch) -> None: From b2ef5d192bfe21d1c3c23e28af9bbeb65cfcddef Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 01:41:13 +0530 Subject: [PATCH 16/27] Count the uncached embedding in the code_calibrate_probes description Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- docs/reference/configuration.md | 2 +- loom.example.yaml | 4 ++-- schemas/loom-settings.schema.json | 2 +- server/settings/catalog.py | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index 79c9095e906..ec5eb8cfd01 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -711,7 +711,7 @@ The code index's network git (clone, fetch, ls-remote, submodule update) through | `LOOM_CODE_SEARCH_RRF_LEXICAL_WEIGHT_RESPONSIBILITY` | `float` | `1.0` | | Lexical list's RRF weight for a responsibility question (vector = 1.0). 1.0 = equal weights. | | `LOOM_CODE_SEARCH_ABSTAIN_CARD_BELOW` | `float` | `0.0` | | A prose question whose nearest file card's cosine is below this abstains `off_domain`; independent of the card leg. 0 = off. | | `LOOM_CODE_SEARCH_ABSTAIN_CONFIDENCE_BELOW` | `float` | `0.35` | | The abstain score below which a code.search result is flagged `low_calibrated_confidence` (still returned). The score is not `retrieval_confidence`: it blends the top cosine, its margin over the second hit, route agreement and the pool size. The deployment sets 0.30. | -| `LOOM_CODE_CALIBRATE_PROBES` | `int` | `200` | | Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each and no LLM call; under 20 usable probes it uses the fixed corpus. | +| `LOOM_CODE_CALIBRATE_PROBES` | `int` | `200` | | Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each (four with the embedding cache off) and no LLM call; under 20 usable probes it uses the fixed corpus. | | `LOOM_CODE_SEARCH_MEDIUM_RISK_FROM` | `float` | `0.35` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "medium"; below it the result reads "high". In the measurement behind the default about half of the prompts sent to another repository's index scored under it. | | `LOOM_CODE_SEARCH_LOW_RISK_FROM` | `float` | `0.7` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "low": the best cosine is close to that of a confident hit. A prompt about other code usually scores lower, but about one in five sent to another repository's index still read low. With `LOOM_PROMPT_PACK_MIN_CONF` unset the coding-agent plugins send their prompt pointers from it and, for a bug report, below it the first pick of an answer the pick model words `high` or `medium`. | | `LOOM_CODE_SEARCH_HYDE_KINDS` | `str` | `'responsibility'` | | The question kinds the hypothetical answer votes on. | diff --git a/loom.example.yaml b/loom.example.yaml index eacb0b1afd1..cc3f53afb26 100644 --- a/loom.example.yaml +++ b/loom.example.yaml @@ -2234,8 +2234,8 @@ settings: # code_search_abstain_confidence_below: 0.35 # Probes `code.calibrate` samples from a namespace's documented functions, three - # embeddings each and no LLM call; under 20 usable probes it uses the fixed corpus. - # [restart] + # embeddings each (four with the embedding cache off) and no LLM call; under 20 usable + # probes it uses the fixed corpus. [restart] # code_calibrate_probes: 200 # The `retrieval_confidence` from which a code.search result reads `retrieval_risk` diff --git a/schemas/loom-settings.schema.json b/schemas/loom-settings.schema.json index 2cc9eef35dd..6bd7844dce7 100644 --- a/schemas/loom-settings.schema.json +++ b/schemas/loom-settings.schema.json @@ -851,7 +851,7 @@ "maximum": 1000, "minimum": 20, "type": "integer", - "description": "Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each and no LLM call; under 20 usable probes it uses the fixed corpus." + "description": "Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each (four with the embedding cache off) and no LLM call; under 20 usable probes it uses the fixed corpus." }, "code_calibration_enabled": { "default": false, diff --git a/server/settings/catalog.py b/server/settings/catalog.py index a8712b4b815..68d381a006d 100644 --- a/server/settings/catalog.py +++ b/server/settings/catalog.py @@ -1844,7 +1844,8 @@ def _check_git_proxy(self) -> CodeSettings: # hit, route agreement and the pool size. The deployment sets 0.30. code_search_abstain_confidence_below: float = 0.35 # Probes `code.calibrate` samples from a namespace's documented functions, three - # embeddings each and no LLM call; under 20 usable probes it uses the fixed corpus. + # embeddings each (four with the embedding cache off) and no LLM call; under 20 + # usable probes it uses the fixed corpus. code_calibrate_probes: int = Field(default=200, ge=20, le=1000) # The `retrieval_confidence` from which a code.search result reads # `retrieval_risk` "medium"; below it the result reads "high". In the measurement From c17cb212e04c9f2c7e8cedc4ea029b285a33f49c Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 02:19:07 +0530 Subject: [PATCH 17/27] Skip code.calibrate's cap when distractors pass most answers, and read raw docstrings A cap applied when the distractors' p90 reaches the probes' p75 gave an unrelated function full confidence; such a calibration now keeps its distractor floor and has no confidence scale. Raw and unicode docstring prefixes no longer reach the query. The documented-chunk read is one SELECT, and the live test proves its kind, vector and test-file filters with rows. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- docs/architecture/llm-architecture.md | 13 +++++---- docs/operations/code-index-operations.md | 25 +++++++++-------- docs/reference/configuration.md | 2 +- loom.example.yaml | 4 +-- schemas/loom-settings.schema.json | 2 +- server/code/domain/calibration_probes.py | 2 +- server/code/store/index/search.py | 28 ++++++++----------- server/code/workers/calibration.py | 4 +-- server/memory/app/embedder_calibration.py | 6 ++-- server/settings/catalog.py | 5 ++-- .../test_code_calibration_units_live_ch.py | 21 +++++++++++--- .../test_code_calibration_parameter_bounds.py | 18 +++++++----- tests/unit/test_code_calibration_probes.py | 22 ++++++--------- tests/unit/test_embedder_calibration.py | 18 ++++++++---- 14 files changed, 94 insertions(+), 76 deletions(-) diff --git a/docs/architecture/llm-architecture.md b/docs/architecture/llm-architecture.md index 3a3d6d31227..93b16cd6805 100644 --- a/docs/architecture/llm-architecture.md +++ b/docs/architecture/llm-architecture.md @@ -193,12 +193,13 @@ the distractor), or from a fixed corpus for a namespace with fewer than 20 of th | duplicate | paraphrase p75 | `code.calibrate` caps abstain at the 10th percentile of the query-to-function cosines -it measured on its sampled probe pairs (up to `LOOM_CODE_CALIBRATE_PROBES`, 200 by -default) and keeps the noise floor 0.05 under it; the trigger gates are then clamped to -that floor. That percentile describes -the sampled pairs, not the namespace: it places no bound on how often search abstains -for a function the sample did not draw, or for a query whose correct hit never enters -the candidate set. +it measured on its probe pairs (up to `LOOM_CODE_CALIBRATE_PROBES`, 200 by default, or +the fixed corpus) and keeps the noise floor 0.05 under it; the trigger gates are then +clamped to that floor. When the distractors' 90th percentile reaches the pairs' 75th, +no cosine separates a right function from an unrelated one, so the cap is skipped and +the calibration has no confidence scale. That percentile describes the probe pairs, not +the namespace: it places no bound on how often search abstains for a function the +sample did not draw, or for a query whose correct hit never enters the candidate set. Each search resolves thresholds in three tiers: diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 27964a82c83..ba7b07d5019 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -405,18 +405,19 @@ Then: fewer than 20 usable documented functions is calibrated on `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image) instead; `probe_source` in the reply says which. The abstain threshold is capped at the - sampled probes' 10th-percentile query-to-function cosine: functions of one repository - share its vocabulary, so an unrelated one scores close to the right one, and the - distractor percentile alone would abstain on many right answers. That percentile is - over the sampled pairs and does not bound abstention for unsampled functions or a - query whose correct hit never enters the candidate set. Run it for every code namespace, - and again after a change of embedding model. A namespace - without its own calibration (`calibration.get` reads `source: cluster`) reads code - on the embedder's boot calibration, which is derived from prose. On an embedding - model that scores a right code hit lower than a right prose answer, answerable - searches then read `medium` or `high`, and with `LOOM_PROMPT_PACK_MIN_CONF` unset the - coding-agent plugins send one search pointer there, the first pick, only for a bug - report whose answer the pick model words `high` or `medium` + probes' 10th-percentile query-to-function cosine: functions of one repository share + its vocabulary, so an unrelated one scores close to the right one, and the distractor + percentile alone would abstain on many right answers. The cap is skipped when the + distractors' 90th percentile reaches the probes' 75th. That percentile is over the + probe pairs and does not bound abstention for unsampled functions or a query whose + correct hit never enters the candidate set. Run it for every code namespace, and again + after a change of embedding model. A namespace without its own calibration + (`calibration.get` reads `source: cluster`) reads code on the embedder's boot + calibration, which is derived from prose. On an embedding model that scores a right + code hit lower than a right prose answer, answerable searches then read `medium` or + `high`, and with `LOOM_PROMPT_PACK_MIN_CONF` unset the coding-agent plugins send one + search pointer there, the first pick, only for a bug report whose answer the pick + model words `high` or `medium` ([the pick](../features/integrations/claude-code.md#model-picked-pointers-for-a-bug-report)). - `loom code describe --top-pct 20` (optional, LLM cost) writes one-line descriptions for the most central chunks. `--limit N` starts at most N description calls. `--max-usd D` diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index ec5eb8cfd01..e7e88c16590 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -711,7 +711,7 @@ The code index's network git (clone, fetch, ls-remote, submodule update) through | `LOOM_CODE_SEARCH_RRF_LEXICAL_WEIGHT_RESPONSIBILITY` | `float` | `1.0` | | Lexical list's RRF weight for a responsibility question (vector = 1.0). 1.0 = equal weights. | | `LOOM_CODE_SEARCH_ABSTAIN_CARD_BELOW` | `float` | `0.0` | | A prose question whose nearest file card's cosine is below this abstains `off_domain`; independent of the card leg. 0 = off. | | `LOOM_CODE_SEARCH_ABSTAIN_CONFIDENCE_BELOW` | `float` | `0.35` | | The abstain score below which a code.search result is flagged `low_calibrated_confidence` (still returned). The score is not `retrieval_confidence`: it blends the top cosine, its margin over the second hit, route agreement and the pool size. The deployment sets 0.30. | -| `LOOM_CODE_CALIBRATE_PROBES` | `int` | `200` | | Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each (four with the embedding cache off) and no LLM call; under 20 usable probes it uses the fixed corpus. | +| `LOOM_CODE_CALIBRATE_PROBES` | `int` | `200` | | Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each (four uncached) and no LLM call; under 20 usable probes it uses the fixed corpus. | | `LOOM_CODE_SEARCH_MEDIUM_RISK_FROM` | `float` | `0.35` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "medium"; below it the result reads "high". In the measurement behind the default about half of the prompts sent to another repository's index scored under it. | | `LOOM_CODE_SEARCH_LOW_RISK_FROM` | `float` | `0.7` | | The `retrieval_confidence` from which a code.search result reads `retrieval_risk` "low": the best cosine is close to that of a confident hit. A prompt about other code usually scores lower, but about one in five sent to another repository's index still read low. With `LOOM_PROMPT_PACK_MIN_CONF` unset the coding-agent plugins send their prompt pointers from it and, for a bug report, below it the first pick of an answer the pick model words `high` or `medium`. | | `LOOM_CODE_SEARCH_HYDE_KINDS` | `str` | `'responsibility'` | | The question kinds the hypothetical answer votes on. | diff --git a/loom.example.yaml b/loom.example.yaml index cc3f53afb26..bc747093d5c 100644 --- a/loom.example.yaml +++ b/loom.example.yaml @@ -2234,8 +2234,8 @@ settings: # code_search_abstain_confidence_below: 0.35 # Probes `code.calibrate` samples from a namespace's documented functions, three - # embeddings each (four with the embedding cache off) and no LLM call; under 20 usable - # probes it uses the fixed corpus. [restart] + # embeddings each (four uncached) and no LLM call; under 20 usable probes it uses the + # fixed corpus. [restart] # code_calibrate_probes: 200 # The `retrieval_confidence` from which a code.search result reads `retrieval_risk` diff --git a/schemas/loom-settings.schema.json b/schemas/loom-settings.schema.json index 6bd7844dce7..73301000751 100644 --- a/schemas/loom-settings.schema.json +++ b/schemas/loom-settings.schema.json @@ -851,7 +851,7 @@ "maximum": 1000, "minimum": 20, "type": "integer", - "description": "Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each (four with the embedding cache off) and no LLM call; under 20 usable probes it uses the fixed corpus." + "description": "Probes `code.calibrate` samples from a namespace's documented functions, three embeddings each (four uncached) and no LLM call; under 20 usable probes it uses the fixed corpus." }, "code_calibration_enabled": { "default": false, diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index c7afa6f48b8..cd828947e18 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -26,7 +26,7 @@ # components usually sit at _STRATUM_DEPTH = 2 -_LEADER = re.compile(r"^\s*(?:/{2,3}!?|/\*+!?|\*+/?|#+|\"{3}|'{3}|--)\s?") +_LEADER = re.compile(r"^\s*(?:/{2,3}!?|/\*+!?|\*+/?|#+|[rRuUbBfF]{0,2}(?:\"{3}|'{3})|--)\s?") _TAG = re.compile(r"^[@\\](brief|summary)\s+") _SECTION = re.compile( r"^(?:[@\\:]\w+|(?:Args|Arguments|Returns?|Raises|Yields|Parameters|Example)s?:)" diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index 4a1975ca61d..fb8018bd32a 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -339,11 +339,12 @@ async def vector_search_cards( async def calibration_units( self, org: str, ns: str, model: str, *, documented: int, pool: int ) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]: - """(documented units, pool) for `code.calibrate`'s probes: up to `documented` live - function chunks whose unit has a doc comment, each with that comment, and up to - `pool` live function chunks of any kind. Both are read in a hash order of their - ids, so a rerun on an unchanged index reads the same rows. The documented symbols - are read in batches that each fit one HTTP form field.""" + """(documented units, pool) for `code.calibrate`'s probes: the first live chunk of + up to `documented` source functions that have a doc comment, each with that + comment, and up to `pool` live function chunks, documented or not. Both are read + in a hash order of their ids, so a rerun on an unchanged index reads the same + rows. The documented functions' chunks are read in slices of ids that each fit + one HTTP form field.""" from server.core.vectors.code_tables import code_vector_table table = code_vector_table(model) @@ -375,18 +376,13 @@ async def calibration_units( rows = await query_all_sliced( self._ch, f""" - SELECT path, context_text, symbol_id, cityHash64(chunk_id) AS draw - FROM ( - SELECT path, context_text, chunk_id, symbol_ids[1] AS symbol_id, start_line - {chunk_filter} - AND symbol_ids[1] IN {{ids:Array(String)}} - ORDER BY symbol_id, start_line - LIMIT 1 BY symbol_id - ) - ORDER BY draw - LIMIT {{limit:UInt32}} + SELECT path, context_text, symbol_ids[1] AS symbol_id, cityHash64(chunk_id) AS draw + {chunk_filter} + AND symbol_ids[1] IN {{ids:Array(String)}} + ORDER BY symbol_id, start_line + LIMIT 1 BY symbol_id """, - {"org": org, "ns": ns, "model": model, "ids": list(doc_of), "limit": documented}, + {"org": org, "ns": ns, "model": model, "ids": list(doc_of)}, "ids", ) rows.sort(key=lambda r: (int(r["draw"]), str(r["symbol_id"]))) diff --git a/server/code/workers/calibration.py b/server/code/workers/calibration.py index 729f011382a..3f5b5563b96 100644 --- a/server/code/workers/calibration.py +++ b/server/code/workers/calibration.py @@ -140,10 +140,10 @@ async def _run(result: CodeCalibrationResult) -> None: _failed.pop((org, ns), None) result.calibrated = f"{org}/{ns}" logger.info( - "code_calibration: %s/%s calibrated from %s probes (%d strata)", + "code_calibration: %s/%s calibrated from %s probes (%s strata)", org, ns, out.probe_source, - out.strata or 0, + out.strata, ) return # one namespace a pass, calibrated or failed diff --git a/server/memory/app/embedder_calibration.py b/server/memory/app/embedder_calibration.py index e5dea183936..b69a9410ea9 100644 --- a/server/memory/app/embedder_calibration.py +++ b/server/memory/app/embedder_calibration.py @@ -247,7 +247,8 @@ def derive_thresholds( query_rewrite) to question→fact; write-time gates (conflict, duplicate) to paraphrase. `cap_at_answers` keeps abstain at most the question→fact 10th percentile, with the floor 0.05 under it, before the - trigger gates are clamped to that floor. + trigger gates are clamped to that floor, unless the distractors' 90th + percentile reaches the question→fact 75th. """ sim_p10 = _percentile(similar_cosines, 10) sim_p25 = _percentile(similar_cosines, 25) @@ -266,7 +267,8 @@ def derive_thresholds( abstain_threshold = noise_floor + 0.05 # Units of one code repository share its vocabulary, so an unrelated unit scores # close to the right one, and the distractors alone would abstain on many answers. - if cap_at_answers and qf_p10 < abstain_threshold: + # Distractors over most answers mean no cosine separates them: no cap, no scale. + if cap_at_answers and qf_p10 < abstain_threshold and dist_p90 < qf_p75: abstain_threshold, noise_floor = qf_p10, qf_p10 - 0.05 # Trigger gates can't fire below the floor (sub-floor hits already diff --git a/server/settings/catalog.py b/server/settings/catalog.py index 68d381a006d..3df73bc7ed4 100644 --- a/server/settings/catalog.py +++ b/server/settings/catalog.py @@ -1843,9 +1843,8 @@ def _check_git_proxy(self) -> CodeSettings: # `retrieval_confidence`: it blends the top cosine, its margin over the second # hit, route agreement and the pool size. The deployment sets 0.30. code_search_abstain_confidence_below: float = 0.35 - # Probes `code.calibrate` samples from a namespace's documented functions, three - # embeddings each (four with the embedding cache off) and no LLM call; under 20 - # usable probes it uses the fixed corpus. + # Probes `code.calibrate` samples from a namespace's documented functions, three embeddings + # each (four uncached) and no LLM call; under 20 usable probes it uses the fixed corpus. code_calibrate_probes: int = Field(default=200, ge=20, le=1000) # The `retrieval_confidence` from which a code.search result reads # `retrieval_risk` "medium"; below it the result reads "high". In the measurement diff --git a/tests/integration/test_code_calibration_units_live_ch.py b/tests/integration/test_code_calibration_units_live_ch.py index 36a294f4035..c7467c1aa7b 100644 --- a/tests/integration/test_code_calibration_units_live_ch.py +++ b/tests/integration/test_code_calibration_units_live_ch.py @@ -42,8 +42,10 @@ ] -def _symbol(org: str, ns: str, symbol_id: str, doc: str, *, tier: str = "treesitter") -> list[Any]: - return [org, ns, tier, f"mod.{symbol_id}", symbol_id, "function", "a/x.py", doc, None] +def _symbol( + org: str, ns: str, symbol_id: str, doc: str, *, tier: str = "treesitter", path: str = "a/x.py" +) -> list[Any]: + return [org, ns, tier, f"mod.{symbol_id}", symbol_id, "function", path, doc, None] def _chunk( @@ -55,6 +57,8 @@ def _chunk( symbol_ids: list[str], *, tombstoned_at: dt.datetime | None = None, + kind: str = "function", + embedded: bool = True, ) -> list[Any]: dim = settings.embedding_dim return [ @@ -63,14 +67,14 @@ def _chunk( "m", path, uuid.uuid4(), - "function", + kind, start, start + 9, text, text, symbol_ids, [0.5] * dim, - dim, + dim if embedded else 0, tombstoned_at, ] @@ -88,6 +92,11 @@ async def test_calibration_units_read_documented_functions_from_real_rows( _symbol(org, ns, "bare", ""), # another tier's row under the same id must not change the drawn doc _symbol(org, ns, "bare", "A doc only the SCIP tier carries.", tier="scip"), + # documented, but with no embedded function chunk + _symbol(org, ns, "outline", "Draw the outline of each class."), + _symbol(org, ns, "stub", "Return the value of the stub."), + # a test function is never a probe, so it must not use up the read's limit + _symbol(org, ns, "check_sums", "Check that each row sums.", path="tests/test_sum.py"), ], column_names=_SYMBOL_COLUMNS, ) @@ -103,6 +112,9 @@ async def test_calibration_units_read_documented_functions_from_real_rows( _chunk(org, ns, "a/bare.py", 1, "bare", ["bare"]), # a nested function's chunk belongs to its own symbol, not to the documented outer one _chunk(org, ns, "a/nested.py", 1, "nested", ["bare", "merge_parts"]), + _chunk(org, ns, "a/klass.py", 1, "klass", ["outline"], kind="class_skeleton"), + _chunk(org, ns, "a/stub.py", 1, "stub", ["stub"], embedded=False), + _chunk(org, ns, "tests/test_sum.py", 1, "check", ["check_sums"]), _chunk( org, ns, @@ -130,4 +142,5 @@ async def test_calibration_units_read_documented_functions_from_real_rows( "a/sum.py", "a/sum.py", "a/sum.py", + "tests/test_sum.py", ] diff --git a/tests/unit/test_code_calibration_parameter_bounds.py b/tests/unit/test_code_calibration_parameter_bounds.py index 7197b7bc391..bb830aa1a22 100644 --- a/tests/unit/test_code_calibration_parameter_bounds.py +++ b/tests/unit/test_code_calibration_parameter_bounds.py @@ -17,14 +17,19 @@ from typing import Any import pytest +from annotated_types import Le from clickhouse_connect.driver.binding import format_bind_value from server.code.store.index import CodeRepo +from server.settings.catalog import CodeSettings _HTTP_FIELD_BYTES = 128 * 1024 -# `server/settings/catalog.py` bounds code_calibrate_probes at 1000, and -# `_namespace_probes` reads five documented functions per probe. -_MAX_PROBES = 1000 +# The setting's ceiling, and the five documented functions `_namespace_probes` reads a probe. +_MAX_PROBES = next( + bound.le + for bound in CodeSettings.model_fields["code_calibrate_probes"].metadata + if isinstance(bound, Le) +) _DOCUMENTED = _MAX_PROBES * 5 @@ -51,9 +56,8 @@ async def query_all(self, sql: str, params: dict[str, Any]) -> list[dict[str, An f"{_HTTP_FIELD_BYTES}-byte http_max_field_value_size" ) self.calls.append((sql, params)) - limit = int(params["limit"]) if "FROM loom.code_symbols" in sql: - return [{"symbol_id": s, "doc": d} for s, d in self.symbols[:limit]] + return [{"symbol_id": s, "doc": d} for s, d in self.symbols[: params["limit"]]] if "symbol_ids[1] IN" in sql: rows = [ { @@ -64,11 +68,11 @@ async def query_all(self, sql: str, params: dict[str, Any]) -> list[dict[str, An } for s in params["ids"] ] - return sorted(rows, key=lambda r: int(r["draw"]))[:limit] + return rows # in id order: the merge sorts on the draw assert "context_text" in sql # the pool read return [ {"path": self.paths[s], "context_text": f"{self.paths[s]} · src/d · symbol {s}"} - for s, _ in self.symbols[:limit] + for s, _ in self.symbols[: params["limit"]] ] diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index bce09c0a609..ed482ef7fac 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -37,18 +37,23 @@ def test_probe_query_strips_cpp_comment_leaders_and_brief_tags() -> None: def test_probe_query_refuses_what_does_not_describe_the_unit() -> None: assert probe_query("Returns the size.") == "" # too short to read as a question assert probe_query("TODO: split this function into two parts") == "" - assert probe_query("// namespace vllm\n// taken from\n// https://github.com/x/y/blob/z") == "" + assert ( + probe_query("// namespace kernels\n// taken from\n// https://github.com/x/y/blob/z") == "" + ) assert probe_query("@param a the first operand of it") == "" # a namespace-closing comment above the function's own is not part of the query assert probe_query("// namespace\n// Conv stage of the linear attention path.") == ( "Conv stage of the linear attention path." ) - assert probe_query("// end namespace vllm\n// Conv stage of the linear attention path.") == ( + assert probe_query("// end namespace kernels\n// Conv stage of the linear attention path.") == ( "Conv stage of the linear attention path." ) assert probe_query("End the span and record its duration.") == ( "End the span and record its duration." ) + assert probe_query('r"""Applies a 1D convolution over the input signal.') == ( + "Applies a 1D convolution over the input signal." + ) def test_probe_query_keeps_a_glob_that_ends_a_line() -> None: @@ -318,19 +323,8 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment assert pool == [{"path": "b/y.py", "context_text": "b"}] docs, chunks, others = ch.calls assert docs.params == {"org": "org", "ns": "ns", "limit": 10} - # The SCIP tier writes rows under the same symbol_id; `any()` over both tiers would - # make the drawn doc, and so the probe set, depend on which tiers have merged. - assert "tier = 'treesitter'" in docs.sql - assert (chunks.params["ids"], chunks.params["model"], chunks.params["limit"]) == ( - ["s1"], - "m", - 10, - ) + assert (chunks.params["ids"], chunks.params["model"]) == (["s1"], "m") assert (others.params["model"], others.params["limit"]) == ("m", 7) - for read in (chunks, others): - assert "kind = 'function'" in read.sql - assert "tombstoned_at IS NULL" in read.sql - assert "embedding_dim > 0" in read.sql def test_code_calibrate_probes_is_bounded() -> None: diff --git a/tests/unit/test_embedder_calibration.py b/tests/unit/test_embedder_calibration.py index a338b9cb3b5..dc00bff88d9 100644 --- a/tests/unit/test_embedder_calibration.py +++ b/tests/unit/test_embedder_calibration.py @@ -337,15 +337,23 @@ async def test_a_failed_pair_stops_the_rest_of_its_phase(monkeypatch) -> None: def test_the_answer_cap_moves_the_trigger_gates_with_the_floor() -> None: - answers = [0.40 + 0.01 * i for i in range(17)] # p10 0.416, p75 0.52 - r = ec.derive_thresholds(answers, answers, [0.60] * 20, embedder_model="m", cap_at_answers=True) + answers = [0.40 + 0.02 * i for i in range(17)] # p10 0.432, p75 0.64 + r = ec.derive_thresholds(answers, answers, [0.62] * 20, embedder_model="m", cap_at_answers=True) assert r.abstain_threshold == pytest.approx(r.question_fact_p10) assert r.noise_floor == pytest.approx(r.question_fact_p10 - 0.05) assert r.query_rewrite_threshold == pytest.approx(r.question_fact_p10) assert r.rerank_skip_above == pytest.approx(r.question_fact_p75) - # the memory derivation keeps the distractors' floor - uncapped = ec.derive_thresholds(answers, answers, [0.60] * 20, embedder_model="m") - assert uncapped.abstain_threshold == pytest.approx(0.67) + # the memory derivation keeps the distractors' floor, and its gates clamp to it + uncapped = ec.derive_thresholds(answers, answers, [0.62] * 20, embedder_model="m") + assert uncapped.abstain_threshold == pytest.approx(0.69) + assert uncapped.rerank_skip_above == pytest.approx(0.65) + + +def test_the_answer_cap_leaves_distractors_over_most_answers_without_a_scale() -> None: + answers = [0.40 + 0.01 * i for i in range(17)] # p75 0.52, under the distractors + r = ec.derive_thresholds(answers, answers, [0.60] * 20, embedder_model="m", cap_at_answers=True) + assert r.abstain_threshold == pytest.approx(0.67) + assert r.rerank_skip_above < r.abstain_threshold async def test_probe_failure_returns_none(monkeypatch) -> None: From bd0f9a3286845061577dc5b5acf3530da32cc789 Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 02:45:11 +0530 Subject: [PATCH 18/27] Drop the name a Go doc comment opens with from code.calibrate's probe query Most documented Go functions open their doc comment with the function's name, which their positive also carries, so the probe asked with the identifier a real question seldom names. The symbols read now returns the name and drops test files with the same pattern as is_test_path; the wire and calibration.get descriptions name the abstain cap, and the probe's concurrency is a named constant. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- docs/reference/operations/calibration.md | 6 ++--- docs/reference/operations/code.md | 4 +-- server/code/api/models_ingest.py | 7 ++--- server/code/app/admin.py | 2 +- server/code/domain/calibration_probes.py | 14 +++++++--- server/code/store/index/search.py | 26 +++++++++---------- server/memory/api/models_calibration.py | 9 ++++--- server/memory/app/embedder_calibration.py | 9 ++++--- .../test_code_calibration_units_live_ch.py | 14 +++++++--- .../test_code_calibration_parameter_bounds.py | 6 ++--- tests/unit/test_code_calibration_probes.py | 22 +++++++++++++--- 11 files changed, 76 insertions(+), 43 deletions(-) diff --git a/docs/reference/operations/calibration.md b/docs/reference/operations/calibration.md index 28fbc9737c4..bdfd9aa2737 100644 --- a/docs/reference/operations/calibration.md +++ b/docs/reference/operations/calibration.md @@ -23,11 +23,11 @@ Resolve the active calibration for (org, namespace): per-namespace, then cluster | --- | --- | --- | | `source` | `str` | "namespace" / "cluster" / "scalar" | | `embedder_model` | `str` | The embedder the thresholds were derived for; with `scalar`, the configured model. | -| `noise_floor` | `float` | Cosine below which a search hit is dropped as noise (distractor P90 + 0.02 when probed). | +| `noise_floor` | `float` | Cosine below which a search hit is dropped as noise (distractor P90 + 0.02 when probed; for a code namespace, 0.05 under an abstain threshold capped at question-to-fact P10). | | `rerank_skip_above` | `float` | Top-hit cosine at or above which the LLM rerank is skipped (question-to-fact P75, never below `hyde_fallback_threshold`). | | `hyde_fallback_threshold` | `float` | The question-to-fact P25 gate, never below `query_rewrite_threshold`; `loom_search` reads it as its precision floor. | | `query_rewrite_threshold` | `float` | The question-to-fact P10 gate, held at least 0.01 above `noise_floor`. | -| `abstain_threshold` | `float` | Top-hit cosine below which a search abstains (`noise_floor` + 0.05 when probed). | +| `abstain_threshold` | `float` | Top-hit cosine below which a search abstains (`noise_floor` + 0.05 when probed; for a code namespace, at most question-to-fact P10 unless distractor P90 reaches its P75). | | `conflict_threshold` | `float` | Cosine at or above which a write against an active peer is flagged `conflicted` (paraphrase P50 when probed). | | `duplicate_threshold` | `float` | Cosine at or above which a write with a canonical-form mismatch is marked `duplicate` (paraphrase P75 when probed). | | `similar_p10` | `float` | Probe percentiles; default 0.0 when source is 'scalar' (no probe ran). | @@ -35,7 +35,7 @@ Resolve the active calibration for (org, namespace): per-namespace, then cluster | `similar_p50` | `float` | Median cosine of the paraphrase pairs. | | `similar_p75` | `float` | 75th percentile cosine of the paraphrase pairs. | | `distractor_p50` | `float` | Median cosine of the unrelated (distractor) pairs. | -| `distractor_p90` | `float` | 90th percentile cosine of the distractor pairs, the anchor of `noise_floor`. | +| `distractor_p90` | `float` | 90th percentile cosine of the distractor pairs, the anchor of `noise_floor` unless a code namespace's abstain cap moved it. | | `similar_pairs_n` | `int` | Paraphrase pairs the probe embedded; 0 when `source` is `scalar`. | | `distractor_pairs_n` | `int` | Distractor pairs the probe embedded; 0 when `source` is `scalar`. | diff --git a/docs/reference/operations/code.md b/docs/reference/operations/code.md index ee11a27748a..5d2d6d10588 100644 --- a/docs/reference/operations/code.md +++ b/docs/reference/operations/code.md @@ -255,8 +255,8 @@ Derive this namespace's calibration and persist it: the code-specific abstention | Output field | Type | Meaning | | --- | --- | --- | | `noise_floor` | `float` | Cosine below which a hit is noise: the distractors' 90th percentile plus 0.02, or 0.05 under the abstain threshold when that is capped. | -| `abstain_threshold` | `float` | Cosine below which the search abstains: `noise_floor` plus 0.05, or the probes' 10th-percentile question-to-answer cosine when that is lower. | -| `rerank_skip_above` | `float` | Cosine of a confident hit, the probes' 75th-percentile question-to-answer cosine: where `code.search`'s `retrieval_confidence` reads 1.0. | +| `abstain_threshold` | `float` | Cosine below which the search abstains: `noise_floor` plus 0.05, or the probes' 10th-percentile question-to-answer cosine when that is lower, unless the distractors' 90th percentile reaches the probes' 75th. | +| `rerank_skip_above` | `float` | Cosine of a confident hit, the probes' 75th-percentile question-to-answer cosine and at least 0.01 over `noise_floor`: where `code.search`'s `retrieval_confidence` reads 1.0. | | `embedder_model` | `str` | The embedding model the probes ran against; the calibration applies to it. | | `positives` | `int` | Query/positive pairs the thresholds were derived from. | | `distractors` | `int` | Query/distractor pairs the thresholds were derived from. | diff --git a/server/code/api/models_ingest.py b/server/code/api/models_ingest.py index 14c6d9a6cda..f403d3a8ce8 100644 --- a/server/code/api/models_ingest.py +++ b/server/code/api/models_ingest.py @@ -152,10 +152,11 @@ class CodeCalibrateOutput(BaseModel): # 0.05 under the abstain threshold when that is capped. noise_floor: float # Cosine below which the search abstains: `noise_floor` plus 0.05, or the probes' - # 10th-percentile question-to-answer cosine when that is lower. + # 10th-percentile question-to-answer cosine when that is lower, unless the + # distractors' 90th percentile reaches the probes' 75th. abstain_threshold: float - # Cosine of a confident hit, the probes' 75th-percentile question-to-answer cosine: - # where `code.search`'s `retrieval_confidence` reads 1.0. + # Cosine of a confident hit, the probes' 75th-percentile question-to-answer cosine and + # at least 0.01 over `noise_floor`: where `code.search`'s `retrieval_confidence` reads 1.0. rerank_skip_above: float # The embedding model the probes ran against; the calibration applies to it. embedder_model: str diff --git a/server/code/app/admin.py b/server/code/app/admin.py index 1013fc8185c..465e756e927 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -90,7 +90,7 @@ async def _namespace_probes(org: str, ns: str) -> Probes: ) return sample_probes( ns, - [Unit(r["path"], r["context_text"], r["doc"]) for r in documented], + [Unit(r["path"], r["context_text"], r["doc"], r["name"]) for r in documented], [Unit(r["path"], r["context_text"]) for r in pool], size=size, ) diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index cd828947e18..4871e92c62d 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -39,11 +39,13 @@ @dataclass(frozen=True) class Unit: - """A function chunk: its path, the text it was embedded from and its doc comment.""" + """A function chunk: its path, the text it was embedded from, its doc comment and + its name.""" path: str context_text: str doc_comment: str = "" + name: str = "" @dataclass @@ -54,9 +56,10 @@ class Probes: strata: int = 0 -def probe_query(doc_comment: str) -> str: +def probe_query(doc_comment: str, name: str = "") -> str: """The first paragraph of a doc comment as a search query, or '' when it does not - describe the unit (too short, a tag, a link, a note to maintainers).""" + describe the unit (too short, a tag, a link, a note to maintainers). A leading `name` + is dropped: Go opens a doc comment with it, and a question seldom names the unit.""" words: list[str] = [] for raw in doc_comment.strip().splitlines(): # the closer is the two characters `*/`, so a line ending in `src/*` keeps its glob @@ -73,6 +76,9 @@ def probe_query(doc_comment: str) -> str: continue words.extend(line.split()) query = " ".join(words).strip("\"' ") + first, _, rest = query.partition(" ") + if name and first.rstrip(",.:;") == name: + query = rest if len(query.split()) < _MIN_QUERY_WORDS or query.lower().startswith(_NOT_DESCRIPTION): return "" if sum(ch.isalpha() or ch.isspace() for ch in query) < 0.8 * len(query): @@ -124,7 +130,7 @@ def sample_probes(namespace: str, units: list[Unit], pool: list[Unit], *, size: for unit in units: if is_test_path(unit.path): continue - if query := probe_query(unit.doc_comment): + if query := probe_query(unit.doc_comment, unit.name): by_stratum.setdefault(stratum(unit.path), []).append((unit, query)) keys = sorted(by_stratum) rng.shuffle(keys) diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index fb8018bd32a..c1fe2f2a38f 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -12,6 +12,7 @@ from server.code.domain.idents import whole_literal_pattern from server.code.domain.index.grep_plan import GREP_FINAL_SETTINGS, any_literal_guard +from server.code.domain.index.test_gate import TEST_PATH_PATTERN from server.code.domain.search_scope import SearchScope from server.code.store.index.base import CodeRepoBase from server.code.store.index.sql import _gather_batched, _scope_sql, skip_tests_sql @@ -341,30 +342,28 @@ async def calibration_units( ) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]: """(documented units, pool) for `code.calibrate`'s probes: the first live chunk of up to `documented` source functions that have a doc comment, each with that - comment, and up to `pool` live function chunks, documented or not. Both are read + comment and the function's name, and up to `pool` live function chunks, + documented or not. Both are read in a hash order of their ids, so a rerun on an unchanged index reads the same rows. The documented functions' chunks are read in slices of ids that each fit one HTTP form field.""" from server.core.vectors.code_tables import code_vector_table table = code_vector_table(model) - # The aggregate's alias must not share the column's name: the WHERE would then read - # the aggregate, which ClickHouse refuses (ILLEGAL_AGGREGATION). - # Test files are dropped here, before the limit, so they cannot use up the budget. + # Test files are dropped before the limit, so they cannot use up the budget. docs = await self._ch.query_all( - f""" - SELECT symbol_id, any(doc_comment) AS doc + """ + SELECT symbol_id, name, doc_comment AS doc FROM loom.code_symbols FINAL - WHERE org = {{org:String}} AND namespace = {{ns:String}} + WHERE org = {org:String} AND namespace = {ns:String} AND kind = 'function' AND doc_comment != '' AND tombstoned_at IS NULL - AND tier = 'treesitter'{skip_tests_sql("path")} - GROUP BY symbol_id + AND tier = 'treesitter' AND NOT match(path, {test_path_pattern:String}) ORDER BY cityHash64(symbol_id) - LIMIT {{limit:UInt32}} + LIMIT {limit:UInt32} """, - {"org": org, "ns": ns, "limit": documented}, + {"org": org, "ns": ns, "limit": documented, "test_path_pattern": TEST_PATH_PATTERN}, ) - doc_of = {str(r["symbol_id"]): str(r["doc"]) for r in docs} + doc_of = {str(r["symbol_id"]): (str(r["doc"]), str(r["name"])) for r in docs} chunk_filter = f""" FROM {table} FINAL WHERE org = {{org:String}} AND namespace = {{ns:String}} @@ -390,7 +389,8 @@ async def calibration_units( { "path": r["path"], "context_text": r["context_text"], - "doc": doc_of[str(r["symbol_id"])], + "doc": doc_of[str(r["symbol_id"])][0], + "name": doc_of[str(r["symbol_id"])][1], } for r in rows ] diff --git a/server/memory/api/models_calibration.py b/server/memory/api/models_calibration.py index 52f0bb58256..c76062d0dfd 100644 --- a/server/memory/api/models_calibration.py +++ b/server/memory/api/models_calibration.py @@ -19,7 +19,8 @@ class CalibrationGetOutput(BaseModel): # The embedder the thresholds were derived for; with `scalar`, the configured model. embedder_model: str = "" - # Cosine below which a search hit is dropped as noise (distractor P90 + 0.02 when probed). + # Cosine below which a search hit is dropped as noise (distractor P90 + 0.02 when probed; + # for a code namespace, 0.05 under an abstain threshold capped at question-to-fact P10). noise_floor: float # Top-hit cosine at or above which the LLM rerank is skipped (question-to-fact P75, # never below `hyde_fallback_threshold`). @@ -29,7 +30,8 @@ class CalibrationGetOutput(BaseModel): hyde_fallback_threshold: float # The question-to-fact P10 gate, held at least 0.01 above `noise_floor`. query_rewrite_threshold: float - # Top-hit cosine below which a search abstains (`noise_floor` + 0.05 when probed). + # Top-hit cosine below which a search abstains (`noise_floor` + 0.05 when probed; for a + # code namespace, at most question-to-fact P10 unless distractor P90 reaches its P75). abstain_threshold: float # Cosine at or above which a write against an active peer is flagged `conflicted` # (paraphrase P50 when probed). @@ -48,7 +50,8 @@ class CalibrationGetOutput(BaseModel): similar_p75: float = Field(default=0.0) # Median cosine of the unrelated (distractor) pairs. distractor_p50: float = Field(default=0.0) - # 90th percentile cosine of the distractor pairs, the anchor of `noise_floor`. + # 90th percentile cosine of the distractor pairs, the anchor of `noise_floor` unless a + # code namespace's abstain cap moved it. distractor_p90: float = Field(default=0.0) # Paraphrase pairs the probe embedded; 0 when `source` is `scalar`. diff --git a/server/memory/app/embedder_calibration.py b/server/memory/app/embedder_calibration.py index b69a9410ea9..c0352b9da64 100644 --- a/server/memory/app/embedder_calibration.py +++ b/server/memory/app/embedder_calibration.py @@ -309,6 +309,11 @@ def derive_thresholds( ) +# not a setting: code.calibrate sends up to 1,000 pairs a phase through the model client +# every search embeds its query on; 16 calls in flight leave it the rest of its connections. +_PROBE_PAIRS_IN_FLIGHT = 8 + + async def calibrate_embedder( paraphrase_pairs: list[tuple[str, str]] | None = None, distractor_pairs: list[tuple[str, str]] | None = None, @@ -359,9 +364,7 @@ async def calibrate_embedder( ) return None - # code.calibrate sends up to 1,000 pairs a phase through the model client every - # search embeds its query on; eight at a time keep the probe from crowding it out. - in_flight = asyncio.Semaphore(8) + in_flight = asyncio.Semaphore(_PROBE_PAIRS_IN_FLIGHT) async def _embed_pair(a: str, b: str, *, query: bool) -> float: # The recalibration worker's fixed pairs are the deployment's; code.calibrate diff --git a/tests/integration/test_code_calibration_units_live_ch.py b/tests/integration/test_code_calibration_units_live_ch.py index c7467c1aa7b..fc44646a2c1 100644 --- a/tests/integration/test_code_calibration_units_live_ch.py +++ b/tests/integration/test_code_calibration_units_live_ch.py @@ -19,6 +19,7 @@ "tier", "qualified_name", "symbol_id", + "name", "kind", "path", "doc_comment", @@ -45,7 +46,7 @@ def _symbol( org: str, ns: str, symbol_id: str, doc: str, *, tier: str = "treesitter", path: str = "a/x.py" ) -> list[Any]: - return [org, ns, tier, f"mod.{symbol_id}", symbol_id, "function", path, doc, None] + return [org, ns, tier, f"mod.{symbol_id}", symbol_id, symbol_id, "function", path, doc, None] def _chunk( @@ -97,6 +98,9 @@ async def test_calibration_units_read_documented_functions_from_real_rows( _symbol(org, ns, "stub", "Return the value of the stub."), # a test function is never a probe, so it must not use up the read's limit _symbol(org, ns, "check_sums", "Check that each row sums.", path="tests/test_sum.py"), + _symbol( + org, ns, "check_merge", "Check that two parts merge.", path="pkg/test_merge.py" + ), ], column_names=_SYMBOL_COLUMNS, ) @@ -115,6 +119,7 @@ async def test_calibration_units_read_documented_functions_from_real_rows( _chunk(org, ns, "a/klass.py", 1, "klass", ["outline"], kind="class_skeleton"), _chunk(org, ns, "a/stub.py", 1, "stub", ["stub"], embedded=False), _chunk(org, ns, "tests/test_sum.py", 1, "check", ["check_sums"]), + _chunk(org, ns, "pkg/test_merge.py", 1, "check merge", ["check_merge"]), _chunk( org, ns, @@ -131,9 +136,9 @@ async def test_calibration_units_read_documented_functions_from_real_rows( await get_client().connect() units, pool = await CodeRepo().calibration_units(org, ns, "m", documented=10, pool=10) - assert sorted((u["path"], u["context_text"], u["doc"]) for u in units) == [ - ("a/merge.py", "merge", "Merge two parts."), - ("a/sum.py", "sum head", "Sum each row."), + assert sorted((u["path"], u["context_text"], u["doc"], u["name"]) for u in units) == [ + ("a/merge.py", "merge", "Merge two parts.", "merge_parts"), + ("a/sum.py", "sum head", "Sum each row.", "sum_rows"), ] assert sorted(p["path"] for p in pool) == [ "a/bare.py", @@ -142,5 +147,6 @@ async def test_calibration_units_read_documented_functions_from_real_rows( "a/sum.py", "a/sum.py", "a/sum.py", + "pkg/test_merge.py", "tests/test_sum.py", ] diff --git a/tests/unit/test_code_calibration_parameter_bounds.py b/tests/unit/test_code_calibration_parameter_bounds.py index bb830aa1a22..44e5195617e 100644 --- a/tests/unit/test_code_calibration_parameter_bounds.py +++ b/tests/unit/test_code_calibration_parameter_bounds.py @@ -37,7 +37,6 @@ class _BoundedCH: """ClickHouse's HTTP field limit, and the three reads `calibration_units` makes.""" def __init__(self, documented: int) -> None: - self.documented = documented self.symbols = [ (f"{i:032x}", f"Return the total weight of bucket {i} now.") for i in range(documented) ] @@ -46,7 +45,6 @@ def __init__(self, documented: int) -> None: self.draw = {s: (i * 7919) % documented for i, (s, _) in enumerate(self.symbols)} self.paths = {s: f"src/d{i % 4}/m{i}.py" for i, (s, _) in enumerate(self.symbols)} self.docs = dict(self.symbols) - self.calls: list[tuple[str, dict[str, Any]]] = [] async def query_all(self, sql: str, params: dict[str, Any]) -> list[dict[str, Any]]: for name, value in params.items(): @@ -55,9 +53,9 @@ async def query_all(self, sql: str, params: dict[str, Any]) -> list[dict[str, An f"param {name} is {size} bytes, over ClickHouse's " f"{_HTTP_FIELD_BYTES}-byte http_max_field_value_size" ) - self.calls.append((sql, params)) if "FROM loom.code_symbols" in sql: - return [{"symbol_id": s, "doc": d} for s, d in self.symbols[: params["limit"]]] + rows = self.symbols[: params["limit"]] + return [{"symbol_id": s, "name": "weight", "doc": d} for s, d in rows] if "symbol_ids[1] IN" in sql: rows = [ { diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index ed482ef7fac..acb75616146 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -16,6 +16,7 @@ stratum, without_doc, ) +from server.code.domain.index.test_gate import TEST_PATH_PATTERN def test_probe_query_reads_the_first_paragraph_of_a_python_docstring() -> None: @@ -56,6 +57,15 @@ def test_probe_query_refuses_what_does_not_describe_the_unit() -> None: ) +def test_probe_query_drops_the_name_a_go_doc_comment_opens_with() -> None: + doc = "// ParseConfig reads the file at path into a Config." + assert probe_query(doc, "ParseConfig") == "reads the file at path into a Config." + # a name later in the sentence is part of the description + assert probe_query("// Load the file and return a Config.", "Config") == ( + "Load the file and return a Config." + ) + + def test_probe_query_keeps_a_glob_that_ends_a_line() -> None: # The block-comment closer is the two characters `*/`, not a set of characters: # a description that ends in `testdata/*` keeps its glob. @@ -204,6 +214,7 @@ def _documented(n: int) -> list[dict[str, str]]: f'def weight():\n """Return the total weight of bucket {i} now."""\n' ), "doc": f"Return the total weight of bucket {i} now.", + "name": "weight", } for i in range(n) ] @@ -312,17 +323,22 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment text = "a/x.py · a\nf()\n---\ndef f():\n pass\n" ch = RecordingCH() - ch.on("FROM loom.code_symbols", [{"symbol_id": "s1", "doc": "Sum each row."}]) + ch.on("FROM loom.code_symbols", [{"symbol_id": "s1", "name": "f", "doc": "Sum each row."}]) ch.on( "symbol_ids[1] IN", [{"path": "a/x.py", "context_text": text, "symbol_id": "s1", "draw": 3}], ) ch.on("SELECT path, context_text", [{"path": "b/y.py", "context_text": "b"}]) units, pool = await CodeRepo(ch).calibration_units("org", "ns", "m", documented=10, pool=7) - assert units == [{"path": "a/x.py", "context_text": text, "doc": "Sum each row."}] + assert units == [{"path": "a/x.py", "context_text": text, "doc": "Sum each row.", "name": "f"}] assert pool == [{"path": "b/y.py", "context_text": "b"}] docs, chunks, others = ch.calls - assert docs.params == {"org": "org", "ns": "ns", "limit": 10} + assert docs.params == { + "org": "org", + "ns": "ns", + "limit": 10, + "test_path_pattern": TEST_PATH_PATTERN, + } assert (chunks.params["ids"], chunks.params["model"]) == (["s1"], "m") assert (others.params["model"], others.params["limit"]) == ("m", 7) From 1f7d03f3610f919e0113732306ee968a5dc5744f Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 03:09:51 +0530 Subject: [PATCH 19/27] code.calibrate: drop the dead test-file skip and correct the probe and budget text The documented-units read already drops test files, so sample_probes no longer checks them. A distractor keeps its doc comment because search compares a query with the chunk as indexed; the docs and module docstring say so. The code.calibrate budget comment names the work it covers, and the recalibration bullet no longer claims a per-namespace re-probe. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- docs/architecture/llm-architecture.md | 5 ++--- docs/operations/code-index-operations.md | 5 +++-- server/code/domain/calibration_probes.py | 9 +++------ server/code/store/index/search.py | 7 +++---- server/memory/app/embedder_calibration.py | 3 ++- server/settings/catalog.py | 4 +++- tests/unit/test_code_calibration_probes.py | 4 +--- tests/unit/test_embedder_calibration.py | 2 +- 8 files changed, 18 insertions(+), 21 deletions(-) diff --git a/docs/architecture/llm-architecture.md b/docs/architecture/llm-architecture.md index 93b16cd6805..2cec8608bab 100644 --- a/docs/architecture/llm-architecture.md +++ b/docs/architecture/llm-architecture.md @@ -225,9 +225,8 @@ Each search resolves thresholds in three tiers: - With adaptivity off and a real embedder other than `text-embedding-3-small` (the model the scalar gates were tuned for), boot logs a warning. You own re-benching. - The `recalibration` worker (weekly, `LOOM_RECALIBRATION_ENABLED`, on the leader) - re-runs the probe, publishes the result as the cluster calibration, - warns on a drift of 0.05 or more, and re-probes namespace corpora with at least 5 - similar and 3 distractor pairs. + re-runs the probe, publishes the result as the cluster calibration and warns on a + drift of 0.05 or more. Per-namespace calibrations come only from `code.calibrate`. **Why.** Deriving thresholds from the model's own distribution makes an embedder swap a configuration change. The cost: thresholds are statistical. A namespace corpus whose diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index ba7b07d5019..4ac47f4c075 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -406,8 +406,9 @@ Then: `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image) instead; `probe_source` in the reply says which. The abstain threshold is capped at the probes' 10th-percentile query-to-function cosine: functions of one repository share - its vocabulary, so an unrelated one scores close to the right one, and the distractor - percentile alone would abstain on many right answers. The cap is skipped when the + its vocabulary, so an unrelated one, read as indexed with its doc comment, scores + close to the right one read without it, and the distractor percentile alone would + abstain on many right answers. The cap is skipped when the distractors' 90th percentile reaches the probes' 75th. That percentile is over the probe pairs and does not bound abstention for unsampled functions or a query whose correct hit never enters the candidate set. Run it for every code namespace, and again diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index 4871e92c62d..3cefd5283e7 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -4,7 +4,8 @@ the first paragraph of its doc comment says what the unit does, the way a question about it would. `code.calibrate` embeds each such query against its unit (with the doc comment taken out, so the answer does not contain the question) and against a -unit from another part of the namespace. The thresholds then follow the repository's +unit from another part of the namespace as it is indexed, doc comment included, since a +wrong hit in a search carries its doc comment too. The thresholds then follow the repository's own language and vocabulary instead of a fixed corpus. """ @@ -16,8 +17,6 @@ from dataclasses import dataclass, field from pathlib import PurePosixPath -from server.code.domain.index.test_gate import is_test_path - # not a setting: a paragraph shorter than this names the unit, it does not describe it _MIN_QUERY_WORDS = 4 # not a setting: a search query is about a sentence; a longer paragraph is cut there @@ -121,15 +120,13 @@ def _seed(namespace: str) -> int: def sample_probes(namespace: str, units: list[Unit], pool: list[Unit], *, size: int) -> Probes: - """At most `size` query/positive pairs from the documented, non-test `units`, drawn + """At most `size` query/positive pairs from the documented `units`, drawn round-robin across strata so no one directory or language dominates, and for each query one distractor from `pool` in another stratum (another file when the namespace has one stratum).""" rng = random.Random(_seed(namespace)) by_stratum: dict[tuple[str, str], list[tuple[Unit, str]]] = {} for unit in units: - if is_test_path(unit.path): - continue if query := probe_query(unit.doc_comment, unit.name): by_stratum.setdefault(stratum(unit.path), []).append((unit, query)) keys = sorted(by_stratum) diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index c1fe2f2a38f..24b0734c830 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -343,10 +343,9 @@ async def calibration_units( """(documented units, pool) for `code.calibrate`'s probes: the first live chunk of up to `documented` source functions that have a doc comment, each with that comment and the function's name, and up to `pool` live function chunks, - documented or not. Both are read - in a hash order of their ids, so a rerun on an unchanged index reads the same - rows. The documented functions' chunks are read in slices of ids that each fit - one HTTP form field.""" + documented or not. Both are read in a hash order of their ids, so a rerun on an + unchanged index reads the same rows. The documented functions' chunks are read in + slices of ids that each fit one HTTP form field.""" from server.core.vectors.code_tables import code_vector_table table = code_vector_table(model) diff --git a/server/memory/app/embedder_calibration.py b/server/memory/app/embedder_calibration.py index c0352b9da64..1ce00364466 100644 --- a/server/memory/app/embedder_calibration.py +++ b/server/memory/app/embedder_calibration.py @@ -310,7 +310,8 @@ def derive_thresholds( # not a setting: code.calibrate sends up to 1,000 pairs a phase through the model client -# every search embeds its query on; 16 calls in flight leave it the rest of its connections. +# every search embeds its query on; 16 calls in flight a calibration leave it the rest of +# its connections. _PROBE_PAIRS_IN_FLIGHT = 8 diff --git a/server/settings/catalog.py b/server/settings/catalog.py index 04fe5150cd6..b8538453db1 100644 --- a/server/settings/catalog.py +++ b/server/settings/catalog.py @@ -6466,7 +6466,9 @@ class TrackerSettings(BaseModel): # (≤400 lines, 5 s cap, cached 10 min) beside one rev-list and two # ledger reads, gathered; optional bounded tracker reads "code.blame_range": 6000, - # Probes the live embedder over the whole corpus: slow by design. + # Three ClickHouse reads (~3 s over 330k functions), then up to four embeddings a + # probe, 16 in flight: sized for the default `code_calibrate_probes` (200); a + # deployment that raises it raises this with `latency_budget_overrides`. "code.calibrate": 30000, "code.callees": 400, "code.callers": 400, diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index acb75616146..f651a729a26 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -133,17 +133,15 @@ def _unit(path: str, n: int) -> Unit: ) -def test_sample_probes_spreads_across_strata_and_skips_tests() -> None: +def test_sample_probes_spreads_across_strata() -> None: units = [_unit(f"src/big/m{i}.py", i) for i in range(50)] units += [_unit("src/small/one.py", 99), _unit("csrc/kern/k.cpp", 98)] - units += [_unit("tests/test_big.py", 97)] probes = sample_probes("ns", units, units, size=6) paths = {p for q, p in probes.positives} assert len(probes.positives) == 6 assert probes.strata == 3 assert any("src/small/one.py" in p for p in paths) assert any("csrc/kern/k.cpp" in p for p in paths) - assert not any("tests/test_big.py" in p for p in paths) assert all(q not in p for q, p in probes.positives) diff --git a/tests/unit/test_embedder_calibration.py b/tests/unit/test_embedder_calibration.py index dc00bff88d9..d23fed0eefa 100644 --- a/tests/unit/test_embedder_calibration.py +++ b/tests/unit/test_embedder_calibration.py @@ -291,7 +291,7 @@ async def test_per_ns_probe_defaults_to_module_question_fact_corpus(monkeypatch) class _Counting(_HashEmbedder): - """Counts query embeddings and the most in flight; `fail` raises on that query.""" + """Counts every embedding and the most in flight; `fail` raises on that text.""" def __init__(self, fail: str = "") -> None: self.fail, self.calls, self.now, self.peak = fail, 0, 0, 0 From b7540d43086f5b3354124fae72729095cf9cc77d Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 03:33:10 +0530 Subject: [PATCH 20/27] code.calibrate: clip each probe text to the embedder's input limit A chunk over the model's input limit (Gemini's 2048 tokens) was sent whole, the provider refused it, and the phase failed on every rerun of the same draw. Ingest embeds such a chunk by its head; the probe now clips to the same limit. Under 20 documented units the fixed corpus is certain, so the distractor pool is no longer read: the store read is split into calibration_units and calibration_pool. The docs, the calibrate_embedder docstring and the worker's pass comment describe the current behaviour. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- docs/architecture/llm-architecture.md | 7 ++- docs/operations/code-index-operations.md | 8 +-- server/code/app/admin.py | 30 +++++++--- server/code/domain/calibration_probes.py | 6 +- server/code/store/index/search.py | 55 +++++++++++-------- server/code/workers/calibration.py | 5 +- server/memory/app/embedder_calibration.py | 9 +-- .../test_code_calibration_units_live_ch.py | 3 +- .../test_code_calibration_parameter_bounds.py | 8 +-- tests/unit/test_code_calibration_probes.py | 50 ++++++++++++++--- tests/unit/test_embedder_calibration.py | 2 +- 11 files changed, 120 insertions(+), 63 deletions(-) diff --git a/docs/architecture/llm-architecture.md b/docs/architecture/llm-architecture.md index 2cec8608bab..0dd997c78c7 100644 --- a/docs/architecture/llm-architecture.md +++ b/docs/architecture/llm-architecture.md @@ -197,8 +197,8 @@ it measured on its probe pairs (up to `LOOM_CODE_CALIBRATE_PROBES`, 200 by defau the fixed corpus) and keeps the noise floor 0.05 under it; the trigger gates are then clamped to that floor. When the distractors' 90th percentile reaches the pairs' 75th, no cosine separates a right function from an unrelated one, so the cap is skipped and -the calibration has no confidence scale. That percentile describes the probe pairs, not -the namespace: it places no bound on how often search abstains for a function the +the calibration has no confidence scale. The 10th-percentile cap describes the probe +pairs, not the namespace: it places no bound on how often search abstains for a function the sample did not draw, or for a query whose correct hit never enters the candidate set. Each search resolves thresholds in three tiers: @@ -226,7 +226,8 @@ Each search resolves thresholds in three tiers: the scalar gates were tuned for), boot logs a warning. You own re-benching. - The `recalibration` worker (weekly, `LOOM_RECALIBRATION_ENABLED`, on the leader) re-runs the probe, publishes the result as the cluster calibration and warns on a - drift of 0.05 or more. Per-namespace calibrations come only from `code.calibrate`. + drift of 0.05 or more. Per-namespace calibrations come only from `code.calibrate`, + which the `code_calibration` worker also runs (`LOOM_CODE_CALIBRATION_ENABLED`). **Why.** Deriving thresholds from the model's own distribution makes an embedder swap a configuration change. The cost: thresholds are statistical. A namespace corpus whose diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 4ac47f4c075..6450af2a4c4 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -408,10 +408,10 @@ Then: probes' 10th-percentile query-to-function cosine: functions of one repository share its vocabulary, so an unrelated one, read as indexed with its doc comment, scores close to the right one read without it, and the distractor percentile alone would - abstain on many right answers. The cap is skipped when the - distractors' 90th percentile reaches the probes' 75th. That percentile is over the - probe pairs and does not bound abstention for unsampled functions or a query whose - correct hit never enters the candidate set. Run it for every code namespace, and again + abstain on many right answers. The cap is skipped when the distractors' 90th + percentile reaches the probes' 75th. The 10th-percentile cap is over the probe pairs + and does not bound abstention for unsampled functions or a query whose correct hit + never enters the candidate set. Run it for every code namespace, and again after a change of embedding model. A namespace without its own calibration (`calibration.get` reads `source: cluster`) reads code on the embedder's boot calibration, which is derived from prose. On an embedding model that scores a right diff --git a/server/code/app/admin.py b/server/code/app/admin.py index 465e756e927..9f028c979bf 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -4,6 +4,7 @@ import json import logging +from functools import partial from typing import Literal from server.code.api.models_ingest import ( @@ -73,27 +74,40 @@ def _fixture_probes() -> Probes: async def _namespace_probes(org: str, ns: str) -> Probes: """Probes sampled from the namespace's documented functions under the served - embedding model. Raises `ValidationError` when the embedder cannot be built: the - fixed corpus would need it too.""" - from server.embedding.embedder import get_embedder + embedding model, each text clipped to the model's input limit. Raises + `ValidationError` when the embedder cannot be built: the fixed corpus would need it + too.""" + from server.code.app.index.embed_text import clip_for_embedding + from server.embedding import count_tokens + from server.embedding.embedder import get_embedder, input_token_limit try: - model = str(get_embedder().model_name) + embedder = get_embedder() + model, limit = str(embedder.model_name), input_token_limit(embedder) except Exception as e: # any build failure means no probe can run logger.warning("code.calibrate: embedder unavailable: %s", e) raise ValidationError(f"embedder unavailable: {caller_text(e)}") from e size = settings.code_calibrate_probes + repo = CodeRepo() # Most doc comments pass the query filter; five candidates per probe keep a # namespace with a few documented strata from running dry. - documented, pool = await CodeRepo().calibration_units( - org, ns, model, documented=size * 5, pool=size * 5 - ) - return sample_probes( + documented = await repo.calibration_units(org, ns, model, limit=size * 5) + if len(documented) < MIN_NAMESPACE_PROBES: + return Probes() # the fixed corpus is certain: the pool is not read + pool = await repo.calibration_pool(org, ns, model, limit=size * 5) + probes = sample_probes( ns, [Unit(r["path"], r["context_text"], r["doc"], r["name"]) for r in documented], [Unit(r["path"], r["context_text"]) for r in pool], size=size, ) + if limit: + # The provider refuses a longer text, which fails the phase; ingest embedded + # such a chunk by its head too. + clip = partial(clip_for_embedding, count_tokens=count_tokens, max_tokens=limit) + probes.positives = [(q, clip(text)) for q, text in probes.positives] + probes.distractors = [(q, clip(text)) for q, text in probes.distractors] + return probes async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutput: diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index 3cefd5283e7..eafda019554 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -4,9 +4,9 @@ the first paragraph of its doc comment says what the unit does, the way a question about it would. `code.calibrate` embeds each such query against its unit (with the doc comment taken out, so the answer does not contain the question) and against a -unit from another part of the namespace as it is indexed, doc comment included, since a -wrong hit in a search carries its doc comment too. The thresholds then follow the repository's -own language and vocabulary instead of a fixed corpus. +unit from another part of the namespace as it is indexed, doc comment included, since +a wrong hit in a search carries its doc comment too. The thresholds then follow the +repository's own language and vocabulary instead of a fixed corpus. """ from __future__ import annotations diff --git a/server/code/store/index/search.py b/server/code/store/index/search.py index 24b0734c830..e4afcd76b11 100644 --- a/server/code/store/index/search.py +++ b/server/code/store/index/search.py @@ -33,6 +33,18 @@ def order(r: dict[str, Any]) -> tuple[Any, ...]: return sorted(rows, key=order) +def _function_chunks(model: str) -> str: + """FROM and WHERE of the live, embedded function chunks `code.calibrate` reads.""" + from server.core.vectors.code_tables import code_vector_table + + return f""" + FROM {code_vector_table(model)} FINAL + WHERE org = {{org:String}} AND namespace = {{ns:String}} + AND embedding_model = {{model:String}} AND embedding_dim > 0 + AND tombstoned_at IS NULL AND kind = 'function' AND context_text != '' + """ + + class SearchMixin(CodeRepoBase): """code.search legs, corpus statistics and outcome signals.""" @@ -338,17 +350,12 @@ async def vector_search_cards( return _nearest_first(rows, "path") async def calibration_units( - self, org: str, ns: str, model: str, *, documented: int, pool: int - ) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]: - """(documented units, pool) for `code.calibrate`'s probes: the first live chunk of - up to `documented` source functions that have a doc comment, each with that - comment and the function's name, and up to `pool` live function chunks, - documented or not. Both are read in a hash order of their ids, so a rerun on an - unchanged index reads the same rows. The documented functions' chunks are read in - slices of ids that each fit one HTTP form field.""" - from server.core.vectors.code_tables import code_vector_table - - table = code_vector_table(model) + self, org: str, ns: str, model: str, *, limit: int + ) -> list[dict[str, Any]]: + """`code.calibrate`'s documented units: the first live chunk of up to `limit` source + functions that have a doc comment, each with that comment and the function's name, + in a hash order of their ids, so a rerun on an unchanged index reads the same + rows. The chunks are read in slices of ids that each fit one HTTP form field.""" # Test files are dropped before the limit, so they cannot use up the budget. docs = await self._ch.query_all( """ @@ -360,22 +367,16 @@ async def calibration_units( ORDER BY cityHash64(symbol_id) LIMIT {limit:UInt32} """, - {"org": org, "ns": ns, "limit": documented, "test_path_pattern": TEST_PATH_PATTERN}, + {"org": org, "ns": ns, "limit": limit, "test_path_pattern": TEST_PATH_PATTERN}, ) doc_of = {str(r["symbol_id"]): (str(r["doc"]), str(r["name"])) for r in docs} - chunk_filter = f""" - FROM {table} FINAL - WHERE org = {{org:String}} AND namespace = {{ns:String}} - AND embedding_model = {{model:String}} AND embedding_dim > 0 - AND tombstoned_at IS NULL AND kind = 'function' AND context_text != '' - """ # At the 1,000-probe ceiling the ids fill ~180 KB, over the server's 128 KiB form # field: read them a slice at a time and merge on the one draw order. rows = await query_all_sliced( self._ch, f""" SELECT path, context_text, symbol_ids[1] AS symbol_id, cityHash64(chunk_id) AS draw - {chunk_filter} + {_function_chunks(model)} AND symbol_ids[1] IN {{ids:Array(String)}} ORDER BY symbol_id, start_line LIMIT 1 BY symbol_id @@ -384,7 +385,7 @@ async def calibration_units( "ids", ) rows.sort(key=lambda r: (int(r["draw"]), str(r["symbol_id"]))) - units = [ + return [ { "path": r["path"], "context_text": r["context_text"], @@ -393,15 +394,21 @@ async def calibration_units( } for r in rows ] - others = await self._ch.query_all( + + async def calibration_pool( + self, org: str, ns: str, model: str, *, limit: int + ) -> list[dict[str, Any]]: + """`code.calibrate`'s distractor pool: up to `limit` live function chunks, + documented or not, in a hash order of their ids.""" + rows = await self._ch.query_all( f""" - SELECT path, context_text {chunk_filter} + SELECT path, context_text {_function_chunks(model)} ORDER BY cityHash64(chunk_id) LIMIT {{limit:UInt32}} """, - {"org": org, "ns": ns, "model": model, "limit": pool}, + {"org": org, "ns": ns, "model": model, "limit": limit}, ) - return units, [{"path": r["path"], "context_text": r["context_text"]} for r in others] + return [{"path": r["path"], "context_text": r["context_text"]} for r in rows] async def vector_search_chunks( self, diff --git a/server/code/workers/calibration.py b/server/code/workers/calibration.py index 3f5b5563b96..e1985361b68 100644 --- a/server/code/workers/calibration.py +++ b/server/code/workers/calibration.py @@ -37,8 +37,9 @@ logger = logging.getLogger("loom.workers.code_calibration") -# One calibration is a run of sequential embedding calls: the pass gets an hour rather -# than the 900 s default, so a slow provider does not cancel the same namespace every pass. +# One calibration is up to ~4,000 embedding calls, 16 in flight: the pass gets an hour +# rather than the 900 s default, so a slow provider does not cancel the same namespace +# every pass. MAX_PASS_SECONDS = 3600.0 # not a setting: sized to one calibration, not to the interval # Namespaces (org, namespace) tried and the monotonic time of the attempt or failure; a diff --git a/server/memory/app/embedder_calibration.py b/server/memory/app/embedder_calibration.py index 1ce00364466..83c0055cd83 100644 --- a/server/memory/app/embedder_calibration.py +++ b/server/memory/app/embedder_calibration.py @@ -328,12 +328,9 @@ async def calibrate_embedder( scalar settings). Each corpus arg: None → module-level default corpus; a custom list → - per-namespace operator-shipped corpus. The operator corpus carries - only similar/distractor pairs, so per-NS probes keep the module - question→fact corpus — the question-vs-fact register gap is a - property of the embedder, not the domain vocabulary. Ordinary memory - paraphrases use document/document vectors. Code calibration explicitly - supplies query/document positives for both positive distributions. + `code.calibrate`'s probes (the namespace's own or the fixed corpus), which + supplies all three and passes its query/document positives as both positive + distributions. Ordinary memory paraphrases use document/document vectors. """ from server.embedding.embedder import get_embedder diff --git a/tests/integration/test_code_calibration_units_live_ch.py b/tests/integration/test_code_calibration_units_live_ch.py index fc44646a2c1..232976d9b49 100644 --- a/tests/integration/test_code_calibration_units_live_ch.py +++ b/tests/integration/test_code_calibration_units_live_ch.py @@ -134,7 +134,8 @@ async def test_calibration_units_read_documented_functions_from_real_rows( ) await get_client().connect() - units, pool = await CodeRepo().calibration_units(org, ns, "m", documented=10, pool=10) + units = await CodeRepo().calibration_units(org, ns, "m", limit=10) + pool = await CodeRepo().calibration_pool(org, ns, "m", limit=10) assert sorted((u["path"], u["context_text"], u["doc"], u["name"]) for u in units) == [ ("a/merge.py", "merge", "Merge two parts.", "merge_parts"), diff --git a/tests/unit/test_code_calibration_parameter_bounds.py b/tests/unit/test_code_calibration_parameter_bounds.py index 44e5195617e..2cb8580c502 100644 --- a/tests/unit/test_code_calibration_parameter_bounds.py +++ b/tests/unit/test_code_calibration_parameter_bounds.py @@ -34,7 +34,7 @@ class _BoundedCH: - """ClickHouse's HTTP field limit, and the three reads `calibration_units` makes.""" + """ClickHouse's HTTP field limit, and the three reads `code.calibrate` makes.""" def __init__(self, documented: int) -> None: self.symbols = [ @@ -77,9 +77,9 @@ async def query_all(self, sql: str, params: dict[str, Any]) -> list[dict[str, An @pytest.mark.asyncio async def test_calibration_units_at_the_supported_maximum_fit_one_form_field() -> None: ch = _BoundedCH(_DOCUMENTED) - units, pool = await CodeRepo(ch).calibration_units( # type: ignore[arg-type] - "org", "ns", "m", documented=_DOCUMENTED, pool=_DOCUMENTED - ) + repo = CodeRepo(ch) # type: ignore[arg-type] + units = await repo.calibration_units("org", "ns", "m", limit=_DOCUMENTED) + pool = await repo.calibration_pool("org", "ns", "m", limit=_DOCUMENTED) # Every documented symbol was read, in the draw order the merge must preserve. text_of = {s: f"{ch.paths[s]} · src/d · symbol {s}" for s, _ in ch.symbols} diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index f651a729a26..1b921828041 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -228,12 +228,16 @@ def _calibrate_with(monkeypatch, documented, pool, *, size=24): from server.code.app import admin from server.settings import settings - reads: list[tuple[str, str, str, int, int]] = [] + reads: list[tuple[str, str, str, str, int]] = [] class Repo: - async def calibration_units(self, org, ns, model, *, documented: int, pool: int): - reads.append((org, ns, model, documented, pool)) - return documented_rows, pool_rows + async def calibration_units(self, org, ns, model, *, limit: int): + reads.append(("units", org, ns, model, limit)) + return documented_rows + + async def calibration_pool(self, org, ns, model, *, limit: int): + reads.append(("pool", org, ns, model, limit)) + return pool_rows documented_rows, pool_rows = documented, pool insert = AsyncMock() @@ -253,7 +257,10 @@ async def test_code_calibrate_samples_the_namespace(monkeypatch, tmp_path) -> No # the fixed corpus is not read when the namespace has enough probes monkeypatch.setattr(admin, "_PROBES_PATH", tmp_path / "absent.jsonl") result = await admin.handle_code_calibrate(CodeCalibrateInput()) - assert reads == [("org", "team", "probe-test-embedder", 120, 120)] + assert reads == [ + ("units", "org", "team", "probe-test-embedder", 120), + ("pool", "org", "team", "probe-test-embedder", 120), + ] assert (result.probe_source, result.positives, result.distractors) == ("namespace", 24, 24) assert result.strata == 4 # distractors at 0.2: noise floor 0.22, abstain 0.27; positives at 0.7 @@ -282,6 +289,32 @@ async def test_code_calibrate_caps_abstain_at_the_probes_p10( assert result.noise_floor <= result.abstain_threshold <= result.rerank_skip_above +async def test_code_calibrate_clips_each_probe_text_to_the_embedders_input_limit( + monkeypatch, +) -> None: + """A provider refuses a chunk over its input limit, which would fail the phase on + every rerun of the same draw; the probe embeds the chunk's head, as ingest does.""" + from server.code.api.models_ingest import CodeCalibrateInput + from server.embedding._provider import check_size + + class _Limited(_Embedder): + max_input_tokens = 300 + + async def embed_many(self, texts: list[str]) -> list[list[float]]: + for text in texts: + check_size(text, self.max_input_tokens, self.model_name) + return await super().embed_many(texts) + + body = " total += 1\n" * 2000 + documented = [dict(r, context_text=r["context_text"] + body) for r in _documented(40)] + pool = [dict(r, context_text=r["context_text"] + body) for r in _pool(40)] + admin, _, _ = _calibrate_with(monkeypatch, documented, pool) + monkeypatch.setattr("server.embedding.embedder.get_embedder", _Limited) + result = await admin.handle_code_calibrate(CodeCalibrateInput()) + assert (result.probe_source, result.positives, result.distractors) == ("namespace", 24, 24) + assert result.abstain_threshold == pytest.approx(0.27) + + async def test_code_calibrate_names_an_unbuilt_embedder_by_its_kind(monkeypatch) -> None: from server.code.app import admin from server.core.errors import ValidationError @@ -301,7 +334,7 @@ async def test_code_calibrate_falls_back_to_the_fixture_for_a_small_namespace( ) -> None: from server.code.api.models_ingest import CodeCalibrateInput - admin, _, _ = _calibrate_with(monkeypatch, _documented(5), _pool(40)) + admin, reads, _ = _calibrate_with(monkeypatch, _documented(5), _pool(40)) corpus = tmp_path / "probes.jsonl" corpus.write_text( "\n".join( @@ -313,6 +346,8 @@ async def test_code_calibrate_falls_back_to_the_fixture_for_a_small_namespace( result = await admin.handle_code_calibrate(CodeCalibrateInput()) assert (result.probe_source, result.positives, result.distractors) == ("fixture", 6, 6) assert result.strata == 0 + # under 20 documented units the fallback is certain: the pool is not read + assert [read[0] for read in reads] == ["units"] async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment() -> None: @@ -327,7 +362,8 @@ async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment [{"path": "a/x.py", "context_text": text, "symbol_id": "s1", "draw": 3}], ) ch.on("SELECT path, context_text", [{"path": "b/y.py", "context_text": "b"}]) - units, pool = await CodeRepo(ch).calibration_units("org", "ns", "m", documented=10, pool=7) + units = await CodeRepo(ch).calibration_units("org", "ns", "m", limit=10) + pool = await CodeRepo(ch).calibration_pool("org", "ns", "m", limit=7) assert units == [{"path": "a/x.py", "context_text": text, "doc": "Sum each row.", "name": "f"}] assert pool == [{"path": "b/y.py", "context_text": "b"}] docs, chunks, others = ch.calls diff --git a/tests/unit/test_embedder_calibration.py b/tests/unit/test_embedder_calibration.py index d23fed0eefa..8cd44892955 100644 --- a/tests/unit/test_embedder_calibration.py +++ b/tests/unit/test_embedder_calibration.py @@ -222,7 +222,7 @@ async def embed_many(self, texts): class NoDocumentedUnits: async def calibration_units(self, *args, **kwargs): - return [], [] + return [] # a namespace with no documented functions is calibrated on the fixed corpus monkeypatch.setattr(admin, "CodeRepo", NoDocumentedUnits) From a9575555111df4359d7d69fc8e01d51b3304d5c1 Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 03:57:00 +0530 Subject: [PATCH 21/27] code.calibrate: draw distractors without per-stratum pool copies and test the late fallback Each picked stratum built its own copy of the pool, up to ~5M references at the 1,000-probe ceiling; the pool is now sorted by stratum and file once and a distractor is drawn from outside the probe's run in place. Tests cover the fixture fallback after sampling (one file, no usable doc comment) and the one-stratum draw from another file. The input-token limit is named max_tokens, apart from the row limits. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- server/code/app/admin.py | 6 +-- server/code/domain/calibration_probes.py | 26 ++++++------ tests/unit/test_code_calibration_probes.py | 49 ++++++++++++++++++---- 3 files changed, 59 insertions(+), 22 deletions(-) diff --git a/server/code/app/admin.py b/server/code/app/admin.py index 9f028c979bf..a32238d8af0 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -83,7 +83,7 @@ async def _namespace_probes(org: str, ns: str) -> Probes: try: embedder = get_embedder() - model, limit = str(embedder.model_name), input_token_limit(embedder) + model, max_tokens = str(embedder.model_name), input_token_limit(embedder) except Exception as e: # any build failure means no probe can run logger.warning("code.calibrate: embedder unavailable: %s", e) raise ValidationError(f"embedder unavailable: {caller_text(e)}") from e @@ -101,10 +101,10 @@ async def _namespace_probes(org: str, ns: str) -> Probes: [Unit(r["path"], r["context_text"]) for r in pool], size=size, ) - if limit: + if max_tokens: # The provider refuses a longer text, which fails the phase; ingest embedded # such a chunk by its head too. - clip = partial(clip_for_embedding, count_tokens=count_tokens, max_tokens=limit) + clip = partial(clip_for_embedding, count_tokens=count_tokens, max_tokens=max_tokens) probes.positives = [(q, clip(text)) for q, text in probes.positives] probes.distractors = [(q, clip(text)) for q, text in probes.distractors] return probes diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index eafda019554..963b05fb4c0 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -14,6 +14,7 @@ import hashlib import random import re +from bisect import bisect_left, bisect_right from dataclasses import dataclass, field from pathlib import PurePosixPath @@ -139,20 +140,21 @@ def sample_probes(namespace: str, units: list[Unit], pool: list[Unit], *, size: if by_stratum[key] and len(picked) < size: picked.append(by_stratum[key].pop()) probes = Probes(strata=len({stratum(unit.path) for unit, _ in picked})) - # The pool is parsed once; the other-strata list is built once per stratum, not per probe. + # The pool sorted by stratum, then file, is parsed once: the units outside a probe's + # stratum (or, with one stratum, its file) are the pool less one run, drawn from in + # place instead of copied per stratum. pool_strata = [stratum(o.path) for o in pool] - outside: dict[tuple[str, str], list[Unit]] = {} - other_files: dict[str, list[Unit]] = {} + order = sorted(range(len(pool)), key=lambda i: (pool_strata[i], pool[i].path)) + strata, paths = [pool_strata[i] for i in order], [pool[i].path for i in order] for unit, query in picked: probes.positives.append((query, without_doc(unit.context_text, unit.doc_comment))) key = stratum(unit.path) - if key not in outside: - outside[key] = [o for o, s in zip(pool, pool_strata, strict=True) if s != key] - others = outside[key] - if not others: - if unit.path not in other_files: - other_files[unit.path] = [o for o in pool if o.path != unit.path] - others = other_files[unit.path] - if others: - probes.distractors.append((query, rng.choice(others).context_text)) + lo, hi = bisect_left(strata, key), bisect_right(strata, key) + if hi - lo == len(order): + lo, hi = bisect_left(paths, unit.path), bisect_right(paths, unit.path) + if rest := len(order) - (hi - lo): + i = rng.randrange(rest) + probes.distractors.append( + (query, pool[order[i if i < lo else i + hi - lo]].context_text) + ) return probes diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 1b921828041..c71c5acc889 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -153,6 +153,14 @@ def test_sample_probes_draws_each_distractor_from_another_stratum() -> None: assert all(d.startswith("lib/b/z.py") for _, d in probes.distractors) +def test_sample_probes_draws_from_another_file_when_the_namespace_has_one_stratum() -> None: + units = [_unit("src/a/x.py", 1), _unit("src/a/y.py", 2)] + probes = sample_probes("ns", units, units, size=2) + assert len(probes.distractors) == 2 + for (_, positive), (_, distractor) in zip(probes.positives, probes.distractors, strict=True): + assert positive.split(" ")[0] != distractor.split(" ")[0] + + def test_sample_probes_parses_each_unit_path_once_not_once_per_probe(monkeypatch) -> None: """Grouping the pool again for every probe would parse size x pool paths: seconds of blocked event loop at the 1,000-probe bound.""" @@ -329,12 +337,7 @@ def _unbuilt() -> None: assert raised.value.message == "embedder unavailable: RuntimeError" -async def test_code_calibrate_falls_back_to_the_fixture_for_a_small_namespace( - monkeypatch, tmp_path -) -> None: - from server.code.api.models_ingest import CodeCalibrateInput - - admin, reads, _ = _calibrate_with(monkeypatch, _documented(5), _pool(40)) +def _fixture_corpus(tmp_path): corpus = tmp_path / "probes.jsonl" corpus.write_text( "\n".join( @@ -342,7 +345,16 @@ async def test_code_calibrate_falls_back_to_the_fixture_for_a_small_namespace( for i in range(6) ) ) - monkeypatch.setattr(admin, "_PROBES_PATH", corpus) + return corpus + + +async def test_code_calibrate_falls_back_to_the_fixture_for_a_small_namespace( + monkeypatch, tmp_path +) -> None: + from server.code.api.models_ingest import CodeCalibrateInput + + admin, reads, _ = _calibrate_with(monkeypatch, _documented(5), _pool(40)) + monkeypatch.setattr(admin, "_PROBES_PATH", _fixture_corpus(tmp_path)) result = await admin.handle_code_calibrate(CodeCalibrateInput()) assert (result.probe_source, result.positives, result.distractors) == ("fixture", 6, 6) assert result.strata == 0 @@ -350,6 +362,29 @@ async def test_code_calibrate_falls_back_to_the_fixture_for_a_small_namespace( assert [read[0] for read in reads] == ["units"] +@pytest.mark.parametrize( + "documented", + [ + # one file: no distractor can come from another file + [dict(r, path="src/d0/m.py") for r in _documented(40)], + # doc comments that do not describe their unit + [dict(r, doc=f"TODO: weigh bucket {i} again") for i, r in enumerate(_documented(40))], + ], + ids=["one-file", "no-usable-doc-comment"], +) +async def test_code_calibrate_falls_back_to_the_fixture_after_sampling( + monkeypatch, tmp_path, documented +) -> None: + """Enough documented units to read the pool, too few usable probes to keep.""" + from server.code.api.models_ingest import CodeCalibrateInput + + admin, reads, _ = _calibrate_with(monkeypatch, documented, documented) + monkeypatch.setattr(admin, "_PROBES_PATH", _fixture_corpus(tmp_path)) + result = await admin.handle_code_calibrate(CodeCalibrateInput()) + assert (result.probe_source, result.positives, result.distractors) == ("fixture", 6, 6) + assert [read[0] for read in reads] == ["units", "pool"] + + async def test_calibration_units_pair_each_documented_chunk_with_its_doc_comment() -> None: from server.code.store.index import CodeRepo from tests.unit.ch_fake import RecordingCH From b170cf49d07d68d306cf93224ed6c314dd2bdab6 Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 04:04:58 +0530 Subject: [PATCH 22/27] code.calibrate: state the fallback as probes with a distractor The docs and handler docstrings said a namespace falls back under 20 documented functions; the guard counts probes that also have a distractor, and with one stratum the distractor comes from another file. The sorted lists the draw bisects are named for their order. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- docs/architecture/llm-architecture.md | 5 +++-- docs/operations/code-index-operations.md | 5 +++-- server/code/app/admin.py | 10 ++++++---- server/code/domain/calibration_probes.py | 8 +++++--- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/docs/architecture/llm-architecture.md b/docs/architecture/llm-architecture.md index 0dd997c78c7..a672b342928 100644 --- a/docs/architecture/llm-architecture.md +++ b/docs/architecture/llm-architecture.md @@ -179,8 +179,9 @@ vectors; question/fact and distractor pairs use query/document vectors. `code.ca explicitly uses query/document vectors for its query/code positives in both positive distributions, including the persisted conflict and duplicate gates. Its probes come from the namespace's documented functions (the doc comment's first paragraph as the query, the -function without it as the positive, a function from another directory or language as -the distractor), or from a fixed corpus for a namespace with fewer than 20 of them: +function without it as the positive, a function from another directory or language, or +another file when there is only one, as the distractor), or from a fixed corpus for a +namespace that yields fewer than 20 such probes: | Threshold | Derived as | | ------------- | ------------------------------------------ | diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 6450af2a4c4..582d69231f6 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -401,8 +401,9 @@ Then: namespace's own code. It samples up to `LOOM_CODE_CALIBRATE_PROBES` (200) documented functions across the namespace's languages and directories. Each probe embeds the first paragraph of the function's doc comment as the query against the function without that - comment, and against a function from another directory or language. A namespace with - fewer than 20 usable documented functions is calibrated on + comment, and against a function from another directory or language (another file when + the namespace has only one). A namespace that yields fewer than 20 probes with both a + usable query and a distractor is calibrated on `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image) instead; `probe_source` in the reply says which. The abstain threshold is capped at the probes' 10th-percentile query-to-function cosine: functions of one repository share diff --git a/server/code/app/admin.py b/server/code/app/admin.py index a32238d8af0..d49982ced60 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -115,9 +115,10 @@ async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutpu abstention thresholds and the confident-hit cosine at the top of the `retrieval_confidence` scale. The probes are the namespace's own documented functions (the doc comment's first paragraph as the query, the unit without it as - the positive, a unit from another directory or language as the distractor); a - namespace with fewer than `MIN_NAMESPACE_PROBES` of them is calibrated on the fixed - corpus. Cosine distributions for code differ from prose, and from one repository + the positive, a unit from another directory or language as the distractor, or from + another file when the namespace has one stratum); a namespace that yields fewer than + `MIN_NAMESPACE_PROBES` probes with a distractor is calibrated on the fixed corpus. + Cosine distributions for code differ from prose, and from one repository to the next: the namespace must not inherit another corpus's gates.""" require_code_intel() org, ns = resolve_code_identity(input.org, input.namespace) @@ -128,7 +129,8 @@ async def calibrate_namespace(org: str, ns: str) -> CodeCalibrateOutput: """Derive and persist one code namespace's calibration, for the handler (after its auth and identity) and the `code_calibration` worker (under the namespace's own customer). The probes are the namespace's own documented functions, or the fixed - corpus when it has fewer than `MIN_NAMESPACE_PROBES` of them. Raises + corpus when they yield fewer than `MIN_NAMESPACE_PROBES` probes with a distractor. + Raises `ValidationError` when the probes are too few or the embedder cannot be probed; the stored row stays.""" from server.memory.app.embedder_calibration import ( diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index 963b05fb4c0..f1a83ce545d 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -145,13 +145,15 @@ def sample_probes(namespace: str, units: list[Unit], pool: list[Unit], *, size: # place instead of copied per stratum. pool_strata = [stratum(o.path) for o in pool] order = sorted(range(len(pool)), key=lambda i: (pool_strata[i], pool[i].path)) - strata, paths = [pool_strata[i] for i in order], [pool[i].path for i in order] + sorted_strata = [pool_strata[i] for i in order] + sorted_paths = [pool[i].path for i in order] for unit, query in picked: probes.positives.append((query, without_doc(unit.context_text, unit.doc_comment))) key = stratum(unit.path) - lo, hi = bisect_left(strata, key), bisect_right(strata, key) + lo, hi = bisect_left(sorted_strata, key), bisect_right(sorted_strata, key) if hi - lo == len(order): - lo, hi = bisect_left(paths, unit.path), bisect_right(paths, unit.path) + # one stratum, so the paths are sorted across the whole pool + lo, hi = bisect_left(sorted_paths, unit.path), bisect_right(sorted_paths, unit.path) if rest := len(order) - (hi - lo): i = rng.randrange(rest) probes.distractors.append( From d76a394d92e520c7d57efe201a8c418dd1031cd5 Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 04:18:02 +0530 Subject: [PATCH 23/27] code.calibrate: name the distractor's stratum and guard on distractors alone A distractor comes from another language or another directory two levels deep, and from another file only when every function shares one of each; the docs said "only one". Each distractor comes with a positive, so the fallback guard counts distractors. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- docs/architecture/llm-architecture.md | 7 ++++--- docs/operations/code-index-operations.md | 10 +++++----- server/code/app/admin.py | 18 +++++++++--------- tests/unit/test_code_calibration_probes.py | 5 ++--- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/architecture/llm-architecture.md b/docs/architecture/llm-architecture.md index a672b342928..aea8448c068 100644 --- a/docs/architecture/llm-architecture.md +++ b/docs/architecture/llm-architecture.md @@ -179,9 +179,10 @@ vectors; question/fact and distractor pairs use query/document vectors. `code.ca explicitly uses query/document vectors for its query/code positives in both positive distributions, including the persisted conflict and duplicate gates. Its probes come from the namespace's documented functions (the doc comment's first paragraph as the query, the -function without it as the positive, a function from another directory or language, or -another file when there is only one, as the distractor), or from a fixed corpus for a -namespace that yields fewer than 20 such probes: +function without it as the positive, a function in another language or another +directory two levels deep as the distractor, or another file when every function shares +one language and directory), or from a fixed corpus for a namespace that yields fewer +than 20 such probes: | Threshold | Derived as | | ------------- | ------------------------------------------ | diff --git a/docs/operations/code-index-operations.md b/docs/operations/code-index-operations.md index 582d69231f6..629ef3f9ad1 100644 --- a/docs/operations/code-index-operations.md +++ b/docs/operations/code-index-operations.md @@ -401,11 +401,11 @@ Then: namespace's own code. It samples up to `LOOM_CODE_CALIBRATE_PROBES` (200) documented functions across the namespace's languages and directories. Each probe embeds the first paragraph of the function's doc comment as the query against the function without that - comment, and against a function from another directory or language (another file when - the namespace has only one). A namespace that yields fewer than 20 probes with both a - usable query and a distractor is calibrated on - `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image) instead; - `probe_source` in the reply says which. The abstain threshold is capped at the + comment, and against a function in another language or another directory two levels + deep (another file when every function shares one language and directory). A + namespace that yields fewer than 20 probes with both a usable query and a distractor + is calibrated on `bench/fixtures/code_calibration_probes.jsonl` (shipped in the image) + instead; `probe_source` in the reply says which. The abstain threshold is capped at the probes' 10th-percentile query-to-function cosine: functions of one repository share its vocabulary, so an unrelated one, read as indexed with its doc comment, scores close to the right one read without it, and the distractor percentile alone would diff --git a/server/code/app/admin.py b/server/code/app/admin.py index d49982ced60..f58245391fe 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -115,11 +115,12 @@ async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutpu abstention thresholds and the confident-hit cosine at the top of the `retrieval_confidence` scale. The probes are the namespace's own documented functions (the doc comment's first paragraph as the query, the unit without it as - the positive, a unit from another directory or language as the distractor, or from - another file when the namespace has one stratum); a namespace that yields fewer than - `MIN_NAMESPACE_PROBES` probes with a distractor is calibrated on the fixed corpus. - Cosine distributions for code differ from prose, and from one repository - to the next: the namespace must not inherit another corpus's gates.""" + the positive, a unit in another language or another directory two levels deep as the + distractor, or in another file when every unit shares one language and directory); a + namespace that yields fewer than `MIN_NAMESPACE_PROBES` probes with a distractor is + calibrated on the fixed corpus. Cosine distributions for code differ from prose, and + from one repository to the next: the namespace must not inherit another corpus's + gates.""" require_code_intel() org, ns = resolve_code_identity(input.org, input.namespace) return await calibrate_namespace(org, ns) @@ -130,9 +131,8 @@ async def calibrate_namespace(org: str, ns: str) -> CodeCalibrateOutput: auth and identity) and the `code_calibration` worker (under the namespace's own customer). The probes are the namespace's own documented functions, or the fixed corpus when they yield fewer than `MIN_NAMESPACE_PROBES` probes with a distractor. - Raises - `ValidationError` when the probes are too few or the embedder cannot be probed; - the stored row stays.""" + Raises `ValidationError` when the probes are too few or the embedder cannot be + probed; the stored row stays.""" from server.memory.app.embedder_calibration import ( calibrate_embedder, persist_namespace_calibration, @@ -140,7 +140,7 @@ async def calibrate_namespace(org: str, ns: str) -> CodeCalibrateOutput: probes = await _namespace_probes(org, ns) source: Literal["namespace", "fixture"] = "namespace" - if min(len(probes.positives), len(probes.distractors)) < MIN_NAMESPACE_PROBES: + if len(probes.distractors) < MIN_NAMESPACE_PROBES: # each comes with a positive probes, source = _fixture_probes(), "fixture" positives, distractors = probes.positives, probes.distractors if len(positives) < 5 or len(distractors) < 3: diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index c71c5acc889..356bf863637 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -241,13 +241,12 @@ def _calibrate_with(monkeypatch, documented, pool, *, size=24): class Repo: async def calibration_units(self, org, ns, model, *, limit: int): reads.append(("units", org, ns, model, limit)) - return documented_rows + return documented async def calibration_pool(self, org, ns, model, *, limit: int): reads.append(("pool", org, ns, model, limit)) - return pool_rows + return pool - documented_rows, pool_rows = documented, pool insert = AsyncMock() monkeypatch.setattr("server.core.ch.get_client", lambda: SimpleNamespace(insert=insert)) monkeypatch.setattr("server.embedding.embedder.get_embedder", _Embedder) From a77fabedb1ea5a2e50cf37b20a08ece33fde3ed2 Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 04:37:54 +0530 Subject: [PATCH 24/27] code.calibrate: shrink a probe text the provider refuses, as ingest did The clip covered only a provider that states its input limit. An OpenAI-compatible endpoint states none, and one that refuses long input (413, or 400 past its context) failed the phase on every rerun of the same draw. The probe now embeds each document through embed_shrinking, the halving ingest stored the chunk's vector with, so a chunk that was indexed can be probed. embed_shrinking and looks_too_long move to server/embedding/documents.py, where the memory plane's calibration can reach them; the clip in the handler is removed. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- server/code/app/admin.py | 22 +++-------- server/code/app/index/embed_text.py | 45 +-------------------- server/code/app/index/ingest.py | 2 +- server/code/workers/embed_recovery.py | 2 +- server/embedding/documents.py | 46 +++++++++++++++++++++- server/memory/app/embedder_calibration.py | 15 ++++--- tests/unit/test_code_calibration_probes.py | 28 ++++++++----- tests/unit/test_code_ingest_errors.py | 4 +- tests/unit/test_workers_poll_the_work.py | 4 +- 9 files changed, 84 insertions(+), 84 deletions(-) diff --git a/server/code/app/admin.py b/server/code/app/admin.py index f58245391fe..4e6ab3d44da 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -4,7 +4,6 @@ import json import logging -from functools import partial from typing import Literal from server.code.api.models_ingest import ( @@ -74,16 +73,12 @@ def _fixture_probes() -> Probes: async def _namespace_probes(org: str, ns: str) -> Probes: """Probes sampled from the namespace's documented functions under the served - embedding model, each text clipped to the model's input limit. Raises - `ValidationError` when the embedder cannot be built: the fixed corpus would need it - too.""" - from server.code.app.index.embed_text import clip_for_embedding - from server.embedding import count_tokens - from server.embedding.embedder import get_embedder, input_token_limit + embedding model. Raises `ValidationError` when the embedder cannot be built: the + fixed corpus would need it too.""" + from server.embedding.embedder import get_embedder try: - embedder = get_embedder() - model, max_tokens = str(embedder.model_name), input_token_limit(embedder) + model = str(get_embedder().model_name) except Exception as e: # any build failure means no probe can run logger.warning("code.calibrate: embedder unavailable: %s", e) raise ValidationError(f"embedder unavailable: {caller_text(e)}") from e @@ -95,19 +90,12 @@ async def _namespace_probes(org: str, ns: str) -> Probes: if len(documented) < MIN_NAMESPACE_PROBES: return Probes() # the fixed corpus is certain: the pool is not read pool = await repo.calibration_pool(org, ns, model, limit=size * 5) - probes = sample_probes( + return sample_probes( ns, [Unit(r["path"], r["context_text"], r["doc"], r["name"]) for r in documented], [Unit(r["path"], r["context_text"]) for r in pool], size=size, ) - if max_tokens: - # The provider refuses a longer text, which fails the phase; ingest embedded - # such a chunk by its head too. - clip = partial(clip_for_embedding, count_tokens=count_tokens, max_tokens=max_tokens) - probes.positives = [(q, clip(text)) for q, text in probes.positives] - probes.distractors = [(q, clip(text)) for q, text in probes.distractors] - return probes async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutput: diff --git a/server/code/app/index/embed_text.py b/server/code/app/index/embed_text.py index ca42ab9c426..ddc35e19546 100644 --- a/server/code/app/index/embed_text.py +++ b/server/code/app/index/embed_text.py @@ -10,11 +10,11 @@ from __future__ import annotations from collections.abc import Callable -from typing import Any + +from server.embedding.documents import TRUNCATION_MARK as _MARK EMBED_MAX_CHARS = 20_000 EMBED_MAX_TOKENS = 8_000 # provider limit 8,191; leave headroom for the marker -_MARK = "\n…[truncated for embedding]" def clip_for_embedding( @@ -46,44 +46,3 @@ def clip_for_embedding( keep = max(256, int(len(text) * max_tokens / n * 0.9)) text = text[:keep] + _MARK return text - - -# httpx's HTTPStatusError carries only "Client error '400 Bad Request' for -# url ..." — the provider's "maximum context length" body never reaches the -# message. An embeddings endpoint's 400 is, in practice, a length rejection -# (the model name and key are fixed per process), so treat it as one: a -# genuinely different 400 shrinks a few times and then raises unchanged. -_TOO_LONG_MARKERS = ( - "context length", - "maximum context", - "too large", - "tokens", - "400 bad request", -) - - -def looks_too_long(exc: BaseException) -> bool: - msg = str(exc).lower() - return any(m in msg for m in _TOO_LONG_MARKERS) - - -async def embed_shrinking(embedder: Any, text: str, *, attempts: int = 5) -> list[float]: - """One stored vector for `text` (`embed_many`: the raw text, as ingest - stores it; `embed` is the query path and normalises), halving the input on - a provider "too long" rejection. Provider-driven on purpose: the local token counter degrades to - len//4 without tiktoken and undercounts hex-heavy SQL threefold, so only - the provider knows the true length. Non-length errors propagate at once.""" - last: BaseException | None = None - for _ in range(attempts): - try: - vecs: list[list[float]] = await embedder.embed_many([text]) - if len(vecs) != 1: - raise RuntimeError(f"embed_many returned {len(vecs)} vectors for 1 input") - return vecs[0] - except Exception as e: - if not looks_too_long(e) or len(text) <= 256: - raise - last = e - text = text[: max(256, len(text) // 2)] + _MARK - assert last is not None - raise last diff --git a/server/code/app/index/ingest.py b/server/code/app/index/ingest.py index ed234cab50c..b78cd46ff05 100644 --- a/server/code/app/index/ingest.py +++ b/server/code/app/index/ingest.py @@ -97,7 +97,7 @@ async def _embed_texts(texts: list[str], embedder: Any) -> EmbedResult: for i, v in enumerate(vecs): result.vectors[start + i] = v continue - from server.code.app.index.embed_text import embed_shrinking + from server.embedding.documents import embed_shrinking for i, text in enumerate(batch): try: diff --git a/server/code/workers/embed_recovery.py b/server/code/workers/embed_recovery.py index 0865f6090c2..cdebc69293e 100644 --- a/server/code/workers/embed_recovery.py +++ b/server/code/workers/embed_recovery.py @@ -341,7 +341,7 @@ async def _vectors_for( raise except Exception as e: # noqa: BLE001 — fall back per-text logger.warning("code_embed_recovery: batch failed (%s), per-text", e) - from server.code.app.index.embed_text import embed_shrinking + from server.embedding.documents import embed_shrinking vectors: dict[int, list[float]] = {} for i in todo: diff --git a/server/embedding/documents.py b/server/embedding/documents.py index 6177a09a043..2aa45582838 100644 --- a/server/embedding/documents.py +++ b/server/embedding/documents.py @@ -2,13 +2,16 @@ from __future__ import annotations -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, Any from server.embedding._provider import MalformedEmbedding, vector if TYPE_CHECKING: from server.embedding.embedder import Embedder +# Appended to a text cut short for embedding; the stored text keeps its whole content. +TRUNCATION_MARK = "\n…[truncated for embedding]" + async def document_vectors(embedder: Embedder, texts: list[str]) -> list[list[float]]: """Embed raw document text with one validated vector per input.""" @@ -23,3 +26,44 @@ async def document_vectors(embedder: Embedder, texts: list[str]) -> list[list[fl async def document_vector(embedder: Embedder, text: str) -> list[float]: """A single stored document uses the same provider purpose as a batch.""" return (await document_vectors(embedder, [text]))[0] + + +# httpx's HTTPStatusError carries only "Client error '400 Bad Request' for +# url ..." — the provider's "maximum context length" body never reaches the +# message. An embeddings endpoint's 400 is, in practice, a length rejection +# (the model name and key are fixed per process), so treat it as one: a +# genuinely different 400 shrinks a few times and then raises unchanged. +_TOO_LONG_MARKERS = ( + "context length", + "maximum context", + "too large", + "tokens", + "400 bad request", +) + + +def looks_too_long(exc: BaseException) -> bool: + msg = str(exc).lower() + return any(m in msg for m in _TOO_LONG_MARKERS) + + +async def embed_shrinking(embedder: Any, text: str, *, attempts: int = 5) -> list[float]: + """One stored vector for `text` (`embed_many`: the raw text, as ingest + stores it; `embed` is the query path and normalises), halving the input on + a provider "too long" rejection. Provider-driven on purpose: the local token counter degrades to + len//4 without tiktoken and undercounts hex-heavy SQL threefold, so only + the provider knows the true length. Non-length errors propagate at once.""" + last: BaseException | None = None + for _ in range(attempts): + try: + vecs: list[list[float]] = await embedder.embed_many([text]) + if len(vecs) != 1: + raise RuntimeError(f"embed_many returned {len(vecs)} vectors for 1 input") + return vecs[0] + except Exception as e: + if not looks_too_long(e) or len(text) <= 256: + raise + last = e + text = text[: max(256, len(text) // 2)] + TRUNCATION_MARK + assert last is not None + raise last diff --git a/server/memory/app/embedder_calibration.py b/server/memory/app/embedder_calibration.py index 83c0055cd83..eb6ea30251b 100644 --- a/server/memory/app/embedder_calibration.py +++ b/server/memory/app/embedder_calibration.py @@ -332,6 +332,7 @@ async def calibrate_embedder( supplies all three and passes its query/document positives as both positive distributions. Ordinary memory paraphrases use document/document vectors. """ + from server.embedding.documents import embed_shrinking from server.embedding.embedder import get_embedder para = paraphrase_pairs if paraphrase_pairs is not None else PARAPHRASE_PAIRS @@ -366,16 +367,14 @@ async def calibrate_embedder( async def _embed_pair(a: str, b: str, *, query: bool) -> float: # The recalibration worker's fixed pairs are the deployment's; code.calibrate - # probes a namespace's corpus under its request's org, which wins. + # probes a namespace's corpus under its request's org, which wins. A document + # the provider refuses as too long is shrunk as ingest shrank it before storing. async with in_flight: with customer.system(): - if query: - va, documents = await asyncio.gather( - embedder.embed(a), embedder.embed_many([b]) - ) - vb = documents[0] - else: - va, vb = await embedder.embed_many([a, b]) + va, vb = await asyncio.gather( + embedder.embed(a) if query else embed_shrinking(embedder, a), + embed_shrinking(embedder, b), + ) return _cosine(va, vb) # Code calibration passes its positives as both positive corpora: each pair is diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 356bf863637..5c5df9db20e 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -296,23 +296,33 @@ async def test_code_calibrate_caps_abstain_at_the_probes_p10( assert result.noise_floor <= result.abstain_threshold <= result.rerank_skip_above -async def test_code_calibrate_clips_each_probe_text_to_the_embedders_input_limit( - monkeypatch, +def _refuses_over_300_tokens(text: str) -> None: + from server.embedding._provider import check_size + + check_size(text, 300, "probe-test-embedder") # a provider that states its limit + + +def _refuses_over_1500_chars(text: str) -> None: + # an OpenAI-compatible server that states none and answers 413 + if len(text) > 1500: + raise RuntimeError("Client error '413 Payload Too Large' for url 'http://embed/v1'") + + +@pytest.mark.parametrize("refuse", [_refuses_over_300_tokens, _refuses_over_1500_chars]) +async def test_code_calibrate_shrinks_each_probe_text_the_provider_refuses_as_too_long( + monkeypatch, refuse ) -> None: - """A provider refuses a chunk over its input limit, which would fail the phase on - every rerun of the same draw; the probe embeds the chunk's head, as ingest does.""" + """A refused chunk would fail the phase on every rerun of the same draw; the probe + halves it as ingest did before storing its vector.""" from server.code.api.models_ingest import CodeCalibrateInput - from server.embedding._provider import check_size class _Limited(_Embedder): - max_input_tokens = 300 - async def embed_many(self, texts: list[str]) -> list[list[float]]: for text in texts: - check_size(text, self.max_input_tokens, self.model_name) + refuse(text) return await super().embed_many(texts) - body = " total += 1\n" * 2000 + body = " total += 1\n" * 400 # a 6,000-character chunk, the default chunk size documented = [dict(r, context_text=r["context_text"] + body) for r in _documented(40)] pool = [dict(r, context_text=r["context_text"] + body) for r in _pool(40)] admin, _, _ = _calibrate_with(monkeypatch, documented, pool) diff --git a/tests/unit/test_code_ingest_errors.py b/tests/unit/test_code_ingest_errors.py index 47eff52b5ec..a273ac67572 100644 --- a/tests/unit/test_code_ingest_errors.py +++ b/tests/unit/test_code_ingest_errors.py @@ -251,7 +251,7 @@ def test_clip_for_embedding_uses_the_token_counter() -> None: @pytest.mark.asyncio async def test_embed_shrinking_halves_on_provider_length_rejection() -> None: - from server.code.app.index.embed_text import embed_shrinking + from server.embedding.documents import embed_shrinking calls: list[int] = [] @@ -272,7 +272,7 @@ async def embed_many(self, texts: list[str]) -> list[list[float]]: @pytest.mark.asyncio async def test_embed_shrinking_propagates_other_errors() -> None: - from server.code.app.index.embed_text import embed_shrinking + from server.embedding.documents import embed_shrinking class _E: async def embed_many(self, texts: list[str]) -> list[list[float]]: diff --git a/tests/unit/test_workers_poll_the_work.py b/tests/unit/test_workers_poll_the_work.py index 6b86f70f166..16ac7146eec 100644 --- a/tests/unit/test_workers_poll_the_work.py +++ b/tests/unit/test_workers_poll_the_work.py @@ -409,11 +409,11 @@ async def embed_many(self, texts): async def _shrink(embedder, text): raise RuntimeError("provider down") - from server.code.app.index import embed_text + from server.embedding import documents from server.embedding import embedder as emb_mod monkeypatch.setattr(emb_mod, "get_embedder", lambda: _Down()) - monkeypatch.setattr(embed_text, "embed_shrinking", _shrink) + monkeypatch.setattr(documents, "embed_shrinking", _shrink) monkeypatch.setattr(settings, "code_embed_max_attempts", 2) stub = _chunk_stub("n1", 1, 5) stub["embed_attempts"] = 1 From cd61fb234d28fcc3434028df8ecfc436aae339d3 Mon Sep 17 00:00:00 2001 From: Lareb Zafar Date: Sun, 6 Dec 2026 04:51:58 +0530 Subject: [PATCH 25/27] embedding: never shrink a text on a retryable error; clip probes as ingest did looks_too_long matched OpenAI's tokens-per-minute 429, whose detail names type=tokens, so embed_shrinking halved the text after the retries ran out and the next call stored or measured a cut text. A retryable status is now never a length refusal, for ingest's per-text fallback, embed recovery and code.calibrate alike. The probe texts also go through ingest's clip_for_embedding first, so a chunk over 20,000 characters is measured by the head ingest embedded. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Lareb Zafar --- server/code/app/admin.py | 16 ++++++++++---- server/embedding/documents.py | 5 +++++ server/memory/app/embedder_calibration.py | 2 +- tests/unit/test_code_calibration_probes.py | 23 ++++++++++++++++++++ tests/unit/test_code_ingest_errors.py | 25 ++++++++++++++++++++++ 5 files changed, 66 insertions(+), 5 deletions(-) diff --git a/server/code/app/admin.py b/server/code/app/admin.py index 4e6ab3d44da..3b248a6721c 100644 --- a/server/code/app/admin.py +++ b/server/code/app/admin.py @@ -4,6 +4,7 @@ import json import logging +from functools import partial from typing import Literal from server.code.api.models_ingest import ( @@ -73,12 +74,15 @@ def _fixture_probes() -> Probes: async def _namespace_probes(org: str, ns: str) -> Probes: """Probes sampled from the namespace's documented functions under the served - embedding model. Raises `ValidationError` when the embedder cannot be built: the - fixed corpus would need it too.""" + embedding model, each text clipped as ingest clipped it before embedding. Raises + `ValidationError` when the embedder cannot be built: the fixed corpus would need it + too.""" + from server.code.app.index.embed_text import clip_for_embedding from server.embedding.embedder import get_embedder try: - model = str(get_embedder().model_name) + embedder = get_embedder() + model = str(embedder.model_name) except Exception as e: # any build failure means no probe can run logger.warning("code.calibrate: embedder unavailable: %s", e) raise ValidationError(f"embedder unavailable: {caller_text(e)}") from e @@ -90,12 +94,16 @@ async def _namespace_probes(org: str, ns: str) -> Probes: if len(documented) < MIN_NAMESPACE_PROBES: return Probes() # the fixed corpus is certain: the pool is not read pool = await repo.calibration_pool(org, ns, model, limit=size * 5) - return sample_probes( + probes = sample_probes( ns, [Unit(r["path"], r["context_text"], r["doc"], r["name"]) for r in documented], [Unit(r["path"], r["context_text"]) for r in pool], size=size, ) + clip = partial(clip_for_embedding, count_tokens=getattr(embedder, "_count_tokens", None)) + probes.positives = [(q, clip(text)) for q, text in probes.positives] + probes.distractors = [(q, clip(text)) for q, text in probes.distractors] + return probes async def handle_code_calibrate(input: CodeCalibrateInput) -> CodeCalibrateOutput: diff --git a/server/embedding/documents.py b/server/embedding/documents.py index 2aa45582838..0a49f3d8fdd 100644 --- a/server/embedding/documents.py +++ b/server/embedding/documents.py @@ -4,6 +4,7 @@ from typing import TYPE_CHECKING, Any +from server.clients._retry import is_retryable from server.embedding._provider import MalformedEmbedding, vector if TYPE_CHECKING: @@ -43,6 +44,10 @@ async def document_vector(embedder: Embedder, text: str) -> list[float]: def looks_too_long(exc: BaseException) -> bool: + # A rate limit or an overload is retried, never shrunk: OpenAI's tokens-per-minute + # 429 names `type=tokens`, and a shorter text would succeed on the next call. + if is_retryable(exc): + return False msg = str(exc).lower() return any(m in msg for m in _TOO_LONG_MARKERS) diff --git a/server/memory/app/embedder_calibration.py b/server/memory/app/embedder_calibration.py index eb6ea30251b..e8c61c1c737 100644 --- a/server/memory/app/embedder_calibration.py +++ b/server/memory/app/embedder_calibration.py @@ -368,7 +368,7 @@ async def calibrate_embedder( async def _embed_pair(a: str, b: str, *, query: bool) -> float: # The recalibration worker's fixed pairs are the deployment's; code.calibrate # probes a namespace's corpus under its request's org, which wins. A document - # the provider refuses as too long is shrunk as ingest shrank it before storing. + # the provider refuses as too long is halved, as ingest halves one before storing. async with in_flight: with customer.system(): va, vb = await asyncio.gather( diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 5c5df9db20e..2d5b86c87a8 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -332,6 +332,29 @@ async def embed_many(self, texts: list[str]) -> list[list[float]]: assert result.abstain_threshold == pytest.approx(0.27) +async def test_code_calibrate_clips_each_probe_text_as_ingest_did(monkeypatch) -> None: + """Ingest embeds a chunk over `EMBED_MAX_CHARS` by its head; the probe measures that + head, not a halving of the whole stored text.""" + from server.code.api.models_ingest import CodeCalibrateInput + from server.code.app.index.embed_text import EMBED_MAX_CHARS + + sent: list[int] = [] + + class _Recording(_Embedder): + async def embed_many(self, texts: list[str]) -> list[list[float]]: + sent.extend(len(t) for t in texts) + return await super().embed_many(texts) + + body = " total += 1\n" * 2000 # 30,000 characters, a raised `code_chunk_max_chars` + documented = [dict(r, context_text=r["context_text"] + body) for r in _documented(40)] + pool = [dict(r, context_text=r["context_text"] + body) for r in _pool(40)] + admin, _, _ = _calibrate_with(monkeypatch, documented, pool) + monkeypatch.setattr("server.embedding.embedder.get_embedder", _Recording) + result = await admin.handle_code_calibrate(CodeCalibrateInput()) + assert result.probe_source == "namespace" + assert sent and max(sent) == EMBED_MAX_CHARS + + async def test_code_calibrate_names_an_unbuilt_embedder_by_its_kind(monkeypatch) -> None: from server.code.app import admin from server.core.errors import ValidationError diff --git a/tests/unit/test_code_ingest_errors.py b/tests/unit/test_code_ingest_errors.py index a273ac67572..95ed473e8c1 100644 --- a/tests/unit/test_code_ingest_errors.py +++ b/tests/unit/test_code_ingest_errors.py @@ -270,6 +270,31 @@ async def embed_many(self, texts: list[str]) -> list[list[float]]: assert calls[0] == 20_000 and calls[-1] <= 3_000 and len(calls) <= 5 +@pytest.mark.asyncio +async def test_embed_shrinking_raises_a_rate_limit_that_names_tokens_without_shrinking() -> None: + import httpx + + from server.embedding.documents import embed_shrinking + + calls: list[int] = [] + request = httpx.Request("POST", "https://api.openai.com/v1/embeddings") + response = httpx.Response(429, request=request) + + class _E: + async def embed_many(self, texts: list[str]) -> list[list[float]]: + calls.append(len(texts[0])) + # the first line raise_for_status_with_detail gives OpenAI's TPM limit + raise httpx.HTTPStatusError( + "429 Too Many Requests from openai: type=tokens code=rate_limit_exceeded", + request=request, + response=response, + ) + + with pytest.raises(httpx.HTTPStatusError): + await embed_shrinking(_E(), "z" * 20_000) + assert calls == [20_000] + + @pytest.mark.asyncio async def test_embed_shrinking_propagates_other_errors() -> None: from server.embedding.documents import embed_shrinking From 517020edf4c645067b242310b0c1fe5c3119ebe4 Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Sun, 6 Dec 2026 12:21:46 +0000 Subject: [PATCH 26/27] calibration: a pair owns both of its embedding calls A probe pair gathered its query and document calls. When one raised while the other was still on the provider, gather propagated the error and left the other call running, so the phase's task group saw a finished pair, calibration returned and the semaphore slot was released with a provider request still active. The pair now runs both calls in its own task group: a failure of either cancels and joins the other before the pair finishes, so no call outlives the calibration that started it. Assisted-by: Claude Code:claude-sonnet-5-5 Signed-off-by: Kaloyan Naumov --- server/memory/app/embedder_calibration.py | 23 +++++++---- tests/unit/test_embedder_calibration.py | 49 ++++++++++++++++++++++- 2 files changed, 64 insertions(+), 8 deletions(-) diff --git a/server/memory/app/embedder_calibration.py b/server/memory/app/embedder_calibration.py index e8c61c1c737..1b48b9c1005 100644 --- a/server/memory/app/embedder_calibration.py +++ b/server/memory/app/embedder_calibration.py @@ -309,6 +309,13 @@ def derive_thresholds( ) +def _root(error: BaseException) -> BaseException: + """The first failure inside nested task groups.""" + while isinstance(error, BaseExceptionGroup): + error = error.exceptions[0] + return error + + # not a setting: code.calibrate sends up to 1,000 pairs a phase through the model client # every search embeds its query on; 16 calls in flight a calibration leave it the rest of # its connections. @@ -369,13 +376,16 @@ async def _embed_pair(a: str, b: str, *, query: bool) -> float: # The recalibration worker's fixed pairs are the deployment's; code.calibrate # probes a namespace's corpus under its request's org, which wins. A document # the provider refuses as too long is halved, as ingest halves one before storing. + # The pair owns both calls: one that fails cancels and joins the other before + # the pair, and so the semaphore slot, is released. async with in_flight: with customer.system(): - va, vb = await asyncio.gather( - embedder.embed(a) if query else embed_shrinking(embedder, a), - embed_shrinking(embedder, b), - ) - return _cosine(va, vb) + async with asyncio.TaskGroup() as calls: + va = calls.create_task( + embedder.embed(a) if query else embed_shrinking(embedder, a) + ) + vb = calls.create_task(embed_shrinking(embedder, b)) + return _cosine(va.result(), vb.result()) # Code calibration passes its positives as both positive corpora: each pair is # embedded once. @@ -394,8 +404,7 @@ async def _cosines(pairs: list[tuple[str, str]], *, query: bool) -> list[float]: question_fact_cosines = await _cosines(qf, query=True) distractor_cosines = await _cosines(dist, query=True) except Exception as e: # noqa: BLE001 — a failed probe: the scalar gates serve - cause = e.exceptions[0] if isinstance(e, ExceptionGroup) else e - log.warning("calibration: probe failed (%s); falling back to scalar settings", cause) + log.warning("calibration: probe failed (%s); falling back to scalar settings", _root(e)) return None result = derive_thresholds( diff --git a/tests/unit/test_embedder_calibration.py b/tests/unit/test_embedder_calibration.py index 8cd44892955..9e382001f35 100644 --- a/tests/unit/test_embedder_calibration.py +++ b/tests/unit/test_embedder_calibration.py @@ -333,7 +333,54 @@ async def test_a_failed_pair_stops_the_rest_of_its_phase(monkeypatch) -> None: assert await ec.calibrate_embedder(pairs, pairs, pairs) is None for _ in range(1000): # a pair still running would start its call here await asyncio.sleep(0) - assert embedder.calls <= 16 # the pairs already started when the first one failed + # the 8 pairs in flight when the first one failed, and the one pair that took the + # slot it freed once its partner call was joined + assert embedder.calls <= 18 + + +class _PairStub: + """`fail` raises once the other text's call is in flight; every other call waits + until it is cancelled. `done` lists the calls that reached their cleanup.""" + + model_name = "pair-stub" + + def __init__(self, fail: str, other: str) -> None: + self.fail, self.other = fail, other + self.started = {fail: asyncio.Event(), other: asyncio.Event()} + self.done: list[str] = [] + + async def _call(self, text: str) -> list[float]: + self.started[text].set() + try: + if text == self.fail: + await self.started[self.other].wait() + raise RuntimeError("provider refused") + await asyncio.Event().wait() + return [1.0, 0.0] + finally: + self.done.append(text) + + async def embed(self, text: str) -> list[float]: + return await self._call(text) + + async def embed_many(self, texts: list[str]) -> list[list[float]]: + return [await self._call(texts[0])] + + +@pytest.mark.parametrize("fail", ["q0", "d0"], ids=["query-fails", "document-fails"]) +async def test_a_failed_call_cancels_and_joins_its_partner_before_calibration_returns( + monkeypatch, fail: str +) -> None: + # One call of a pair raises while the other is still on the provider: calibration + # must not return, and release its connections, before that call is cancelled. + embedder = _PairStub(fail, "d0" if fail == "q0" else "q0") + monkeypatch.setattr("server.embedding.embedder.get_embedder", lambda: embedder) + pairs = [("q0", "d0")] + result = await ec.calibrate_embedder( + pairs, pairs, pairs, paraphrase_pair_purpose="query_document" + ) + assert result is None + assert sorted(embedder.done) == ["d0", "q0"] def test_the_answer_cap_moves_the_trigger_gates_with_the_floor() -> None: From fcb4325f9aac937752da144e7b71ff3da28d108e Mon Sep 17 00:00:00 2001 From: Kaloyan Naumov Date: Sun, 6 Dec 2026 12:26:25 +0000 Subject: [PATCH 27/27] code.calibrate: take out only the doc text from a probe's positive without_doc dropped every source line that held the doc comment. A function whose doc shares its line with code (`def total(): """Return the sum.""" ; return 1`, or `/* Return the sum. */ int total() { ... }`) lost its declaration and body, and the chunk's copy of the doc ahead of the declaration made the second match delete them, so the positive was left with only its context header. It now removes the doc text span with the comment opener ahead of it and the closer after it, in every style the probe query reads, and keeps whatever else the line holds. A line the doc owned goes whole, as before. Assisted-by: Claude Code:claude-sonnet-5-5 Signed-off-by: Kaloyan Naumov --- server/code/domain/calibration_probes.py | 60 +++++++++-- tests/unit/test_code_calibration_probes.py | 112 +++++++++++++++++++++ 2 files changed, 162 insertions(+), 10 deletions(-) diff --git a/server/code/domain/calibration_probes.py b/server/code/domain/calibration_probes.py index f1a83ce545d..a53851fa0bb 100644 --- a/server/code/domain/calibration_probes.py +++ b/server/code/domain/calibration_probes.py @@ -86,25 +86,65 @@ def probe_query(doc_comment: str, name: str = "") -> str: return " ".join(query.split()[:_MAX_QUERY_WORDS]) +# A comment's opening token ahead of its text on the same line (or alone on the line +# before), as `_LEADER` reads them; a docstring's quote may sit right after the `:` of +# its `def`. +_OPENER = re.compile( + r"(?:(?:/\*+!?|[rRuUbBfF]{0,2}(?:\"{3}|'{3}))[ \t]*\n[ \t]*" + r"|(?:/{2,3}!?|/\*+!?|\*+|#+|--|[rRuUbBfF]{0,2}(?:\"{3}|'{3}|\"|'))[ \t]*)$" +) +_QUOTE = re.compile(r"\"{3}|'{3}|\"|'") +# A block comment or docstring closed on a line of its own, when no opener names it. +_CLOSING_LINE = re.compile(r"[ \t]*\n[ \t]*(?:\*+/|\"{3}|'{3})[ \t]*(?=\n|$)") + + +def _closer(opener: str) -> re.Pattern[str]: + quote = _QUOTE.search(opener) + token = re.escape(quote.group()) if quote else (r"\*+/" if "*" in opener else "") + return re.compile(rf"[ \t]*(?:\n[ \t]*)?(?:{token})") if token else _CLOSING_LINE + + +def _doc_span(body: str, start: int, doc: list[str], limit: int) -> tuple[int, int]: + """The doc text found at `start`, its opener ahead of it and its closer after it.""" + end = start + len(doc[0]) + if len(doc) > 1 and (last := body.find(doc[-1], end, limit)) >= 0: + end = last + len(doc[-1]) + opener = _OPENER.search(body, 0, start) + closing = (_closer(opener.group()) if opener else _CLOSING_LINE).match(body, end) + return (opener.start() if opener else start), (closing.end() if closing else end) + + +def _cut(body: str, start: int, end: int) -> str: + """`body` without [start, end): a line the doc owned goes with it; a line that also + holds code keeps the code (`def f(): \"\"\"doc\"\"\"; return 1` becomes `def f(): return 1`).""" + left, right = body[:start], body[end:].lstrip(" \t;") + line_start = left.rfind("\n") + 1 + code_left = bool(left[line_start:].strip()) + code_right = bool(right.partition("\n")[0].strip()) + if code_left: + return left.rstrip(" \t") + (" " if code_right else "") + right + if code_right: + return left + right + return left[:line_start] + right.partition("\n")[2] + + def without_doc(context_text: str, doc_comment: str) -> str: """`context_text` with every copy of the doc comment removed from its body (a unit's chunk can carry it both ahead of the declaration and inside it), so a probe's - positive does not contain its own query.""" + positive does not contain its own query. Only the doc text goes, with its comment + opener and closer: a one-line function keeps its declaration and body.""" doc = [line.strip() for line in doc_comment.strip().splitlines() if _WORD.search(line)] if not doc: return context_text head, sep, body = context_text.partition("\n---\n") if not sep: head, body = "", context_text - lines = body.splitlines() - span = len(doc_comment.strip().splitlines()) + 2 - while (first := next((i for i, line in enumerate(lines) if doc[0] in line), None)) is not None: - end = min(len(lines), first + span) - last = next((i for i in range(first, end) if doc[-1] in lines[i]), first) - if last + 1 < len(lines) and lines[last + 1].strip() in ('"""', "'''", "*/"): - last += 1 - lines = lines[:first] + lines[last + 1 :] - kept = "\n".join(lines) + # a copy's lines may carry a comment leader the parsed doc comment lacks + reach = len(doc_comment) + 16 * len(doc) + 64 + while (found := body.find(doc[0])) >= 0: + start, end = _doc_span(body, found, doc, found + reach) + body = _cut(body, start, end) + kept = body.removesuffix("\n") return f"{head}{sep}{kept}" if sep else kept diff --git a/tests/unit/test_code_calibration_probes.py b/tests/unit/test_code_calibration_probes.py index 2d5b86c87a8..e0ba8458bb7 100644 --- a/tests/unit/test_code_calibration_probes.py +++ b/tests/unit/test_code_calibration_probes.py @@ -9,6 +9,7 @@ import pytest +from server.code.app.index.ingest_parse import parse_for_ingest from server.code.domain.calibration_probes import ( Unit, probe_query, @@ -16,6 +17,7 @@ stratum, without_doc, ) +from server.code.domain.extract.chunker import chunk_file from server.code.domain.index.test_gate import TEST_PATH_PATTERN @@ -125,6 +127,116 @@ def test_without_doc_ignores_comment_lines_without_words() -> None: assert "# keep" in stripped +def _chunked(path: str, source: str, name: str = "total") -> tuple[str, str]: + """The text a function's chunk is embedded from, and its parsed doc comment.""" + parsed, error = parse_for_ingest(path, source.encode()) + assert parsed is not None and not error + symbol = next(s for s in parsed.symbols if s.name == name and s.kind == "function") + chunk = next(c for c in chunk_file(parsed) if symbol.id in c.symbol_ids) + return f"{path} · x\n{name}()\n---\n{chunk.content}", symbol.doc_comment + + +_SUM = "Return the sum of both page counts." +_Q3 = "'" * 3 + + +@pytest.mark.parametrize( + ("path", "source", "kept"), + [ + # the doc shares its source line with the declaration and the body + ("a.py", f'def total(): """{_SUM}"""; return 123 + 456\n', "def total(): return 123 + 456"), + ( + "a.py", + f'def total():\n """{_SUM}"""; return 123 + 456\n', + "def total():\n return 123 + 456", + ), + ( + "a.py", + 'def total():\n """Return the sum of\n both page counts."""; return 1\n', + "def total():\n return 1", + ), + ( + "a.py", + f"def total():\n {_Q3}{_SUM}{_Q3} ; x = 1\n return x\n", + "def total():\n x = 1\n return x", + ), + ( + "a.cpp", + f"/* {_SUM} */ int total() {{ return 123 + 456; }}\n", + "int total() { return 123 + 456; }", + ), + ( + "a.cpp", + f"/// {_SUM}\nint total() {{ return 123 + 456; }}\n", + "int total() { return 123 + 456; }", + ), + ( + "a.cpp", + f"// {_SUM}\nint total() {{ return 123 + 456; }}\n", + "int total() { return 123 + 456; }", + ), + ( + "a.cpp", + f"/**\n * {_SUM}\n */\nint total() {{ return 123 + 456; }}\n", + "int total() { return 123 + 456; }", + ), + ( + "a.ts", + f"/** {_SUM} */ function total() {{ return 123 + 456; }}\n", + "function total() { return 123 + 456; }", + ), + ( + "a.ts", + f"/** {_SUM} */\nfunction total() {{ return 123 + 456; }}\n", + "function total() { return 123 + 456; }", + ), + ( + "a.go", + "// total returns the sum of both page counts.\nfunc total() int { return 123 + 456 }\n", + "func total() int { return 123 + 456 }", + ), + ( + "a.rs", + f"/// {_SUM}\nfn total() -> u32 {{ 123 + 456 }}\n", + "fn total() -> u32 { 123 + 456 }", + ), + ], + ids=[ + "py-one-line", + "py-docstring-line", + "py-two-line-docstring", + "py-single-quotes", + "cpp-block-one-line", + "cpp-triple-slash", + "cpp-double-slash", + "cpp-javadoc-block", + "ts-jsdoc-one-line", + "ts-jsdoc-above", + "go", + "rust", + ], +) +def test_without_doc_keeps_the_code_a_one_line_function_shares_with_its_doc( + path: str, source: str, kept: str +) -> None: + # A chunk's text goes through the parser and the chunker, which prepend the doc to + # the body: only the doc text, never a source line that holds more, comes out. + text, doc = _chunked(path, source) + assert without_doc(text, doc) == f"{path} · x\ntotal()\n---\n{kept}" + + +def test_without_doc_keeps_a_multi_line_docstring_apart_from_the_code_around_it() -> None: + source = ( + "def total(a, b):\n" + ' """Return the sum of both page counts.\n\n' + " Args:\n a: pages of the first.\n b: pages of the second.\n" + ' """\n' + " return a + b\n" + ) + text, doc = _chunked("a.py", source) + assert without_doc(text, doc) == "a.py · x\ntotal()\n---\ndef total(a, b):\n return a + b" + + def _unit(path: str, n: int) -> Unit: return Unit( path=path,