From 340f96ce8d6729ff6eee22fa0b37ba2c30b2f922 Mon Sep 17 00:00:00 2001 From: Mohammad Lareb Zafar Date: Sat, 5 Dec 2026 03:25:26 +0000 Subject: [PATCH 1/3] curator.status reports a namespace's proposal queue and the facts that need a second look A namespace admin had no one read of what waits for a person. `curator.status` (experimental, admin, read-only) computes it on every call from rows Loom already holds, stores nothing and calls no model. - `proposals`: the pending count, the days the oldest has waited, the facts filed as a proposal and the decisions of the last 7 days, and whether the count is over `memory_proposals_scan_cap`. - `flagged`: accepted facts with a harm report left after retractions, then those that runs graded `fail` relied on. A conflicted fact stays with the conflicts list. - `stale`: served facts with a stale code link, then those tagged `source-changed`. Each finding names `memory.update_by_id` with the fact's id and, as `if_match_sha256`, the content hash `memory.get` serves, read by the report citation read. A fact that read cites no hash for (high sensitivity, a value over `namespace_report_hash_max_bytes`) is listed with no write. A `flagged` read that reaches its scan cap answers `too_large` with no items, and the other sections still answer. The op is served over HTTP, as the MCP tool `loom_curator_status` on no toolset, by every generated SDK and by `loom curator status`. The dashboard has no view of it, which `NOT_IN_DASHBOARD` records. Related: https://github.com/ClickHouse/loom/issues/2152 Signed-off-by: Mohammad Lareb Zafar Co-Authored-By: Claude Fable 5.2 --- docs/architecture/curator.md | 137 + docs/features/memory/writing.md | 26 + docs/guides/without-the-dashboard.md | 28 + docs/reference/cli.md | 1 + docs/reference/configuration.md | 2 +- docs/reference/operations.md | 12 +- docs/reference/operations/curator.md | 30 + docs/reference/status.md | 3 +- loom.example.yaml | 5 +- schemas/loom-settings.schema.json | 2 +- sdk/go/client.gen.go | 33 + sdk/go/wire/models.gen.go | 48 +- sdk/python/loom/cli.py | 16 +- sdk/python/loom/cli_curator.py | 125 + sdk/python/loom/client.py | 19 + sdk/python/loom/ops.py | 92 +- sdk/ruby/lib/clickhouse/loom/generated/ops.rb | 18 +- sdk/rust/src/blocking_operations.rs | 17 + sdk/rust/src/operations.rs | 18 + sdk/rust/src/wire_models.rs | 6861 +++++++++-------- sdk/rust/tests/registry_contracts.rs | 25 + sdk/typescript/src/generated/ops.ts | 60 +- server/cli/login.py | 7 +- server/memory/api/models_curator.py | 90 + server/memory/api/ops_curator.py | 21 + server/memory/app/curator_status.py | 195 + server/memory/domain/curator.py | 41 + server/memory/store/curator.py | 194 + server/operations/dashboard.py | 4 + server/operations/reach_manifest.py | 1 + server/operations/registry.py | 2 + server/settings/catalog.py | 9 +- tests/analyzer/cases/planes.py | 16 + tests/analyzer/shapes.txt | 8 + tests/integration/test_curator_status.py | 391 + tests/unit/snapshots/cli_help.json | 7 +- tests/unit/snapshots/cli_tree.json | 32 +- tests/unit/snapshots/sdk_public_api.json | 9 + tests/unit/test_cli_curator.py | 239 + tests/unit/test_curator_status.py | 684 ++ 40 files changed, 6141 insertions(+), 3387 deletions(-) create mode 100644 docs/architecture/curator.md create mode 100644 docs/reference/operations/curator.md create mode 100644 sdk/python/loom/cli_curator.py create mode 100644 server/memory/api/models_curator.py create mode 100644 server/memory/api/ops_curator.py create mode 100644 server/memory/app/curator_status.py create mode 100644 server/memory/domain/curator.py create mode 100644 server/memory/store/curator.py create mode 100644 tests/integration/test_curator_status.py create mode 100644 tests/unit/test_cli_curator.py create mode 100644 tests/unit/test_curator_status.py diff --git a/docs/architecture/curator.md b/docs/architecture/curator.md new file mode 100644 index 00000000000..75f812adbc7 --- /dev/null +++ b/docs/architecture/curator.md @@ -0,0 +1,137 @@ +# Curator status + +`curator.status` reports what in one namespace needs a person: the proposal queue in counts, the accepted facts with a harm report or a failed graded run, and the served facts whose linked code or source document changed. This page describes what the operation reads, the bound on each read and the codes it answers with. + +The answer is computed on every call from rows Loom already holds. The operation stores nothing, calls no model and changes no fact: each finding names the write that fixes it, for a person to run under their own name. + +## The caller + +The operation needs the admin role on the namespace it addresses. A caller below it is refused with 403 `AUTH_INSUFFICIENT`. The report counts the whole namespace, so a token whose read scope is narrowed to one user or session is refused with the same code, as for the [knowledge gap](knowledge-gaps.md) operations. + +| Surface | How | +| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| HTTP | `POST /v1/curator.status` | +| MCP | the tool `loom_curator_status`, called by name; it is on no toolset | +| SDKs | the generated `curator.status` method of each SDK | +| Command line | `loom curator status --namespace ` ([without the dashboard](../guides/without-the-dashboard.md#what-a-namespace-needs-from-a-person)) | + +The dashboard has no view of the report. Its **Review queue** lists the proposals and the conflicts themselves. + +## Input + +| Field | Meaning | +| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `sections` | Which of `proposals`, `flagged` and `stale` to compute. Empty, the default, computes all three. A section that was not asked for is `null` and makes no read. Another name is a validation error. | +| `limit` | The most findings one section lists, 1 to 50, default 20. | + +## What each section reads + +Every statement names one `(org, namespace)`. A fact's `value` is read only to hash it for [the write its finding names](#the-write-a-finding-names), for the facts a list shows, and no answer holds a value. + +### `proposals` + +| Field | Read | +| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `pending` | The live rows of `loom.memory` with `status = 'proposed'`. | +| `oldest_days` | The age in whole days of the oldest of them, 0 when none is pending. | +| `filed_7d` | The facts with a version in `loom.memory_versions` written as a proposal and a `created_at` in the last 7 days. A fact keeps its `created_at` through every version, so a proposal decided since still counts. | +| `decided_7d` | The `memory.proposal_accept` and `memory.proposal_reject` rows of `loom.audit_log` in the last 7 days: two ranges of its sort key `(org, namespace, event_type, ts)`. | +| `over_scan_cap` | True when `pending` is more than `LOOM_MEMORY_PROPOSALS_SCAN_CAP`, the most proposals `memory.proposals` reads for one listing. The count stays exact. | + +[Proposals](../features/memory/writing.md#proposals) describes the queue and its decisions. + +### `flagged` + +Accepted facts, `status = 'active'`. A conflicted fact is not listed: `conflicts.list` already holds it. + +1. The memory ids whose harm reports in `loom.memory_usage_totals` sum to more than zero, most reports first. A report is a `negative` outcome recorded with `memory.outcome`, `memory.outcome_run` or `run.complete`; a retraction (`run.retract_credit`) subtracts it. +2. The keys named in `memories_used` by the runs of `loom.agent_runs` graded `fail`, the key of the most runs first. A run counts once for a key, and a run regraded to `pass` no longer counts. +3. The live accepted rows of those ids and those keys. + +The list holds the harm reports first, then the failed runs, cut at `limit`. + +### `stale` + +Served facts, `status` `active` or `conflicted`. + +1. The namespace's code links in the state `changed`, `unresolved` or `missing`, made from the fact as it is now, into repositories whose code namespace the caller may read, one per fact, newest check first. +2. The live rows tagged `source-changed`, newest write first. [Decision extraction](../features/tasks-and-decisions.md#extract-decisions-from-a-document) sets the tag on a decision that its source document no longer states. + +The list holds the stale links first, then the tagged facts, cut at `limit`. + +## Findings + +A finding carries the fact's `memory_id` and `memory_key`, a `code`, the code's `title`, a `count`, a `ref` and the write that fixes it in `apply`. The titles are in `server/memory/domain/curator.py` (`FINDING_TITLES`), so every surface prints the same words. + +| Code | Title | Section | `count` | `ref` | +| ---------------- | ----------------------------- | --------- | ------------------------------------------ | ---------------------------------------------------------------------- | +| `harm_reported` | Reported harmful | `flagged` | The harm reports left after retractions. | | +| `graded_fails` | Relied on by runs graded fail | `flagged` | The runs graded `fail` that named the key. | | +| `stale_link` | Linked code changed | `stale` | 0 | The linked file, then `::` and the definition when the link names one. | +| `source_changed` | Source document changed | `stale` | 0 | | + +A fact can be listed under more than one code. + +## The write a finding names + +`apply` has the shape `namespace.tune` gives its drafts: + +| Field | Value | +| --------------- | ------------------------------------------------------------------------------------------------------- | +| `op` | `memory.update_by_id` | +| `args` | `org`, the fact's `memory_id`, and `if_match_sha256`, the content hash the report read for it. | +| `args_complete` | `false`: the person adds the new `value`. | +| `required_role` | The role `memory.update_by_id` declares, read from the operation registry. | +| `guard` | States that the write is refused with 409 `PRECONDITION_FAILED` when the fact changed after the report. | + +The hash is the `content_sha256` that `memory.get` serves for the fact, which is the one `memory.update_by_id` compares. The stored `content_sha256` column can differ from it: a read serves an object without its null fields, and hashes what it serves. After the sections are read, one read fetches the live revision and this hash of every fact the lists show. It is the read that [`namespace.audit`](../features/namespaces-and-sharing.md#reading-a-namespaces-health) cites its rows with. + +That read cites no hash for a high-sensitivity fact, for a value larger than `LOOM_NAMESPACE_REPORT_HASH_MAX_BYTES` (0 cites none), or for a fact revised while it ran. Such a fact is listed with `apply: null`: an empty `if_match_sha256` is no precondition, so the write it would name could overwrite a change made since the report. + +A fact that is no longer live when its revision is read is left out, so a list can hold fewer than `limit` findings while a fact is being deleted. Under the [Postgres memory authority](storage-authority.md) a fact is listed only while the ClickHouse row the report read is the live head of its key there. + +## Bounds + +| Read | Bound | +| ----------------------------- | ---------------------------------------------------------------------------------------------------- | +| Harm reports, failed-run keys | 2,000 each (`SCAN_CAP` in `server/memory/store/curator.py`). The statement asks for one row more. | +| Rows under the failed keys | 2,000. A key is held once by each agent, user and session that wrote it. | +| Rows of the harmed ids | The ids the harm-report read returned. | +| Stale links, tagged rows | `limit` rows each. | +| Revisions and hashed values | The facts the lists show, `limit` a list, each value at most `LOOM_NAMESPACE_REPORT_HASH_MAX_BYTES`. | +| The whole call | A p99 budget of 1,500 ms (`OP_BUDGETS_P99_MS` in `server/settings/catalog.py`). | + +A `flagged` section with a read over its bound answers `unavailable: "too_large"` with no items, because a cut list would read as the whole one. The other sections still answer. + +A failed statement fails the call. A repository whose grant could not be read is left out of the stale links, and the answer says so in `degraded` (`identity: code_links_unverified`). + +## Limits + +- Harm reports and failed runs are counted over the namespace's whole history. A fact keeps its id through a revision, so a revised fact stays listed, with the hash of its current content in `apply`, until its reports are retracted or it is deleted. +- `graded_fails` matches by key: a run records the keys it relied on, so every identity of the namespace that holds the key is listed. +- A namespace that has passed a bound of the `flagged` section keeps answering `too_large` for it: the counts never age out. +- With `limit` or more harm reports, the `flagged` list holds no failed run. Ask again with a larger `limit`, up to 50. +- A stale link into a repository the caller may not read is not listed. + +## Source entry points + +- `server/memory/api/ops_curator.py` (`curator_status`), `server/memory/api/models_curator.py`: the operation and its wire models. +- `server/memory/app/curator_status.py` (`handle_curator_status`): the sections and the findings. +- `server/memory/store/curator.py`: every statement, and `SCAN_CAP`. +- `server/memory/domain/curator.py`: the section names, the codes and their titles. +- `server/memory/app/code_link_reads.py` (`stale_links`): the stale link read. +- `server/memory/app/finding_evidence.py` (`revisions_for`): the live revision and served hash of each fact a list shows. +- `sdk/python/loom/cli_curator.py`: the command. + +## Invariants + +- The operation writes no row and calls no model. +- A statement reads one namespace, and no answer holds a value: a value is read only to hash it. +- A list is whole or absent: a section that could be cut answers `too_large`. +- A write named in `apply` carries the content hash a read of the fact served when the report ran, and a fact with no such hash names no write. + +## Related + +- [Writing memory](../features/memory/writing.md#facts-that-need-a-second-look) +- [Graded runs](../features/runs.md#graded-runs): `run.grade` and `memories_used`. +- [Operations reference](../reference/operations/curator.md#curatorstatus) diff --git a/docs/features/memory/writing.md b/docs/features/memory/writing.md index 7a539b52f85..9b11b08e166 100644 --- a/docs/features/memory/writing.md +++ b/docs/features/memory/writing.md @@ -380,6 +380,32 @@ contradiction while on trial stores it `conflicted`, and it waits on the **Confl Learnings have a review of their own: [learnings review queue](./procedures-and-learnings.md#learnings-review-queue). +## Facts that need a second look + +`curator.status` tells a namespace admin what waits for a person: how many proposals are +pending and how long the oldest has waited, the accepted facts with a harm report or a +failed graded run (`flagged`), and the served facts whose linked code or source document +changed (`stale`). It answers with counts, ids and keys, never a value, and changes +nothing. + +Each finding names `memory.update_by_id` with the fact's id and, as `if_match_sha256`, +the `content_sha256` that `memory.get` serves for it. Add the new `value` and run it: +the write is refused with 409 `PRECONDITION_FAILED` when the fact changed after the +report. A high-sensitivity fact is listed with no write, because a report cites no hash +of one. + +```console +$ loom curator status --namespace support +proposals: 3 pending, oldest 12 days; 5 filed and 2 decided in the last 7 days +flagged: 1 + Reported harmful (4): refund-window fix with memory.update_by_id +stale: 0 +`loom curator status --namespace support --json` prints each write's arguments. +``` + +[Curator status](../../architecture/curator.md) describes what each section reads, its +bounds and its codes. + ## Typed records Records are rows with exact fields, for data that has identity (a ticket, a customer). diff --git a/docs/guides/without-the-dashboard.md b/docs/guides/without-the-dashboard.md index 145edfe0adf..5383fedf41c 100644 --- a/docs/guides/without-the-dashboard.md +++ b/docs/guides/without-the-dashboard.md @@ -100,3 +100,31 @@ are on `agent.account` and `agent.deployment`. The same roles apply as in the dashboard. Approving a join needs admin on that namespace. The admin views need an org or platform admin. + +## What a namespace needs from a person + +`loom curator status` reports, for a namespace you administer, its proposal queue and the +facts that need a second look. The dashboard has no page for this report. + +```console +$ loom curator status --namespace support +proposals: 3 pending, oldest 12 days; 5 filed and 2 decided in the last 7 days +flagged: 1 + Reported harmful (4): refund-window fix with memory.update_by_id +stale: 1 + Linked code changed: upload-backoff (src/uploads/retry.py::retry_upload) fix with memory.update_by_id +`loom curator status --namespace support --json` prints each write's arguments. +``` + +It prints one line per section and one per finding: why the fact is listed, its key and +the operation that fixes it. No fact's value is printed. `--json` prints the +`curator.status` answer, where each finding's `apply.args` holds the fact's `memory_id` +and the content hash the report read. Pass them to the operation with the new value: + +```console +$ loom call memory.update_by_id memory_id= if_match_sha256= value="Refunds are accepted for 14 days." +``` + +The write is refused with 409 `PRECONDITION_FAILED` when the fact changed after the +report. In Python the report is `await agent.client.curator.status()`. +[Curator status](../architecture/curator.md) describes what each section reads. diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 98d6a06495b..de4aa2fc40a 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -376,6 +376,7 @@ python scripts/codegen/docs_reference.py | `loom token` | Make, list and revoke your own tokens for CI and agents (`loom token --help`). | | | `loom connect` | Print the dashboard link to connect your own Google, Notion or Linear account. | | | `loom pointers` | Print the code pointer block for the task prompt on standard input. | | +| `loom curator` | Report what in a namespace needs a person (`loom curator --help`). | | diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index cf8c6abdbfc..8eb5d326b66 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -1702,7 +1702,7 @@ Namespace registration, write marks and bench-namespace GC. | Variable | Type | Default | Live | Meaning | | --- | --- | --- | --- | --- | | `LOOM_NAMESPACE_AUDIT_INDEX_ROW_SCAN_CAP` | `int` | `20000` | live | Most live rows the namespace audit's value scan reads (it is O(total value bytes)); above it that check is skipped and says so. | -| `LOOM_NAMESPACE_REPORT_HASH_MAX_BYTES` | `int` | `65536` | live | Largest value (bytes) namespace.audit, namespace.validate and memory.inspect read to cite a row's content hash; a larger row is cited with none. 0 = cite no hash. | +| `LOOM_NAMESPACE_REPORT_HASH_MAX_BYTES` | `int` | `65536` | live | Largest value (bytes) namespace.audit, namespace.validate, memory.inspect and curator.status read to cite a row's content hash; a larger row gets none. 0 = no hash. | | `LOOM_NAMESPACE_TUNE_DOCUMENT_SAMPLE` | `int` | `50` | live | Most live documents namespace.tune re-chunks in process to judge the chunk size and stride, picked by a hash of their source_uri; the report states the cap. | | `LOOM_NAMESPACE_ONTOLOGY_CARDINALITY_TTL_S` | `float` | `60.0` | live | Seconds a namespace's relation cardinalities (one or many) are cached for the triple writer. | | `LOOM_NAMESPACE_TAXONOMY_TTL_S` | `float` | `300.0` | live | Seconds a namespace's taxonomy is reused: one is four FINAL scans of the namespace (about 20 MB per open on a large namespace) and changes only when the namespace does. | diff --git a/docs/reference/operations.md b/docs/reference/operations.md index c4df4c084fe..417372f238a 100644 --- a/docs/reference/operations.md +++ b/docs/reference/operations.md @@ -124,11 +124,11 @@ python scripts/codegen/docs_reference.py --check # exit 1 when a region is stal -388 operations in 43 groups. Every op is served at `POST /v1/` and as the MCP tool `loom_` (dots become underscores). +389 operations in 44 groups. Every op is served at `POST /v1/` and as the MCP tool `loom_` (dots become underscores). Columns: **Role** is the minimum role (`viewer` < `writer` < `admin` < `org_admin` < `platform_admin`); **Kind** is `read` (idempotent, viewer, unaudited, writes nothing — MCP `readOnlyHint`), `idempotent` (safe to retry) or `write`; **Listed under `all`** says whether an MCP connection on the `all` toolset lists the op in `tools/list` (`code.*` ops only with `LOOM_MCP_CODE_TOOLS=true`); an op marked `no` is still callable by name or through `loom_op`, unless it is hidden from MCP; **Audit** marks ops that leave an `audit_log` row. -Groups: [`admin`](#admin) · [`agents`](#agents) · [`assistant`](#assistant) · [`audit`](#audit) · [`blacklist`](#blacklist) · [`calibration`](#calibration) · [`code`](#code) · [`collection`](#collection) · [`conflicts`](#conflicts) · [`connection`](#connection) · [`consolidations`](#consolidations) · [`context`](#context) · [`conversation`](#conversation) · [`cost`](#cost) · [`decision`](#decision) · [`erasure`](#erasure) · [`extraction_policy`](#extraction_policy) · [`facts`](#facts) · [`grants`](#grants) · [`help`](#help) · [`inbox`](#inbox) · [`insights`](#insights) · [`knowledge`](#knowledge) · [`learnings`](#learnings) · [`memory`](#memory) · [`memory_schema`](#memory_schema) · [`mentor`](#mentor) · [`namespace`](#namespace) · [`observe`](#observe) · [`ops`](#ops) · [`org`](#org) · [`policy`](#policy) · [`procedure`](#procedure) · [`profile`](#profile) · [`profile_schema`](#profile_schema) · [`run`](#run) · [`search`](#search) · [`session`](#session) · [`task`](#task) · [`tracker`](#tracker) · [`ui`](#ui) · [`webhook`](#webhook) · [`working_memory`](#working_memory) +Groups: [`admin`](#admin) · [`agents`](#agents) · [`assistant`](#assistant) · [`audit`](#audit) · [`blacklist`](#blacklist) · [`calibration`](#calibration) · [`code`](#code) · [`collection`](#collection) · [`conflicts`](#conflicts) · [`connection`](#connection) · [`consolidations`](#consolidations) · [`context`](#context) · [`conversation`](#conversation) · [`cost`](#cost) · [`curator`](#curator) · [`decision`](#decision) · [`erasure`](#erasure) · [`extraction_policy`](#extraction_policy) · [`facts`](#facts) · [`grants`](#grants) · [`help`](#help) · [`inbox`](#inbox) · [`insights`](#insights) · [`knowledge`](#knowledge) · [`learnings`](#learnings) · [`memory`](#memory) · [`memory_schema`](#memory_schema) · [`mentor`](#mentor) · [`namespace`](#namespace) · [`observe`](#observe) · [`ops`](#ops) · [`org`](#org) · [`policy`](#policy) · [`procedure`](#procedure) · [`profile`](#profile) · [`profile_schema`](#profile_schema) · [`run`](#run) · [`search`](#search) · [`session`](#session) · [`task`](#task) · [`tracker`](#tracker) · [`ui`](#ui) · [`webhook`](#webhook) · [`working_memory`](#working_memory) ### admin @@ -326,6 +326,14 @@ Fields for every `cost` op: [operations/cost.md](operations/cost.md). | [`cost.record_turns`](operations/cost.md#costrecord_turns) | The coding agent's own spend for one session, a batch of turns per call. | writer | idempotent | no | | | [`cost.summary`](operations/cost.md#costsummary) | Cost rollup over a date window. | viewer | read | no | | +### curator + +Fields for every `curator` op: [operations/curator.md](operations/curator.md). + +| Operation | Summary | Role | Kind | Listed under `all` | Audit | +| --- | --- | --- | --- | --- | --- | +| [`curator.status`](operations/curator.md#curatorstatus) | Report a namespace's proposal queue and the facts that need a second look. | admin | idempotent | no | | + ### decision Fields for every `decision` op: [operations/decision.md](operations/decision.md). diff --git a/docs/reference/operations/curator.md b/docs/reference/operations/curator.md new file mode 100644 index 00000000000..159d6522eb8 --- /dev/null +++ b/docs/reference/operations/curator.md @@ -0,0 +1,30 @@ +# `curator` operations + +The exact fields each `curator.*` operation takes and returns. + + + +Every op is `POST /v1/` over HTTP and the MCP tool `loom_`. The identity fields (`org`, `namespace`, `agent`, `user_id`, `session_id`) are filled from the token and the MCP session when a transport can; for an HTTP call with no token on a single-user server, the install's org on every op but `code.*` and `tracker.*` (which keep their plane's), and on [some ops](../http-api.md#request) its namespace and agent; see [identities and namespaces](../../concepts/identities-and-namespaces.md). The [operations index](../operations.md) explains role, kind and the MCP `all` listing. Unknown input fields are served and named in `ignored_args`, and a response served from a fallback or a partial read names it in `degraded` ([degraded answers](../http-api.md#degraded-answers)). + + + +## `curator.status` + +Report a namespace's proposal queue and the facts that need a second look. + +`POST /v1/curator.status` · MCP `loom_curator_status` · role `admin` · idempotent · not listed under the MCP `all` toolset + +| Input field | Type | Default | Meaning | +| --- | --- | --- | --- | +| `org` | `str` | required | The tenant (first element of the identity tuple). | +| `namespace` | `str` | required | The namespace the op reads or writes. | +| `sections` | `list[Literal['proposals', 'flagged', 'stale']]` | *(computed)* | The sections to compute: `proposals`, `flagged`, `stale`; empty (the default) computes all of them. | +| `limit` | `int` | `20` | Findings returned per section, 1 to 50 (default 20). | + +| Output field | Type | Meaning | +| --- | --- | --- | +| `proposals` | `CuratorProposals \| None` | The proposal queue in counts: how many wait, how long the oldest has waited, and how many were filed and decided in the last 7 days. | +| `flagged` | `CuratorFindings \| None` | Accepted facts with a harm report, most reports first, then those that runs graded `fail` relied on, most failed runs first. | +| `stale` | `CuratorFindings \| None` | Served facts with a stale code link, newest check first, then those tagged `source-changed`, newest write first. | + + diff --git a/docs/reference/status.md b/docs/reference/status.md index 502cdb0a791..f1e96337f18 100644 --- a/docs/reference/status.md +++ b/docs/reference/status.md @@ -25,7 +25,7 @@ serves is in the [MCP reference](./mcp.md#toolsets). -388 operations, 274 of them experimental. +389 operations, 275 of them experimental. | Group | Stable | Experimental | | --- | --- | --- | @@ -43,6 +43,7 @@ serves is in the [MCP reference](./mcp.md#toolsets). | `context` | 1 | [`context.fetch`](operations/context.md#contextfetch), [`context.offload`](operations/context.md#contextoffload) | | `conversation` | 2 | [`conversation.compact`](operations/conversation.md#conversationcompact), [`conversation.create`](operations/conversation.md#conversationcreate), [`conversation.delete`](operations/conversation.md#conversationdelete), [`conversation.get`](operations/conversation.md#conversationget), [`conversation.list`](operations/conversation.md#conversationlist), [`conversation.list_saved_messages`](operations/conversation.md#conversationlist_saved_messages), [`conversation.save_message`](operations/conversation.md#conversationsave_message), [`conversation.saved_status`](operations/conversation.md#conversationsaved_status), [`conversation.search`](operations/conversation.md#conversationsearch), [`conversation.search_saved_messages`](operations/conversation.md#conversationsearch_saved_messages), [`conversation.set_logging`](operations/conversation.md#conversationset_logging), [`conversation.unsave_message`](operations/conversation.md#conversationunsave_message), [`conversation.update`](operations/conversation.md#conversationupdate) | | `cost` | 3 | [`cost.record_turns`](operations/cost.md#costrecord_turns) | +| `curator` | 0 | [`curator.status`](operations/curator.md#curatorstatus) | | `decision` | 0 | [`decision.chain`](operations/decision.md#decisionchain), [`decision.outcome`](operations/decision.md#decisionoutcome), [`decision.precedents`](operations/decision.md#decisionprecedents), [`decision.record`](operations/decision.md#decisionrecord) | | `erasure` | 2 | [`erasure.list`](operations/erasure.md#erasurelist), [`erasure.status`](operations/erasure.md#erasurestatus) | | `extraction_policy` | 0 | [`extraction_policy.clear`](operations/extraction_policy.md#extraction_policyclear), [`extraction_policy.get`](operations/extraction_policy.md#extraction_policyget), [`extraction_policy.set`](operations/extraction_policy.md#extraction_policyset) | diff --git a/loom.example.yaml b/loom.example.yaml index 7327317ac8b..ebd51bcd374 100644 --- a/loom.example.yaml +++ b/loom.example.yaml @@ -5036,8 +5036,9 @@ settings: # above it that check is skipped and says so. [live] # namespace_audit_index_row_scan_cap: 20000 - # Largest value (bytes) namespace.audit, namespace.validate and memory.inspect read to - # cite a row's content hash; a larger row is cited with none. 0 = cite no hash. [live] + # Largest value (bytes) namespace.audit, namespace.validate, memory.inspect and + # curator.status read to cite a row's content hash; a larger row gets none. 0 = no + # hash. [live] # namespace_report_hash_max_bytes: 65536 # Most live documents namespace.tune re-chunks in process to judge the chunk size and diff --git a/schemas/loom-settings.schema.json b/schemas/loom-settings.schema.json index 30776d6b17d..1f4d9a01052 100644 --- a/schemas/loom-settings.schema.json +++ b/schemas/loom-settings.schema.json @@ -5986,7 +5986,7 @@ "maximum": 4294967295, "minimum": 0, "type": "integer", - "description": "Largest value (bytes) namespace.audit, namespace.validate and memory.inspect read to cite a row's content hash; a larger row is cited with none. 0 = cite no hash." + "description": "Largest value (bytes) namespace.audit, namespace.validate, memory.inspect and curator.status read to cite a row's content hash; a larger row gets none. 0 = no hash." }, "namespace_taxonomy_ttl_s": { "default": 300.0, diff --git a/sdk/go/client.gen.go b/sdk/go/client.gen.go index 8f4efe685de..c895278c543 100644 --- a/sdk/go/client.gen.go +++ b/sdk/go/client.gen.go @@ -842,6 +842,21 @@ type CostSummaryOutput = wire.CostSummaryOutput // CostSummaryRow is a model used by Loom operations. type CostSummaryRow = wire.CostSummaryRow +// CuratorFinding is a model used by Loom operations. +type CuratorFinding = wire.CuratorFinding + +// CuratorFindings is a model used by Loom operations. +type CuratorFindings = wire.CuratorFindings + +// CuratorProposals is a model used by Loom operations. +type CuratorProposals = wire.CuratorProposals + +// CuratorStatusInput is the request to curator.status. +type CuratorStatusInput = wire.CuratorStatusInput + +// CuratorStatusOutput is the response from curator.status. +type CuratorStatusOutput = wire.CuratorStatusOutput + // DatasetClarificationOut is a model used by Loom operations. type DatasetClarificationOut = wire.DatasetClarificationOut @@ -3358,6 +3373,7 @@ type Client struct { Context ContextService Conversation ConversationService Cost CostService + Curator CuratorService Decision DecisionService Erasure ErasureService ExtractionPolicy ExtractionPolicyService @@ -3406,6 +3422,7 @@ func (c *Client) initServices() { c.Context = ContextService{client: &c.clientTransport} c.Conversation = ConversationService{client: &c.clientTransport} c.Cost = CostService{client: &c.clientTransport} + c.Curator = CuratorService{client: &c.clientTransport} c.Decision = DecisionService{client: &c.clientTransport} c.Erasure = ErasureService{client: &c.clientTransport} c.ExtractionPolicy = ExtractionPolicyService{client: &c.clientTransport} @@ -3479,6 +3496,9 @@ type ConversationService struct{ client *clientTransport } // CostService provides the operations on Client.Cost. type CostService struct{ client *clientTransport } +// CuratorService provides the operations on Client.Curator. +type CuratorService struct{ client *clientTransport } + // DecisionService provides the operations on Client.Decision. type DecisionService struct{ client *clientTransport } @@ -5030,6 +5050,19 @@ func (s CostService) Summary(ctx context.Context, in CostSummaryInput) (*CostSum return callOperation[CostSummaryOutput](s.client, ctx, "cost.summary", in) } +// Status calls curator.status. +// Use WithInput to supply additional request fields. +func (s CuratorService) Status(ctx context.Context, opts ...Option[CuratorStatusInput]) (*CuratorStatusOutput, error) { + in := applyOptions(opts) + if in.Namespace == "" { + in.Namespace = s.client.identity.Namespace + } + if in.Org == "" { + in.Org = s.client.identity.Org + } + return callOperation[CuratorStatusOutput](s.client, ctx, "curator.status", in) +} + // Chain calls decision.chain. // Use WithInput to supply additional request fields. func (s DecisionService) Chain(ctx context.Context, memoryKey string, opts ...Option[DecisionChainInput]) (*DecisionChainOutput, error) { diff --git a/sdk/go/wire/models.gen.go b/sdk/go/wire/models.gen.go index e82c97a32a9..a15250f3998 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: b47d19467ed58bb0fca62adc288e7049e81812eb4741f5d65bf5d177ebb317ef +// Registry model schema SHA-256: 6ae3f06bb224669e8b750fc3e873a2ba573098aa0575a3981f5913e5bd449870 // Package wire contains the Go requests and responses for Loom operations. package wire @@ -3738,6 +3738,52 @@ type CostSummaryRow struct { CacheSavedUsd *float64 `json:"cache_saved_usd,omitempty"` } +// CuratorFinding is a model used by Loom operations. +type CuratorFinding struct { + MemoryID string `json:"memory_id"` + MemoryKey string `json:"memory_key"` + Code string `json:"code"` + Title string `json:"title"` + Count *int64 `json:"count,omitempty"` + Ref *string `json:"ref,omitempty"` + Apply Optional[TuneApply] `json:"apply,omitempty"` +} + +// CuratorFindings is a model used by Loom operations. +type CuratorFindings struct { + Items *[]CuratorFinding `json:"items,omitempty"` + Unavailable *string `json:"unavailable,omitempty"` +} + +// CuratorProposals is a model used by Loom operations. +type CuratorProposals struct { + Pending *int64 `json:"pending,omitempty"` + OldestDays *int64 `json:"oldest_days,omitempty"` + Filed7D *int64 `json:"filed_7d,omitempty"` + Decided7D *int64 `json:"decided_7d,omitempty"` + OverScanCap *bool `json:"over_scan_cap,omitempty"` + Unavailable *string `json:"unavailable,omitempty"` +} + +// CuratorStatusInput is the request to curator.status. +type CuratorStatusInput struct { + Org string `json:"org"` + Namespace string `json:"namespace"` + Sections *[]string `json:"sections,omitempty"` + Limit *int64 `json:"limit,omitempty"` +} + +// CuratorStatusOutput is the response from curator.status. +type CuratorStatusOutput struct { + IgnoredArgs *[]string `json:"ignored_args,omitempty"` + DidYouMean *map[string]string `json:"did_you_mean,omitempty"` + Mirrored *bool `json:"mirrored,omitempty"` + Degraded *[]string `json:"degraded,omitempty"` + Proposals Optional[CuratorProposals] `json:"proposals,omitempty"` + Flagged Optional[CuratorFindings] `json:"flagged,omitempty"` + Stale Optional[CuratorFindings] `json:"stale,omitempty"` +} + // DatasetClarificationOut is a model used by Loom operations. type DatasetClarificationOut struct { Code string `json:"code"` diff --git a/sdk/python/loom/cli.py b/sdk/python/loom/cli.py index 30de638ee3a..d1d64a45ee4 100644 --- a/sdk/python/loom/cli.py +++ b/sdk/python/loom/cli.py @@ -1,6 +1,6 @@ -"""`loom login | logout | whoami | call | token | connect | pointers`: use the dashboard's API -from a terminal or an agent's shell. `python -m loom …` runs it with only the SDK -installed; the server's `loom` command hands these commands to it. +"""`loom login | logout | whoami | call | token | connect | pointers | curator`: use the +dashboard's API from a terminal or an agent's shell. `python -m loom …` runs it with only +the SDK installed; the server's `loom` command hands these commands to it. `loom call` reaches the whole API with the stored session (or LOOM_API_KEY): @@ -15,6 +15,9 @@ `loom pointers` reads a task prompt on standard input and prints the code pointer block to put above it (`loom pointers --help`). +`loom curator status` reports a namespace's proposal queue and the facts that need a +second look (`loom curator --help`). + An op name is POSTed to /v1/ with org and namespace filled in from the token (`--org`, `--namespace` override). A path starting with `/` is sent as given: GET without a body, POST with one. `key=value` sends text as it is; @@ -34,11 +37,11 @@ import httpx -from loom import credentials +from loom import cli_curator, credentials from loom.errors import BackendUnavailable, LoomError from loom.ops import OPS -COMMANDS = ("login", "logout", "whoami", "call", "token", "connect", "pointers") +COMMANDS = ("login", "logout", "whoami", "call", "token", "connect", "pointers", "curator") _CONNECT_KINDS = {"google": "gdrive", "notion": "notion", "linear": "linear"} @@ -367,6 +370,8 @@ def run(args: argparse.Namespace) -> int: elif args.cmd == "pointers": if block := asyncio.run(_pointers(args)): print(block) + elif args.cmd == "curator": + print(cli_curator.run(args, _server(args))) elif args.list: _list_ops() else: @@ -435,6 +440,7 @@ def main(argv: list[str] | None = None, prog: str = "python -m loom") -> int: _token_parser(sub) _connect_parser(sub) _pointers_parser(sub) + cli_curator.add_parser(sub) # Fields may follow options (`--namespace x query=…`), which argparse # leaves over; anything else left over is a mistake. args, extra = parser.parse_known_args(argv) diff --git a/sdk/python/loom/cli_curator.py b/sdk/python/loom/cli_curator.py new file mode 100644 index 00000000000..1964d51f357 --- /dev/null +++ b/sdk/python/loom/cli_curator.py @@ -0,0 +1,125 @@ +"""`loom curator status`: what in a namespace needs a person, from `curator.status`. + + loom curator status --namespace support + loom curator status --namespace support --json + +Prints one line per section and one per finding: why the fact is listed, its key and +the operation that fixes it. No fact's value is printed. `--json` prints the +operation's answer, which holds each write's arguments. The caller is a namespace admin. +""" + +from __future__ import annotations + +import argparse +import json +from collections.abc import Mapping +from typing import Any + +_FINDINGS = ("flagged", "stale") + + +def add_parser(sub: Any) -> None: + p = sub.add_parser( + "curator", + help="report what in a namespace needs a person", + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter, + ) + actions = p.add_subparsers(dest="action", required=True) + status = actions.add_parser( + "status", + help="the proposal queue and the facts that need a second look", + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter, + ) + status.add_argument("--namespace", required=True, help="the namespace to report on") + status.add_argument("--org", help="its org (default: the token's)") + status.add_argument("--json", action="store_true", help="print the operation's answer") + status.add_argument( + "--server", + help="server URL (default: LOOM_BASE_URL, else the one `loom login` signed in to)", + ) + status.add_argument( + "--profile", help="credentials profile (default: LOOM_PROFILE or 'default')" + ) + # The command as it was run (`loom curator status`, `python -m loom curator status`), + # for the hints the report prints. + status.set_defaults(command=status.prog) + + +async def status(args: argparse.Namespace, base_url: str | None) -> dict[str, Any]: + """The `curator.status` answer for `--namespace`, with the stored session.""" + from loom.agent import Agent + + agent = Agent( + args.org or "", args.namespace, "loom-cli", base_url=base_url, profile=args.profile + ) + try: + if not args.org: + # The org, from the token unless given, as `loom call` reads it. + claims = agent.transport.token_claims() + agent.org = (claims.org if claims else None) or "dev" + return await agent.call("curator.status", {}) + finally: + await agent.close() + + +def _line(text: object) -> str: + """`text` on one terminal line: a key is its writer's text, so a line break or a + control character in it is shown escaped.""" + return "".join(c if c.isprintable() else repr(c)[1:-1] for c in str(text)) + + +def _proposals(section: Mapping[str, Any]) -> list[str]: + if section.get("unavailable"): + return [f"proposals: not computed ({_line(section['unavailable'])})"] + out = [ + f"proposals: {section.get('pending', 0)} pending, oldest " + f"{section.get('oldest_days', 0)} days; {section.get('filed_7d', 0)} filed and " + f"{section.get('decided_7d', 0)} decided in the last 7 days" + ] + if section.get("over_scan_cap"): + out.append(" more are pending than memory.proposals lists at once") + return out + + +def _finding(item: Mapping[str, Any]) -> str: + count = f" ({item['count']})" if item.get("count") else "" + ref = f" ({_line(item['ref'])})" if item.get("ref") else "" + apply = item.get("apply") or {} + fix = f"fix with {_line(apply['op'])}" if apply.get("op") else "no guarded write" + return f" {_line(item.get('title') or item.get('code'))}{count}: " + ( + f"{_line(item.get('memory_key'))}{ref} {fix}" + ) + + +def render(answer: Mapping[str, Any], command: str, namespace: str) -> str: + """The report as lines: each section the answer holds, then its findings.""" + out: list[str] = [] + if isinstance(answer.get("proposals"), Mapping): + out += _proposals(answer["proposals"]) + listed = 0 + for name in _FINDINGS: + section = answer.get(name) + if not isinstance(section, Mapping): + continue + if section.get("unavailable"): + out.append(f"{name}: not computed ({_line(section['unavailable'])})") + continue + items = [i for i in section.get("items") or [] if isinstance(i, Mapping)] + out.append(f"{name}: {len(items)}") + out += [_finding(i) for i in items] + listed += len(items) + if listed: + out.append(f"`{command} --namespace {namespace} --json` prints each write's arguments.") + return "\n".join(out) + + +def run(args: argparse.Namespace, base_url: str | None) -> str: + """What `loom curator status` prints.""" + import asyncio + + answer = asyncio.run(status(args, base_url)) + if args.json: + return json.dumps(answer, indent=2, default=str) + return render(answer, args.command, args.namespace) diff --git a/sdk/python/loom/client.py b/sdk/python/loom/client.py index f0cb627e81c..b21c96f07fa 100644 --- a/sdk/python/loom/client.py +++ b/sdk/python/loom/client.py @@ -970,6 +970,24 @@ async def summary( ) +class CuratorOps: + """The `curator.*` operations.""" + + # SyncAgent proxies a nested client's coroutines as blocking calls. + _loom_nested_client = True + + def __init__(self, agent: Agent) -> None: + self._agent = agent + + async def status( + self, body: _ops.CuratorStatusBody | None = None, /, **options: Any + ) -> _ops.CuratorStatusOutput: + """`curator.status`.""" + return cast( + "_ops.CuratorStatusOutput", await self._agent.call("curator.status", body, **options) + ) + + class DecisionOps: """The `decision.*` operations.""" @@ -3670,6 +3688,7 @@ def __init__(self, agent: Agent) -> None: self.context = ContextOps(agent) self.conversation = ConversationOps(agent) self.cost = CostOps(agent) + self.curator = CuratorOps(agent) self.decision = DecisionOps(agent) self.erasure = ErasureOps(agent) self.extraction_policy = ExtractionPolicyOps(agent) diff --git a/sdk/python/loom/ops.py b/sdk/python/loom/ops.py index 0818e83e98b..ee1f1cd2f04 100644 --- a/sdk/python/loom/ops.py +++ b/sdk/python/loom/ops.py @@ -137,6 +137,7 @@ class OpSpec: "cost.budget_status", "cost.record_turns", "cost.summary", + "curator.status", "decision.chain", "decision.outcome", "decision.precedents", @@ -528,6 +529,7 @@ class OpSpec: "cost.budget_status", "cost.record_turns", "cost.summary", + "curator.status", "decision.chain", "decision.outcome", "decision.precedents", @@ -1997,6 +1999,18 @@ class OpSpec: False, True, ), + "curator.status": OpSpec( + "curator.status", + "CuratorStatusInput", + "CuratorStatusBody", + "CuratorStatusOutput", + True, + "admin", + "experimental", + 1500, + False, + False, + ), "decision.chain": OpSpec( "decision.chain", "DecisionChainInput", @@ -9828,6 +9842,73 @@ class CostSummaryRow(TypedDict, total=False): cache_saved_usd: NotRequired[float] +class CuratorStatusInput(TypedDict, total=False): + "Report a namespace's proposal queue and the facts that need a second look." + + org: Required[str] + namespace: Required[str] + sections: NotRequired[list[Literal["proposals", "flagged", "stale"]]] + limit: NotRequired[int] + + +class CuratorStatusBody(TypedDict, total=False): + "Report a namespace's proposal queue and the facts that need a second look." + + org: NotRequired[str] + namespace: NotRequired[str] + sections: NotRequired[list[Literal["proposals", "flagged", "stale"]]] + limit: NotRequired[int] + + +class CuratorStatusOutput(TypedDict, total=False): + "Each section asked for; a section not asked for is null." + + proposals: NotRequired[Optional["CuratorProposals"]] + flagged: NotRequired[Optional["CuratorFindings"]] + stale: NotRequired[Optional["CuratorFindings"]] + + +class CuratorProposals(TypedDict, total=False): + "The proposal queue in counts; no proposal's value is read." + + pending: NotRequired[int] + oldest_days: NotRequired[int] + filed_7d: NotRequired[int] + decided_7d: NotRequired[int] + over_scan_cap: NotRequired[bool] + unavailable: NotRequired[str] + + +class CuratorFindings(TypedDict, total=False): + "One section's findings, or why it has none to show." + + items: NotRequired[list["CuratorFinding"]] + unavailable: NotRequired[str] + + +class CuratorFinding(TypedDict, total=False): + "One fact that needs a second look, and the write that fixes it." + + memory_id: Required[str] + memory_key: Required[str] + code: Required[str] + title: Required[str] + count: NotRequired[int] + ref: NotRequired[str] + apply: NotRequired[Optional["TuneApply"]] + + +class TuneApply(TypedDict, total=False): + "The ordinary write that would apply a proposal, for a person to approve." + + op: Required[str] + via: NotRequired[Literal["op", "admin_route", "environment"]] + args: Required[dict[str, Any]] + args_complete: NotRequired[bool] + required_role: Required[str] + guard: Required[str] + + class DecisionChainInput(TypedDict, total=False): org: Required[str] namespace: Required[str] @@ -18599,17 +18680,6 @@ class TuneEvidence(TypedDict, total=False): documents: NotRequired[list[str]] -class TuneApply(TypedDict, total=False): - "The ordinary write that would apply a proposal, for a person to approve." - - op: Required[str] - via: NotRequired[Literal["op", "admin_route", "environment"]] - args: Required[dict[str, Any]] - args_complete: NotRequired[bool] - required_role: Required[str] - guard: Required[str] - - class ChunkingPreview(TypedDict, total=False): "The same document sample cut at the current values and at the proposed ones." diff --git a/sdk/ruby/lib/clickhouse/loom/generated/ops.rb b/sdk/ruby/lib/clickhouse/loom/generated/ops.rb index d57664d6879..bf039e6a951 100644 --- a/sdk/ruby/lib/clickhouse/loom/generated/ops.rb +++ b/sdk/ruby/lib/clickhouse/loom/generated/ops.rb @@ -8,7 +8,7 @@ module Loom # Every served operation: its spec in OPS, and one method per op on the class # of its group (`client.memory.set(...)` is `memory.set`). module Generated - OP_COUNT = 388 + OP_COUNT = 389 # The declared spec of every served op, by name; the HTTP path is /v1/. OPS = { @@ -110,6 +110,7 @@ module Generated "cost.budget_status" => OpSpec.new("cost.budget_status", "cost", "budget_status", true, true, "viewer", "stable", %w[org namespace user_id].freeze, %w[org].freeze), "cost.record_turns" => OpSpec.new("cost.record_turns", "cost", "record_turns", true, false, "writer", "experimental", %w[org namespace agent user_id session_id consumer turns].freeze, %w[org namespace session_id turns].freeze), "cost.summary" => OpSpec.new("cost.summary", "cost", "summary", true, true, "viewer", "stable", %w[org namespace from_date to_date group_by agent operation user_id traffic_class instance_label include_cache].freeze, %w[org from_date to_date].freeze), + "curator.status" => OpSpec.new("curator.status", "curator", "status", true, false, "admin", "experimental", %w[org namespace sections limit].freeze, %w[org namespace].freeze), "decision.chain" => OpSpec.new("decision.chain", "decision", "chain", true, true, "viewer", "experimental", %w[org namespace memory_key direction max_hops].freeze, %w[org namespace memory_key].freeze), "decision.outcome" => OpSpec.new("decision.outcome", "decision", "outcome", false, false, "writer", "experimental", %w[org namespace memory_key realized_outcome success agent].freeze, %w[org namespace memory_key realized_outcome].freeze), "decision.precedents" => OpSpec.new("decision.precedents", "decision", "precedents", true, true, "viewer", "experimental", %w[org namespace agent query category top_k with_outcome_only].freeze, %w[org namespace query].freeze), @@ -1058,6 +1059,16 @@ def summary(body = nil, request_options: nil, **fields) end end + # The `curator.*` operations. + class CuratorOps < OpGroup + # `curator.status` (admin, writes, Idempotency-Key, experimental). + # Report a namespace's proposal queue and the facts that need a second look. + # Required: org, namespace. + def status(body = nil, request_options: nil, **fields) + call_op("curator.status", body, fields, request_options) + end + end + # The `decision.*` operations. class DecisionOps < OpGroup # `decision.chain` (viewer, read-only, experimental). @@ -3070,6 +3081,7 @@ def set(body = nil, request_options: nil, **fields) "context" => ContextOps, "conversation" => ConversationOps, "cost" => CostOps, + "curator" => CuratorOps, "decision" => DecisionOps, "erasure" => ErasureOps, "extraction_policy" => ExtractionPolicyOps, @@ -3159,6 +3171,10 @@ def cost op_group("cost") end + def curator + op_group("curator") + end + def decision op_group("decision") end diff --git a/sdk/rust/src/blocking_operations.rs b/sdk/rust/src/blocking_operations.rs index edc64bf6d66..2291c4d0988 100644 --- a/sdk/rust/src/blocking_operations.rs +++ b/sdk/rust/src/blocking_operations.rs @@ -6600,4 +6600,21 @@ impl crate::blocking::Client { ) -> Result, crate::CallFailure> { self.call("ui.vitals", &request, options) } + /// Call `curator.status`. + pub fn curator_status( + &self, + request: crate::CuratorStatusInput, + ) -> Result { + self.curator_status_with_options(request, crate::CallOptions::default()) + .map(|result| result.data) + .map_err(|failure| failure.error) + } + /// Call `curator.status` with per-request options and metadata. + pub fn curator_status_with_options( + &self, + request: crate::CuratorStatusInput, + options: crate::CallOptions, + ) -> Result, crate::CallFailure> { + self.call("curator.status", &request, options) + } } diff --git a/sdk/rust/src/operations.rs b/sdk/rust/src/operations.rs index 33163c5fc64..1ac884c8a0c 100644 --- a/sdk/rust/src/operations.rs +++ b/sdk/rust/src/operations.rs @@ -7044,4 +7044,22 @@ impl crate::Client { ) -> Result, crate::CallFailure> { self.call("ui.vitals", &request, options).await } + /// Call `curator.status`. + pub async fn curator_status( + &self, + request: crate::CuratorStatusInput, + ) -> Result { + self.curator_status_with_options(request, crate::CallOptions::default()) + .await + .map(|result| result.data) + .map_err(|failure| failure.error) + } + /// Call `curator.status` with per-request options and metadata. + pub async fn curator_status_with_options( + &self, + request: crate::CuratorStatusInput, + options: crate::CallOptions, + ) -> Result, crate::CallFailure> { + self.call("curator.status", &request, options).await + } } diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs index 52900fc725f..a0548f1962d 100644 --- a/sdk/rust/src/wire_models.rs +++ b/sdk/rust/src/wire_models.rs @@ -2018,6 +2018,7 @@ pub(crate) const OP_POLICIES: &[OperationPolicy] = &[ &[], ), ("ui.vitals", true, false, &["namespace", "org"], &[]), + ("curator.status", true, false, &["namespace", "org"], &[]), ]; pub(crate) const NAMESPACE_HINT_EXCLUSIONS: &[&str] = &[ @@ -20452,6 +20453,160 @@ impl CostSummaryInput { } } +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct CuratorProposals { + #[serde(default = "default_955")] + pub pending: Integer, + #[serde(default = "default_956")] + pub oldest_days: Integer, + #[serde(default = "default_957")] + pub filed_7d: Integer, + #[serde(default = "default_958")] + pub decided_7d: Integer, + #[serde(default = "default_959")] + pub over_scan_cap: bool, + #[serde(default = "default_960")] + pub unavailable: String, +} + +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +#[non_exhaustive] +pub enum TuneApplyVia { + #[serde(rename = "op")] + Op, + #[serde(rename = "admin_route")] + AdminRoute, + #[serde(rename = "environment")] + Environment, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct TuneApply { + pub op: String, + #[serde(default = "default_964")] + pub via: TuneApplyVia, + pub args: std::collections::HashMap, + #[serde(default = "default_965")] + pub args_complete: bool, + pub required_role: String, + pub guard: String, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct CuratorFinding { + pub memory_id: String, + pub memory_key: String, + pub code: String, + pub title: String, + #[serde(default = "default_962")] + pub count: Integer, + #[serde(rename = "ref", default = "default_963")] + pub r#ref: String, + #[serde(default = "default_966")] + pub apply: Option, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct CuratorFindings { + #[serde(default = "default_967")] + pub items: Vec, + #[serde(default = "default_968")] + pub unavailable: String, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct CuratorStatusOutput { + #[serde(default = "default_961")] + pub proposals: Option, + #[serde(default = "default_969")] + pub flagged: Option, + #[serde(default = "default_970")] + pub stale: Option, +} + +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +#[non_exhaustive] +pub enum CuratorStatusInputSectionsItem { + #[serde(rename = "proposals")] + Proposals, + #[serde(rename = "flagged")] + Flagged, + #[serde(rename = "stale")] + Stale, +} + +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[non_exhaustive] +pub struct CuratorStatusInput { + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub org: Option, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub namespace: Option, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub sections: Option>, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub limit: Option, +} +impl Default for CuratorStatusInput { + fn default() -> Self { + Self::new() + } +} +impl CuratorStatusInput { + pub fn new() -> Self { + Self { + org: None, + namespace: None, + sections: None, + limit: None, + } + } + pub fn org(mut self, org: impl Into) -> Self { + self.org = Some(org.into()); + self + } + pub fn namespace(mut self, namespace: impl Into) -> Self { + self.namespace = Some(namespace.into()); + self + } + pub fn sections(mut self, sections: Vec) -> Self { + self.sections = Some(sections); + self + } + pub fn limit(mut self, limit: impl Into) -> Self { + self.limit = Some(limit.into()); + self + } + pub async fn send( + self, + client: &crate::Client, + options: crate::CallOptions, + ) -> Result, crate::CallFailure> { + client.call("curator.status", &self, options).await + } +} + #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] #[non_exhaustive] pub enum DecisionRowStage { @@ -20465,31 +20620,31 @@ pub enum DecisionRowStage { #[non_exhaustive] pub struct DecisionRow { pub memory_key: String, - #[serde(default = "default_955")] + #[serde(default = "default_971")] pub category: String, - #[serde(default = "default_956")] + #[serde(default = "default_972")] pub scenario: String, - #[serde(default = "default_957")] + #[serde(default = "default_973")] pub reasoning: String, - #[serde(default = "default_958")] + #[serde(default = "default_974")] pub outcome: String, - #[serde(default = "default_959")] + #[serde(default = "default_975")] pub alternatives: Vec, - #[serde(default = "default_960")] + #[serde(default = "default_976")] pub confidence: Option, - #[serde(default = "default_961")] + #[serde(default = "default_977")] pub decision_maker: String, - #[serde(default = "default_962")] + #[serde(default = "default_978")] pub run_id: String, - #[serde(default = "default_963")] + #[serde(default = "default_979")] pub realized_outcome: String, - #[serde(default = "default_964")] + #[serde(default = "default_980")] pub success: Option, - #[serde(default = "default_965")] + #[serde(default = "default_981")] pub made_at: String, - #[serde(default = "default_966")] + #[serde(default = "default_982")] pub stage: DecisionRowStage, - #[serde(default = "default_967")] + #[serde(default = "default_983")] pub similarity: f64, } @@ -20501,7 +20656,7 @@ pub struct ChainNodeRow { pub relation: String, pub direction: String, pub via: String, - #[serde(default = "default_969")] + #[serde(default = "default_985")] pub decision: Option, } @@ -20509,7 +20664,7 @@ pub struct ChainNodeRow { #[non_exhaustive] pub struct DecisionChainOutput { pub seed: String, - #[serde(default = "default_968")] + #[serde(default = "default_984")] pub seed_decision: Option, pub nodes: Vec, } @@ -20594,7 +20749,7 @@ impl DecisionChainInput { pub struct DecisionOutcomeOutput { pub memory_key: String, pub updated: bool, - #[serde(default = "default_970")] + #[serde(default = "default_986")] pub memories_credited: Integer, } @@ -20672,7 +20827,7 @@ impl DecisionOutcomeInput { #[non_exhaustive] pub struct DecisionPrecedentsOutput { pub precedents: Vec, - #[serde(default = "default_971")] + #[serde(default = "default_987")] pub embedding_model: String, } @@ -20767,11 +20922,11 @@ impl DecisionPrecedentsInput { pub struct DecisionRecordOutput { pub memory_key: String, pub record_id: String, - #[serde(default = "default_972")] + #[serde(default = "default_988")] pub superseded_prior: bool, - #[serde(default = "default_973")] + #[serde(default = "default_989")] pub edges_written: Integer, - #[serde(default = "default_974")] + #[serde(default = "default_990")] pub next: String, } @@ -21047,7 +21202,7 @@ pub enum ErasureExportOutputScopeType { pub struct ErasureExportSection { pub rows: Vec>, pub count: Integer, - #[serde(default = "default_975")] + #[serde(default = "default_991")] pub truncated: bool, } @@ -21160,17 +21315,17 @@ pub struct ErasureListRow { pub requester: String, pub status: ErasureListRowStatus, pub requested_at: String, - #[serde(default = "default_976")] + #[serde(default = "default_992")] pub completed_at: Option, - #[serde(default = "default_977")] + #[serde(default = "default_993")] pub failure_reason: String, - #[serde(default = "default_978")] + #[serde(default = "default_994")] pub steps_completed_count: Integer, - #[serde(default = "default_979")] + #[serde(default = "default_995")] pub reversals_count: Integer, - #[serde(default = "default_980")] + #[serde(default = "default_996")] pub residue_count: Integer, - #[serde(default = "default_981")] + #[serde(default = "default_997")] pub verified_at: Option, } @@ -21267,7 +21422,7 @@ pub enum ErasureRequestOutputStatus { pub struct ErasureStepResult { pub step: String, pub rows_affected: Integer, - #[serde(default = "default_982")] + #[serde(default = "default_998")] pub notes: String, } @@ -21278,21 +21433,21 @@ pub struct ErasureRequestOutput { pub status: ErasureRequestOutputStatus, pub steps: Vec, pub requested_at: String, - #[serde(default = "default_983")] + #[serde(default = "default_999")] pub completed_at: Option, - #[serde(default = "default_984")] + #[serde(default = "default_1000")] pub residue_count: Integer, - #[serde(default = "default_985")] + #[serde(default = "default_1001")] pub residue: std::collections::HashMap, - #[serde(default = "default_986")] + #[serde(default = "default_1002")] pub verified_at: Option, - #[serde(default = "default_987")] + #[serde(default = "default_1003")] pub census: Option>, - #[serde(default = "default_988")] + #[serde(default = "default_1004")] pub purge: bool, - #[serde(default = "default_989")] + #[serde(default = "default_1005")] pub failure_reason: String, - #[serde(default = "default_990")] + #[serde(default = "default_1006")] pub steps_completed: Vec, } @@ -21404,33 +21559,33 @@ pub enum ErasureStatusOutputStatus { pub struct ErasureStatusOutput { pub found: bool, pub erasure_id: String, - #[serde(default = "default_991")] + #[serde(default = "default_1007")] pub org: Option, - #[serde(default = "default_992")] + #[serde(default = "default_1008")] pub scope_type: Option, - #[serde(default = "default_993")] + #[serde(default = "default_1009")] pub scope_value: Option, - #[serde(default = "default_994")] + #[serde(default = "default_1010")] pub requester: Option, - #[serde(default = "default_995")] + #[serde(default = "default_1011")] pub status: Option, - #[serde(default = "default_996")] + #[serde(default = "default_1012")] pub current_step: Option, - #[serde(default = "default_997")] + #[serde(default = "default_1013")] pub requested_at: Option, - #[serde(default = "default_998")] + #[serde(default = "default_1014")] pub completed_at: Option, - #[serde(default = "default_999")] + #[serde(default = "default_1015")] pub failure_reason: Option, - #[serde(default = "default_1000")] + #[serde(default = "default_1016")] pub residue_count: Integer, - #[serde(default = "default_1001")] + #[serde(default = "default_1017")] pub residue: std::collections::HashMap, - #[serde(default = "default_1002")] + #[serde(default = "default_1018")] pub verified_at: Option, - #[serde(default = "default_1003")] + #[serde(default = "default_1019")] pub census: Option>, - #[serde(default = "default_1004")] + #[serde(default = "default_1020")] pub purge: bool, } @@ -21467,9 +21622,9 @@ pub enum ExtractionPolicyOutputScope { #[non_exhaustive] pub struct NamespacePolicy { pub namespace: String, - #[serde(default = "default_1010")] + #[serde(default = "default_1026")] pub updated_by: String, - #[serde(default = "default_1011")] + #[serde(default = "default_1027")] pub updated_at: Option, } @@ -21478,17 +21633,17 @@ pub struct NamespacePolicy { pub struct ExtractionPolicyOutput { pub org: String, pub scope: ExtractionPolicyOutputScope, - #[serde(default = "default_1005")] + #[serde(default = "default_1021")] pub namespace: String, - #[serde(default = "default_1006")] + #[serde(default = "default_1022")] pub policy: String, - #[serde(default = "default_1007")] + #[serde(default = "default_1023")] pub updated_by: String, - #[serde(default = "default_1008")] + #[serde(default = "default_1024")] pub updated_at: Option, - #[serde(default = "default_1009")] + #[serde(default = "default_1025")] pub effective: String, - #[serde(default = "default_1012")] + #[serde(default = "default_1028")] pub namespace_policies: Vec, } @@ -21722,13 +21877,13 @@ pub struct FactRow { pub object: String, pub co_occur: Integer, pub last_seen: String, - #[serde(default = "default_1013")] + #[serde(default = "default_1029")] pub provenance: String, - #[serde(default = "default_1014")] + #[serde(default = "default_1030")] pub source_keys: Vec, - #[serde(default = "default_1015")] + #[serde(default = "default_1031")] pub sources: Vec, - #[serde(default = "default_1016")] + #[serde(default = "default_1032")] pub stale: bool, } @@ -21736,7 +21891,7 @@ pub struct FactRow { #[non_exhaustive] pub struct FactsListOutput { pub rows: Vec, - #[serde(default = "default_1017")] + #[serde(default = "default_1033")] pub truncated: bool, } @@ -21955,14 +22110,14 @@ impl FactsListInput { pub struct PathEdge { pub entity_a: String, pub entity_b: String, - #[serde(default = "default_1018")] + #[serde(default = "default_1034")] pub relation: String, - #[serde(default = "default_1019")] + #[serde(default = "default_1035")] pub direction: String, pub co_occur: Integer, - #[serde(default = "default_1020")] + #[serde(default = "default_1036")] pub valid_from: Option, - #[serde(default = "default_1021")] + #[serde(default = "default_1037")] pub valid_to: Option, } @@ -22193,23 +22348,23 @@ pub struct TraversalNode { pub hop: Integer, pub cumulative_weight: f64, pub via_co_occur: Integer, - #[serde(default = "default_1023")] + #[serde(default = "default_1039")] pub hub: bool, - #[serde(default = "default_1024")] + #[serde(default = "default_1040")] pub degree: Integer, - #[serde(default = "default_1025")] + #[serde(default = "default_1041")] pub via_relation: String, - #[serde(default = "default_1026")] + #[serde(default = "default_1042")] pub via_direction: String, - #[serde(default = "default_1027")] + #[serde(default = "default_1043")] pub via_provenance: String, - #[serde(default = "default_1028")] + #[serde(default = "default_1044")] pub valid_from: String, - #[serde(default = "default_1029")] + #[serde(default = "default_1045")] pub valid_to: String, - #[serde(default = "default_1030")] + #[serde(default = "default_1046")] pub community_id: Option, - #[serde(default = "default_1031")] + #[serde(default = "default_1047")] pub path: Vec, } @@ -22217,12 +22372,12 @@ pub struct TraversalNode { #[non_exhaustive] pub struct FactsTraverseOutput { pub seed: String, - #[serde(default = "default_1022")] + #[serde(default = "default_1038")] pub seed_community_id: Option, pub nodes: Vec, - #[serde(default = "default_1032")] + #[serde(default = "default_1048")] pub truncated: bool, - #[serde(default = "default_1033")] + #[serde(default = "default_1049")] pub hubs: Vec, } @@ -22431,7 +22586,7 @@ pub struct GrantsApproveOutput { pub subject: String, pub namespace: String, pub decision: GrantsApproveOutputDecision, - #[serde(default = "default_1034")] + #[serde(default = "default_1050")] pub role: Option, pub decided_at: String, } @@ -22710,9 +22865,9 @@ pub struct GrantEntry { #[non_exhaustive] pub struct GrantsListOutput { pub rows: Vec, - #[serde(default = "default_1035")] + #[serde(default = "default_1051")] pub next_cursor: Option, - #[serde(default = "default_1036")] + #[serde(default = "default_1052")] pub truncated: bool, } @@ -22828,12 +22983,12 @@ pub enum PendingForMeEntryRequestedRole { #[non_exhaustive] pub struct PendingForMeEntry { pub namespace: String, - #[serde(default = "default_1037")] + #[serde(default = "default_1053")] pub kind: String, pub subject: String, pub current_role: PendingForMeEntryCurrentRole, pub requested_role: PendingForMeEntryRequestedRole, - #[serde(default = "default_1038")] + #[serde(default = "default_1054")] pub pending_since: Option, } @@ -22892,7 +23047,7 @@ impl GrantsPendingForMeInput { #[non_exhaustive] pub struct GrantsRevokeOutput { pub revoked: bool, - #[serde(default = "default_1039")] + #[serde(default = "default_1055")] pub revoked_at: Option, } @@ -23022,7 +23177,7 @@ impl GrantsShareAgentInput { #[non_exhaustive] pub struct GrantsUnshareAgentOutput { pub revoked: bool, - #[serde(default = "default_1040")] + #[serde(default = "default_1056")] pub revoked_at: Option, } @@ -23082,7 +23237,7 @@ pub enum HelpGetOutputAudience { pub struct HelpOutlineEntry { pub section: String, pub anchor: String, - #[serde(default = "default_1048")] + #[serde(default = "default_1064")] pub heading: String, } @@ -23092,21 +23247,21 @@ pub struct HelpGetOutput { pub available: bool, pub found: bool, pub path: String, - #[serde(default = "default_1041")] + #[serde(default = "default_1057")] pub title: String, - #[serde(default = "default_1042")] + #[serde(default = "default_1058")] pub section: String, - #[serde(default = "default_1043")] + #[serde(default = "default_1059")] pub anchor: String, - #[serde(default = "default_1044")] + #[serde(default = "default_1060")] pub audience: HelpGetOutputAudience, - #[serde(default = "default_1045")] + #[serde(default = "default_1061")] pub text: String, - #[serde(default = "default_1046")] + #[serde(default = "default_1062")] pub truncated: bool, - #[serde(default = "default_1047")] + #[serde(default = "default_1063")] pub next_offset: Integer, - #[serde(default = "default_1049")] + #[serde(default = "default_1065")] pub sections: Vec, } @@ -23251,21 +23406,21 @@ pub struct InboxPayload { pub inbox: String, pub owner_agent: String, pub owner_namespace: String, - #[serde(default = "default_1050")] + #[serde(default = "default_1066")] pub description: String, - #[serde(default = "default_1051")] + #[serde(default = "default_1067")] pub posters: Vec, - #[serde(default = "default_1052")] + #[serde(default = "default_1068")] 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_1053")] + #[serde(default = "default_1069")] pub webhook_url: String, - #[serde(default = "default_1054")] + #[serde(default = "default_1070")] pub created_by: String, - #[serde(default = "default_1055")] + #[serde(default = "default_1071")] pub owner_subject: String, pub created_at: String, pub updated_at: String, @@ -23375,9 +23530,9 @@ pub struct PolicyPayload { pub poster: String, pub kind: String, pub mode: PolicyPayloadMode, - #[serde(default = "default_1056")] + #[serde(default = "default_1072")] pub require_evidence: Vec, - #[serde(default = "default_1057")] + #[serde(default = "default_1073")] pub set_by: String, pub set_at: String, pub version: Integer, @@ -23447,7 +23602,7 @@ impl InboxPolicyListInput { pub struct InboxPolicySetOutput { #[serde(deserialize_with = "required_nullable")] pub policy: Option, - #[serde(default = "default_1058")] + #[serde(default = "default_1074")] pub removed: bool, } @@ -23576,15 +23731,15 @@ pub struct Principal { pub subject: String, pub label: String, pub kind: PrincipalKind, - #[serde(default = "default_1059")] + #[serde(default = "default_1075")] pub namespaces: Vec, - #[serde(default = "default_1060")] + #[serde(default = "default_1076")] pub roles: Vec, - #[serde(default = "default_1061")] + #[serde(default = "default_1077")] pub last_seen: Option, - #[serde(default = "default_1062")] + #[serde(default = "default_1078")] pub can_already_post: bool, - #[serde(default = "default_1063")] + #[serde(default = "default_1079")] pub listed: bool, } @@ -23946,15 +24101,15 @@ pub struct AnalysisColumn { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InsightsQueryOutput { - #[serde(default = "default_1064")] + #[serde(default = "default_1080")] pub columns: Vec, - #[serde(default = "default_1065")] + #[serde(default = "default_1081")] pub rows: Vec>, - #[serde(default = "default_1066")] + #[serde(default = "default_1082")] pub row_count: Integer, - #[serde(default = "default_1067")] + #[serde(default = "default_1083")] pub truncated: bool, - #[serde(default = "default_1068")] + #[serde(default = "default_1084")] pub sql_digest: String, } @@ -24253,32 +24408,32 @@ pub struct DatasetOut { pub dataset_id: String, pub source_uri: String, pub name: String, - #[serde(default = "default_1069")] + #[serde(default = "default_1085")] pub sheet: String, - #[serde(default = "default_1070")] + #[serde(default = "default_1086")] pub row_start: Integer, - #[serde(default = "default_1071")] + #[serde(default = "default_1087")] pub row_end: Integer, pub revision: Integer, pub snapshot_id: String, pub schema_state: String, pub columns: Vec, - #[serde(default = "default_1072")] + #[serde(default = "default_1088")] pub clarifications: Vec, pub row_count: Integer, - #[serde(default = "default_1073")] + #[serde(default = "default_1089")] pub rejected_rows: Integer, - #[serde(default = "default_1074")] + #[serde(default = "default_1090")] pub rejected: Vec, - #[serde(default = "default_1075")] + #[serde(default = "default_1091")] pub complete: bool, - #[serde(default = "default_1076")] + #[serde(default = "default_1092")] pub approved_by: String, - #[serde(default = "default_1077")] + #[serde(default = "default_1093")] pub approved_at: Option, - #[serde(default = "default_1078")] + #[serde(default = "default_1094")] pub created_at: Option, - #[serde(default = "default_1079")] + #[serde(default = "default_1095")] pub rows: Vec>, } @@ -24286,9 +24441,9 @@ pub struct DatasetOut { #[non_exhaustive] pub struct KnowledgeDatasetApproveOutput { pub found: bool, - #[serde(default = "default_1080")] + #[serde(default = "default_1096")] pub dataset: Option, - #[serde(default = "default_1081")] + #[serde(default = "default_1097")] pub retyped: bool, } @@ -24382,9 +24537,9 @@ impl KnowledgeDatasetApproveInput { #[non_exhaustive] pub struct KnowledgeDatasetGetOutput { pub found: bool, - #[serde(default = "default_1082")] + #[serde(default = "default_1098")] pub revision: Integer, - #[serde(default = "default_1083")] + #[serde(default = "default_1099")] pub datasets: Vec, } @@ -24457,7 +24612,7 @@ impl KnowledgeDatasetGetInput { pub struct KnowledgeDocCluster { pub content_sha256: String, pub doc_count: Integer, - #[serde(default = "default_1084")] + #[serde(default = "default_1100")] pub docs: Vec>, } @@ -24467,16 +24622,16 @@ pub struct KnowledgeChunkCluster { pub content_sha256: String, pub chunk_count: Integer, pub uri_count: Integer, - #[serde(default = "default_1086")] + #[serde(default = "default_1102")] pub samples: Vec>, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeDedupListOutput { - #[serde(default = "default_1085")] + #[serde(default = "default_1101")] pub doc_clusters: Vec, - #[serde(default = "default_1087")] + #[serde(default = "default_1103")] pub chunk_clusters: Vec, } @@ -24553,7 +24708,7 @@ pub struct KnowledgeDedupResolveOutput { pub canonical_uri: String, pub duplicate_uri: String, pub decision: String, - #[serde(default = "default_1088")] + #[serde(default = "default_1104")] pub superseded_uri: String, } @@ -24672,24 +24827,24 @@ impl KnowledgeDeleteInput { #[non_exhaustive] pub struct KnowledgeFormat { pub format: String, - #[serde(default = "default_1089")] + #[serde(default = "default_1105")] pub extensions: Vec, - #[serde(default = "default_1090")] + #[serde(default = "default_1106")] pub media_types: Vec, - #[serde(default = "default_1091")] + #[serde(default = "default_1107")] pub available: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeFormatsOutput { - #[serde(default = "default_1092")] + #[serde(default = "default_1108")] pub formats: Vec, - #[serde(default = "default_1093")] + #[serde(default = "default_1109")] pub max_upload_bytes: Integer, - #[serde(default = "default_1094")] + #[serde(default = "default_1110")] pub refused_extensions: Vec, - #[serde(default = "default_1095")] + #[serde(default = "default_1111")] pub default_format: String, } @@ -24791,7 +24946,7 @@ impl KnowledgeGapsDraftInput { pub struct KnowledgeGap { pub gap_id: String, pub head: String, - #[serde(default = "default_1096")] + #[serde(default = "default_1112")] pub samples: Vec, pub askers: Integer, pub asks: Integer, @@ -24801,13 +24956,13 @@ pub struct KnowledgeGap { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeGapsListOutput { - #[serde(default = "default_1097")] + #[serde(default = "default_1113")] pub gaps: Vec, - #[serde(default = "default_1098")] + #[serde(default = "default_1114")] pub built_at: Option, - #[serde(default = "default_1099")] + #[serde(default = "default_1115")] pub capturing: Option, - #[serde(default = "default_1100")] + #[serde(default = "default_1116")] pub enabled: bool, } @@ -24873,7 +25028,7 @@ pub struct KnowledgeIngestOutput { pub ingestion_id: String, pub state: String, pub source_uri: String, - #[serde(default = "default_1101")] + #[serde(default = "default_1117")] pub namespace: String, } @@ -25092,9 +25247,9 @@ impl KnowledgeIngestInput { #[non_exhaustive] pub struct KnowledgeIngestCancelOutput { pub found: bool, - #[serde(default = "default_1102")] + #[serde(default = "default_1118")] pub state: String, - #[serde(default = "default_1103")] + #[serde(default = "default_1119")] pub cancelled: bool, } @@ -25145,39 +25300,39 @@ impl KnowledgeIngestCancelInput { pub struct KnowledgeIngestStatusOutput { pub found: bool, pub ingestion_id: String, - #[serde(default = "default_1104")] + #[serde(default = "default_1120")] pub source_uri: String, - #[serde(default = "default_1105")] + #[serde(default = "default_1121")] pub state: String, - #[serde(default = "default_1106")] + #[serde(default = "default_1122")] pub stage: String, - #[serde(default = "default_1107")] + #[serde(default = "default_1123")] pub attempts: Integer, - #[serde(default = "default_1108")] + #[serde(default = "default_1124")] pub error_code: String, - #[serde(default = "default_1109")] + #[serde(default = "default_1125")] pub error_message: String, - #[serde(default = "default_1110")] + #[serde(default = "default_1126")] pub format: String, - #[serde(default = "default_1111")] + #[serde(default = "default_1127")] pub coverage: Option>, - #[serde(default = "default_1112")] + #[serde(default = "default_1128")] pub warnings: Vec, - #[serde(default = "default_1113")] + #[serde(default = "default_1129")] pub chunks: Integer, - #[serde(default = "default_1114")] + #[serde(default = "default_1130")] pub revision: Integer, - #[serde(default = "default_1115")] + #[serde(default = "default_1131")] pub expected_revision: Option, - #[serde(default = "default_1116")] + #[serde(default = "default_1132")] pub filename: String, - #[serde(default = "default_1117")] + #[serde(default = "default_1133")] pub retrieval: String, - #[serde(default = "default_1118")] + #[serde(default = "default_1134")] pub cancel_requested: bool, - #[serde(default = "default_1119")] + #[serde(default = "default_1135")] pub created_at: Option, - #[serde(default = "default_1120")] + #[serde(default = "default_1136")] pub updated_at: Option, } @@ -25234,21 +25389,21 @@ pub struct DocumentCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct DocumentTotals { - #[serde(default = "default_1121")] + #[serde(default = "default_1137")] pub live: Option, - #[serde(default = "default_1122")] + #[serde(default = "default_1138")] pub deleted: Option, - #[serde(default = "default_1123")] + #[serde(default = "default_1139")] pub newest_ingested_at: Option, - #[serde(default = "default_1124")] + #[serde(default = "default_1140")] pub by_format: Vec, - #[serde(default = "default_1125")] + #[serde(default = "default_1141")] pub by_source_scheme: Vec, - #[serde(default = "default_1126")] + #[serde(default = "default_1142")] pub earlier_revisions: Option, - #[serde(default = "default_1127")] + #[serde(default = "default_1143")] pub unnumbered: Option, - #[serde(default = "default_1128")] + #[serde(default = "default_1144")] pub retired_versions: Option, } @@ -25263,15 +25418,15 @@ pub struct ChunkModelCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ChunkTotals { - #[serde(default = "default_1129")] + #[serde(default = "default_1145")] pub embedder_model: String, - #[serde(default = "default_1130")] + #[serde(default = "default_1146")] pub live: Option, - #[serde(default = "default_1131")] + #[serde(default = "default_1147")] pub searchable: Option, - #[serde(default = "default_1132")] + #[serde(default = "default_1148")] pub unembedded: Option, - #[serde(default = "default_1133")] + #[serde(default = "default_1149")] pub by_model: Vec, } @@ -25296,9 +25451,9 @@ pub struct DocumentDecisions { #[non_exhaustive] pub struct DecisionTotals { pub definition: String, - #[serde(default = "default_1134")] + #[serde(default = "default_1150")] pub refs: Vec, - #[serde(default = "default_1135")] + #[serde(default = "default_1151")] pub all_documents: Option, } @@ -25313,7 +25468,7 @@ pub struct DocumentChunks { pub min_chars: Integer, pub median_chars: Integer, pub max_chars: Integer, - #[serde(default = "default_1138")] + #[serde(default = "default_1154")] pub models: Vec, } @@ -25363,11 +25518,11 @@ pub struct IngestJob { pub failure_class: IngestJobFailureClass, pub queued_at: String, pub updated_at: String, - #[serde(default = "default_1143")] + #[serde(default = "default_1159")] pub ended_at: Option, - #[serde(default = "default_1144")] + #[serde(default = "default_1160")] pub next_attempt_at: Option, - #[serde(default = "default_1145")] + #[serde(default = "default_1161")] pub stalled: bool, } @@ -25377,11 +25532,11 @@ pub struct SourceJobs { pub source_uri: String, pub jobs: Integer, pub open_jobs: Integer, - #[serde(default = "default_1142")] + #[serde(default = "default_1158")] pub open_ingestion_id: String, pub latest: IngestJob, pub current: IngestJob, - #[serde(default = "default_1146")] + #[serde(default = "default_1162")] pub replaced: bool, } @@ -25394,18 +25549,18 @@ pub struct InspectDocument { pub source_scheme: String, pub version: Integer, pub revision: Integer, - #[serde(default = "default_1136")] + #[serde(default = "default_1152")] pub ingestion_id: String, pub ingested_at: String, - #[serde(default = "default_1137")] + #[serde(default = "default_1153")] pub retired_versions: Option, - #[serde(default = "default_1139")] + #[serde(default = "default_1155")] pub chunks: Option, - #[serde(default = "default_1140")] + #[serde(default = "default_1156")] pub decisions: Option, - #[serde(default = "default_1141")] + #[serde(default = "default_1157")] pub extraction: Option, - #[serde(default = "default_1147")] + #[serde(default = "default_1163")] pub jobs: Option, } @@ -25450,40 +25605,40 @@ pub struct DocumentFinding { pub kind: DocumentFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1150")] + #[serde(default = "default_1166")] pub window_seconds: Option, - #[serde(default = "default_1151")] + #[serde(default = "default_1167")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1152")] + #[serde(default = "default_1168")] pub evidence: Vec, - #[serde(default = "default_1153")] + #[serde(default = "default_1169")] pub exceptions: String, - #[serde(default = "default_1154")] + #[serde(default = "default_1170")] pub uncertainty: String, pub code: String, pub severity: DocumentFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1155")] + #[serde(default = "default_1171")] pub samples: Vec, - #[serde(default = "default_1156")] + #[serde(default = "default_1172")] pub ingested: Integer, - #[serde(default = "default_1157")] + #[serde(default = "default_1173")] pub ingested_samples: Vec, pub detail: String, pub remedy: String, - #[serde(default = "default_1158")] + #[serde(default = "default_1174")] pub refs: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ReportCoverage { - #[serde(default = "default_1160")] + #[serde(default = "default_1176")] pub rules_run: Vec, - #[serde(default = "default_1161")] + #[serde(default = "default_1177")] pub rules_skipped: Vec, pub complete: bool, } @@ -25491,43 +25646,43 @@ pub struct ReportCoverage { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct IngestionTotals { - #[serde(default = "default_1162")] + #[serde(default = "default_1178")] pub sources: Option, - #[serde(default = "default_1163")] + #[serde(default = "default_1179")] pub without_document: Option, - #[serde(default = "default_1164")] + #[serde(default = "default_1180")] pub replaced: Option, - #[serde(default = "default_1165")] + #[serde(default = "default_1181")] pub pending: Option, - #[serde(default = "default_1166")] + #[serde(default = "default_1182")] pub processing: Option, - #[serde(default = "default_1167")] + #[serde(default = "default_1183")] pub stalled: Option, - #[serde(default = "default_1168")] + #[serde(default = "default_1184")] pub ready: Option, - #[serde(default = "default_1169")] + #[serde(default = "default_1185")] pub partial: Option, - #[serde(default = "default_1170")] + #[serde(default = "default_1186")] pub failed: Option, - #[serde(default = "default_1171")] + #[serde(default = "default_1187")] pub cancelled: Option, - #[serde(default = "default_1172")] + #[serde(default = "default_1188")] pub oldest_open_queued_at: Option, pub worker_enabled: bool, - #[serde(default = "default_1173")] + #[serde(default = "default_1189")] pub extractor_configured: Option, - #[serde(default = "default_1174")] + #[serde(default = "default_1190")] pub without_document_listed: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ExtractionTotals { - #[serde(default = "default_1175")] + #[serde(default = "default_1191")] pub documents: Option, - #[serde(default = "default_1176")] + #[serde(default = "default_1192")] pub incomplete: Option, - #[serde(default = "default_1177")] + #[serde(default = "default_1193")] pub lost: Vec, } @@ -25557,31 +25712,31 @@ pub struct IngestFinding { pub kind: IngestFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1178")] + #[serde(default = "default_1194")] pub window_seconds: Option, - #[serde(default = "default_1179")] + #[serde(default = "default_1195")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1180")] + #[serde(default = "default_1196")] pub evidence: Vec, - #[serde(default = "default_1181")] + #[serde(default = "default_1197")] pub exceptions: String, - #[serde(default = "default_1182")] + #[serde(default = "default_1198")] pub uncertainty: String, pub code: String, pub severity: IngestFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1183")] + #[serde(default = "default_1199")] pub samples: Vec, - #[serde(default = "default_1184")] + #[serde(default = "default_1200")] pub ingestion_ids: Vec, - #[serde(default = "default_1185")] + #[serde(default = "default_1201")] pub without_document: Integer, pub detail: String, pub remedy: String, - #[serde(default = "default_1186")] + #[serde(default = "default_1202")] pub refs: Vec, } @@ -25608,20 +25763,20 @@ pub struct KnowledgeInspectOutput { pub documents: DocumentTotals, pub chunks: ChunkTotals, pub decisions: DecisionTotals, - #[serde(default = "default_1148")] + #[serde(default = "default_1164")] pub listed: Vec, - #[serde(default = "default_1149")] + #[serde(default = "default_1165")] pub listed_complete: bool, - #[serde(default = "default_1159")] + #[serde(default = "default_1175")] pub findings: Vec, pub coverage: ReportCoverage, pub ingestions: IngestionTotals, pub extraction: ExtractionTotals, - #[serde(default = "default_1187")] + #[serde(default = "default_1203")] pub ingest_findings: Vec, - #[serde(default = "default_1188")] + #[serde(default = "default_1204")] pub memory_findings: Vec, - #[serde(default = "default_1189")] + #[serde(default = "default_1205")] pub skipped: Vec, } @@ -25768,7 +25923,7 @@ pub struct KnowledgeListEntry { #[non_exhaustive] pub struct KnowledgeListOutput { pub rows: Vec, - #[serde(default = "default_1190")] + #[serde(default = "default_1206")] pub next_cursor: Option, } @@ -25934,9 +26089,9 @@ pub enum KnowledgeMoveResultReason { #[non_exhaustive] pub struct KnowledgeMoveResult { pub source_uri: String, - #[serde(default = "default_1192")] + #[serde(default = "default_1208")] pub moved: bool, - #[serde(default = "default_1193")] + #[serde(default = "default_1209")] pub reason: KnowledgeMoveResultReason, } @@ -25944,9 +26099,9 @@ pub struct KnowledgeMoveResult { #[non_exhaustive] pub struct KnowledgeMoveOutput { pub found: bool, - #[serde(default = "default_1191")] + #[serde(default = "default_1207")] pub to_namespace: String, - #[serde(default = "default_1194")] + #[serde(default = "default_1210")] pub results: Vec, } @@ -26012,17 +26167,17 @@ pub struct OutlineEntry { pub struct KnowledgeOutlineOutput { pub found: bool, pub source_uri: String, - #[serde(default = "default_1195")] + #[serde(default = "default_1211")] pub title: String, - #[serde(default = "default_1196")] + #[serde(default = "default_1212")] pub structured: bool, - #[serde(default = "default_1197")] + #[serde(default = "default_1213")] pub chunk_count: Integer, - #[serde(default = "default_1198")] + #[serde(default = "default_1214")] pub sections: Vec, - #[serde(default = "default_1199")] + #[serde(default = "default_1215")] pub section_content: Option, - #[serde(default = "default_1200")] + #[serde(default = "default_1216")] pub section_chunk_idxs: Vec, } @@ -26129,12 +26284,12 @@ pub struct QueryReceipt { pub struct KnowledgeQueryOutput { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1201")] + #[serde(default = "default_1217")] pub row_ids: Vec>, - #[serde(default = "default_1202")] + #[serde(default = "default_1218")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1203")] + #[serde(default = "default_1219")] pub incomplete: Vec, pub receipt: QueryReceipt, } @@ -26807,9 +26962,9 @@ pub struct QueryHistoryListOutputQueryHistorySource { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct QueryHistoryListOutput { - #[serde(default = "default_1204")] + #[serde(default = "default_1220")] pub enabled: bool, - #[serde(default = "default_1205")] + #[serde(default = "default_1221")] pub sources: Vec, } @@ -26940,7 +27095,7 @@ impl QueryHistoryRemoveInput { #[non_exhaustive] pub struct KnowledgeReadsOutput { pub window_days: Integer, - #[serde(default = "default_1206")] + #[serde(default = "default_1222")] pub reads: Vec>, } @@ -27043,15 +27198,15 @@ pub enum KnowledgeRestoreOutputOriginal { #[non_exhaustive] pub struct KnowledgeRestoreOutput { pub restored: bool, - #[serde(default = "default_1207")] + #[serde(default = "default_1223")] pub reason: KnowledgeRestoreOutputReason, - #[serde(default = "default_1208")] + #[serde(default = "default_1224")] pub doc_id: String, - #[serde(default = "default_1209")] + #[serde(default = "default_1225")] pub revision: Option, - #[serde(default = "default_1210")] + #[serde(default = "default_1226")] pub chunks_restored: Integer, - #[serde(default = "default_1211")] + #[serde(default = "default_1227")] pub original: KnowledgeRestoreOutputOriginal, } @@ -27124,35 +27279,35 @@ pub struct KnowledgeSourceCrawlProof { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceProbe { - #[serde(default = "default_1216")] + #[serde(default = "default_1232")] pub documents: Integer, - #[serde(default = "default_1217")] + #[serde(default = "default_1233")] pub more: bool, - #[serde(default = "default_1218")] + #[serde(default = "default_1234")] pub sample: Vec, - #[serde(default = "default_1219")] + #[serde(default = "default_1235")] pub checked: Integer, - #[serde(default = "default_1220")] + #[serde(default = "default_1236")] pub sampled: bool, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceAddOutput { - #[serde(default = "default_1212")] + #[serde(default = "default_1228")] pub crawl_proof: Option, pub name: String, pub kind: String, pub namespace: String, - #[serde(default = "default_1213")] + #[serde(default = "default_1229")] pub items: Vec>, - #[serde(default = "default_1214")] + #[serde(default = "default_1230")] pub include: Vec, - #[serde(default = "default_1215")] + #[serde(default = "default_1231")] pub config: std::collections::HashMap, - #[serde(default = "default_1221")] + #[serde(default = "default_1237")] pub probe: KnowledgeSourceProbe, - #[serde(default = "default_1222")] + #[serde(default = "default_1238")] pub dry_run: bool, } @@ -27369,21 +27524,21 @@ impl KnowledgeSourceAddInput { #[non_exhaustive] pub struct KnowledgeSourceCheckOutput { pub name: String, - #[serde(default = "default_1223")] + #[serde(default = "default_1239")] pub reachable: bool, - #[serde(default = "default_1224")] + #[serde(default = "default_1240")] pub documents: Integer, - #[serde(default = "default_1225")] + #[serde(default = "default_1241")] pub more: bool, - #[serde(default = "default_1226")] + #[serde(default = "default_1242")] pub sample: Vec, - #[serde(default = "default_1227")] + #[serde(default = "default_1243")] pub checked: Integer, - #[serde(default = "default_1228")] + #[serde(default = "default_1244")] pub sampled: bool, - #[serde(default = "default_1229")] + #[serde(default = "default_1245")] pub summary: String, - #[serde(default = "default_1230")] + #[serde(default = "default_1246")] pub checked_at: String, } @@ -27432,37 +27587,37 @@ impl KnowledgeSourceCheckInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceSync { - #[serde(default = "default_1241")] + #[serde(default = "default_1257")] pub requested_at: String, - #[serde(default = "default_1242")] + #[serde(default = "default_1258")] pub last_synced_at: String, - #[serde(default = "default_1243")] + #[serde(default = "default_1259")] pub status: String, - #[serde(default = "default_1244")] + #[serde(default = "default_1260")] pub documents_seen: Integer, - #[serde(default = "default_1245")] + #[serde(default = "default_1261")] pub changed: Integer, - #[serde(default = "default_1246")] + #[serde(default = "default_1262")] pub removed: Integer, - #[serde(default = "default_1247")] + #[serde(default = "default_1263")] pub unconverted: Integer, - #[serde(default = "default_1248")] + #[serde(default = "default_1264")] pub unconverted_reasons: std::collections::HashMap, - #[serde(default = "default_1249")] + #[serde(default = "default_1265")] pub skipped: Integer, - #[serde(default = "default_1250")] + #[serde(default = "default_1266")] pub error: String, - #[serde(default = "default_1251")] + #[serde(default = "default_1267")] pub pending_extract: Integer, - #[serde(default = "default_1252")] + #[serde(default = "default_1268")] pub last_extracted_at: String, - #[serde(default = "default_1253")] + #[serde(default = "default_1269")] pub extracted: Integer, - #[serde(default = "default_1254")] + #[serde(default = "default_1270")] pub flagged_pinned: Integer, - #[serde(default = "default_1255")] + #[serde(default = "default_1271")] pub unextracted: Integer, - #[serde(default = "default_1256")] + #[serde(default = "default_1272")] pub extract_error: String, } @@ -27470,11 +27625,11 @@ pub struct KnowledgeSourceSync { #[non_exhaustive] pub struct KnowledgeSourceDocument { pub source_uri: String, - #[serde(default = "default_1258")] + #[serde(default = "default_1274")] pub title: String, - #[serde(default = "default_1259")] + #[serde(default = "default_1275")] pub source_revision: String, - #[serde(default = "default_1260")] + #[serde(default = "default_1276")] pub ingested_at: String, } @@ -27483,29 +27638,29 @@ pub struct KnowledgeSourceDocument { pub struct KnowledgeSourceInspectOutput { pub name: String, pub kind: String, - #[serde(default = "default_1231")] + #[serde(default = "default_1247")] pub credential_mode: String, - #[serde(default = "default_1232")] + #[serde(default = "default_1248")] pub owned_by_caller: bool, - #[serde(default = "default_1233")] + #[serde(default = "default_1249")] pub access: String, - #[serde(default = "default_1234")] + #[serde(default = "default_1250")] pub crawl_options: std::collections::HashMap, - #[serde(default = "default_1235")] + #[serde(default = "default_1251")] pub owner_subject: String, - #[serde(default = "default_1236")] + #[serde(default = "default_1252")] pub items: Vec>, - #[serde(default = "default_1237")] + #[serde(default = "default_1253")] pub include: Vec, - #[serde(default = "default_1238")] + #[serde(default = "default_1254")] pub config: std::collections::HashMap, - #[serde(default = "default_1239")] + #[serde(default = "default_1255")] pub created_by: String, - #[serde(default = "default_1240")] + #[serde(default = "default_1256")] pub created_at: String, - #[serde(default = "default_1257")] + #[serde(default = "default_1273")] pub sync: KnowledgeSourceSync, - #[serde(default = "default_1261")] + #[serde(default = "default_1277")] pub documents: Vec, } @@ -27558,40 +27713,40 @@ impl KnowledgeSourceInspectInput { pub struct KnowledgeSourceEntry { pub name: String, pub kind: String, - #[serde(default = "default_1262")] + #[serde(default = "default_1278")] pub credential_mode: String, - #[serde(default = "default_1263")] + #[serde(default = "default_1279")] pub owned_by_caller: bool, - #[serde(default = "default_1264")] + #[serde(default = "default_1280")] pub access: String, - #[serde(default = "default_1265")] + #[serde(default = "default_1281")] pub crawl_options: std::collections::HashMap, - #[serde(default = "default_1266")] + #[serde(default = "default_1282")] pub owner_subject: String, - #[serde(default = "default_1267")] + #[serde(default = "default_1283")] pub items: Vec>, - #[serde(default = "default_1268")] + #[serde(default = "default_1284")] pub include: Vec, - #[serde(default = "default_1269")] + #[serde(default = "default_1285")] pub config: std::collections::HashMap, - #[serde(default = "default_1270")] + #[serde(default = "default_1286")] pub created_by: String, - #[serde(default = "default_1271")] + #[serde(default = "default_1287")] pub created_at: String, - #[serde(default = "default_1272")] + #[serde(default = "default_1288")] pub sync: KnowledgeSourceSync, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceListOutput { - #[serde(default = "default_1273")] + #[serde(default = "default_1289")] pub sources: Vec, - #[serde(default = "default_1274")] + #[serde(default = "default_1290")] pub enabled: bool, - #[serde(default = "default_1275")] + #[serde(default = "default_1291")] pub accepts_sources: bool, - #[serde(default = "default_1276")] + #[serde(default = "default_1292")] pub self_service: bool, } @@ -27686,7 +27841,7 @@ impl std::fmt::Debug for KnowledgeSourceLiveDocument { #[non_exhaustive] pub struct KnowledgeSourceLiveOutput { pub status: KnowledgeSourceLiveOutputStatus, - #[serde(default = "default_1277")] + #[serde(default = "default_1293")] pub document: Option, } impl std::fmt::Debug for KnowledgeSourceLiveOutput { @@ -27754,18 +27909,18 @@ impl KnowledgeSourceLiveInput { #[non_exhaustive] pub struct KnowledgeSourceParsedLink { pub link: String, - #[serde(default = "default_1278")] + #[serde(default = "default_1294")] pub kind: String, - #[serde(default = "default_1279")] + #[serde(default = "default_1295")] pub item: std::collections::HashMap, - #[serde(default = "default_1280")] + #[serde(default = "default_1296")] pub unreadable: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceParseLinksOutput { - #[serde(default = "default_1281")] + #[serde(default = "default_1297")] pub links: Vec, } @@ -27816,25 +27971,25 @@ impl KnowledgeSourceParseLinksInput { #[derive(Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct PushStatusOutput { - #[serde(default = "default_1282")] + #[serde(default = "default_1298")] pub enabled: bool, - #[serde(default = "default_1283")] + #[serde(default = "default_1299")] pub status: String, - #[serde(default = "default_1284")] + #[serde(default = "default_1300")] pub provider: String, - #[serde(default = "default_1285")] + #[serde(default = "default_1301")] pub generation: String, - #[serde(default = "default_1286")] + #[serde(default = "default_1302")] pub callback_url: String, - #[serde(default = "default_1287")] + #[serde(default = "default_1303")] pub provider_id: String, - #[serde(default = "default_1288")] + #[serde(default = "default_1304")] pub challenge_fingerprint: String, - #[serde(default = "default_1289")] + #[serde(default = "default_1305")] pub verification_token: String, - #[serde(default = "default_1290")] + #[serde(default = "default_1306")] pub channels: Integer, - #[serde(default = "default_1291")] + #[serde(default = "default_1307")] pub expires_at: f64, } impl std::fmt::Debug for PushStatusOutput { @@ -28079,7 +28234,7 @@ impl PushStatusInput { #[non_exhaustive] pub struct KnowledgeSourceRemoveOutput { pub name: String, - #[serde(default = "default_1292")] + #[serde(default = "default_1308")] pub documents_pending: Integer, } @@ -28141,12 +28296,12 @@ impl KnowledgeSourceRemoveInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceRotateOutput { - #[serde(default = "default_1293")] + #[serde(default = "default_1309")] pub crawl_proof: Option, pub name: String, - #[serde(default = "default_1294")] + #[serde(default = "default_1310")] pub probe: KnowledgeSourceProbe, - #[serde(default = "default_1295")] + #[serde(default = "default_1311")] pub rotated_at: String, } @@ -28198,7 +28353,7 @@ impl KnowledgeSourceRotateInput { #[non_exhaustive] pub struct KnowledgeSourceSyncNowOutput { pub name: String, - #[serde(default = "default_1296")] + #[serde(default = "default_1312")] pub enabled: bool, } @@ -28260,20 +28415,20 @@ impl KnowledgeSourceSyncNowInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceUpdateOutput { - #[serde(default = "default_1297")] + #[serde(default = "default_1313")] pub crawl_proof: Option, pub name: String, - #[serde(default = "default_1298")] + #[serde(default = "default_1314")] pub items: Vec>, - #[serde(default = "default_1299")] + #[serde(default = "default_1315")] pub include: Vec, - #[serde(default = "default_1300")] + #[serde(default = "default_1316")] pub config: std::collections::HashMap, - #[serde(default = "default_1301")] + #[serde(default = "default_1317")] pub added: Vec>, - #[serde(default = "default_1302")] + #[serde(default = "default_1318")] pub removed: Vec>, - #[serde(default = "default_1303")] + #[serde(default = "default_1319")] pub probe: KnowledgeSourceProbe, } @@ -28416,7 +28571,7 @@ pub enum WorkerApproveOutputStatus { #[non_exhaustive] pub struct WorkerApproveOutput { pub status: WorkerApproveOutputStatus, - #[serde(default = "default_1304")] + #[serde(default = "default_1320")] pub approval_generation: Option, } @@ -28516,9 +28671,9 @@ pub enum WorkerEnrollOutputStatus { #[non_exhaustive] pub struct WorkerEnrollOutput { pub status: WorkerEnrollOutputStatus, - #[serde(default = "default_1305")] + #[serde(default = "default_1321")] pub connection_id: Option, - #[serde(default = "default_1306")] + #[serde(default = "default_1322")] pub connection_generation: Option, } @@ -28607,19 +28762,19 @@ pub enum ReaderPolicy { #[non_exhaustive] pub struct WorkerPreviewOutput { pub status: WorkerPreviewOutputStatus, - #[serde(default = "default_1307")] + #[serde(default = "default_1323")] pub reader_policy: Option, - #[serde(default = "default_1308")] + #[serde(default = "default_1324")] pub stores_copy: Option, - #[serde(default = "default_1309")] + #[serde(default = "default_1325")] pub disclosure: Option, - #[serde(default = "default_1310")] + #[serde(default = "default_1326")] pub selected: Option, - #[serde(default = "default_1311")] + #[serde(default = "default_1327")] pub fingerprint: Option, - #[serde(default = "default_1312")] + #[serde(default = "default_1328")] pub evidence: Option, - #[serde(default = "default_1313")] + #[serde(default = "default_1329")] pub expires_at: Option, } @@ -28791,9 +28946,9 @@ pub struct WorkerProfileCursor { #[non_exhaustive] pub struct WorkerProfilesOutput { pub status: WorkerProfilesOutputStatus, - #[serde(default = "default_1314")] + #[serde(default = "default_1330")] pub profiles: Vec, - #[serde(default = "default_1315")] + #[serde(default = "default_1331")] pub next_page: Option, } @@ -28906,9 +29061,9 @@ pub enum WorkerRegisterOutputStatus { #[non_exhaustive] pub struct WorkerRegisterOutput { pub status: WorkerRegisterOutputStatus, - #[serde(default = "default_1316")] + #[serde(default = "default_1332")] pub source_id: Option, - #[serde(default = "default_1317")] + #[serde(default = "default_1333")] pub name: Option, } @@ -29025,9 +29180,9 @@ impl WorkerRegisterInput { pub struct CitedChunk { pub source_uri: String, pub chunk_idx: Integer, - #[serde(default = "default_1319")] + #[serde(default = "default_1335")] pub revision: Integer, - #[serde(default = "default_1320")] + #[serde(default = "default_1336")] pub locator: Option>, } @@ -29036,12 +29191,12 @@ pub struct CitedChunk { pub struct SynthesizeCalculation { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1327")] + #[serde(default = "default_1343")] pub row_ids: Vec>, - #[serde(default = "default_1328")] + #[serde(default = "default_1344")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1329")] + #[serde(default = "default_1345")] pub incomplete: Vec, pub receipt: QueryReceipt, pub citation: String, @@ -29055,23 +29210,23 @@ pub struct KnowledgeSynthesizeOutput { pub chunks_read: Integer, pub documents: Integer, pub reduce_rounds: Integer, - #[serde(default = "default_1318")] + #[serde(default = "default_1334")] pub citations: Vec, - #[serde(default = "default_1321")] + #[serde(default = "default_1337")] pub cited_chunks: Vec, - #[serde(default = "default_1322")] + #[serde(default = "default_1338")] pub unsupported_citations: Vec, - #[serde(default = "default_1323")] + #[serde(default = "default_1339")] pub truncated: bool, - #[serde(default = "default_1324")] + #[serde(default = "default_1340")] pub abstain: bool, - #[serde(default = "default_1325")] + #[serde(default = "default_1341")] pub abstain_reason: String, - #[serde(default = "default_1326")] + #[serde(default = "default_1342")] pub clarification: String, - #[serde(default = "default_1330")] + #[serde(default = "default_1346")] pub calculations: Vec, - #[serde(default = "default_1331")] + #[serde(default = "default_1347")] pub model: String, } @@ -29187,13 +29342,13 @@ impl KnowledgeSynthesizeInput { #[non_exhaustive] pub struct KnowledgeUpdateMetadataOutput { pub updated: bool, - #[serde(default = "default_1332")] + #[serde(default = "default_1348")] pub title: String, - #[serde(default = "default_1333")] + #[serde(default = "default_1349")] pub description: String, - #[serde(default = "default_1334")] + #[serde(default = "default_1350")] pub tags: Vec, - #[serde(default = "default_1335")] + #[serde(default = "default_1351")] pub chunks_reindexed: Integer, } @@ -29305,13 +29460,13 @@ pub struct KnowledgeUpsertOutput { pub chunks_superseded: Integer, pub embedding_model: String, pub embedding_dim: Integer, - #[serde(default = "default_1336")] + #[serde(default = "default_1352")] pub duplicate_of_uri: String, - #[serde(default = "default_1337")] + #[serde(default = "default_1353")] pub duplicate_chunk_count: Integer, - #[serde(default = "default_1338")] + #[serde(default = "default_1354")] pub namespace: String, - #[serde(default = "default_1339")] + #[serde(default = "default_1355")] pub source_uri: String, } @@ -29496,26 +29651,26 @@ pub struct LearningEntry { pub memory_type: String, pub proposed_value: Value, pub supporter_count: Integer, - #[serde(default = "default_1340")] + #[serde(default = "default_1356")] pub supporter_sessions: Integer, - #[serde(default = "default_1341")] + #[serde(default = "default_1357")] pub supporter_writers: Integer, pub confidence_avg: f64, pub supporters: Vec, pub rationale: String, - #[serde(default = "default_1342")] + #[serde(default = "default_1358")] pub source_kind: String, - #[serde(default = "default_1343")] + #[serde(default = "default_1359")] pub source_resource_id: String, - #[serde(default = "default_1344")] + #[serde(default = "default_1360")] pub agent: String, pub status: LearningEntryStatus, pub proposed_at: String, - #[serde(default = "default_1345")] + #[serde(default = "default_1361")] pub decided_at: Option, - #[serde(default = "default_1346")] + #[serde(default = "default_1362")] pub decided_by: String, - #[serde(default = "default_1347")] + #[serde(default = "default_1363")] pub decision_reason: String, } @@ -29718,11 +29873,11 @@ pub enum LearningsReviewOutputNewStatus { pub struct LearningsReviewOutput { pub candidate_id: String, pub new_status: LearningsReviewOutputNewStatus, - #[serde(default = "default_1348")] + #[serde(default = "default_1364")] pub promoted_to_shared: bool, - #[serde(default = "default_1349")] + #[serde(default = "default_1365")] pub promoted_to_knowledge: bool, - #[serde(default = "default_1350")] + #[serde(default = "default_1366")] pub knowledge_source_uri: String, pub decided_at: String, } @@ -29926,7 +30081,7 @@ impl MemoryAgentsListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct AggregateRow { - #[serde(default = "default_1351")] + #[serde(default = "default_1367")] pub group: std::collections::HashMap, pub metric: f64, } @@ -29934,9 +30089,9 @@ pub struct AggregateRow { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAggregateOutput { - #[serde(default = "default_1352")] + #[serde(default = "default_1368")] pub rows: Vec, - #[serde(default = "default_1353")] + #[serde(default = "default_1369")] pub sql_executed: String, } @@ -30104,15 +30259,15 @@ impl MemoryAggregateInput { pub struct BulkSetResult { pub memory_key: String, pub version: Integer, - #[serde(default = "default_1354")] + #[serde(default = "default_1370")] pub memory_id: String, - #[serde(default = "default_1355")] + #[serde(default = "default_1371")] pub conflict_verdict: String, - #[serde(default = "default_1356")] + #[serde(default = "default_1372")] pub peers: Vec, - #[serde(default = "default_1357")] + #[serde(default = "default_1373")] pub next: String, - #[serde(default = "default_1358")] + #[serde(default = "default_1374")] pub pinned_blocker_id: String, } @@ -30120,29 +30275,29 @@ pub struct BulkSetResult { #[non_exhaustive] pub struct MemoryBulkSetOutput { pub written: Vec, - #[serde(default = "default_1359")] + #[serde(default = "default_1375")] pub skipped_pinned: Vec, - #[serde(default = "default_1360")] + #[serde(default = "default_1376")] pub skipped_locked: Vec, - #[serde(default = "default_1361")] + #[serde(default = "default_1377")] pub skipped_blacklisted: Vec, - #[serde(default = "default_1362")] + #[serde(default = "default_1378")] pub merged: Vec, - #[serde(default = "default_1363")] + #[serde(default = "default_1379")] pub value_updates_linked: Integer, - #[serde(default = "default_1364")] + #[serde(default = "default_1380")] pub rejected_pinned: Vec, - #[serde(default = "default_1365")] + #[serde(default = "default_1381")] pub duplicates: Vec, - #[serde(default = "default_1366")] + #[serde(default = "default_1382")] pub conflicted: Vec, - #[serde(default = "default_1367")] + #[serde(default = "default_1383")] pub unchecked: Integer, - #[serde(default = "default_1368")] + #[serde(default = "default_1384")] pub retyped: Vec, - #[serde(default = "default_1369")] + #[serde(default = "default_1385")] pub identity_duplicates: std::collections::HashMap, - #[serde(default = "default_1370")] + #[serde(default = "default_1386")] pub stage_ms: std::collections::HashMap, } @@ -30292,18 +30447,18 @@ pub enum ApplyRowStatus { #[non_exhaustive] pub struct ApplyRow { pub memory_key: String, - #[serde(default = "default_1378")] + #[serde(default = "default_1394")] pub memory_id: String, - #[serde(default = "default_1379")] + #[serde(default = "default_1395")] pub agent: String, - #[serde(default = "default_1380")] + #[serde(default = "default_1396")] pub user_id: String, - #[serde(default = "default_1381")] + #[serde(default = "default_1397")] pub session_id: String, pub status: ApplyRowStatus, - #[serde(default = "default_1382")] + #[serde(default = "default_1398")] pub version: Option, - #[serde(default = "default_1383")] + #[serde(default = "default_1399")] pub detail: String, } @@ -30313,21 +30468,21 @@ pub struct MemoryApplyOutput { pub action: String, pub dry_run: bool, pub target: String, - #[serde(default = "default_1371")] + #[serde(default = "default_1387")] pub matched: Integer, - #[serde(default = "default_1372")] + #[serde(default = "default_1388")] pub applied: Integer, - #[serde(default = "default_1373")] + #[serde(default = "default_1389")] pub would_apply: Integer, - #[serde(default = "default_1374")] + #[serde(default = "default_1390")] pub refused: Integer, - #[serde(default = "default_1375")] + #[serde(default = "default_1391")] pub noop: Integer, - #[serde(default = "default_1376")] + #[serde(default = "default_1392")] pub failed: Integer, - #[serde(default = "default_1377")] + #[serde(default = "default_1393")] pub truncated: bool, - #[serde(default = "default_1384")] + #[serde(default = "default_1400")] pub rows: Vec, } @@ -31061,137 +31216,137 @@ pub enum MemoryAskOutputDeepFirst { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAskOutput { - #[serde(default = "default_1385")] + #[serde(default = "default_1401")] pub answer: String, - #[serde(default = "default_1386")] + #[serde(default = "default_1402")] pub source: MemoryAskOutputSource, - #[serde(default = "default_1387")] + #[serde(default = "default_1403")] pub abstain: bool, - #[serde(default = "default_1388")] + #[serde(default = "default_1404")] pub abstain_reason: String, - #[serde(default = "default_1389")] + #[serde(default = "default_1405")] pub memory_keys: Vec, - #[serde(default = "default_1390")] + #[serde(default = "default_1406")] pub results: Vec, - #[serde(default = "default_1391")] + #[serde(default = "default_1407")] pub cited_sessions: Vec, - #[serde(default = "default_1392")] + #[serde(default = "default_1408")] pub next: String, - #[serde(default = "default_1393")] + #[serde(default = "default_1409")] pub synth_model: String, - #[serde(default = "default_1394")] + #[serde(default = "default_1410")] pub route_tier: MemoryAskOutputRouteTier, - #[serde(default = "default_1395")] + #[serde(default = "default_1411")] pub route_reason: String, - #[serde(default = "default_1396")] + #[serde(default = "default_1412")] pub llm_cache_hits: Integer, - #[serde(default = "default_1397")] + #[serde(default = "default_1413")] pub llm_cache_misses: Integer, - #[serde(default = "default_1398")] + #[serde(default = "default_1414")] pub llm_cache: bool, - #[serde(default = "default_1399")] + #[serde(default = "default_1415")] pub llm_cache_saved_usd: f64, - #[serde(default = "default_1400")] + #[serde(default = "default_1416")] pub temporal_consistency: Option, - #[serde(default = "default_1401")] + #[serde(default = "default_1417")] pub citation_concentration: Option, - #[serde(default = "default_1402")] + #[serde(default = "default_1418")] pub escalated: bool, - #[serde(default = "default_1403")] + #[serde(default = "default_1419")] pub gate_mode: String, - #[serde(default = "default_1404")] + #[serde(default = "default_1420")] pub gate_kept: Integer, - #[serde(default = "default_1405")] + #[serde(default = "default_1421")] pub gate_dropped: Integer, - #[serde(default = "default_1406")] + #[serde(default = "default_1422")] pub pending_extraction: Integer, - #[serde(default = "default_1407")] + #[serde(default = "default_1423")] pub pending_evidence: Integer, - #[serde(default = "default_1408")] + #[serde(default = "default_1424")] pub retrieval_query: String, - #[serde(default = "default_1409")] + #[serde(default = "default_1425")] pub facets: Vec, - #[serde(default = "default_1410")] + #[serde(default = "default_1426")] pub facet_memories_added: Integer, - #[serde(default = "default_1411")] + #[serde(default = "default_1427")] pub consistency: MemoryAskOutputConsistency, - #[serde(default = "default_1412")] + #[serde(default = "default_1428")] pub consistency_score: f64, - #[serde(default = "default_1413")] + #[serde(default = "default_1429")] pub consistency_note: String, - #[serde(default = "default_1414")] + #[serde(default = "default_1430")] pub identifier_chase_hops: Integer, - #[serde(default = "default_1415")] + #[serde(default = "default_1431")] pub identifier_chase_added: Integer, - #[serde(default = "default_1416")] + #[serde(default = "default_1432")] pub premise_conflict: String, - #[serde(default = "default_1417")] + #[serde(default = "default_1433")] pub premise_note: String, - #[serde(default = "default_1418")] + #[serde(default = "default_1434")] pub premise_verdict: String, - #[serde(default = "default_1419")] + #[serde(default = "default_1435")] pub attribution_note: String, - #[serde(default = "default_1420")] + #[serde(default = "default_1436")] pub depth: MemoryAskOutputDepth, - #[serde(default = "default_1421")] + #[serde(default = "default_1437")] pub deep_fired: bool, - #[serde(default = "default_1422")] + #[serde(default = "default_1438")] pub decomposed: Vec, - #[serde(default = "default_1423")] + #[serde(default = "default_1439")] pub decomposed_parts: Integer, - #[serde(default = "default_1424")] + #[serde(default = "default_1440")] pub superseded_dropped: Integer, - #[serde(default = "default_1425")] + #[serde(default = "default_1441")] pub stale_sentences_masked: Integer, - #[serde(default = "default_1426")] + #[serde(default = "default_1442")] pub entity_followed: Vec, - #[serde(default = "default_1427")] + #[serde(default = "default_1443")] pub when_evidence_turns: Integer, - #[serde(default = "default_1428")] + #[serde(default = "default_1444")] pub decompose_failed: Integer, - #[serde(default = "default_1429")] + #[serde(default = "default_1445")] pub pool_k: Integer, - #[serde(default = "default_1430")] + #[serde(default = "default_1446")] pub grounding: MemoryAskOutputGrounding, - #[serde(default = "default_1431")] + #[serde(default = "default_1447")] pub deep_reason: String, - #[serde(default = "default_1432")] + #[serde(default = "default_1448")] pub deep_keys: Vec, - #[serde(default = "default_1433")] + #[serde(default = "default_1449")] pub deep_chars: Integer, - #[serde(default = "default_1434")] + #[serde(default = "default_1450")] pub code_hits: Integer, - #[serde(default = "default_1435")] + #[serde(default = "default_1451")] pub pool_facts: Integer, - #[serde(default = "default_1436")] + #[serde(default = "default_1452")] pub pool_chunks: Integer, - #[serde(default = "default_1437")] + #[serde(default = "default_1453")] pub prompt_blocks: std::collections::HashMap, - #[serde(default = "default_1438")] + #[serde(default = "default_1454")] pub deep_selector: MemoryAskOutputDeepSelector, - #[serde(default = "default_1439")] + #[serde(default = "default_1455")] pub deep_first: MemoryAskOutputDeepFirst, - #[serde(default = "default_1440")] + #[serde(default = "default_1456")] pub synth_calls: Integer, - #[serde(default = "default_1441")] + #[serde(default = "default_1457")] pub synth_input_tokens: Integer, - #[serde(default = "default_1442")] + #[serde(default = "default_1458")] pub synth_cached_input_tokens: Integer, - #[serde(default = "default_1443")] + #[serde(default = "default_1459")] pub synth_cache_write_tokens: Integer, - #[serde(default = "default_1444")] + #[serde(default = "default_1460")] pub synth_cost_usd: f64, - #[serde(default = "default_1445")] + #[serde(default = "default_1461")] pub context_tokens_est: Integer, - #[serde(default = "default_1446")] + #[serde(default = "default_1462")] pub context_trimmed: Integer, - #[serde(default = "default_1447")] + #[serde(default = "default_1463")] pub summary_hits: Integer, - #[serde(default = "default_1448")] + #[serde(default = "default_1464")] pub knowledge_hits: Integer, - #[serde(default = "default_1449")] + #[serde(default = "default_1465")] pub timeline_rows: Integer, - #[serde(default = "default_1450")] + #[serde(default = "default_1466")] pub count_recomputed: bool, } @@ -32146,36 +32301,36 @@ pub struct MemoryAutoRetirement { pub reason: String, pub memory_id: String, pub memory_key: String, - #[serde(default = "default_1451")] + #[serde(default = "default_1467")] pub agent: String, - #[serde(default = "default_1452")] + #[serde(default = "default_1468")] pub user_id: String, - #[serde(default = "default_1453")] + #[serde(default = "default_1469")] pub session_id: String, - #[serde(default = "default_1454")] + #[serde(default = "default_1470")] pub superseded_by: String, - #[serde(default = "default_1455")] + #[serde(default = "default_1471")] pub superseded_by_key: String, - #[serde(default = "default_1456")] + #[serde(default = "default_1472")] pub label: String, - #[serde(default = "default_1457")] + #[serde(default = "default_1473")] pub unconfirmed: bool, - #[serde(default = "default_1458")] + #[serde(default = "default_1474")] pub judge_verdict: String, - #[serde(default = "default_1459")] + #[serde(default = "default_1475")] pub judge_confidence: Option, - #[serde(default = "default_1460")] + #[serde(default = "default_1476")] pub judge_model: String, - #[serde(default = "default_1461")] + #[serde(default = "default_1477")] pub judge_prompt_version: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAutoRetirementsOutput { - #[serde(default = "default_1462")] + #[serde(default = "default_1478")] pub rows: Vec, - #[serde(default = "default_1463")] + #[serde(default = "default_1479")] pub next_cursor: Option, } @@ -32269,9 +32424,9 @@ impl MemoryAutoRetirementsInput { #[non_exhaustive] pub struct BacklinkVersion { pub version: Integer, - #[serde(default = "default_1465")] + #[serde(default = "default_1481")] pub status: String, - #[serde(default = "default_1466")] + #[serde(default = "default_1482")] pub created_at: String, } @@ -32279,7 +32434,7 @@ pub struct BacklinkVersion { #[non_exhaustive] pub struct BacklinkDigest { pub session_id: String, - #[serde(default = "default_1468")] + #[serde(default = "default_1484")] pub date: String, } @@ -32287,9 +32442,9 @@ pub struct BacklinkDigest { #[non_exhaustive] pub struct BacklinkEdge { pub memory_key: String, - #[serde(default = "default_1470")] + #[serde(default = "default_1486")] pub relation: String, - #[serde(default = "default_1471")] + #[serde(default = "default_1487")] pub created_at: String, } @@ -32297,7 +32452,7 @@ pub struct BacklinkEdge { #[non_exhaustive] pub struct BacklinkRelated { pub memory_key: String, - #[serde(default = "default_1475")] + #[serde(default = "default_1491")] pub shared_entities: Vec, } @@ -32305,19 +32460,19 @@ pub struct BacklinkRelated { #[non_exhaustive] pub struct MemoryBacklinksOutput { pub memory_key: String, - #[serde(default = "default_1464")] + #[serde(default = "default_1480")] pub found: bool, - #[serde(default = "default_1467")] + #[serde(default = "default_1483")] pub versions: Vec, - #[serde(default = "default_1469")] + #[serde(default = "default_1485")] pub digests: Vec, - #[serde(default = "default_1472")] + #[serde(default = "default_1488")] pub links_in: Vec, - #[serde(default = "default_1473")] + #[serde(default = "default_1489")] pub links_out: Vec, - #[serde(default = "default_1474")] + #[serde(default = "default_1490")] pub evidence_count: Integer, - #[serde(default = "default_1476")] + #[serde(default = "default_1492")] pub related: Vec, } @@ -32422,36 +32577,36 @@ impl MemoryBacklinksInput { #[non_exhaustive] pub struct BriefEvidence { pub memory_key: String, - #[serde(default = "default_1481")] + #[serde(default = "default_1497")] pub source: String, - #[serde(default = "default_1482")] + #[serde(default = "default_1498")] pub source_class: String, - #[serde(default = "default_1483")] + #[serde(default = "default_1499")] pub verified: bool, - #[serde(default = "default_1484")] + #[serde(default = "default_1500")] pub when: String, - #[serde(default = "default_1485")] + #[serde(default = "default_1501")] pub session_id: String, - #[serde(default = "default_1486")] + #[serde(default = "default_1502")] pub excerpt: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBriefOutput { - #[serde(default = "default_1477")] + #[serde(default = "default_1493")] pub query: String, - #[serde(default = "default_1478")] + #[serde(default = "default_1494")] pub answer: String, - #[serde(default = "default_1479")] + #[serde(default = "default_1495")] pub abstained: bool, - #[serde(default = "default_1480")] + #[serde(default = "default_1496")] pub grounding: String, - #[serde(default = "default_1487")] + #[serde(default = "default_1503")] pub evidence: Vec, - #[serde(default = "default_1488")] + #[serde(default = "default_1504")] pub unknowns: Vec, - #[serde(default = "default_1489")] + #[serde(default = "default_1505")] pub next_reads: Vec, } @@ -32865,9 +33020,9 @@ pub struct MemoryBulkGetOutputMemoryGetOutput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBulkGetOutput { - #[serde(default = "default_1490")] + #[serde(default = "default_1506")] pub results: std::collections::HashMap, - #[serde(default = "default_1491")] + #[serde(default = "default_1507")] pub missing: Vec, } @@ -33380,7 +33535,7 @@ pub struct MemoryClearOutput { pub cleared_at: String, pub rows_affected: std::collections::HashMap, pub total: Integer, - #[serde(default = "default_1492")] + #[serde(default = "default_1508")] pub locked_skipped: Integer, } @@ -33468,21 +33623,21 @@ pub struct MemoryConsolidateResult { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryConsolidateOutput { - #[serde(default = "default_1493")] + #[serde(default = "default_1509")] pub consolidated: Vec, - #[serde(default = "default_1494")] + #[serde(default = "default_1510")] pub examined: Integer, - #[serde(default = "default_1495")] + #[serde(default = "default_1511")] pub clusters_found: Integer, - #[serde(default = "default_1496")] + #[serde(default = "default_1512")] pub clusters_failed: Integer, - #[serde(default = "default_1497")] + #[serde(default = "default_1513")] pub clusters_refused_lossy: Integer, - #[serde(default = "default_1498")] + #[serde(default = "default_1514")] pub skipped_in_flight: Integer, - #[serde(default = "default_1499")] + #[serde(default = "default_1515")] pub tokens_in: Integer, - #[serde(default = "default_1500")] + #[serde(default = "default_1516")] pub tokens_out: Integer, } @@ -33623,7 +33778,7 @@ impl MemoryConsolidateInput { #[non_exhaustive] pub struct MemoryCopyToOutput { pub copied: bool, - #[serde(default = "default_1501")] + #[serde(default = "default_1517")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, @@ -33734,11 +33889,11 @@ impl MemoryCopyToInput { #[non_exhaustive] pub struct MemoryCrossPromoteOutput { pub promoted: bool, - #[serde(default = "default_1502")] + #[serde(default = "default_1518")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, - #[serde(default = "default_1503")] + #[serde(default = "default_1519")] pub cross_promoted_from_memory_id: String, } @@ -33821,23 +33976,23 @@ pub struct DedupCollapsePair { #[non_exhaustive] pub struct MemoryDedupCollapseOutput { pub namespace: String, - #[serde(default = "default_1504")] + #[serde(default = "default_1520")] pub prefix: String, - #[serde(default = "default_1505")] + #[serde(default = "default_1521")] pub dry_run: bool, - #[serde(default = "default_1506")] + #[serde(default = "default_1522")] pub pairs: Integer, - #[serde(default = "default_1507")] + #[serde(default = "default_1523")] pub canonical_live: Integer, - #[serde(default = "default_1508")] + #[serde(default = "default_1524")] pub orphans: Integer, - #[serde(default = "default_1509")] + #[serde(default = "default_1525")] pub mirror_stale: Integer, - #[serde(default = "default_1510")] + #[serde(default = "default_1526")] pub restamped: Integer, - #[serde(default = "default_1511")] + #[serde(default = "default_1527")] pub truncated: bool, - #[serde(default = "default_1512")] + #[serde(default = "default_1528")] pub sample: Vec, } @@ -33936,7 +34091,7 @@ pub struct DedupDuplicate { pub memory_id: String, pub memory_key: String, pub agent: String, - #[serde(default = "default_1515")] + #[serde(default = "default_1531")] pub created_at: Option, } @@ -33944,12 +34099,12 @@ pub struct DedupDuplicate { #[non_exhaustive] pub struct DedupCluster { pub canonical_id: String, - #[serde(default = "default_1513")] + #[serde(default = "default_1529")] pub canonical_key: String, - #[serde(default = "default_1514")] + #[serde(default = "default_1530")] pub canonical_agent: String, pub dup_count: Integer, - #[serde(default = "default_1516")] + #[serde(default = "default_1532")] pub duplicates: Vec, } @@ -34021,11 +34176,11 @@ pub struct MemoryDedupResolveOutput { pub canonical_key: String, pub duplicate_key: String, pub decision: String, - #[serde(default = "default_1517")] + #[serde(default = "default_1533")] pub canonical_tombstoned: bool, - #[serde(default = "default_1518")] + #[serde(default = "default_1534")] pub duplicate_tombstoned: bool, - #[serde(default = "default_1519")] + #[serde(default = "default_1535")] pub ignored_args: Vec, } @@ -34163,17 +34318,17 @@ pub struct LostName { pub struct DefinitionEntry { pub memory_key: String, pub promoted_at: String, - #[serde(default = "default_1520")] + #[serde(default = "default_1536")] pub capped: bool, - #[serde(default = "default_1521")] + #[serde(default = "default_1537")] pub term: Option, - #[serde(default = "default_1522")] + #[serde(default = "default_1538")] pub aliases: Vec, - #[serde(default = "default_1523")] + #[serde(default = "default_1539")] pub verdict: Option, - #[serde(default = "default_1524")] + #[serde(default = "default_1540")] pub lapse_reason: Option, - #[serde(default = "default_1525")] + #[serde(default = "default_1541")] pub lost: Vec, } @@ -34234,15 +34389,15 @@ impl MemoryDefinitionsListInput { #[non_exhaustive] pub struct MemoryDeleteVersionOutput { pub tombstoned: bool, - #[serde(default = "default_1526")] + #[serde(default = "default_1542")] pub version: Integer, - #[serde(default = "default_1527")] + #[serde(default = "default_1543")] pub found: bool, - #[serde(default = "default_1528")] + #[serde(default = "default_1544")] pub reason: String, - #[serde(default = "default_1529")] + #[serde(default = "default_1545")] pub dependents_tombstoned: Integer, - #[serde(default = "default_1530")] + #[serde(default = "default_1546")] pub dependents_downgraded: Integer, } @@ -34369,21 +34524,21 @@ pub struct DemonstrationRow { pub struct MemoryDemonstrateOutput { pub query: String, pub demonstrations: Vec, - #[serde(default = "default_1531")] + #[serde(default = "default_1547")] pub votes: std::collections::HashMap, - #[serde(default = "default_1532")] + #[serde(default = "default_1548")] pub predicted_label: String, - #[serde(default = "default_1533")] + #[serde(default = "default_1549")] pub margin: f64, - #[serde(default = "default_1534")] + #[serde(default = "default_1550")] pub abstain: bool, - #[serde(default = "default_1535")] + #[serde(default = "default_1551")] pub abstain_reason: String, - #[serde(default = "default_1536")] + #[serde(default = "default_1552")] pub few_shot_block: String, - #[serde(default = "default_1537")] + #[serde(default = "default_1553")] pub examined: Integer, - #[serde(default = "default_1538")] + #[serde(default = "default_1554")] pub labelled: Integer, } @@ -34523,7 +34678,7 @@ impl MemoryDemonstrateInput { pub struct MemoryDemoteOutput { pub demoted: bool, pub was_reversible: bool, - #[serde(default = "default_1539")] + #[serde(default = "default_1555")] pub tombstoned_at: Option, } @@ -34585,15 +34740,15 @@ impl MemoryDemoteInput { pub struct DigestRow { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1540")] + #[serde(default = "default_1556")] pub key_facts: Vec, - #[serde(default = "default_1541")] + #[serde(default = "default_1557")] pub derived_from: Vec, - #[serde(default = "default_1542")] + #[serde(default = "default_1558")] pub valid_at: Option, - #[serde(default = "default_1543")] + #[serde(default = "default_1559")] pub created_at: Option, - #[serde(default = "default_1544")] + #[serde(default = "default_1560")] pub version: Integer, } @@ -34601,7 +34756,7 @@ pub struct DigestRow { #[non_exhaustive] pub struct MemoryDigestsOutput { pub rows: Vec, - #[serde(default = "default_1545")] + #[serde(default = "default_1561")] pub truncated: bool, } @@ -34726,17 +34881,17 @@ pub struct MemoryEvidenceItem { pub evidence_id: String, pub support_type: String, pub scope: MemoryEvidenceItemScope, - #[serde(default = "default_1549")] + #[serde(default = "default_1565")] pub role: String, - #[serde(default = "default_1550")] + #[serde(default = "default_1566")] pub observed_at: Option, - #[serde(default = "default_1551")] + #[serde(default = "default_1567")] pub content: String, - #[serde(default = "default_1552")] + #[serde(default = "default_1568")] pub char_start: Integer, - #[serde(default = "default_1553")] + #[serde(default = "default_1569")] pub char_end: Integer, - #[serde(default = "default_1554")] + #[serde(default = "default_1570")] pub span: String, } @@ -34744,23 +34899,23 @@ pub struct MemoryEvidenceItem { #[non_exhaustive] pub struct MemoryEvidenceOutput { pub found: bool, - #[serde(default = "default_1546")] + #[serde(default = "default_1562")] pub memory_key: String, - #[serde(default = "default_1547")] + #[serde(default = "default_1563")] pub memory_id: String, - #[serde(default = "default_1548")] + #[serde(default = "default_1564")] pub value: String, - #[serde(default = "default_1555")] + #[serde(default = "default_1571")] pub items: Vec, - #[serde(default = "default_1556")] + #[serde(default = "default_1572")] pub truncated: bool, - #[serde(default = "default_1557")] + #[serde(default = "default_1573")] pub cited: Integer, - #[serde(default = "default_1558")] + #[serde(default = "default_1574")] pub lexical: Integer, - #[serde(default = "default_1559")] + #[serde(default = "default_1575")] pub window: Integer, - #[serde(default = "default_1560")] + #[serde(default = "default_1576")] pub derived: Integer, } @@ -34865,26 +35020,26 @@ impl MemoryEvidenceInput { #[non_exhaustive] pub struct EvidenceChunk { pub session_id: String, - #[serde(default = "default_1561")] + #[serde(default = "default_1577")] pub chunk_index: Integer, pub content: String, - #[serde(default = "default_1562")] + #[serde(default = "default_1578")] pub content_sha256: String, - #[serde(default = "default_1563")] + #[serde(default = "default_1579")] pub agent: String, - #[serde(default = "default_1564")] + #[serde(default = "default_1580")] pub user_id: String, - #[serde(default = "default_1565")] + #[serde(default = "default_1581")] pub parent_memory_key: String, - #[serde(default = "default_1566")] + #[serde(default = "default_1582")] pub memory_keys: Vec, - #[serde(default = "default_1567")] + #[serde(default = "default_1583")] pub line_start: Integer, - #[serde(default = "default_1568")] + #[serde(default = "default_1584")] pub line_end: Integer, - #[serde(default = "default_1569")] + #[serde(default = "default_1585")] pub created_at: String, - #[serde(default = "default_1570")] + #[serde(default = "default_1586")] pub source_url: String, } @@ -34893,17 +35048,17 @@ pub struct EvidenceChunk { pub struct EvidenceDigest { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1572")] + #[serde(default = "default_1588")] pub agent: String, - #[serde(default = "default_1573")] + #[serde(default = "default_1589")] pub user_id: String, - #[serde(default = "default_1574")] + #[serde(default = "default_1590")] pub key_facts: Vec, - #[serde(default = "default_1575")] + #[serde(default = "default_1591")] pub derived_from: Vec, - #[serde(default = "default_1576")] + #[serde(default = "default_1592")] pub valid_at: String, - #[serde(default = "default_1577")] + #[serde(default = "default_1593")] pub created_at: String, } @@ -34913,28 +35068,28 @@ pub struct EvidenceEdge { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1579")] + #[serde(default = "default_1595")] pub confidence: f64, - #[serde(default = "default_1580")] + #[serde(default = "default_1596")] pub explanation: String, - #[serde(default = "default_1581")] + #[serde(default = "default_1597")] pub created_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExportEvidenceOutput { - #[serde(default = "default_1571")] + #[serde(default = "default_1587")] pub chunks: Vec, - #[serde(default = "default_1578")] + #[serde(default = "default_1594")] pub digests: Vec, - #[serde(default = "default_1582")] + #[serde(default = "default_1598")] pub edges: Vec, - #[serde(default = "default_1583")] + #[serde(default = "default_1599")] pub has_more: bool, - #[serde(default = "default_1584")] + #[serde(default = "default_1600")] pub next_cursor: String, - #[serde(default = "default_1585")] + #[serde(default = "default_1601")] pub held_high: Integer, } @@ -35127,15 +35282,15 @@ impl ExposureSummaryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionRetryMineOutput { - #[serde(default = "default_1586")] + #[serde(default = "default_1602")] pub requeued: Vec, - #[serde(default = "default_1587")] + #[serde(default = "default_1603")] pub not_failed: Vec, - #[serde(default = "default_1588")] + #[serde(default = "default_1604")] pub model_calls_off: Vec, - #[serde(default = "default_1589")] + #[serde(default = "default_1605")] pub expired: Vec, - #[serde(default = "default_1590")] + #[serde(default = "default_1606")] pub unknown: Vec, } @@ -35196,20 +35351,20 @@ pub struct ExtractionQueueRow { pub content_chars: Integer, pub written: Integer, pub last_error: String, - #[serde(default = "default_1591")] + #[serde(default = "default_1607")] pub enqueued_at: Option, - #[serde(default = "default_1592")] + #[serde(default = "default_1608")] pub updated_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusOutput { - #[serde(default = "default_1593")] + #[serde(default = "default_1609")] pub batches: Vec, - #[serde(default = "default_1594")] + #[serde(default = "default_1610")] pub pending: Integer, - #[serde(default = "default_1595")] + #[serde(default = "default_1611")] pub failed: Integer, } @@ -35357,13 +35512,13 @@ impl MemoryExtractionStatusInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusMineOutput { - #[serde(default = "default_1596")] + #[serde(default = "default_1612")] pub batches: Vec, - #[serde(default = "default_1597")] + #[serde(default = "default_1613")] pub unknown: Vec, - #[serde(default = "default_1598")] + #[serde(default = "default_1614")] pub pending: Integer, - #[serde(default = "default_1599")] + #[serde(default = "default_1615")] pub failed: Integer, } @@ -35484,39 +35639,39 @@ pub struct MemoryForFileHit { pub memory_key: String, pub memory_type: String, pub value: String, - #[serde(default = "default_1600")] + #[serde(default = "default_1616")] pub value_truncated: bool, - #[serde(default = "default_1601")] + #[serde(default = "default_1617")] pub tags: Vec, - #[serde(default = "default_1602")] + #[serde(default = "default_1618")] pub confidence: f64, - #[serde(default = "default_1603")] + #[serde(default = "default_1619")] pub pinned: bool, - #[serde(default = "default_1604")] + #[serde(default = "default_1620")] pub status: String, - #[serde(default = "default_1605")] + #[serde(default = "default_1621")] pub agent: String, - #[serde(default = "default_1606")] + #[serde(default = "default_1622")] pub updated_at: Option, - #[serde(default = "default_1607")] + #[serde(default = "default_1623")] pub namespace: String, - #[serde(default = "default_1608")] + #[serde(default = "default_1624")] pub actor: String, - #[serde(default = "default_1609")] + #[serde(default = "default_1625")] pub supersedes_key: String, - #[serde(default = "default_1610")] + #[serde(default = "default_1626")] pub supersedes: String, - #[serde(default = "default_1611")] + #[serde(default = "default_1627")] pub supersedes_kind: MemoryForFileHitSupersedesKind, - #[serde(default = "default_1612")] + #[serde(default = "default_1628")] pub matched_files: Vec, - #[serde(default = "default_1613")] + #[serde(default = "default_1629")] pub source_resource_id: String, - #[serde(default = "default_1614")] + #[serde(default = "default_1630")] pub verification: MemoryForFileHitVerification, - #[serde(default = "default_1615")] + #[serde(default = "default_1631")] pub code_state: MemoryForFileHitCodeState, - #[serde(default = "default_1616")] + #[serde(default = "default_1632")] pub code_moved: Vec, } @@ -35526,7 +35681,7 @@ pub struct MemoryForFilePrintedRow { pub namespace: String, pub memory_key: String, pub line: String, - #[serde(default = "default_1620")] + #[serde(default = "default_1636")] pub binding: bool, } @@ -35536,13 +35691,13 @@ pub struct MemoryForFileOutput { pub path: String, pub total: Integer, pub hits: Vec, - #[serde(default = "default_1617")] + #[serde(default = "default_1633")] pub rendered: String, - #[serde(default = "default_1618")] + #[serde(default = "default_1634")] pub tokens_estimate: Integer, - #[serde(default = "default_1619")] + #[serde(default = "default_1635")] pub truncated: bool, - #[serde(default = "default_1621")] + #[serde(default = "default_1637")] pub printed: Vec, } @@ -35650,61 +35805,61 @@ impl MemoryForFileInput { #[non_exhaustive] pub struct MemoryGetByIdOutput { pub found: bool, - #[serde(default = "default_1622")] + #[serde(default = "default_1638")] pub memory_id: String, - #[serde(default = "default_1623")] + #[serde(default = "default_1639")] pub namespace: String, - #[serde(default = "default_1624")] + #[serde(default = "default_1640")] pub agent: String, - #[serde(default = "default_1625")] + #[serde(default = "default_1641")] pub user_id: String, - #[serde(default = "default_1626")] + #[serde(default = "default_1642")] pub session_id: String, - #[serde(default = "default_1627")] + #[serde(default = "default_1643")] pub memory_key: String, - #[serde(default = "default_1628")] + #[serde(default = "default_1644")] pub memory_type: Option, - #[serde(default = "default_1629")] + #[serde(default = "default_1645")] pub value: Value, - #[serde(default = "default_1630")] + #[serde(default = "default_1646")] pub confidence: Option, - #[serde(default = "default_1631")] + #[serde(default = "default_1647")] pub version: Option, - #[serde(default = "default_1632")] + #[serde(default = "default_1648")] pub created_at: Option, - #[serde(default = "default_1633")] + #[serde(default = "default_1649")] pub expires_at: Option, - #[serde(default = "default_1634")] + #[serde(default = "default_1650")] pub valid_at: Option, - #[serde(default = "default_1635")] + #[serde(default = "default_1651")] pub valid_to: Option, - #[serde(default = "default_1636")] + #[serde(default = "default_1652")] pub pinned: bool, - #[serde(default = "default_1637")] + #[serde(default = "default_1653")] pub content_sha256: String, - #[serde(default = "default_1638")] + #[serde(default = "default_1654")] pub verified_by: String, - #[serde(default = "default_1639")] + #[serde(default = "default_1655")] pub verified_at: Option, - #[serde(default = "default_1640")] + #[serde(default = "default_1656")] pub verification: String, - #[serde(default = "default_1641")] + #[serde(default = "default_1657")] pub sensitivity: String, - #[serde(default = "default_1642")] + #[serde(default = "default_1658")] pub actor: String, - #[serde(default = "default_1643")] + #[serde(default = "default_1659")] pub source_class: String, - #[serde(default = "default_1644")] + #[serde(default = "default_1660")] pub lock_mode: String, - #[serde(default = "default_1645")] + #[serde(default = "default_1661")] pub lock_reason: String, - #[serde(default = "default_1646")] + #[serde(default = "default_1662")] pub lock_until: Option, - #[serde(default = "default_1647")] + #[serde(default = "default_1663")] pub locked_by: String, - #[serde(default = "default_1648")] + #[serde(default = "default_1664")] pub on_expire: String, - #[serde(default = "default_1649")] + #[serde(default = "default_1665")] pub expire_reason: String, } @@ -35780,41 +35935,41 @@ pub struct MemoryHealthTopRow { pub memory_type: String, pub recall_count: Integer, pub used_count: Integer, - #[serde(default = "default_1652")] + #[serde(default = "default_1668")] pub harm_count: Integer, - #[serde(default = "default_1653")] + #[serde(default = "default_1669")] pub last_recalled_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthStaleness { - #[serde(default = "default_1655")] + #[serde(default = "default_1671")] pub by_age: std::collections::HashMap, - #[serde(default = "default_1656")] + #[serde(default = "default_1672")] pub with_validity_end: Integer, - #[serde(default = "default_1657")] + #[serde(default = "default_1673")] pub with_validity_end_share: f64, - #[serde(default = "default_1658")] + #[serde(default = "default_1674")] pub with_expiry: Integer, - #[serde(default = "default_1659")] + #[serde(default = "default_1675")] pub expiring_7d: Integer, - #[serde(default = "default_1660")] + #[serde(default = "default_1676")] pub pinned: Integer, - #[serde(default = "default_1661")] + #[serde(default = "default_1677")] pub days_since_reinforced_p50: Integer, - #[serde(default = "default_1662")] + #[serde(default = "default_1678")] pub days_since_reinforced_p90: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthFootprint { - #[serde(default = "default_1664")] + #[serde(default = "default_1680")] pub value_chars: Integer, - #[serde(default = "default_1665")] + #[serde(default = "default_1681")] pub value_tokens_est: Integer, - #[serde(default = "default_1666")] + #[serde(default = "default_1682")] pub tokens_per_row_est: f64, } @@ -35824,19 +35979,19 @@ pub struct MemoryHealthOutput { pub live: Integer, pub recalled_ever: Integer, pub used_ever: Integer, - #[serde(default = "default_1650")] + #[serde(default = "default_1666")] pub harmed_ever: Integer, pub silent: Integer, pub silent_older: Integer, pub silent_share: f64, pub silent_after_days: Integer, - #[serde(default = "default_1651")] + #[serde(default = "default_1667")] pub by_type: Vec, - #[serde(default = "default_1654")] + #[serde(default = "default_1670")] pub top_recalled: Vec, - #[serde(default = "default_1663")] + #[serde(default = "default_1679")] pub staleness: MemoryHealthStaleness, - #[serde(default = "default_1667")] + #[serde(default = "default_1683")] pub footprint: MemoryHealthFootprint, } @@ -35956,51 +36111,51 @@ impl MemoryHealthInput { pub struct MemoryHistoryRow { pub memory_id: String, pub version: Integer, - #[serde(default = "default_1668")] + #[serde(default = "default_1684")] pub version_text: String, - #[serde(default = "default_1669")] + #[serde(default = "default_1685")] pub value: Value, pub confidence: f64, - #[serde(default = "default_1670")] + #[serde(default = "default_1686")] pub source_trace: String, - #[serde(default = "default_1671")] + #[serde(default = "default_1687")] pub pinned: bool, pub created_at: String, - #[serde(default = "default_1672")] + #[serde(default = "default_1688")] pub expires_at: Option, - #[serde(default = "default_1673")] + #[serde(default = "default_1689")] pub tombstoned_at: Option, - #[serde(default = "default_1674")] + #[serde(default = "default_1690")] pub redacted_at: Option, - #[serde(default = "default_1675")] + #[serde(default = "default_1691")] pub redaction_reason: String, - #[serde(default = "default_1676")] + #[serde(default = "default_1692")] pub content_sha256: String, - #[serde(default = "default_1677")] + #[serde(default = "default_1693")] pub actor: String, - #[serde(default = "default_1678")] + #[serde(default = "default_1694")] pub source_class: String, - #[serde(default = "default_1679")] + #[serde(default = "default_1695")] pub agent: String, - #[serde(default = "default_1680")] + #[serde(default = "default_1696")] pub written_at: Option, - #[serde(default = "default_1681")] + #[serde(default = "default_1697")] pub status: String, - #[serde(default = "default_1682")] + #[serde(default = "default_1698")] pub conflict_with: Vec, - #[serde(default = "default_1683")] + #[serde(default = "default_1699")] pub tags: Vec, - #[serde(default = "default_1684")] + #[serde(default = "default_1700")] pub verified_at: Option, - #[serde(default = "default_1685")] + #[serde(default = "default_1701")] pub verified_by: String, - #[serde(default = "default_1686")] + #[serde(default = "default_1702")] pub verified_sha256: String, - #[serde(default = "default_1687")] + #[serde(default = "default_1703")] pub lock_mode: String, - #[serde(default = "default_1688")] + #[serde(default = "default_1704")] pub lock_reason: String, - #[serde(default = "default_1689")] + #[serde(default = "default_1705")] pub lock_until: Option, } @@ -36110,13 +36265,13 @@ impl MemoryHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportTotals { - #[serde(default = "default_1690")] + #[serde(default = "default_1706")] pub written: Integer, - #[serde(default = "default_1691")] + #[serde(default = "default_1707")] pub held: Integer, - #[serde(default = "default_1692")] + #[serde(default = "default_1708")] pub skipped: Integer, - #[serde(default = "default_1693")] + #[serde(default = "default_1709")] pub refused: Integer, } @@ -36199,11 +36354,11 @@ pub struct MemoryImportResult { pub index: Integer, pub key: String, pub outcome: MemoryImportResultOutcome, - #[serde(default = "default_1694")] + #[serde(default = "default_1710")] pub reason: MemoryImportResultReason, - #[serde(default = "default_1695")] + #[serde(default = "default_1711")] pub held_by: String, - #[serde(default = "default_1696")] + #[serde(default = "default_1712")] pub note: MemoryImportResultNote, } @@ -36212,7 +36367,7 @@ pub struct MemoryImportResult { pub struct MemoryImportOutput { pub totals: MemoryImportTotals, pub results: Vec, - #[serde(default = "default_1697")] + #[serde(default = "default_1713")] pub dry_run: bool, } @@ -36405,9 +36560,9 @@ pub struct MemoryImportCuratedRow { pub section_heading: String, pub bytes_written: Integer, pub verdict: String, - #[serde(default = "default_1698")] + #[serde(default = "default_1714")] pub rejection_reason: String, - #[serde(default = "default_1699")] + #[serde(default = "default_1715")] pub pinned_blocker_id: Option, } @@ -36499,21 +36654,21 @@ impl MemoryImportCuratedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportEvidenceOutput { - #[serde(default = "default_1700")] + #[serde(default = "default_1716")] pub chunks_written: Integer, - #[serde(default = "default_1701")] + #[serde(default = "default_1717")] pub links_written: Integer, - #[serde(default = "default_1702")] + #[serde(default = "default_1718")] pub digests_written: Integer, - #[serde(default = "default_1703")] + #[serde(default = "default_1719")] pub embedding_model: String, - #[serde(default = "default_1704")] + #[serde(default = "default_1720")] pub embedding_dim: Integer, - #[serde(default = "default_1705")] + #[serde(default = "default_1721")] pub edited: Vec, - #[serde(default = "default_1706")] + #[serde(default = "default_1722")] pub skipped: Integer, - #[serde(default = "default_1707")] + #[serde(default = "default_1723")] pub unchecked: Integer, } @@ -36850,7 +37005,7 @@ pub struct InspectRow { pub memory_key: String, pub memory_id: String, pub version: Integer, - #[serde(default = "default_1717")] + #[serde(default = "default_1733")] pub content_sha256: String, pub memory_type: String, pub status: String, @@ -36861,9 +37016,9 @@ pub struct InspectRow { pub actor: String, pub updated_at: String, pub sensitivity: String, - #[serde(default = "default_1718")] + #[serde(default = "default_1734")] pub versions: Integer, - #[serde(default = "default_1719")] + #[serde(default = "default_1735")] pub excerpt: String, } @@ -36871,27 +37026,27 @@ pub struct InspectRow { #[non_exhaustive] pub struct InspectView { pub definition: String, - #[serde(default = "default_1708")] + #[serde(default = "default_1724")] pub refs: Vec, - #[serde(default = "default_1709")] + #[serde(default = "default_1725")] pub live_rows: Integer, - #[serde(default = "default_1710")] + #[serde(default = "default_1726")] pub by_type: Vec, - #[serde(default = "default_1711")] + #[serde(default = "default_1727")] pub by_status: Vec, - #[serde(default = "default_1712")] + #[serde(default = "default_1728")] pub by_source_class: Vec, - #[serde(default = "default_1713")] + #[serde(default = "default_1729")] pub top_tags: Vec, - #[serde(default = "default_1714")] + #[serde(default = "default_1730")] pub categories: Vec, - #[serde(default = "default_1715")] + #[serde(default = "default_1731")] pub first_updated_at: Option, - #[serde(default = "default_1716")] + #[serde(default = "default_1732")] pub last_updated_at: Option, - #[serde(default = "default_1720")] + #[serde(default = "default_1736")] pub newest: Vec, - #[serde(default = "default_1721")] + #[serde(default = "default_1737")] pub complete: bool, } @@ -36907,32 +37062,32 @@ pub struct InspectCall { #[non_exhaustive] pub struct InspectActivity { pub window_seconds: Integer, - #[serde(default = "default_1722")] + #[serde(default = "default_1738")] pub calls: Vec, - #[serde(default = "default_1723")] + #[serde(default = "default_1739")] pub first_at: Option, - #[serde(default = "default_1724")] + #[serde(default = "default_1740")] pub last_at: Option, - #[serde(default = "default_1725")] + #[serde(default = "default_1741")] pub gap: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InspectSettings { - #[serde(default = "default_1726")] + #[serde(default = "default_1742")] pub guide_revision: Integer, - #[serde(default = "default_1727")] + #[serde(default = "default_1743")] pub guide_summary: String, - #[serde(default = "default_1728")] + #[serde(default = "default_1744")] pub categories_registered: Integer, - #[serde(default = "default_1729")] + #[serde(default = "default_1745")] pub extraction_policy: Option, - #[serde(default = "default_1730")] + #[serde(default = "default_1746")] pub extraction_policy_unavailable: String, - #[serde(default = "default_1731")] + #[serde(default = "default_1747")] pub extraction_instructions: String, - #[serde(default = "default_1732")] + #[serde(default = "default_1748")] pub extraction_instructions_refs: Vec, } @@ -36948,7 +37103,7 @@ pub struct MemoryInspectOutput { pub others: InspectView, pub activity: InspectActivity, pub settings: InspectSettings, - #[serde(default = "default_1733")] + #[serde(default = "default_1749")] pub skipped: Vec, } @@ -37042,7 +37197,7 @@ pub struct MemoryKeyRef { #[non_exhaustive] pub struct MemoryKeysOutput { pub keys: Vec, - #[serde(default = "default_1734")] + #[serde(default = "default_1750")] pub truncated: bool, } @@ -37145,9 +37300,9 @@ pub struct LineageCandidate { pub decided_at: String, pub decided_by: String, pub match_confidence: LineageCandidateMatchConfidence, - #[serde(default = "default_1743")] + #[serde(default = "default_1759")] pub seeded_from_thread_id: String, - #[serde(default = "default_1744")] + #[serde(default = "default_1760")] pub seeded_from_msg_id: String, } @@ -37165,25 +37320,25 @@ pub struct LineageAuditEvent { pub struct MemoryLineageOutput { pub found: bool, pub memory_key: String, - #[serde(default = "default_1735")] + #[serde(default = "default_1751")] pub promotion_event: String, - #[serde(default = "default_1736")] + #[serde(default = "default_1752")] pub promoted_by: String, - #[serde(default = "default_1737")] + #[serde(default = "default_1753")] pub promoted_at: Option, - #[serde(default = "default_1738")] + #[serde(default = "default_1754")] pub rationale: String, - #[serde(default = "default_1739")] + #[serde(default = "default_1755")] pub source_trace: String, - #[serde(default = "default_1740")] + #[serde(default = "default_1756")] pub source_resource_id: String, - #[serde(default = "default_1741")] + #[serde(default = "default_1757")] pub mechanism: MemoryLineageOutputMechanism, - #[serde(default = "default_1742")] + #[serde(default = "default_1758")] pub supporters: Vec, - #[serde(default = "default_1745")] + #[serde(default = "default_1761")] pub candidate: Option, - #[serde(default = "default_1746")] + #[serde(default = "default_1762")] pub audit_chain: Vec, } @@ -37312,11 +37467,11 @@ pub struct MemoryLinkOutput { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1747")] + #[serde(default = "default_1763")] pub confidence: f64, - #[serde(default = "default_1748")] + #[serde(default = "default_1764")] pub conflict_opened: bool, - #[serde(default = "default_1749")] + #[serde(default = "default_1765")] pub relation_defaulted: bool, } @@ -37630,17 +37785,17 @@ pub struct MemoryListEntry { pub struct MemoryListOutput { pub entries: Vec, pub truncated: bool, - #[serde(default = "default_1750")] + #[serde(default = "default_1766")] pub total: Integer, - #[serde(default = "default_1751")] + #[serde(default = "default_1767")] pub today: Integer, - #[serde(default = "default_1752")] + #[serde(default = "default_1768")] pub namespace_version: String, - #[serde(default = "default_1753")] + #[serde(default = "default_1769")] pub unchanged: bool, - #[serde(default = "default_1754")] + #[serde(default = "default_1770")] pub hidden: Integer, - #[serde(default = "default_1755")] + #[serde(default = "default_1771")] pub hidden_hint: String, } @@ -38026,19 +38181,19 @@ impl MemoryListInput { #[non_exhaustive] pub struct MemoryLockOutput { pub locked: bool, - #[serde(default = "default_1756")] + #[serde(default = "default_1772")] pub reason: String, - #[serde(default = "default_1757")] + #[serde(default = "default_1773")] pub memory_id: String, - #[serde(default = "default_1758")] + #[serde(default = "default_1774")] pub version: Option, - #[serde(default = "default_1759")] + #[serde(default = "default_1775")] pub lock_mode: String, - #[serde(default = "default_1760")] + #[serde(default = "default_1776")] pub lock_until: Option, - #[serde(default = "default_1761")] + #[serde(default = "default_1777")] pub locked_by: String, - #[serde(default = "default_1762")] + #[serde(default = "default_1778")] pub previous_mode: String, } @@ -38197,21 +38352,21 @@ pub struct MemoryMoveOutput { pub from_key: String, pub to_key: String, pub redirected: bool, - #[serde(default = "default_1763")] + #[serde(default = "default_1779")] pub memory_id: String, - #[serde(default = "default_1764")] + #[serde(default = "default_1780")] pub version: Integer, - #[serde(default = "default_1765")] + #[serde(default = "default_1781")] pub content_sha256: String, - #[serde(default = "default_1766")] + #[serde(default = "default_1782")] pub advisories: Vec, - #[serde(default = "default_1767")] + #[serde(default = "default_1783")] pub dry_run: bool, - #[serde(default = "default_1768")] + #[serde(default = "default_1784")] pub memory_type: String, - #[serde(default = "default_1769")] + #[serde(default = "default_1785")] pub value_preview: String, - #[serde(default = "default_1770")] + #[serde(default = "default_1786")] pub sensitivity: String, } @@ -38423,7 +38578,7 @@ impl MemoryMoveInput { pub struct MemoryOutcomeOutput { pub recorded: bool, pub evidence_count_after: Integer, - #[serde(default = "default_1771")] + #[serde(default = "default_1787")] pub quarantined: bool, } @@ -38666,13 +38821,13 @@ impl MemoryOutcomeRunInput { #[non_exhaustive] pub struct OutlineSession { pub session_id: String, - #[serde(default = "default_1773")] + #[serde(default = "default_1789")] pub date: String, - #[serde(default = "default_1774")] + #[serde(default = "default_1790")] pub headline: String, - #[serde(default = "default_1775")] + #[serde(default = "default_1791")] pub key_facts: Integer, - #[serde(default = "default_1776")] + #[serde(default = "default_1792")] pub rows: Integer, } @@ -38680,7 +38835,7 @@ pub struct OutlineSession { #[non_exhaustive] pub struct OutlineHub { pub entity: String, - #[serde(default = "default_1779")] + #[serde(default = "default_1795")] pub degree: Integer, } @@ -38688,28 +38843,28 @@ pub struct OutlineHub { #[non_exhaustive] pub struct OutlineCommunity { pub community_id: Integer, - #[serde(default = "default_1781")] + #[serde(default = "default_1797")] pub label: String, - #[serde(default = "default_1782")] + #[serde(default = "default_1798")] pub size: Integer, - #[serde(default = "default_1783")] + #[serde(default = "default_1799")] pub computed_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryOutlineOutput { - #[serde(default = "default_1772")] + #[serde(default = "default_1788")] pub rows_by_type: std::collections::HashMap, - #[serde(default = "default_1777")] + #[serde(default = "default_1793")] pub sessions: Vec, - #[serde(default = "default_1778")] + #[serde(default = "default_1794")] pub sessions_total: Integer, - #[serde(default = "default_1780")] + #[serde(default = "default_1796")] pub hubs: Vec, - #[serde(default = "default_1784")] + #[serde(default = "default_1800")] pub communities: Vec, - #[serde(default = "default_1785")] + #[serde(default = "default_1801")] pub profile_chars: Integer, } @@ -38861,7 +39016,7 @@ pub struct OwnerUsageRow { pub recalls: Integer, pub used: Integer, pub harm: Integer, - #[serde(default = "default_1786")] + #[serde(default = "default_1802")] pub last_recalled: Option, } @@ -39348,7 +39503,7 @@ pub struct MemoryPromoteOutput { pub shared_memory_key: String, pub promotion_event: String, pub reversible_until: String, - #[serde(default = "default_1787")] + #[serde(default = "default_1803")] pub ignored_args: Vec, } @@ -39517,18 +39672,18 @@ impl MemoryPromoteInput { pub struct MemoryProposalDecision { pub memory_key: String, pub decided: bool, - #[serde(default = "default_1789")] + #[serde(default = "default_1805")] pub status: String, - #[serde(default = "default_1790")] + #[serde(default = "default_1806")] pub reason: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalDecideOutput { - #[serde(default = "default_1788")] + #[serde(default = "default_1804")] pub decided: Integer, - #[serde(default = "default_1791")] + #[serde(default = "default_1807")] pub results: Vec, } @@ -39629,35 +39784,35 @@ pub enum MemoryProposalReady { pub struct MemoryProposal { pub memory_key: String, pub memory_id: String, - #[serde(default = "default_1792")] + #[serde(default = "default_1808")] pub content_sha256: String, - #[serde(default = "default_1793")] + #[serde(default = "default_1809")] pub agent: String, - #[serde(default = "default_1794")] + #[serde(default = "default_1810")] pub actor: String, - #[serde(default = "default_1795")] + #[serde(default = "default_1811")] pub memory_type: String, - #[serde(default = "default_1796")] + #[serde(default = "default_1812")] pub value_preview: String, - #[serde(default = "default_1797")] + #[serde(default = "default_1813")] pub sensitivity: String, - #[serde(default = "default_1798")] + #[serde(default = "default_1814")] pub tags: Vec, - #[serde(default = "default_1799")] + #[serde(default = "default_1815")] pub created_at: String, - #[serde(default = "default_1800")] + #[serde(default = "default_1816")] pub graded_passes: Integer, - #[serde(default = "default_1801")] + #[serde(default = "default_1817")] pub graded_fails: Integer, - #[serde(default = "default_1802")] + #[serde(default = "default_1818")] pub last_graded_at: String, - #[serde(default = "default_1803")] + #[serde(default = "default_1819")] pub used_count: Integer, - #[serde(default = "default_1804")] + #[serde(default = "default_1820")] pub harm_count: Integer, - #[serde(default = "default_1805")] + #[serde(default = "default_1821")] pub ready: MemoryProposalReady, - #[serde(default = "default_1806")] + #[serde(default = "default_1822")] pub conflict_with: Vec, } @@ -39673,24 +39828,24 @@ pub enum ProposalPolicyMode { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProposalPolicy { - #[serde(default = "default_1809")] + #[serde(default = "default_1825")] pub mode: ProposalPolicyMode, - #[serde(default = "default_1810")] + #[serde(default = "default_1826")] pub min_passes: Integer, - #[serde(default = "default_1811")] + #[serde(default = "default_1827")] pub max_fails: Integer, - #[serde(default = "default_1812")] + #[serde(default = "default_1828")] pub reject_after_fails: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalsOutput { - #[serde(default = "default_1807")] + #[serde(default = "default_1823")] pub proposals: Vec, - #[serde(default = "default_1808")] + #[serde(default = "default_1824")] pub total: Integer, - #[serde(default = "default_1813")] + #[serde(default = "default_1829")] pub policy: ProposalPolicy, } @@ -39819,19 +39974,19 @@ impl MemoryProposalsInput { pub struct MemoryProvenanceLink { pub direction: String, pub memory_key: String, - #[serde(default = "default_1827")] + #[serde(default = "default_1843")] pub relation: String, - #[serde(default = "default_1828")] + #[serde(default = "default_1844")] pub label: String, - #[serde(default = "default_1829")] + #[serde(default = "default_1845")] pub explanation: String, - #[serde(default = "default_1830")] + #[serde(default = "default_1846")] pub evidence: Vec, - #[serde(default = "default_1831")] + #[serde(default = "default_1847")] pub confidence: f64, - #[serde(default = "default_1832")] + #[serde(default = "default_1848")] pub author: String, - #[serde(default = "default_1833")] + #[serde(default = "default_1849")] pub run_id: String, } @@ -39839,33 +39994,33 @@ pub struct MemoryProvenanceLink { #[non_exhaustive] pub struct MemoryProvenanceOutput { pub found: bool, - #[serde(default = "default_1814")] + #[serde(default = "default_1830")] pub source_trace: String, - #[serde(default = "default_1815")] + #[serde(default = "default_1831")] pub source_kind: String, - #[serde(default = "default_1816")] + #[serde(default = "default_1832")] pub actor: String, - #[serde(default = "default_1817")] + #[serde(default = "default_1833")] pub source_class: String, - #[serde(default = "default_1818")] + #[serde(default = "default_1834")] pub source_label: String, - #[serde(default = "default_1819")] + #[serde(default = "default_1835")] pub thread_id: String, - #[serde(default = "default_1820")] + #[serde(default = "default_1836")] pub thread_exists: bool, - #[serde(default = "default_1821")] + #[serde(default = "default_1837")] pub thread_title: String, - #[serde(default = "default_1822")] + #[serde(default = "default_1838")] pub agent: String, - #[serde(default = "default_1823")] + #[serde(default = "default_1839")] pub session_id: String, - #[serde(default = "default_1824")] + #[serde(default = "default_1840")] pub run_id: String, - #[serde(default = "default_1825")] + #[serde(default = "default_1841")] pub written_at: String, - #[serde(default = "default_1826")] + #[serde(default = "default_1842")] pub source_resource_id: String, - #[serde(default = "default_1834")] + #[serde(default = "default_1850")] pub links: Vec, } @@ -39960,17 +40115,17 @@ impl MemoryProvenanceInput { pub struct RecallTurn { pub evidence_id: String, pub session_id: String, - #[serde(default = "default_1835")] + #[serde(default = "default_1851")] pub role: String, - #[serde(default = "default_1836")] + #[serde(default = "default_1852")] pub actor: String, - #[serde(default = "default_1837")] + #[serde(default = "default_1853")] pub observed_at: String, - #[serde(default = "default_1838")] + #[serde(default = "default_1854")] pub content: String, - #[serde(default = "default_1839")] + #[serde(default = "default_1855")] pub truncated: bool, - #[serde(default = "default_1840")] + #[serde(default = "default_1856")] pub matched_tokens: Integer, } @@ -39987,21 +40142,21 @@ pub enum MemoryRecallOutputOrder { #[non_exhaustive] pub struct MemoryRecallOutput { pub turns: Vec, - #[serde(default = "default_1841")] + #[serde(default = "default_1857")] pub total_matched: Integer, - #[serde(default = "default_1842")] + #[serde(default = "default_1858")] pub returned: Integer, - #[serde(default = "default_1843")] + #[serde(default = "default_1859")] pub has_more: bool, - #[serde(default = "default_1844")] + #[serde(default = "default_1860")] pub next_cursor: String, - #[serde(default = "default_1845")] + #[serde(default = "default_1861")] pub next_offset: Integer, - #[serde(default = "default_1846")] + #[serde(default = "default_1862")] pub order: MemoryRecallOutputOrder, - #[serde(default = "default_1847")] + #[serde(default = "default_1863")] pub query_tokens: Vec, - #[serde(default = "default_1848")] + #[serde(default = "default_1864")] pub tokens_returned: Integer, } @@ -40283,19 +40438,19 @@ pub struct MemoryRecordConflictRow { pub schema_name: String, pub memory_key: String, pub field_name: String, - #[serde(default = "default_1849")] + #[serde(default = "default_1865")] pub prior_value: Value, - #[serde(default = "default_1850")] + #[serde(default = "default_1866")] pub incoming_value: Value, pub prior_record_id: String, pub incoming_record_id: String, - #[serde(default = "default_1851")] + #[serde(default = "default_1867")] pub prior_memory_id: String, - #[serde(default = "default_1852")] + #[serde(default = "default_1868")] pub incoming_memory_id: String, - #[serde(default = "default_1853")] + #[serde(default = "default_1869")] pub detected_at: Option, - #[serde(default = "default_1854")] + #[serde(default = "default_1870")] pub resolved_at: Option, } @@ -40303,7 +40458,7 @@ pub struct MemoryRecordConflictRow { #[non_exhaustive] pub struct MemoryRecordConflictsOutput { pub rows: Vec, - #[serde(default = "default_1855")] + #[serde(default = "default_1871")] pub truncated: bool, } @@ -40413,19 +40568,19 @@ pub enum MemoryRecordRowStatus { #[non_exhaustive] pub struct MemoryRecordRow { pub record_id: String, - #[serde(default = "default_1856")] + #[serde(default = "default_1872")] pub memory_key: String, - #[serde(default = "default_1857")] + #[serde(default = "default_1873")] pub memory_id: String, - #[serde(default = "default_1858")] + #[serde(default = "default_1874")] pub record: std::collections::HashMap, - #[serde(default = "default_1859")] + #[serde(default = "default_1875")] pub field_states: std::collections::HashMap, - #[serde(default = "default_1860")] + #[serde(default = "default_1876")] pub status: MemoryRecordRowStatus, - #[serde(default = "default_1861")] + #[serde(default = "default_1877")] pub valid_at: Option, - #[serde(default = "default_1862")] + #[serde(default = "default_1878")] pub valid_to: Option, } @@ -40492,7 +40647,7 @@ impl MemoryRecordHistoryInput { #[non_exhaustive] pub struct MemoryRecordQueryOutput { pub rows: Vec, - #[serde(default = "default_1863")] + #[serde(default = "default_1879")] pub truncated: bool, } @@ -40716,15 +40871,15 @@ pub enum MemoryRecordWriteOutputKeySource { pub struct MemoryRecordWriteOutput { pub record_id: String, pub field_count: Integer, - #[serde(default = "default_1864")] + #[serde(default = "default_1880")] pub memory_key: String, - #[serde(default = "default_1865")] + #[serde(default = "default_1881")] pub key_source: MemoryRecordWriteOutputKeySource, - #[serde(default = "default_1866")] + #[serde(default = "default_1882")] pub fold: std::collections::HashMap, - #[serde(default = "default_1867")] + #[serde(default = "default_1883")] pub superseded_record_id: String, - #[serde(default = "default_1868")] + #[serde(default = "default_1884")] pub conflicts: Integer, } @@ -40967,13 +41122,13 @@ impl MemoryRecordWriteInput { #[non_exhaustive] pub struct MemoryRedactOutput { pub redacted: bool, - #[serde(default = "default_1869")] + #[serde(default = "default_1885")] pub refused_head: bool, - #[serde(default = "default_1870")] + #[serde(default = "default_1886")] pub redacted_at: Option, - #[serde(default = "default_1871")] + #[serde(default = "default_1887")] pub cache_rows_deleted: Integer, - #[serde(default = "default_1872")] + #[serde(default = "default_1888")] pub precedent_rows_deleted: Integer, } @@ -41133,7 +41288,7 @@ impl MemoryReindexInput { #[non_exhaustive] pub struct MemoryRejectOutput { pub rejected: bool, - #[serde(default = "default_1873")] + #[serde(default = "default_1889")] pub rejected_at: Option, } @@ -41249,7 +41404,7 @@ pub struct MemoryRelatedHit { pub struct MemoryRelatedOutput { pub results: Vec, pub source_entities: Vec, - #[serde(default = "default_1874")] + #[serde(default = "default_1890")] pub reason: String, } @@ -41364,13 +41519,13 @@ impl MemoryRelatedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryResolveOrphanDuplicatesOutput { - #[serde(default = "default_1875")] + #[serde(default = "default_1891")] pub candidates: Integer, - #[serde(default = "default_1876")] + #[serde(default = "default_1892")] pub reactivated: Integer, - #[serde(default = "default_1877")] + #[serde(default = "default_1893")] pub dry_run: bool, - #[serde(default = "default_1878")] + #[serde(default = "default_1894")] pub memory_ids: Vec, } @@ -41447,15 +41602,15 @@ impl MemoryResolveOrphanDuplicatesInput { #[non_exhaustive] pub struct MemoryRestoreOutput { pub restored: bool, - #[serde(default = "default_1879")] + #[serde(default = "default_1895")] pub memory_id: Option, - #[serde(default = "default_1880")] + #[serde(default = "default_1896")] pub version: Option, - #[serde(default = "default_1881")] + #[serde(default = "default_1897")] pub expired: bool, - #[serde(default = "default_1882")] + #[serde(default = "default_1898")] pub redacted: bool, - #[serde(default = "default_1883")] + #[serde(default = "default_1899")] pub from_status: String, } @@ -41575,13 +41730,13 @@ pub struct SearchTraceHit { pub content_excerpt: String, pub distance: f64, pub similarity: f64, - #[serde(default = "default_1884")] + #[serde(default = "default_1900")] pub entity_boost: f64, pub rank_score: f64, pub rank: Integer, - #[serde(default = "default_1885")] + #[serde(default = "default_1901")] pub source: String, - #[serde(default = "default_1886")] + #[serde(default = "default_1902")] pub parent_memory_key: String, } @@ -41591,11 +41746,11 @@ pub struct MemorySearchTraceOutput { pub results: Vec, pub embedding_model: String, pub entity_filter: Vec, - #[serde(default = "default_1887")] + #[serde(default = "default_1903")] pub query_spellings: std::collections::HashMap, - #[serde(default = "default_1888")] + #[serde(default = "default_1904")] pub query_spellings_skipped: bool, - #[serde(default = "default_1889")] + #[serde(default = "default_1905")] pub stale_dropped: Integer, } @@ -42798,7 +42953,7 @@ pub struct SearchTraceLogRow { pub embedding_model: String, pub latency_ms: Integer, pub run_id: String, - #[serde(default = "default_1890")] + #[serde(default = "default_1906")] pub operation: String, } @@ -42907,71 +43062,71 @@ pub struct RefusedFact { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySetFromMessagesOutput { - #[serde(default = "default_1891")] + #[serde(default = "default_1907")] pub written: Vec, - #[serde(default = "default_1892")] + #[serde(default = "default_1908")] pub refused: Vec, - #[serde(default = "default_1893")] + #[serde(default = "default_1909")] pub tokens_in: Integer, - #[serde(default = "default_1894")] + #[serde(default = "default_1910")] pub tokens_out: Integer, - #[serde(default = "default_1895")] + #[serde(default = "default_1911")] pub llm_provider: String, - #[serde(default = "default_1896")] + #[serde(default = "default_1912")] pub llm_model: String, - #[serde(default = "default_1897")] + #[serde(default = "default_1913")] pub segments: Integer, - #[serde(default = "default_1898")] + #[serde(default = "default_1914")] pub foresight: Integer, - #[serde(default = "default_1899")] + #[serde(default = "default_1915")] pub forgotten: Integer, - #[serde(default = "default_1900")] + #[serde(default = "default_1916")] pub forgotten_keys: Vec, - #[serde(default = "default_1901")] + #[serde(default = "default_1917")] pub forget_requests: Integer, - #[serde(default = "default_1902")] + #[serde(default = "default_1918")] pub about_other: Integer, - #[serde(default = "default_1903")] + #[serde(default = "default_1919")] pub premise_facts: Integer, - #[serde(default = "default_1904")] + #[serde(default = "default_1920")] pub learning_candidates: Integer, - #[serde(default = "default_1905")] + #[serde(default = "default_1921")] pub ignored_args: Vec, - #[serde(default = "default_1906")] + #[serde(default = "default_1922")] pub segmenter: String, - #[serde(default = "default_1907")] + #[serde(default = "default_1923")] pub cached_tokens_in: Integer, - #[serde(default = "default_1908")] + #[serde(default = "default_1924")] pub ontology_warnings: Vec, - #[serde(default = "default_1909")] + #[serde(default = "default_1925")] pub evidence_ids: Vec, - #[serde(default = "default_1910")] + #[serde(default = "default_1926")] pub belief_source_links: Integer, - #[serde(default = "default_1911")] + #[serde(default = "default_1927")] pub pipeline_errors: Vec, - #[serde(default = "default_1912")] + #[serde(default = "default_1928")] pub value_updates_linked: Integer, - #[serde(default = "default_1913")] + #[serde(default = "default_1929")] pub stubbed_fields: Vec, - #[serde(default = "default_1914")] + #[serde(default = "default_1930")] pub degraded: Vec, - #[serde(default = "default_1915")] + #[serde(default = "default_1931")] pub deferred: bool, - #[serde(default = "default_1916")] + #[serde(default = "default_1932")] pub queue_id: String, - #[serde(default = "default_1917")] + #[serde(default = "default_1933")] pub deferred_by: String, - #[serde(default = "default_1918")] + #[serde(default = "default_1934")] pub stage_ms: std::collections::HashMap, - #[serde(default = "default_1919")] + #[serde(default = "default_1935")] pub observation_date_source: String, - #[serde(default = "default_1920")] + #[serde(default = "default_1936")] pub under_operator_policy: bool, - #[serde(default = "default_1921")] + #[serde(default = "default_1937")] pub extract_prompt_keys: Vec, - #[serde(default = "default_1922")] + #[serde(default = "default_1938")] pub llm_cache_hits: Integer, - #[serde(default = "default_1923")] + #[serde(default = "default_1939")] pub llm_cache_misses: Integer, } @@ -43426,22 +43581,22 @@ pub enum StackEntrySection { #[non_exhaustive] pub struct StackEntry { pub section: StackEntrySection, - #[serde(default = "default_1924")] + #[serde(default = "default_1940")] pub memory_key: String, - #[serde(default = "default_1925")] + #[serde(default = "default_1941")] pub memory_type: String, - #[serde(default = "default_1926")] + #[serde(default = "default_1942")] pub value: String, pub tokens: Integer, - #[serde(default = "default_1927")] + #[serde(default = "default_1943")] pub pinned: bool, - #[serde(default = "default_1928")] + #[serde(default = "default_1944")] pub recall_count: Integer, - #[serde(default = "default_1929")] + #[serde(default = "default_1945")] pub last_recalled_at: Option, - #[serde(default = "default_1930")] + #[serde(default = "default_1946")] pub actor: String, - #[serde(default = "default_1931")] + #[serde(default = "default_1947")] pub namespace: String, } @@ -43626,14 +43781,14 @@ impl MemoryStackInput { pub struct MemoryStatus { pub memory_id: String, pub status: String, - #[serde(default = "default_1932")] + #[serde(default = "default_1948")] pub superseded_by: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryStatusesOutput { - #[serde(default = "default_1933")] + #[serde(default = "default_1949")] pub rows: Vec, } @@ -43682,23 +43837,23 @@ impl MemoryStatusesInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySweepExpiredOutput { - #[serde(default = "default_1934")] + #[serde(default = "default_1950")] pub scanned: Integer, - #[serde(default = "default_1935")] + #[serde(default = "default_1951")] pub tombstoned: Integer, - #[serde(default = "default_1936")] + #[serde(default = "default_1952")] pub demoted: Integer, - #[serde(default = "default_1937")] + #[serde(default = "default_1953")] pub anonymized: Integer, - #[serde(default = "default_1938")] + #[serde(default = "default_1954")] pub locked_skipped: Integer, - #[serde(default = "default_1939")] + #[serde(default = "default_1955")] pub moved_skipped: Integer, - #[serde(default = "default_1940")] + #[serde(default = "default_1956")] pub dry_run: bool, - #[serde(default = "default_1941")] + #[serde(default = "default_1957")] pub sample: Vec>, - #[serde(default = "default_1942")] + #[serde(default = "default_1958")] pub failures: Vec, } @@ -43775,10 +43930,10 @@ pub struct MemoryTimelineEntry { pub memory_key: String, pub memory_type: String, pub content_excerpt: String, - #[serde(default = "default_1943")] + #[serde(default = "default_1959")] pub valid_at: Option, pub created_at: String, - #[serde(default = "default_1944")] + #[serde(default = "default_1960")] pub namespace: String, } @@ -43786,7 +43941,7 @@ pub struct MemoryTimelineEntry { #[non_exhaustive] pub struct MemoryTimelineOutput { pub events: Vec, - #[serde(default = "default_1945")] + #[serde(default = "default_1961")] pub total_matching: Integer, } @@ -43978,9 +44133,9 @@ impl MemoryTimelineInput { pub struct MemoryTouchResult { pub memory_key: String, pub touched: bool, - #[serde(default = "default_1948")] + #[serde(default = "default_1964")] pub version: Option, - #[serde(default = "default_1949")] + #[serde(default = "default_1965")] pub expires_at: Option, } @@ -43988,13 +44143,13 @@ pub struct MemoryTouchResult { #[non_exhaustive] pub struct MemoryTouchOutput { pub touched: bool, - #[serde(default = "default_1946")] + #[serde(default = "default_1962")] pub version: Option, - #[serde(default = "default_1947")] + #[serde(default = "default_1963")] pub expires_at: Option, - #[serde(default = "default_1950")] + #[serde(default = "default_1966")] pub results: Vec, - #[serde(default = "default_1951")] + #[serde(default = "default_1967")] pub touched_count: Integer, } @@ -44174,15 +44329,15 @@ impl MemoryTouchInput { #[non_exhaustive] pub struct MemoryUnlockOutput { pub unlocked: bool, - #[serde(default = "default_1952")] + #[serde(default = "default_1968")] pub reason: String, - #[serde(default = "default_1953")] + #[serde(default = "default_1969")] pub memory_id: String, - #[serde(default = "default_1954")] + #[serde(default = "default_1970")] pub version: Option, - #[serde(default = "default_1955")] + #[serde(default = "default_1971")] pub previous_mode: String, - #[serde(default = "default_1956")] + #[serde(default = "default_1972")] pub unlocked_by: String, } @@ -44287,11 +44442,11 @@ impl MemoryUnlockInput { #[non_exhaustive] pub struct MemoryUnpinOutput { pub unpinned: bool, - #[serde(default = "default_1957")] + #[serde(default = "default_1973")] pub reason: String, - #[serde(default = "default_1958")] + #[serde(default = "default_1974")] pub memory_id: String, - #[serde(default = "default_1959")] + #[serde(default = "default_1975")] pub version: Option, } @@ -44385,15 +44540,15 @@ impl MemoryUnpinInput { #[non_exhaustive] pub struct MemoryUpdateCandidate { pub memory_id: String, - #[serde(default = "default_1965")] + #[serde(default = "default_1981")] pub agent: String, - #[serde(default = "default_1966")] + #[serde(default = "default_1982")] pub user_id: String, - #[serde(default = "default_1967")] + #[serde(default = "default_1983")] pub session_id: String, - #[serde(default = "default_1968")] + #[serde(default = "default_1984")] pub version: Integer, - #[serde(default = "default_1969")] + #[serde(default = "default_1985")] pub status: String, } @@ -44401,23 +44556,23 @@ pub struct MemoryUpdateCandidate { #[non_exhaustive] pub struct MemoryUpdateOutput { pub updated: bool, - #[serde(default = "default_1960")] + #[serde(default = "default_1976")] pub memory_id: String, - #[serde(default = "default_1961")] + #[serde(default = "default_1977")] pub memory_key: String, - #[serde(default = "default_1962")] + #[serde(default = "default_1978")] pub new_version: Integer, - #[serde(default = "default_1963")] + #[serde(default = "default_1979")] pub content_sha256: String, - #[serde(default = "default_1964")] + #[serde(default = "default_1980")] pub reason: String, - #[serde(default = "default_1970")] + #[serde(default = "default_1986")] pub candidates: Vec, - #[serde(default = "default_1971")] + #[serde(default = "default_1987")] pub conflict_verdict: String, - #[serde(default = "default_1972")] + #[serde(default = "default_1988")] pub conflict_peers: Integer, - #[serde(default = "default_1973")] + #[serde(default = "default_1989")] pub duplicate_of: String, } @@ -44626,15 +44781,15 @@ impl MemoryUpdateInput { #[non_exhaustive] pub struct MemoryUpdateByIdOutput { pub updated: bool, - #[serde(default = "default_1974")] + #[serde(default = "default_1990")] pub new_version: Integer, - #[serde(default = "default_1975")] + #[serde(default = "default_1991")] pub content_sha256: String, - #[serde(default = "default_1976")] + #[serde(default = "default_1992")] pub conflict_verdict: String, - #[serde(default = "default_1977")] + #[serde(default = "default_1993")] pub conflict_peers: Integer, - #[serde(default = "default_1978")] + #[serde(default = "default_1994")] pub duplicate_of: String, } @@ -44762,23 +44917,23 @@ impl MemoryUpdateByIdInput { #[non_exhaustive] pub struct MemoryVerifyOutput { pub found: bool, - #[serde(default = "default_1979")] + #[serde(default = "default_1995")] pub changed: bool, - #[serde(default = "default_1980")] + #[serde(default = "default_1996")] pub memory_id: String, - #[serde(default = "default_1981")] + #[serde(default = "default_1997")] pub memory_key: String, - #[serde(default = "default_1982")] + #[serde(default = "default_1998")] pub namespace: String, - #[serde(default = "default_1983")] + #[serde(default = "default_1999")] pub verified_by: String, - #[serde(default = "default_1984")] + #[serde(default = "default_2000")] pub verified_at: Option, - #[serde(default = "default_1985")] + #[serde(default = "default_2001")] pub verification: String, - #[serde(default = "default_1986")] + #[serde(default = "default_2002")] pub version: Integer, - #[serde(default = "default_1987")] + #[serde(default = "default_2003")] pub content_sha256: String, } @@ -44994,13 +45149,13 @@ pub struct SchemaFieldOutput { #[serde(rename = "type")] pub r#type: String, pub required: bool, - #[serde(default = "default_1990")] + #[serde(default = "default_2006")] pub identity: bool, - #[serde(default = "default_1991")] + #[serde(default = "default_2007")] pub enum_values: Vec, - #[serde(default = "default_1992")] + #[serde(default = "default_2008")] pub constraints: std::collections::HashMap, - #[serde(default = "default_1993")] + #[serde(default = "default_2009")] pub description: String, } @@ -45009,11 +45164,11 @@ pub struct SchemaFieldOutput { pub struct MemorySchemaSummary { pub schema_id: String, pub name: String, - #[serde(default = "default_1988")] + #[serde(default = "default_2004")] pub description: String, - #[serde(default = "default_1989")] + #[serde(default = "default_2005")] pub status: String, - #[serde(default = "default_1994")] + #[serde(default = "default_2010")] pub fields: Vec, } @@ -45428,13 +45583,13 @@ impl MemorySchemaRegisterInput { #[non_exhaustive] pub struct MentorPlane { pub plane: String, - #[serde(default = "default_1996")] + #[serde(default = "default_2012")] pub calls: Integer, - #[serde(default = "default_1997")] + #[serde(default = "default_2013")] pub available: Option, - #[serde(default = "default_1998")] + #[serde(default = "default_2014")] pub when: String, - #[serde(default = "default_1999")] + #[serde(default = "default_2015")] pub mentored: bool, } @@ -45444,11 +45599,11 @@ pub struct MentorHint { pub code: String, pub severity: String, pub text: String, - #[serde(default = "default_2001")] + #[serde(default = "default_2017")] pub ops: Vec, - #[serde(default = "default_2002")] + #[serde(default = "default_2018")] pub evidence: std::collections::HashMap, - #[serde(default = "default_2003")] + #[serde(default = "default_2019")] pub plane: Option, } @@ -45456,9 +45611,9 @@ pub struct MentorHint { #[non_exhaustive] pub struct MentorAdoption { pub code: String, - #[serde(default = "default_2005")] + #[serde(default = "default_2021")] pub shown_sessions: Integer, - #[serde(default = "default_2006")] + #[serde(default = "default_2022")] pub followed_sessions: Integer, } @@ -45494,7 +45649,7 @@ pub enum UsageRungSource { #[non_exhaustive] pub struct UsageRung { pub rung: UsageRungRung, - #[serde(default = "default_2008")] + #[serde(default = "default_2024")] pub count: Option, pub source: UsageRungSource, pub meaning: String, @@ -45509,27 +45664,27 @@ pub struct MentorBriefOutput { pub window_seconds: Integer, pub computed_at: String, pub sessions: Integer, - #[serde(default = "default_1995")] + #[serde(default = "default_2011")] pub usage: std::collections::HashMap, - #[serde(default = "default_2000")] + #[serde(default = "default_2016")] pub planes: Vec, - #[serde(default = "default_2004")] + #[serde(default = "default_2020")] pub hints: Vec, - #[serde(default = "default_2007")] + #[serde(default = "default_2023")] pub adoption: Vec, - #[serde(default = "default_2009")] + #[serde(default = "default_2025")] pub usage_evidence: Vec, - #[serde(default = "default_2010")] + #[serde(default = "default_2026")] pub ledger_from: Option, - #[serde(default = "default_2011")] + #[serde(default = "default_2027")] pub ledger_retention_days: Option, - #[serde(default = "default_2012")] + #[serde(default = "default_2028")] pub agents: Vec, - #[serde(default = "default_2013")] + #[serde(default = "default_2029")] pub agent_defaulted: bool, - #[serde(default = "default_2014")] + #[serde(default = "default_2030")] pub skipped: Vec, - #[serde(default = "default_2015")] + #[serde(default = "default_2031")] pub healthy: bool, } @@ -45678,33 +45833,33 @@ impl MentorGuideInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct NamespaceAuditSummary { - #[serde(default = "default_2016")] + #[serde(default = "default_2032")] pub live_rows: Integer, - #[serde(default = "default_2017")] + #[serde(default = "default_2033")] pub live_bytes: Integer, - #[serde(default = "default_2018")] + #[serde(default = "default_2034")] pub excerpt_bytes: Integer, - #[serde(default = "default_2019")] + #[serde(default = "default_2035")] pub version_rows: Integer, - #[serde(default = "default_2020")] + #[serde(default = "default_2036")] pub version_bytes: Integer, - #[serde(default = "default_2021")] + #[serde(default = "default_2037")] pub unembedded_rows: Integer, - #[serde(default = "default_2022")] + #[serde(default = "default_2038")] pub gets: Integer, - #[serde(default = "default_2023")] + #[serde(default = "default_2039")] pub searches: Integer, - #[serde(default = "default_2024")] + #[serde(default = "default_2040")] pub sets: Integer, - #[serde(default = "default_2025")] + #[serde(default = "default_2041")] pub get_search_ratio: f64, - #[serde(default = "default_2026")] + #[serde(default = "default_2042")] pub inspector_calls: Integer, - #[serde(default = "default_2027")] + #[serde(default = "default_2043")] pub typed_gets: Integer, - #[serde(default = "default_2028")] + #[serde(default = "default_2044")] pub written_in_window: Integer, - #[serde(default = "default_2029")] + #[serde(default = "default_2045")] pub ledger_calls: Integer, } @@ -45736,25 +45891,25 @@ pub struct NamespaceAuditFinding { pub kind: NamespaceAuditFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_2030")] + #[serde(default = "default_2046")] pub window_seconds: Option, - #[serde(default = "default_2031")] + #[serde(default = "default_2047")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_2032")] + #[serde(default = "default_2048")] pub evidence: Vec, - #[serde(default = "default_2033")] + #[serde(default = "default_2049")] pub exceptions: String, - #[serde(default = "default_2034")] + #[serde(default = "default_2050")] pub uncertainty: String, pub code: String, pub severity: NamespaceAuditFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_2035")] + #[serde(default = "default_2051")] pub bytes: Integer, - #[serde(default = "default_2036")] + #[serde(default = "default_2052")] pub samples: Vec>, pub detail: String, pub remedy: String, @@ -45769,7 +45924,7 @@ pub struct NamespaceAuditOutput { pub window_seconds: Integer, pub summary: NamespaceAuditSummary, pub findings: Vec, - #[serde(default = "default_2037")] + #[serde(default = "default_2053")] pub skipped: Vec, pub coverage: ReportCoverage, pub healthy: bool, @@ -45860,29 +46015,29 @@ pub enum BrowseEntryMyStatus { #[non_exhaustive] pub struct BrowseEntry { pub namespace: String, - #[serde(default = "default_2038")] + #[serde(default = "default_2054")] pub kind: String, pub description: String, pub owner_email: String, pub member_count: Integer, - #[serde(default = "default_2039")] + #[serde(default = "default_2055")] pub requires_approval: bool, pub created_at: String, - #[serde(default = "default_2040")] + #[serde(default = "default_2056")] pub join_policy: String, - #[serde(default = "default_2041")] + #[serde(default = "default_2057")] pub visibility: String, - #[serde(default = "default_2042")] + #[serde(default = "default_2058")] pub my_status: BrowseEntryMyStatus, - #[serde(default = "default_2043")] + #[serde(default = "default_2059")] pub my_role: String, - #[serde(default = "default_2044")] + #[serde(default = "default_2060")] pub repo: String, - #[serde(default = "default_2045")] + #[serde(default = "default_2061")] pub branch: String, - #[serde(default = "default_2046")] + #[serde(default = "default_2062")] pub guide_revision: Integer, - #[serde(default = "default_2047")] + #[serde(default = "default_2063")] pub guide_summary: String, } @@ -45986,9 +46141,9 @@ pub enum NamespaceCancelRequestOutputClearedRole { pub struct NamespaceCancelRequestOutput { pub cancelled: bool, pub namespace: String, - #[serde(default = "default_2048")] + #[serde(default = "default_2064")] pub cleared_role: Option, - #[serde(default = "default_2049")] + #[serde(default = "default_2065")] pub cancelled_at: Option, } @@ -46060,7 +46215,7 @@ pub struct NamespaceDeleteOutput { pub deleted: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2050")] + #[serde(default = "default_2066")] pub sources_retired: Vec, } @@ -46129,67 +46284,67 @@ pub enum NamespaceGetOutputClassification { pub struct NamespaceGetOutput { pub found: bool, pub namespace: String, - #[serde(default = "default_2051")] + #[serde(default = "default_2067")] pub kind: Option, - #[serde(default = "default_2052")] + #[serde(default = "default_2068")] pub owner_email: Option, - #[serde(default = "default_2053")] + #[serde(default = "default_2069")] pub description: Option, - #[serde(default = "default_2054")] + #[serde(default = "default_2070")] pub tags: Option>, - #[serde(default = "default_2055")] + #[serde(default = "default_2071")] pub active: Option, - #[serde(default = "default_2056")] + #[serde(default = "default_2072")] pub conversation_logging_enabled: Option, - #[serde(default = "default_2057")] + #[serde(default = "default_2073")] pub capture_generation_io: Option, - #[serde(default = "default_2058")] + #[serde(default = "default_2074")] pub coverage_sweep: Option, - #[serde(default = "default_2059")] + #[serde(default = "default_2075")] pub consolidation_enabled: Option, - #[serde(default = "default_2060")] + #[serde(default = "default_2076")] pub daily_cost_cap_usd: Option, - #[serde(default = "default_2061")] + #[serde(default = "default_2077")] pub daily_user_cost_cap_usd: Option, - #[serde(default = "default_2062")] + #[serde(default = "default_2078")] pub budget_alert_inbox: Option, - #[serde(default = "default_2063")] + #[serde(default = "default_2079")] pub conflict_threshold: Option, - #[serde(default = "default_2064")] + #[serde(default = "default_2080")] pub retention_days: Option, - #[serde(default = "default_2065")] + #[serde(default = "default_2081")] pub warm_days: Option, - #[serde(default = "default_2066")] + #[serde(default = "default_2082")] pub visibility: Option, - #[serde(default = "default_2067")] + #[serde(default = "default_2083")] pub requires_approval: Option, - #[serde(default = "default_2068")] + #[serde(default = "default_2084")] pub join_policy: Option, - #[serde(default = "default_2069")] + #[serde(default = "default_2085")] pub effective_join_policy: Option, - #[serde(default = "default_2070")] + #[serde(default = "default_2086")] pub retrieval_defaults: Option>, - #[serde(default = "default_2071")] + #[serde(default = "default_2087")] pub rerank_endpoint: Option, - #[serde(default = "default_2072")] + #[serde(default = "default_2088")] pub classify_endpoint: Option, - #[serde(default = "default_2073")] + #[serde(default = "default_2089")] pub default_conflict_policy: Option, - #[serde(default = "default_2074")] + #[serde(default = "default_2090")] pub proposal_policy: Option, - #[serde(default = "default_2075")] + #[serde(default = "default_2091")] pub code_change_policy: Option, - #[serde(default = "default_2076")] + #[serde(default = "default_2092")] pub tag_registry: Option>>, - #[serde(default = "default_2077")] + #[serde(default = "default_2093")] pub classification: Option, - #[serde(default = "default_2078")] + #[serde(default = "default_2094")] pub guide_revision: Option, - #[serde(default = "default_2079")] + #[serde(default = "default_2095")] pub guide_summary: Option, - #[serde(default = "default_2080")] + #[serde(default = "default_2096")] pub created_at: Option, - #[serde(default = "default_2081")] + #[serde(default = "default_2097")] pub updated_at: Option, } @@ -46242,17 +46397,17 @@ impl NamespaceGetInput { #[non_exhaustive] pub struct NamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2082")] + #[serde(default = "default_2098")] pub revision: Integer, - #[serde(default = "default_2083")] + #[serde(default = "default_2099")] pub content: String, - #[serde(default = "default_2084")] + #[serde(default = "default_2100")] pub summary: String, - #[serde(default = "default_2085")] + #[serde(default = "default_2101")] pub note: String, - #[serde(default = "default_2086")] + #[serde(default = "default_2102")] pub updated_by: String, - #[serde(default = "default_2087")] + #[serde(default = "default_2103")] pub updated_at: Option, } @@ -46389,17 +46544,17 @@ impl NamespaceGuideHistoryInput { #[non_exhaustive] pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2089")] + #[serde(default = "default_2105")] pub revision: Integer, - #[serde(default = "default_2090")] + #[serde(default = "default_2106")] pub content: String, - #[serde(default = "default_2091")] + #[serde(default = "default_2107")] pub summary: String, - #[serde(default = "default_2092")] + #[serde(default = "default_2108")] pub note: String, - #[serde(default = "default_2093")] + #[serde(default = "default_2109")] pub updated_by: String, - #[serde(default = "default_2094")] + #[serde(default = "default_2110")] pub updated_at: Option, } @@ -46407,10 +46562,10 @@ pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { #[non_exhaustive] pub struct NamespaceGuideSetOutput { pub written: bool, - #[serde(default = "default_2088")] + #[serde(default = "default_2104")] pub conflict: bool, pub revision: Integer, - #[serde(default = "default_2095")] + #[serde(default = "default_2111")] pub current: Option, } @@ -46531,7 +46686,7 @@ pub struct InventorySection { #[serde(deserialize_with = "required_nullable")] pub latest_at: Option, pub complete: bool, - #[serde(default = "default_2096")] + #[serde(default = "default_2112")] pub reason: String, } @@ -46561,10 +46716,10 @@ pub struct InventoryPopulation { pub population: InventoryPopulationPopulation, #[serde(deserialize_with = "required_nullable")] pub total: Option, - #[serde(default = "default_2097")] + #[serde(default = "default_2113")] pub top: Vec, pub complete: bool, - #[serde(default = "default_2098")] + #[serde(default = "default_2114")] pub reason: String, } @@ -46730,11 +46885,11 @@ pub struct NamespaceJoinOutput { pub joined: bool, pub namespace: String, pub role: NamespaceJoinOutputRole, - #[serde(default = "default_2099")] + #[serde(default = "default_2115")] pub status: String, - #[serde(default = "default_2100")] + #[serde(default = "default_2116")] pub requested_role: Option, - #[serde(default = "default_2101")] + #[serde(default = "default_2117")] pub pending_admins: Vec, pub joined_at: String, } @@ -46826,7 +46981,7 @@ impl NamespaceJoinInput { pub struct NamespaceLeaveOutput { pub left: bool, pub namespace: String, - #[serde(default = "default_2102")] + #[serde(default = "default_2118")] pub left_at: Option, } @@ -46903,27 +47058,27 @@ pub enum NamespaceEntryVisibility { #[non_exhaustive] pub struct NamespaceEntry { pub namespace: String, - #[serde(default = "default_2103")] + #[serde(default = "default_2119")] pub kind: String, pub owner_email: String, pub description: String, pub tags: Vec, pub active: bool, - #[serde(default = "default_2104")] + #[serde(default = "default_2120")] pub consolidation_enabled: bool, - #[serde(default = "default_2105")] + #[serde(default = "default_2121")] pub daily_cost_cap_usd: f64, - #[serde(default = "default_2106")] + #[serde(default = "default_2122")] pub daily_user_cost_cap_usd: f64, - #[serde(default = "default_2107")] + #[serde(default = "default_2123")] pub budget_alert_inbox: String, - #[serde(default = "default_2108")] + #[serde(default = "default_2124")] pub conflict_threshold: Option, - #[serde(default = "default_2109")] + #[serde(default = "default_2125")] pub retention_days: Integer, - #[serde(default = "default_2110")] + #[serde(default = "default_2126")] pub warm_days: Integer, - #[serde(default = "default_2111")] + #[serde(default = "default_2127")] pub visibility: NamespaceEntryVisibility, pub created_at: String, pub updated_at: String, @@ -47078,27 +47233,27 @@ pub enum MineEntryVisibility { pub struct MineEntry { pub namespace: String, pub role: String, - #[serde(default = "default_2112")] + #[serde(default = "default_2128")] pub status: String, - #[serde(default = "default_2113")] + #[serde(default = "default_2129")] pub pending_role: Option, - #[serde(default = "default_2114")] + #[serde(default = "default_2130")] pub pending_since: Option, - #[serde(default = "default_2115")] + #[serde(default = "default_2131")] pub pending_admins: Vec, - #[serde(default = "default_2116")] + #[serde(default = "default_2132")] pub visibility: MineEntryVisibility, - #[serde(default = "default_2117")] + #[serde(default = "default_2133")] pub kind: String, - #[serde(default = "default_2118")] + #[serde(default = "default_2134")] pub title: String, - #[serde(default = "default_2119")] + #[serde(default = "default_2135")] pub description: String, - #[serde(default = "default_2120")] + #[serde(default = "default_2136")] pub joined_at: Option, - #[serde(default = "default_2121")] + #[serde(default = "default_2137")] pub is_new: bool, - #[serde(default = "default_2122")] + #[serde(default = "default_2138")] pub inherited: bool, } @@ -47164,7 +47319,7 @@ pub struct OntologyEntry { pub name: String, pub status: String, pub description: String, - #[serde(default = "default_2123")] + #[serde(default = "default_2139")] pub cardinality: String, pub created_by: String, pub updated_at: String, @@ -47357,7 +47512,7 @@ pub struct NamespaceRegisterOutput { pub registered: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2124")] + #[serde(default = "default_2140")] pub visibility: NamespaceRegisterOutputVisibility, } @@ -48437,7 +48592,7 @@ impl NamespaceRegisterOntologyInput { #[non_exhaustive] pub struct NamespaceRestoreOutput { pub restored: bool, - #[serde(default = "default_2125")] + #[serde(default = "default_2141")] pub publication_pending: bool, pub target_namespace: String, pub snapshot_id: String, @@ -49324,15 +49479,15 @@ pub struct NamespaceRollbackOutput { pub version_at: Integer, pub reinstate: Integer, pub remove: Integer, - #[serde(default = "default_2126")] + #[serde(default = "default_2142")] pub skipped_no_head: Integer, - #[serde(default = "default_2127")] + #[serde(default = "default_2143")] pub skipped_already_gone: Integer, - #[serde(default = "default_2128")] + #[serde(default = "default_2144")] pub truncated: bool, - #[serde(default = "default_2129")] + #[serde(default = "default_2145")] pub sample: Vec>, - #[serde(default = "default_2130")] + #[serde(default = "default_2146")] pub applied_at: Option, } @@ -49511,101 +49666,101 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub confidence: f64, pub source_trace: String, pub pinned: bool, - #[serde(default = "default_2131")] + #[serde(default = "default_2147")] pub expires_at: Option, - #[serde(default = "default_2132")] + #[serde(default = "default_2148")] pub entities: Vec, - #[serde(default = "default_2133")] + #[serde(default = "default_2149")] pub version: Integer, - #[serde(default = "default_2134")] + #[serde(default = "default_2150")] pub content_sha256: String, - #[serde(default = "default_2135")] + #[serde(default = "default_2151")] pub actor: String, - #[serde(default = "default_2136")] + #[serde(default = "default_2152")] pub source_class: String, - #[serde(default = "default_2137")] + #[serde(default = "default_2153")] pub source_resource_id: String, - #[serde(default = "default_2138")] + #[serde(default = "default_2154")] pub verified_by: String, - #[serde(default = "default_2139")] + #[serde(default = "default_2155")] pub verified_at: Option, - #[serde(default = "default_2140")] + #[serde(default = "default_2156")] pub verified_sha256: String, - #[serde(default = "default_2141")] + #[serde(default = "default_2157")] pub grounding: String, - #[serde(default = "default_2142")] + #[serde(default = "default_2158")] pub evidence: String, - #[serde(default = "default_2143")] + #[serde(default = "default_2159")] pub tags: Vec, - #[serde(default = "default_2144")] + #[serde(default = "default_2160")] pub valid_at: Option, - #[serde(default = "default_2145")] + #[serde(default = "default_2161")] pub valid_to: Option, - #[serde(default = "default_2146")] + #[serde(default = "default_2162")] pub created_at: Option, - #[serde(default = "default_2147")] + #[serde(default = "default_2163")] pub updated_at: Option, - #[serde(default = "default_2148")] + #[serde(default = "default_2164")] pub value_json: String, - #[serde(default = "default_2149")] + #[serde(default = "default_2165")] pub status: NamespaceSnapshotOutputSnapshotMemoryRowStatus, - #[serde(default = "default_2150")] + #[serde(default = "default_2166")] pub requires_review: Option, - #[serde(default = "default_2151")] + #[serde(default = "default_2167")] pub conflict_with: Vec, - #[serde(default = "default_2152")] + #[serde(default = "default_2168")] pub duplicate_of: String, - #[serde(default = "default_2153")] + #[serde(default = "default_2169")] pub evidence_count: Integer, - #[serde(default = "default_2154")] + #[serde(default = "default_2170")] pub recall_count: Integer, - #[serde(default = "default_2155")] + #[serde(default = "default_2171")] pub last_recalled_at: Option, - #[serde(default = "default_2156")] + #[serde(default = "default_2172")] pub cross_promoted_from_memory_id: String, - #[serde(default = "default_2157")] + #[serde(default = "default_2173")] pub cross_promoted_from_namespace: String, - #[serde(default = "default_2158")] + #[serde(default = "default_2174")] pub superseded_by: String, - #[serde(default = "default_2159")] + #[serde(default = "default_2175")] pub rejection_reason: String, - #[serde(default = "default_2160")] + #[serde(default = "default_2176")] pub temporal_anchor: Option, - #[serde(default = "default_2161")] + #[serde(default = "default_2177")] pub temporal_confidence: f64, - #[serde(default = "default_2162")] + #[serde(default = "default_2178")] pub invalid_at: Option, - #[serde(default = "default_2163")] + #[serde(default = "default_2179")] pub char_limit: Option, - #[serde(default = "default_2164")] + #[serde(default = "default_2180")] pub reinforcement_count: Integer, - #[serde(default = "default_2165")] + #[serde(default = "default_2181")] pub last_reinforced_at: Option, - #[serde(default = "default_2166")] + #[serde(default = "default_2182")] pub mentioned_at: Option, - #[serde(default = "default_2167")] + #[serde(default = "default_2183")] pub sensitivity: String, - #[serde(default = "default_2168")] + #[serde(default = "default_2184")] pub redacted_at: Option, - #[serde(default = "default_2169")] + #[serde(default = "default_2185")] pub redaction_reason: String, - #[serde(default = "default_2170")] + #[serde(default = "default_2186")] pub lock_mode: String, - #[serde(default = "default_2171")] + #[serde(default = "default_2187")] pub lock_reason: String, - #[serde(default = "default_2172")] + #[serde(default = "default_2188")] pub lock_until: Option, - #[serde(default = "default_2173")] + #[serde(default = "default_2189")] pub locked_by: String, - #[serde(default = "default_2174")] + #[serde(default = "default_2190")] pub locked_at: Option, - #[serde(default = "default_2175")] + #[serde(default = "default_2191")] pub on_expire: String, - #[serde(default = "default_2176")] + #[serde(default = "default_2192")] pub expire_reason: String, - #[serde(default = "default_2177")] + #[serde(default = "default_2193")] pub files: Vec, - #[serde(default = "default_2178")] + #[serde(default = "default_2194")] pub concepts: Vec, } @@ -49614,11 +49769,11 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub struct NamespaceSnapshotOutputSnapshotTypeRow { pub memory_type: String, pub retention_days: Integer, - #[serde(default = "default_2179")] + #[serde(default = "default_2195")] pub dedup_threshold: Option, - #[serde(default = "default_2180")] + #[serde(default = "default_2196")] pub hot_quota: Integer, - #[serde(default = "default_2181")] + #[serde(default = "default_2197")] pub conflict_policy: String, } @@ -49833,7 +49988,7 @@ pub struct TaxonomyCommunity { pub community_id: Integer, pub label: String, pub size: Integer, - #[serde(default = "default_2182")] + #[serde(default = "default_2198")] pub top_entities: Vec, } @@ -49844,9 +49999,9 @@ pub struct NamespaceTaxonomyOutput { pub entities: Vec, pub memory_count: Integer, pub memory_types: Vec, - #[serde(default = "default_2183")] + #[serde(default = "default_2199")] pub communities: Vec, - #[serde(default = "default_2184")] + #[serde(default = "default_2200")] pub communities_computed_at: String, } @@ -49946,15 +50101,15 @@ pub enum TuneProposalTarget { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TuneEvidence { - #[serde(default = "default_2186")] + #[serde(default = "default_2202")] pub finding_codes: Vec, - #[serde(default = "default_2187")] + #[serde(default = "default_2203")] pub supporting_count: Integer, - #[serde(default = "default_2188")] + #[serde(default = "default_2204")] pub supporting: Vec, - #[serde(default = "default_2189")] + #[serde(default = "default_2205")] pub counter_count: Option, - #[serde(default = "default_2190")] + #[serde(default = "default_2206")] pub documents: Vec, } @@ -49965,30 +50120,6 @@ pub enum TuneProposalEffect { Future, } -#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] -#[non_exhaustive] -pub enum TuneApplyVia { - #[serde(rename = "op")] - Op, - #[serde(rename = "admin_route")] - AdminRoute, - #[serde(rename = "environment")] - Environment, -} - -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] -#[non_exhaustive] -pub struct TuneApply { - pub op: String, - #[serde(default = "default_2194")] - pub via: TuneApplyVia, - pub args: std::collections::HashMap, - #[serde(default = "default_2195")] - pub args_complete: bool, - pub required_role: String, - pub guard: String, -} - #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ChunkStats { @@ -50002,7 +50133,7 @@ pub struct ChunkStats { pub sections: Integer, pub sections_cut: Integer, pub max_input_tokens: Integer, - #[serde(default = "default_2197")] + #[serde(default = "default_2211")] pub over_input_limit: Option, } @@ -50022,25 +50153,25 @@ pub struct TuneProposal { pub title: String, pub rationale: String, pub current: String, - #[serde(default = "default_2185")] + #[serde(default = "default_2201")] pub current_revision: Option, pub proposed: String, pub evidence: TuneEvidence, - #[serde(default = "default_2191")] + #[serde(default = "default_2207")] pub affected_agents: Vec, - #[serde(default = "default_2192")] + #[serde(default = "default_2208")] pub affected_agents_total: Option, - #[serde(default = "default_2193")] + #[serde(default = "default_2209")] pub effect: TuneProposalEffect, pub historical: String, pub apply: TuneApply, - #[serde(default = "default_2196")] + #[serde(default = "default_2210")] pub apply_also: Vec, - #[serde(default = "default_2198")] + #[serde(default = "default_2212")] pub preview: Option, - #[serde(default = "default_2199")] + #[serde(default = "default_2213")] pub limits: String, - #[serde(default = "default_2200")] + #[serde(default = "default_2214")] pub refs: Vec, } @@ -50048,13 +50179,13 @@ pub struct TuneProposal { #[non_exhaustive] pub struct ChunkingSample { pub cap: Integer, - #[serde(default = "default_2206")] + #[serde(default = "default_2220")] pub population: Option, pub documents: Integer, pub unread: Integer, pub load_cap: Integer, pub embedder_model: String, - #[serde(default = "default_2207")] + #[serde(default = "default_2221")] pub input_token_limit: Option, pub current: ChunkStats, } @@ -50065,21 +50196,21 @@ pub struct NamespaceTuneOutput { pub org: String, pub namespace: String, pub computed_at: String, - #[serde(default = "default_2201")] + #[serde(default = "default_2215")] pub proposals: Vec, - #[serde(default = "default_2202")] + #[serde(default = "default_2216")] pub guide_revision: Option, - #[serde(default = "default_2203")] + #[serde(default = "default_2217")] pub categories_registered: Option, - #[serde(default = "default_2204")] + #[serde(default = "default_2218")] pub extraction_policy: Option, - #[serde(default = "default_2205")] + #[serde(default = "default_2219")] pub extraction_policy_unavailable: String, - #[serde(default = "default_2208")] + #[serde(default = "default_2222")] pub chunking: Option, - #[serde(default = "default_2209")] + #[serde(default = "default_2223")] pub skipped: Vec, - #[serde(default = "default_2210")] + #[serde(default = "default_2224")] pub model_used: bool, } @@ -50200,25 +50331,25 @@ pub struct NamespaceValidateFinding { pub kind: NamespaceValidateFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_2211")] + #[serde(default = "default_2225")] pub window_seconds: Option, - #[serde(default = "default_2212")] + #[serde(default = "default_2226")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_2213")] + #[serde(default = "default_2227")] pub evidence: Vec, - #[serde(default = "default_2214")] + #[serde(default = "default_2228")] pub exceptions: String, - #[serde(default = "default_2215")] + #[serde(default = "default_2229")] pub uncertainty: String, pub check: String, pub severity: NamespaceValidateFindingSeverity, pub count: Integer, - #[serde(default = "default_2216")] + #[serde(default = "default_2230")] pub samples: Vec>, pub detail: String, - #[serde(default = "default_2217")] + #[serde(default = "default_2231")] pub totals: std::collections::HashMap, } @@ -50232,9 +50363,9 @@ pub struct NamespaceValidateOutput { pub warnings: Integer, pub infos: Integer, pub findings: Vec, - #[serde(default = "default_2218")] + #[serde(default = "default_2232")] pub skipped: Vec, - #[serde(default = "default_2219")] + #[serde(default = "default_2233")] pub keys_scoped: Integer, pub coverage: ReportCoverage, pub checked_at: String, @@ -50354,9 +50485,9 @@ impl NamespaceValidateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ObserveCrystallizeOutput { - #[serde(default = "default_2220")] + #[serde(default = "default_2234")] pub enqueued: Integer, - #[serde(default = "default_2221")] + #[serde(default = "default_2235")] pub session_id: String, } @@ -50453,23 +50584,23 @@ impl ObserveCrystallizeInput { #[non_exhaustive] pub struct ObserveRecordOutput { pub memory_key: String, - #[serde(default = "default_2222")] + #[serde(default = "default_2236")] pub memory_id: String, - #[serde(default = "default_2223")] + #[serde(default = "default_2237")] pub kind: String, - #[serde(default = "default_2224")] + #[serde(default = "default_2238")] pub tags: Vec, - #[serde(default = "default_2225")] + #[serde(default = "default_2239")] pub file_paths: Vec, - #[serde(default = "default_2226")] + #[serde(default = "default_2240")] pub content_sha256: String, - #[serde(default = "default_2227")] + #[serde(default = "default_2241")] pub tool_name: String, - #[serde(default = "default_2228")] + #[serde(default = "default_2242")] pub has_error: bool, - #[serde(default = "default_2229")] + #[serde(default = "default_2243")] pub narrative_chars: Integer, - #[serde(default = "default_2230")] + #[serde(default = "default_2244")] pub skipped_reason: String, } @@ -50700,7 +50831,7 @@ pub struct OpsIncident { pub subject: String, pub severity: OpsIncidentSeverity, pub detail: String, - #[serde(default = "default_2231")] + #[serde(default = "default_2245")] pub age_s: Option, } @@ -50719,7 +50850,7 @@ pub enum OpsIncidentsOutputRequests { #[non_exhaustive] pub struct OpsIncidentsOutput { pub status: OpsIncidentsOutputStatus, - #[serde(default = "default_2232")] + #[serde(default = "default_2246")] pub incidents: Vec, pub window_minutes: Integer, pub requests: OpsIncidentsOutputRequests, @@ -50763,26 +50894,26 @@ pub struct ProjectionFailureRow { pub failure_id: String, pub org: String, pub namespace: String, - #[serde(default = "default_2233")] + #[serde(default = "default_2247")] pub agent: String, pub projection: String, - #[serde(default = "default_2234")] + #[serde(default = "default_2248")] pub source_operation: String, - #[serde(default = "default_2235")] + #[serde(default = "default_2249")] pub source_resource_id: String, - #[serde(default = "default_2236")] + #[serde(default = "default_2250")] pub memory_keys: Vec, - #[serde(default = "default_2237")] + #[serde(default = "default_2251")] pub error_type: String, - #[serde(default = "default_2238")] + #[serde(default = "default_2252")] pub error_message: String, - #[serde(default = "default_2239")] + #[serde(default = "default_2253")] pub payload: std::collections::HashMap, - #[serde(default = "default_2240")] + #[serde(default = "default_2254")] pub status: String, - #[serde(default = "default_2241")] + #[serde(default = "default_2255")] pub created_at: Option, - #[serde(default = "default_2242")] + #[serde(default = "default_2256")] pub resolved_at: Option, } @@ -50936,22 +51067,22 @@ pub struct ProjectionFailureRetryRow { pub projection: String, pub retried: bool, pub resolved: bool, - #[serde(default = "default_2243")] + #[serde(default = "default_2257")] pub abandoned: bool, - #[serde(default = "default_2244")] + #[serde(default = "default_2258")] pub reason: String, - #[serde(default = "default_2245")] + #[serde(default = "default_2259")] pub error: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProjectionFailureRetryOutput { - #[serde(default = "default_2246")] + #[serde(default = "default_2260")] pub results: Vec, pub retried: Integer, pub resolved: Integer, - #[serde(default = "default_2247")] + #[serde(default = "default_2261")] pub abandoned: Integer, } @@ -51033,15 +51164,15 @@ impl ProjectionFailureRetryInput { pub struct OrgModelCallsOutput { pub org: String, pub enabled: bool, - #[serde(default = "default_2248")] + #[serde(default = "default_2262")] pub reason: String, - #[serde(default = "default_2249")] + #[serde(default = "default_2263")] pub updated_by: String, - #[serde(default = "default_2250")] + #[serde(default = "default_2264")] pub updated_at: Option, - #[serde(default = "default_2251")] + #[serde(default = "default_2265")] pub locked: bool, - #[serde(default = "default_2252")] + #[serde(default = "default_2266")] pub locked_by: String, } @@ -51380,7 +51511,7 @@ impl PolicyDecisionsInput { #[non_exhaustive] pub struct PolicyDeleteOutput { pub removed: bool, - #[serde(default = "default_2253")] + #[serde(default = "default_2267")] pub widening: bool, } @@ -51446,12 +51577,12 @@ pub struct PolicyRuleOut { pub condition: std::collections::HashMap, pub description: String, pub enabled: bool, - #[serde(default = "default_2254")] + #[serde(default = "default_2268")] pub mode: String, pub created_by: String, - #[serde(default = "default_2255")] + #[serde(default = "default_2269")] pub created_at: Option, - #[serde(default = "default_2256")] + #[serde(default = "default_2270")] pub updated_at: Option, } @@ -51523,9 +51654,9 @@ impl PolicyListInput { pub struct PolicySetOutput { pub rule: PolicyRuleOut, pub leaf_count: Integer, - #[serde(default = "default_2257")] + #[serde(default = "default_2271")] pub widening: bool, - #[serde(default = "default_2258")] + #[serde(default = "default_2272")] pub change: Vec, } @@ -51795,37 +51926,37 @@ pub struct ProcedureEvolveOutput { pub revision: Integer, pub changed: bool, pub template: bool, - #[serde(default = "default_2259")] + #[serde(default = "default_2273")] pub folded_runs: Integer, - #[serde(default = "default_2260")] + #[serde(default = "default_2274")] pub gate: ProcedureEvolveOutputGate, - #[serde(default = "default_2261")] + #[serde(default = "default_2275")] pub gate_mode: String, - #[serde(default = "default_2262")] + #[serde(default = "default_2276")] pub gate_llr: f64, - #[serde(default = "default_2263")] + #[serde(default = "default_2277")] pub gate_before: std::collections::HashMap, - #[serde(default = "default_2264")] + #[serde(default = "default_2278")] pub gate_after: std::collections::HashMap, - #[serde(default = "default_2265")] + #[serde(default = "default_2279")] pub gate_cost_before: std::collections::HashMap, - #[serde(default = "default_2266")] + #[serde(default = "default_2280")] pub gate_cost_after: std::collections::HashMap, - #[serde(default = "default_2267")] + #[serde(default = "default_2281")] pub gate_reason: String, - #[serde(default = "default_2268")] + #[serde(default = "default_2282")] pub dead_end_steps: Vec, - #[serde(default = "default_2269")] + #[serde(default = "default_2283")] pub fail_prone_steps: Vec, - #[serde(default = "default_2270")] + #[serde(default = "default_2284")] pub fail_prone_transitions: Vec, - #[serde(default = "default_2271")] + #[serde(default = "default_2285")] pub run_stats: std::collections::HashMap, - #[serde(default = "default_2272")] + #[serde(default = "default_2286")] pub strikes: Integer, - #[serde(default = "default_2273")] + #[serde(default = "default_2287")] pub quarantined: bool, - #[serde(default = "default_2274")] + #[serde(default = "default_2288")] pub retention: std::collections::HashMap, } @@ -52048,9 +52179,9 @@ pub struct ProcedureForkOutput { pub memory_key: String, pub version: Integer, pub name: String, - #[serde(default = "default_2275")] + #[serde(default = "default_2289")] pub steps: Vec, - #[serde(default = "default_2276")] + #[serde(default = "default_2290")] pub forked_from: std::collections::HashMap, } @@ -52310,32 +52441,32 @@ pub enum ProcedureLocateOutputStatus { #[non_exhaustive] pub struct ProcedureLocateOutput { pub memory_key: String, - #[serde(default = "default_2277")] + #[serde(default = "default_2291")] pub name: String, - #[serde(default = "default_2278")] + #[serde(default = "default_2292")] pub status: ProcedureLocateOutputStatus, pub matched: bool, - #[serde(default = "default_2279")] + #[serde(default = "default_2293")] pub active: Option>, - #[serde(default = "default_2280")] + #[serde(default = "default_2294")] pub hops: Vec>>, - #[serde(default = "default_2281")] + #[serde(default = "default_2295")] pub entry_nodes: Vec, - #[serde(default = "default_2282")] + #[serde(default = "default_2296")] pub dominant_next: Vec, - #[serde(default = "default_2283")] + #[serde(default = "default_2297")] pub revisits: std::collections::HashMap, - #[serde(default = "default_2284")] + #[serde(default = "default_2298")] pub looping: bool, - #[serde(default = "default_2285")] + #[serde(default = "default_2299")] pub exits: Vec, - #[serde(default = "default_2286")] + #[serde(default = "default_2300")] pub failure_notes: Vec>, - #[serde(default = "default_2287")] + #[serde(default = "default_2301")] pub rendered: String, - #[serde(default = "default_2288")] + #[serde(default = "default_2302")] pub run_stats: std::collections::HashMap, - #[serde(default = "default_2289")] + #[serde(default = "default_2303")] pub for_agent: std::collections::HashMap, } @@ -52490,43 +52621,43 @@ pub struct ProcedureMatch { pub name: String, pub situation: String, pub steps: Vec, - #[serde(default = "default_2290")] + #[serde(default = "default_2304")] pub tags: Vec, - #[serde(default = "default_2291")] + #[serde(default = "default_2305")] pub metadata: std::collections::HashMap, pub similarity: f64, pub memory_key: String, pub namespace: String, - #[serde(default = "default_2292")] + #[serde(default = "default_2306")] pub graph: Option>, - #[serde(default = "default_2293")] + #[serde(default = "default_2307")] pub template: bool, - #[serde(default = "default_2294")] + #[serde(default = "default_2308")] pub run_stats: std::collections::HashMap, - #[serde(default = "default_2295")] + #[serde(default = "default_2309")] pub status: ProcedureMatchStatus, - #[serde(default = "default_2296")] + #[serde(default = "default_2310")] pub quarantined: Option>, - #[serde(default = "default_2297")] + #[serde(default = "default_2311")] pub fail_prone_steps: Vec, - #[serde(default = "default_2298")] + #[serde(default = "default_2312")] pub revision: Integer, - #[serde(default = "default_2299")] + #[serde(default = "default_2313")] pub rejected_revisions: Vec>, - #[serde(default = "default_2300")] + #[serde(default = "default_2314")] pub tool_overlap: f64, - #[serde(default = "default_2301")] + #[serde(default = "default_2315")] pub score: f64, - #[serde(default = "default_2302")] + #[serde(default = "default_2316")] pub utility: f64, - #[serde(default = "default_2303")] + #[serde(default = "default_2317")] pub goal_similarity: Option, - #[serde(default = "default_2304")] + #[serde(default = "default_2318")] pub for_agent: std::collections::HashMap, - #[serde(default = "default_2305")] + #[serde(default = "default_2319")] pub run_stats_by_agent: std::collections::HashMap>, - #[serde(default = "default_2306")] + #[serde(default = "default_2320")] pub actor: String, } @@ -52534,11 +52665,11 @@ pub struct ProcedureMatch { #[non_exhaustive] pub struct ProcedureMatchOutput { pub matches: Vec, - #[serde(default = "default_2307")] + #[serde(default = "default_2321")] pub matched: Integer, - #[serde(default = "default_2308")] + #[serde(default = "default_2322")] pub procedure_key: String, - #[serde(default = "default_2309")] + #[serde(default = "default_2323")] pub score: f64, } @@ -52930,9 +53061,9 @@ pub struct ProcedureReviseOutput { pub revision: Integer, pub prior_revision: Integer, pub digest: String, - #[serde(default = "default_2310")] + #[serde(default = "default_2324")] pub steps: Vec, - #[serde(default = "default_2311")] + #[serde(default = "default_2325")] pub outcome: ProcedureReviseOutputOutcome, } @@ -53044,14 +53175,14 @@ pub struct ProfileActivityEntry { pub agent: String, pub last_activated_at: String, pub event_count: Integer, - #[serde(default = "default_2312")] + #[serde(default = "default_2326")] pub operations: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProfileActivityOutput { - #[serde(default = "default_2313")] + #[serde(default = "default_2327")] pub entries: Vec, } @@ -53159,17 +53290,17 @@ impl ProfileActivityInput { #[non_exhaustive] pub struct ProfileMutationOutput { pub version: Integer, - #[serde(default = "default_2314")] + #[serde(default = "default_2328")] pub memory_id: String, - #[serde(default = "default_2315")] + #[serde(default = "default_2329")] pub content_sha256: String, - #[serde(default = "default_2316")] + #[serde(default = "default_2330")] pub namespace: String, - #[serde(default = "default_2317")] + #[serde(default = "default_2331")] pub label: String, - #[serde(default = "default_2318")] + #[serde(default = "default_2332")] pub char_limit: Option, - #[serde(default = "default_2319")] + #[serde(default = "default_2333")] pub value_length: Integer, } @@ -53278,7 +53409,7 @@ pub struct ProfileRenderOutput { pub rendered: String, pub section_count: Integer, pub total_chars: Integer, - #[serde(default = "default_2320")] + #[serde(default = "default_2334")] pub labels: Vec, } @@ -53663,17 +53794,17 @@ pub enum ProfileStructuredOutputStatus { #[non_exhaustive] pub struct ProfileStructuredOutput { pub status: ProfileStructuredOutputStatus, - #[serde(default = "default_2321")] + #[serde(default = "default_2335")] pub profile: std::collections::HashMap, - #[serde(default = "default_2322")] + #[serde(default = "default_2336")] pub built_at: Option, - #[serde(default = "default_2323")] + #[serde(default = "default_2337")] pub memory_id: String, - #[serde(default = "default_2324")] + #[serde(default = "default_2338")] pub version: Integer, - #[serde(default = "default_2325")] + #[serde(default = "default_2339")] pub version_text: String, - #[serde(default = "default_2326")] + #[serde(default = "default_2340")] pub schema_sha256: String, } @@ -53790,13 +53921,13 @@ impl ProfileStructuredInput { #[non_exhaustive] pub struct ProfileSchemaOutput { pub found: bool, - #[serde(default = "default_2327")] + #[serde(default = "default_2341")] pub json_schema: std::collections::HashMap, - #[serde(default = "default_2328")] + #[serde(default = "default_2342")] pub schema_sha256: String, - #[serde(default = "default_2329")] + #[serde(default = "default_2343")] pub updated_by: String, - #[serde(default = "default_2330")] + #[serde(default = "default_2344")] pub updated_at: Option, } @@ -53949,10 +54080,10 @@ pub enum RunBeginOutputStatus { #[non_exhaustive] pub struct RunBeginOutput { pub run_id: String, - #[serde(default = "default_2331")] + #[serde(default = "default_2345")] pub status: RunBeginOutputStatus, pub started_at: String, - #[serde(default = "default_2332")] + #[serde(default = "default_2346")] pub next: String, } @@ -54160,31 +54291,31 @@ pub struct RunCompleteOutput { pub run_id: String, pub status: RunCompleteOutputStatus, pub duration_ms: Integer, - #[serde(default = "default_2333")] + #[serde(default = "default_2347")] pub used_applied: Integer, - #[serde(default = "default_2334")] + #[serde(default = "default_2348")] pub undelivered: Integer, - #[serde(default = "default_2335")] + #[serde(default = "default_2349")] pub evidence_applied: Integer, - #[serde(default = "default_2336")] + #[serde(default = "default_2350")] pub harm_applied: Integer, - #[serde(default = "default_2337")] + #[serde(default = "default_2351")] pub memories_written: Vec, - #[serde(default = "default_2338")] + #[serde(default = "default_2352")] pub recalled: Integer, - #[serde(default = "default_2339")] + #[serde(default = "default_2353")] pub observations: Integer, - #[serde(default = "default_2340")] + #[serde(default = "default_2354")] pub procedure_runs_recorded: Integer, - #[serde(default = "default_2341")] + #[serde(default = "default_2355")] pub reflection_key: String, - #[serde(default = "default_2342")] + #[serde(default = "default_2356")] pub retain: String, - #[serde(default = "default_2343")] + #[serde(default = "default_2357")] pub retained: Integer, - #[serde(default = "default_2344")] + #[serde(default = "default_2358")] pub demoted: Integer, - #[serde(default = "default_2345")] + #[serde(default = "default_2359")] pub expiring: Integer, } @@ -54725,25 +54856,25 @@ pub enum RunGetOutputOverBudgetItem { #[non_exhaustive] pub struct RunGetOutput { pub found: bool, - #[serde(default = "default_2346")] + #[serde(default = "default_2360")] pub run: Option, - #[serde(default = "default_2347")] + #[serde(default = "default_2361")] pub recalled: Integer, - #[serde(default = "default_2348")] + #[serde(default = "default_2362")] pub recalled_keys: Vec, - #[serde(default = "default_2349")] + #[serde(default = "default_2363")] pub memories_written: Vec, - #[serde(default = "default_2350")] + #[serde(default = "default_2364")] pub observations: Integer, - #[serde(default = "default_2351")] + #[serde(default = "default_2365")] pub turns: Integer, - #[serde(default = "default_2352")] + #[serde(default = "default_2366")] pub unpriced_turns: Integer, - #[serde(default = "default_2353")] + #[serde(default = "default_2367")] pub cost_usd: f64, - #[serde(default = "default_2354")] + #[serde(default = "default_2368")] pub elapsed_seconds: Integer, - #[serde(default = "default_2355")] + #[serde(default = "default_2369")] pub over_budget: Vec, } @@ -54810,17 +54941,17 @@ pub struct RunGradeProposal { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct RunGradeOutput { - #[serde(default = "default_2356")] + #[serde(default = "default_2370")] pub graded: Integer, - #[serde(default = "default_2357")] + #[serde(default = "default_2371")] pub run_ids: Vec, - #[serde(default = "default_2358")] + #[serde(default = "default_2372")] pub skipped_active: Integer, - #[serde(default = "default_2359")] + #[serde(default = "default_2373")] pub unchanged: Integer, - #[serde(default = "default_2360")] + #[serde(default = "default_2374")] pub memories_counted: Integer, - #[serde(default = "default_2361")] + #[serde(default = "default_2375")] pub proposals_decided: Vec, } @@ -54935,7 +55066,7 @@ impl RunGradeInput { #[non_exhaustive] pub struct RunListOutput { pub runs: Vec, - #[serde(default = "default_2362")] + #[serde(default = "default_2376")] pub total: Option, } @@ -55172,7 +55303,7 @@ pub enum RunRelianceItemState { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct RunRelianceRevision { - #[serde(default = "default_2363")] + #[serde(default = "default_2377")] pub versions: Vec, } @@ -55182,9 +55313,9 @@ pub struct RunRelianceItem { pub kind: String, pub key: String, pub state: RunRelianceItemState, - #[serde(default = "default_2364")] + #[serde(default = "default_2378")] pub revisions: Vec, - #[serde(default = "default_2365")] + #[serde(default = "default_2379")] pub last_served_at: String, } @@ -55192,9 +55323,9 @@ pub struct RunRelianceItem { #[non_exhaustive] pub struct RunRelianceOutput { pub found: bool, - #[serde(default = "default_2366")] + #[serde(default = "default_2380")] pub items: Vec, - #[serde(default = "default_2367")] + #[serde(default = "default_2381")] pub truncated: bool, } @@ -55243,19 +55374,19 @@ impl RunRelianceInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct RunRetractCreditOutput { - #[serde(default = "default_2368")] + #[serde(default = "default_2382")] pub run_id: String, - #[serde(default = "default_2369")] + #[serde(default = "default_2383")] pub used_retracted: Integer, - #[serde(default = "default_2370")] + #[serde(default = "default_2384")] pub evidence_retracted: Integer, - #[serde(default = "default_2371")] + #[serde(default = "default_2385")] pub harm_retracted: Integer, - #[serde(default = "default_2372")] + #[serde(default = "default_2386")] pub events_written: Integer, - #[serde(default = "default_2373")] + #[serde(default = "default_2387")] pub more: bool, - #[serde(default = "default_2374")] + #[serde(default = "default_2388")] pub dry_run: bool, } @@ -55412,39 +55543,39 @@ pub struct LiveSearchHit { pub title: String, pub url: String, pub provider: LiveSearchHitProvider, - #[serde(default = "default_2377")] + #[serde(default = "default_2391")] pub content: String, - #[serde(default = "default_2378")] + #[serde(default = "default_2392")] pub live: LiveSearchHitLive, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct LiveSearchResults { - #[serde(default = "default_2376")] + #[serde(default = "default_2390")] pub live: LiveSearchResultsLive, - #[serde(default = "default_2379")] + #[serde(default = "default_2393")] pub results: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SearchOutput { - #[serde(default = "default_2375")] + #[serde(default = "default_2389")] pub tracker: Option>, - #[serde(default = "default_2380")] + #[serde(default = "default_2394")] pub live: Option, - #[serde(default = "default_2381")] + #[serde(default = "default_2395")] pub memory: std::collections::HashMap, - #[serde(default = "default_2382")] + #[serde(default = "default_2396")] pub knowledge: std::collections::HashMap, - #[serde(default = "default_2383")] + #[serde(default = "default_2397")] pub profile: std::collections::HashMap, - #[serde(default = "default_2384")] + #[serde(default = "default_2398")] pub conversations: std::collections::HashMap, - #[serde(default = "default_2385")] + #[serde(default = "default_2399")] pub withheld: Option>, - #[serde(default = "default_2386")] + #[serde(default = "default_2400")] pub namespaces_skipped: Vec, } @@ -55648,7 +55779,7 @@ impl SearchInput { pub struct SessionBriefDeleteOutput { pub deleted: bool, pub brief_key: String, - #[serde(default = "default_2387")] + #[serde(default = "default_2401")] pub revision: Integer, } @@ -55741,67 +55872,67 @@ impl SessionBriefDeleteInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDecision { - #[serde(default = "default_2396")] + #[serde(default = "default_2410")] pub what: String, - #[serde(default = "default_2397")] + #[serde(default = "default_2411")] pub why: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDeadEnd { - #[serde(default = "default_2399")] + #[serde(default = "default_2413")] pub tried: String, - #[serde(default = "default_2400")] + #[serde(default = "default_2414")] pub why_not: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDone { - #[serde(default = "default_2402")] + #[serde(default = "default_2416")] pub what: String, - #[serde(rename = "ref", default = "default_2403")] + #[serde(rename = "ref", default = "default_2417")] pub r#ref: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefFile { - #[serde(default = "default_2407")] + #[serde(default = "default_2421")] pub path: String, - #[serde(default = "default_2408")] + #[serde(default = "default_2422")] pub role: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefSections { - #[serde(default = "default_2393")] + #[serde(default = "default_2407")] pub goal: String, - #[serde(default = "default_2394")] + #[serde(default = "default_2408")] pub status: String, - #[serde(default = "default_2395")] + #[serde(default = "default_2409")] pub verification: String, - #[serde(default = "default_2398")] + #[serde(default = "default_2412")] pub decisions: Vec, - #[serde(default = "default_2401")] + #[serde(default = "default_2415")] pub dead_ends: Vec, - #[serde(default = "default_2404")] + #[serde(default = "default_2418")] pub done: Vec, - #[serde(default = "default_2405")] + #[serde(default = "default_2419")] pub open_questions: Vec, - #[serde(default = "default_2406")] + #[serde(default = "default_2420")] pub next_steps: Vec, - #[serde(default = "default_2409")] + #[serde(default = "default_2423")] pub files: Vec, - #[serde(default = "default_2410")] + #[serde(default = "default_2424")] pub constraints: Vec, - #[serde(default = "default_2411")] + #[serde(default = "default_2425")] pub pointers: Vec, - #[serde(default = "default_2412")] + #[serde(default = "default_2426")] pub client_summary: String, - #[serde(default = "default_2413")] + #[serde(default = "default_2427")] pub client_summary_at: String, } @@ -55809,45 +55940,45 @@ pub struct BriefSections { #[non_exhaustive] pub struct SessionBriefGetOutput { pub found: bool, - #[serde(default = "default_2388")] + #[serde(default = "default_2402")] pub brief_key: String, - #[serde(default = "default_2389")] + #[serde(default = "default_2403")] pub revision: Integer, - #[serde(default = "default_2390")] + #[serde(default = "default_2404")] pub snapshot_id: String, - #[serde(default = "default_2391")] + #[serde(default = "default_2405")] pub snapshot_key: String, - #[serde(default = "default_2392")] + #[serde(default = "default_2406")] pub rendered: String, - #[serde(default = "default_2414")] + #[serde(default = "default_2428")] pub sections: Option, - #[serde(default = "default_2415")] + #[serde(default = "default_2429")] pub project: String, - #[serde(default = "default_2416")] + #[serde(default = "default_2430")] pub branch: String, - #[serde(default = "default_2417")] + #[serde(default = "default_2431")] pub head_sha: String, - #[serde(default = "default_2418")] + #[serde(default = "default_2432")] pub author: String, - #[serde(default = "default_2419")] + #[serde(default = "default_2433")] pub trigger: String, - #[serde(default = "default_2420")] + #[serde(default = "default_2434")] pub actor: String, - #[serde(default = "default_2421")] + #[serde(default = "default_2435")] pub source_sessions: Vec, - #[serde(default = "default_2422")] + #[serde(default = "default_2436")] pub updated_at: Option, - #[serde(default = "default_2423")] + #[serde(default = "default_2437")] pub age_seconds: Integer, - #[serde(default = "default_2424")] + #[serde(default = "default_2438")] pub revisions: Integer, - #[serde(default = "default_2425")] + #[serde(default = "default_2439")] pub events_total: Integer, - #[serde(default = "default_2426")] + #[serde(default = "default_2440")] pub source_chars: Integer, - #[serde(default = "default_2427")] + #[serde(default = "default_2441")] pub brief_chars: Integer, - #[serde(default = "default_2428")] + #[serde(default = "default_2442")] pub deleted: bool, } @@ -56022,34 +56153,34 @@ impl SessionBriefGetInput { pub struct SessionBriefSummary { pub brief_key: String, pub revision: Integer, - #[serde(default = "default_2429")] + #[serde(default = "default_2443")] pub project: String, - #[serde(default = "default_2430")] + #[serde(default = "default_2444")] pub branch: String, - #[serde(default = "default_2431")] + #[serde(default = "default_2445")] pub agent: String, - #[serde(default = "default_2432")] + #[serde(default = "default_2446")] pub goal: String, - #[serde(default = "default_2433")] + #[serde(default = "default_2447")] pub status: String, - #[serde(default = "default_2434")] + #[serde(default = "default_2448")] pub author: String, - #[serde(default = "default_2435")] + #[serde(default = "default_2449")] pub actor: String, - #[serde(default = "default_2436")] + #[serde(default = "default_2450")] pub updated_at: Option, - #[serde(default = "default_2437")] + #[serde(default = "default_2451")] pub age_seconds: Integer, - #[serde(default = "default_2438")] + #[serde(default = "default_2452")] pub brief_chars: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefListOutput { - #[serde(default = "default_2439")] + #[serde(default = "default_2453")] pub briefs: Vec, - #[serde(default = "default_2440")] + #[serde(default = "default_2454")] pub rendered: String, } @@ -56189,25 +56320,25 @@ impl SessionBriefListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefStats { - #[serde(default = "default_2444")] + #[serde(default = "default_2458")] pub events_in: Integer, - #[serde(default = "default_2445")] + #[serde(default = "default_2459")] pub windows: Integer, - #[serde(default = "default_2446")] + #[serde(default = "default_2460")] pub events_total: Integer, - #[serde(default = "default_2447")] + #[serde(default = "default_2461")] pub source_chars: Integer, - #[serde(default = "default_2448")] + #[serde(default = "default_2462")] pub brief_chars: Integer, - #[serde(default = "default_2449")] + #[serde(default = "default_2463")] pub compression_ratio: f64, - #[serde(default = "default_2450")] + #[serde(default = "default_2464")] pub dropped_ungrounded: Integer, - #[serde(default = "default_2451")] + #[serde(default = "default_2465")] pub tokens_in: Integer, - #[serde(default = "default_2452")] + #[serde(default = "default_2466")] pub tokens_out: Integer, - #[serde(default = "default_2453")] + #[serde(default = "default_2467")] pub llm_model: String, } @@ -56217,13 +56348,13 @@ pub struct SessionBriefSaveOutput { pub brief_key: String, pub revision: Integer, pub changed: bool, - #[serde(default = "default_2441")] + #[serde(default = "default_2455")] pub author: String, - #[serde(default = "default_2442")] + #[serde(default = "default_2456")] pub reason: String, - #[serde(default = "default_2443")] + #[serde(default = "default_2457")] pub rendered: String, - #[serde(default = "default_2454")] + #[serde(default = "default_2468")] pub stats: SessionBriefStats, } @@ -56968,39 +57099,39 @@ pub struct TaskPayload { pub priority: Integer, pub disclosure: TaskPayloadDisclosure, pub status: TaskPayloadStatus, - #[serde(default = "default_2455")] + #[serde(default = "default_2469")] pub reason: String, - #[serde(default = "default_2456")] + #[serde(default = "default_2470")] pub blocked_on: String, - #[serde(default = "default_2457")] + #[serde(default = "default_2471")] pub not_before: Option, - #[serde(default = "default_2458")] + #[serde(default = "default_2472")] pub resume_at: Option, - #[serde(default = "default_2459")] + #[serde(default = "default_2473")] pub deadline: Option, - #[serde(default = "default_2460")] + #[serde(default = "default_2474")] pub defer_count: Integer, pub title: String, - #[serde(default = "default_2461")] + #[serde(default = "default_2475")] pub brief: std::collections::HashMap, pub from_agent: String, - #[serde(default = "default_2462")] + #[serde(default = "default_2476")] pub from_subject: String, - #[serde(default = "default_2463")] + #[serde(default = "default_2477")] pub origin: String, - #[serde(default = "default_2464")] + #[serde(default = "default_2478")] pub parent_task_id: Option, - #[serde(default = "default_2465")] + #[serde(default = "default_2479")] pub owner: String, - #[serde(default = "default_2466")] + #[serde(default = "default_2480")] pub attempt: Integer, - #[serde(default = "default_2467")] + #[serde(default = "default_2481")] pub fence: Integer, - #[serde(default = "default_2468")] + #[serde(default = "default_2482")] pub lease_until: Option, - #[serde(default = "default_2469")] + #[serde(default = "default_2483")] pub outcome: std::collections::HashMap, - #[serde(default = "default_2470")] + #[serde(default = "default_2484")] pub last_actor: String, pub created_at: String, pub updated_at: String, @@ -57011,7 +57142,7 @@ pub struct TaskPayload { #[non_exhaustive] pub struct TaskOutput { pub task: TaskPayload, - #[serde(default = "default_2471")] + #[serde(default = "default_2485")] pub seq: Integer, } @@ -57412,10 +57543,10 @@ impl TaskCompleteInput { pub struct InboxCount { pub inbox: String, pub status: String, - #[serde(default = "default_2472")] + #[serde(default = "default_2486")] pub blocked_on: String, pub n: Integer, - #[serde(default = "default_2473")] + #[serde(default = "default_2487")] pub oldest: Option, } @@ -57502,7 +57633,7 @@ pub struct TaskCreateOutput { pub task: TaskPayload, pub created: bool, pub seq: Integer, - #[serde(default = "default_2474")] + #[serde(default = "default_2488")] pub next: String, } @@ -57841,7 +57972,7 @@ impl TaskFailInput { #[non_exhaustive] pub struct TaskGetOutput { pub found: bool, - #[serde(default = "default_2475")] + #[serde(default = "default_2489")] pub task: Option, } @@ -57975,23 +58106,23 @@ pub struct TaskEventPayload { pub task_id: String, pub inbox: String, pub event: String, - #[serde(default = "default_2476")] + #[serde(default = "default_2490")] pub from_status: String, - #[serde(default = "default_2477")] + #[serde(default = "default_2491")] pub to_status: String, - #[serde(default = "default_2478")] + #[serde(default = "default_2492")] pub actor: String, - #[serde(default = "default_2479")] + #[serde(default = "default_2493")] pub agent: String, - #[serde(default = "default_2480")] + #[serde(default = "default_2494")] pub fence: Integer, - #[serde(default = "default_2481")] + #[serde(default = "default_2495")] pub version: Integer, - #[serde(default = "default_2482")] + #[serde(default = "default_2496")] pub reason: String, - #[serde(default = "default_2483")] + #[serde(default = "default_2497")] pub patch: std::collections::HashMap, - #[serde(default = "default_2484")] + #[serde(default = "default_2498")] pub note: String, pub ts: String, } @@ -58331,7 +58462,7 @@ pub struct TaskPullOutput { pub tasks: Vec, pub waited_ms: Integer, pub backend: String, - #[serde(default = "default_2485")] + #[serde(default = "default_2499")] pub note: String, } @@ -58727,7 +58858,7 @@ impl TaskUnblockInput { pub struct TaskUpdateOutput { pub task: TaskPayload, pub seq: Integer, - #[serde(default = "default_2486")] + #[serde(default = "default_2500")] pub conflict: bool, } @@ -59090,19 +59221,19 @@ impl TaskReasonInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerAnswerOutput { - #[serde(default = "default_2487")] + #[serde(default = "default_2501")] pub intent: String, - #[serde(default = "default_2488")] + #[serde(default = "default_2502")] pub anchors: std::collections::HashMap, - #[serde(default = "default_2489")] + #[serde(default = "default_2503")] pub sections: Vec>, - #[serde(default = "default_2490")] + #[serde(default = "default_2504")] pub searched: Vec, - #[serde(default = "default_2491")] + #[serde(default = "default_2505")] pub lines: Vec, - #[serde(default = "default_2492")] + #[serde(default = "default_2506")] pub restricted: bool, - #[serde(default = "default_2493")] + #[serde(default = "default_2507")] pub verdict: String, } @@ -59198,17 +59329,17 @@ impl TrackerAnswerInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerBindingOutput { - #[serde(default = "default_2494")] + #[serde(default = "default_2508")] pub tracker_namespace: String, - #[serde(default = "default_2495")] + #[serde(default = "default_2509")] pub tracker_namespaces: Vec, - #[serde(default = "default_2496")] + #[serde(default = "default_2510")] pub restricted: bool, - #[serde(default = "default_2497")] + #[serde(default = "default_2511")] pub kind: String, - #[serde(default = "default_2498")] + #[serde(default = "default_2512")] pub authorized: bool, - #[serde(default = "default_2499")] + #[serde(default = "default_2513")] pub templates: Vec, } @@ -59261,13 +59392,13 @@ impl TrackerBindingInput { #[non_exhaustive] pub struct TrackerComponentOutput { pub component: String, - #[serde(default = "default_2500")] + #[serde(default = "default_2514")] pub risk: std::collections::HashMap, - #[serde(default = "default_2501")] + #[serde(default = "default_2515")] pub open_issues: Vec>, - #[serde(default = "default_2502")] + #[serde(default = "default_2516")] pub known: bool, - #[serde(default = "default_2503")] + #[serde(default = "default_2517")] pub tracker_unavailable: bool, } @@ -59328,9 +59459,9 @@ impl TrackerComponentInput { #[non_exhaustive] pub struct TrackerContractOutput { pub database: String, - #[serde(default = "default_2504")] + #[serde(default = "default_2518")] pub tables: Vec>, - #[serde(default = "default_2505")] + #[serde(default = "default_2519")] pub templates: std::collections::HashMap, } @@ -59383,66 +59514,66 @@ impl TrackerContractInput { #[non_exhaustive] pub struct TrackerLegStatus { pub name: String, - #[serde(default = "default_2516")] + #[serde(default = "default_2530")] pub status: String, - #[serde(default = "default_2517")] + #[serde(default = "default_2531")] pub reason: String, - #[serde(default = "default_2518")] + #[serde(default = "default_2532")] pub message: String, - #[serde(default = "default_2519")] + #[serde(default = "default_2533")] pub retried: bool, - #[serde(default = "default_2520")] + #[serde(default = "default_2534")] pub ms: Integer, - #[serde(default = "default_2521")] + #[serde(default = "default_2535")] pub cause: String, - #[serde(default = "default_2522")] + #[serde(default = "default_2536")] pub namespace: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerDuplicateCheckOutput { - #[serde(default = "default_2506")] + #[serde(default = "default_2520")] pub verdict: String, - #[serde(default = "default_2507")] + #[serde(default = "default_2521")] pub items: Vec>, - #[serde(default = "default_2508")] + #[serde(default = "default_2522")] pub undecided: bool, - #[serde(default = "default_2509")] + #[serde(default = "default_2523")] pub epistemic: String, - #[serde(default = "default_2510")] + #[serde(default = "default_2524")] pub thresholds: std::collections::HashMap, - #[serde(default = "default_2511")] + #[serde(default = "default_2525")] pub judge: std::collections::HashMap, - #[serde(default = "default_2512")] + #[serde(default = "default_2526")] pub fit_at: String, - #[serde(default = "default_2513")] + #[serde(default = "default_2527")] pub fit: std::collections::HashMap, - #[serde(default = "default_2514")] + #[serde(default = "default_2528")] pub query: std::collections::HashMap, - #[serde(default = "default_2515")] + #[serde(default = "default_2529")] pub legs: std::collections::HashMap, - #[serde(default = "default_2523")] + #[serde(default = "default_2537")] pub leg_status: Vec, - #[serde(default = "default_2524")] + #[serde(default = "default_2538")] pub tracker_unavailable: bool, - #[serde(default = "default_2525")] + #[serde(default = "default_2539")] pub namespaces: Vec, - #[serde(default = "default_2526")] + #[serde(default = "default_2540")] pub by_namespace: std::collections::HashMap>, - #[serde(default = "default_2527")] + #[serde(default = "default_2541")] pub closest: Vec>, - #[serde(default = "default_2528")] + #[serde(default = "default_2542")] pub needs: Vec>, - #[serde(default = "default_2529")] + #[serde(default = "default_2543")] pub closest_note: String, - #[serde(default = "default_2530")] + #[serde(default = "default_2544")] pub nearest: Vec>, - #[serde(default = "default_2531")] + #[serde(default = "default_2545")] pub rerank: std::collections::HashMap, - #[serde(default = "default_2532")] + #[serde(default = "default_2546")] pub answer: String, - #[serde(default = "default_2533")] + #[serde(default = "default_2547")] pub related_prs: Vec>, } @@ -59649,17 +59780,17 @@ impl TrackerDuplicateCheckInput { #[non_exhaustive] pub struct TrackerFlakyOutput { pub test_name: String, - #[serde(default = "default_2534")] + #[serde(default = "default_2548")] pub known_flaky: bool, - #[serde(default = "default_2535")] + #[serde(default = "default_2549")] pub open_issues: Integer, - #[serde(default = "default_2536")] + #[serde(default = "default_2550")] pub issues: Vec>, - #[serde(default = "default_2537")] + #[serde(default = "default_2551")] pub verdict: String, - #[serde(default = "default_2538")] + #[serde(default = "default_2552")] pub tracker_unavailable: bool, - #[serde(default = "default_2539")] + #[serde(default = "default_2553")] pub signal: Option>, } @@ -59742,9 +59873,9 @@ impl TrackerFlakyInput { #[non_exhaustive] pub struct TrackerItemOutput { pub items: Vec>, - #[serde(default = "default_2540")] + #[serde(default = "default_2554")] pub unknown: Vec, - #[serde(default = "default_2541")] + #[serde(default = "default_2555")] pub tracker_unavailable: bool, } @@ -59793,19 +59924,19 @@ impl TrackerItemInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerLinksOutput { - #[serde(default = "default_2542")] + #[serde(default = "default_2556")] pub subject: std::collections::HashMap, - #[serde(default = "default_2543")] + #[serde(default = "default_2557")] pub verdict: String, - #[serde(default = "default_2544")] + #[serde(default = "default_2558")] pub items: Vec>, - #[serde(default = "default_2545")] + #[serde(default = "default_2559")] pub epistemic: String, - #[serde(default = "default_2546")] + #[serde(default = "default_2560")] pub record: std::collections::HashMap, - #[serde(default = "default_2547")] + #[serde(default = "default_2561")] pub computed_at: String, - #[serde(default = "default_2548")] + #[serde(default = "default_2562")] pub tracker_unavailable: bool, } @@ -59903,11 +60034,11 @@ impl TrackerLinksInput { pub struct TrackerReleaseOutput { pub version: String, pub blockers: Vec>, - #[serde(default = "default_2549")] + #[serde(default = "default_2563")] pub active_blockers: Integer, - #[serde(default = "default_2550")] + #[serde(default = "default_2564")] pub health: std::collections::HashMap, - #[serde(default = "default_2551")] + #[serde(default = "default_2565")] pub tracker_unavailable: bool, } @@ -59956,17 +60087,17 @@ impl TrackerReleaseInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSimilarOutput { - #[serde(default = "default_2552")] + #[serde(default = "default_2566")] pub items: Vec>, - #[serde(default = "default_2553")] + #[serde(default = "default_2567")] pub query: std::collections::HashMap, - #[serde(default = "default_2554")] + #[serde(default = "default_2568")] pub legs: std::collections::HashMap, - #[serde(default = "default_2555")] + #[serde(default = "default_2569")] pub epistemic: String, - #[serde(default = "default_2556")] + #[serde(default = "default_2570")] pub tracker_unavailable: bool, - #[serde(default = "default_2557")] + #[serde(default = "default_2571")] pub namespaces: Vec, } @@ -60087,19 +60218,19 @@ pub struct TrackerSourceAddOutput { pub name: String, pub host: String, pub database: String, - #[serde(default = "default_2558")] + #[serde(default = "default_2572")] pub namespaces: Vec>, - #[serde(default = "default_2559")] + #[serde(default = "default_2573")] pub contract: std::collections::HashMap, - #[serde(default = "default_2560")] + #[serde(default = "default_2574")] pub roles: Vec, - #[serde(default = "default_2561")] + #[serde(default = "default_2575")] pub my_role: String, - #[serde(default = "default_2562")] + #[serde(default = "default_2576")] pub dry_run: bool, - #[serde(default = "default_2563")] + #[serde(default = "default_2577")] pub written: bool, - #[serde(default = "default_2564")] + #[serde(default = "default_2578")] pub view_templates: std::collections::HashMap, } @@ -60262,13 +60393,13 @@ impl TrackerSourceAddInput { #[non_exhaustive] pub struct TrackerSourceCheckOutput { pub name: String, - #[serde(default = "default_2565")] + #[serde(default = "default_2579")] pub database: String, - #[serde(default = "default_2566")] + #[serde(default = "default_2580")] pub reachable: bool, - #[serde(default = "default_2567")] + #[serde(default = "default_2581")] pub contract: std::collections::HashMap, - #[serde(default = "default_2568")] + #[serde(default = "default_2582")] pub view_templates: std::collections::HashMap, } @@ -60308,11 +60439,11 @@ impl TrackerSourceCheckInput { pub struct TrackerSourceInspectOutput { pub host: String, pub database: String, - #[serde(default = "default_2569")] + #[serde(default = "default_2583")] pub tables: Vec>, - #[serde(default = "default_2570")] + #[serde(default = "default_2584")] pub roles: Vec, - #[serde(default = "default_2571")] + #[serde(default = "default_2585")] pub proposal: std::collections::HashMap, } @@ -60441,9 +60572,9 @@ impl TrackerSourceInspectInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSourceListOutput { - #[serde(default = "default_2572")] + #[serde(default = "default_2586")] pub sources: Vec>, - #[serde(default = "default_2573")] + #[serde(default = "default_2587")] pub self_service: bool, } @@ -60496,9 +60627,9 @@ impl TrackerSourceListInput { #[non_exhaustive] pub struct TrackerSourceRemoveOutput { pub name: String, - #[serde(default = "default_2574")] + #[serde(default = "default_2588")] pub deactivated: bool, - #[serde(default = "default_2575")] + #[serde(default = "default_2589")] pub namespaces_retired: Vec, } @@ -60539,9 +60670,9 @@ impl TrackerSourceRemoveInput { #[non_exhaustive] pub struct TrackerSourceRotateOutput { pub name: String, - #[serde(default = "default_2576")] + #[serde(default = "default_2590")] pub contract: std::collections::HashMap, - #[serde(default = "default_2577")] + #[serde(default = "default_2591")] pub rotated_at: String, } @@ -60588,11 +60719,11 @@ impl TrackerSourceRotateInput { #[non_exhaustive] pub struct TrackerSourceSetMappingOutput { pub name: String, - #[serde(default = "default_2578")] + #[serde(default = "default_2592")] pub contract: std::collections::HashMap, - #[serde(default = "default_2579")] + #[serde(default = "default_2593")] pub dry_run: bool, - #[serde(default = "default_2580")] + #[serde(default = "default_2594")] pub written: bool, } @@ -60659,45 +60790,45 @@ impl TrackerSourceSetMappingInput { #[non_exhaustive] pub struct TrackerTestSignalOutput { pub test_name: String, - #[serde(default = "default_2581")] + #[serde(default = "default_2595")] pub verdict: String, - #[serde(default = "default_2582")] + #[serde(default = "default_2596")] pub why: Vec, - #[serde(default = "default_2583")] + #[serde(default = "default_2597")] pub lower_bound: f64, - #[serde(default = "default_2584")] + #[serde(default = "default_2598")] pub window_days: Integer, - #[serde(default = "default_2585")] + #[serde(default = "default_2599")] pub since: String, - #[serde(default = "default_2586")] + #[serde(default = "default_2600")] pub features: std::collections::HashMap, - #[serde(default = "default_2587")] + #[serde(default = "default_2601")] pub infra: std::collections::HashMap, - #[serde(default = "default_2588")] + #[serde(default = "default_2602")] pub churn: std::collections::HashMap, - #[serde(default = "default_2589")] + #[serde(default = "default_2603")] pub thresholds: std::collections::HashMap, - #[serde(default = "default_2590")] + #[serde(default = "default_2604")] pub source: String, - #[serde(default = "default_2591")] + #[serde(default = "default_2605")] pub timings_ms: std::collections::HashMap, - #[serde(default = "default_2592")] + #[serde(default = "default_2606")] pub tracker_unavailable: bool, - #[serde(default = "default_2593")] + #[serde(default = "default_2607")] pub rollup: std::collections::HashMap, - #[serde(default = "default_2594")] + #[serde(default = "default_2608")] pub streak: std::collections::HashMap, - #[serde(default = "default_2595")] + #[serde(default = "default_2609")] pub smells: std::collections::HashMap, - #[serde(default = "default_2596")] + #[serde(default = "default_2610")] pub prior: std::collections::HashMap, - #[serde(default = "default_2597")] + #[serde(default = "default_2611")] pub unavailable_reason: String, - #[serde(default = "default_2598")] + #[serde(default = "default_2612")] pub candidates: Vec>, - #[serde(default = "default_2599")] + #[serde(default = "default_2613")] pub candidate_matches: Integer, - #[serde(default = "default_2600")] + #[serde(default = "default_2614")] pub resolved_from: String, } @@ -60801,9 +60932,9 @@ impl TrackerTestSignalInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct UiVitalsOutput { - #[serde(default = "default_2601")] + #[serde(default = "default_2615")] pub recorded: bool, - #[serde(default = "default_2602")] + #[serde(default = "default_2616")] pub route: String, } @@ -60987,7 +61118,7 @@ pub struct WebhookDelivery { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookDeliveriesOutput { - #[serde(default = "default_2603")] + #[serde(default = "default_2617")] pub deliveries: Vec, } @@ -61109,14 +61240,14 @@ pub struct WebhookInfo { pub secret_ref: String, pub events: Vec, pub created_at: String, - #[serde(default = "default_2604")] + #[serde(default = "default_2618")] pub secret_present: bool, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookListOutput { - #[serde(default = "default_2605")] + #[serde(default = "default_2619")] pub webhooks: Vec, } @@ -61298,7 +61429,7 @@ pub struct WorkingMemoryMutationOutput { pub version: Integer, pub char_limit: Integer, pub value_length: Integer, - #[serde(default = "default_2606")] + #[serde(default = "default_2620")] pub fill_ratio: f64, } @@ -61522,15 +61653,15 @@ impl WorkingMemoryDeleteInput { pub struct WorkingMemoryGetOutput { pub found: bool, pub block_key: String, - #[serde(default = "default_2607")] + #[serde(default = "default_2621")] pub content: String, - #[serde(default = "default_2608")] + #[serde(default = "default_2622")] pub char_limit: Integer, - #[serde(default = "default_2609")] + #[serde(default = "default_2623")] pub version: Integer, - #[serde(default = "default_2610")] + #[serde(default = "default_2624")] pub updated_at: Option, - #[serde(default = "default_2611")] + #[serde(default = "default_2625")] pub fill_ratio: f64, } @@ -61641,7 +61772,7 @@ pub struct WorkingMemoryBlock { pub content: String, pub char_limit: Integer, pub version: Integer, - #[serde(default = "default_2612")] + #[serde(default = "default_2626")] pub updated_at: Option, } @@ -61649,7 +61780,7 @@ pub struct WorkingMemoryBlock { #[non_exhaustive] pub struct WorkingMemoryRenderOutput { pub rendered: String, - #[serde(default = "default_2613")] + #[serde(default = "default_2627")] pub blocks: Vec, pub block_count: Integer, pub total_chars: Integer, @@ -64883,4994 +65014,5036 @@ fn default_953() -> Integer { fn default_954() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_955() -> String { +fn default_955() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_956() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_957() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_958() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_959() -> bool { + serde_json::from_str("false").expect("schema default") +} +fn default_960() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_961() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_962() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_963() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_964() -> TuneApplyVia { + serde_json::from_str("\"op\"").expect("schema default") +} +fn default_965() -> bool { + serde_json::from_str("true").expect("schema default") +} +fn default_966() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_967() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_968() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_969() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_970() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_971() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_956() -> String { +fn default_972() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_957() -> String { +fn default_973() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_958() -> String { +fn default_974() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_959() -> Vec { +fn default_975() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_960() -> Option { +fn default_976() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_961() -> String { +fn default_977() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_962() -> String { +fn default_978() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_963() -> String { +fn default_979() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_964() -> Option { +fn default_980() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_965() -> String { +fn default_981() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_966() -> DecisionRowStage { +fn default_982() -> DecisionRowStage { serde_json::from_str("\"decided\"").expect("schema default") } -fn default_967() -> f64 { +fn default_983() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_968() -> Option { +fn default_984() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_969() -> Option { +fn default_985() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_970() -> Integer { +fn default_986() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_971() -> String { +fn default_987() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_972() -> bool { +fn default_988() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_973() -> Integer { +fn default_989() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_974() -> String { +fn default_990() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_975() -> bool { +fn default_991() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_976() -> Option { +fn default_992() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_977() -> String { +fn default_993() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_978() -> Integer { +fn default_994() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_979() -> Integer { +fn default_995() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_980() -> Integer { +fn default_996() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_981() -> Option { +fn default_997() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_982() -> String { +fn default_998() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_983() -> Option { +fn default_999() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_984() -> Integer { +fn default_1000() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_985() -> std::collections::HashMap { +fn default_1001() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_986() -> Option { +fn default_1002() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_987() -> Option> { +fn default_1003() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_988() -> bool { +fn default_1004() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_989() -> String { +fn default_1005() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_990() -> Vec { +fn default_1006() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_991() -> Option { +fn default_1007() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_992() -> Option { +fn default_1008() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_993() -> Option { +fn default_1009() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_994() -> Option { +fn default_1010() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_995() -> Option { +fn default_1011() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_996() -> Option { +fn default_1012() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_997() -> Option { +fn default_1013() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_998() -> Option { +fn default_1014() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_999() -> Option { +fn default_1015() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1000() -> Integer { +fn default_1016() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1001() -> std::collections::HashMap { +fn default_1017() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1002() -> Option { +fn default_1018() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1003() -> Option> { +fn default_1019() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1004() -> bool { +fn default_1020() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1005() -> String { +fn default_1021() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1006() -> String { +fn default_1022() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1007() -> String { +fn default_1023() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1008() -> Option { +fn default_1024() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1009() -> String { +fn default_1025() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1010() -> String { +fn default_1026() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1011() -> Option { +fn default_1027() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1012() -> Vec { +fn default_1028() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1013() -> String { +fn default_1029() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1014() -> Vec { +fn default_1030() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1015() -> Vec { +fn default_1031() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1016() -> bool { +fn default_1032() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1017() -> bool { +fn default_1033() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1018() -> String { +fn default_1034() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1019() -> String { +fn default_1035() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1020() -> Option { +fn default_1036() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1021() -> Option { +fn default_1037() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1022() -> Option { +fn default_1038() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1023() -> bool { +fn default_1039() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1024() -> Integer { +fn default_1040() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1025() -> String { +fn default_1041() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1026() -> String { +fn default_1042() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1027() -> String { +fn default_1043() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1028() -> String { +fn default_1044() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1029() -> String { +fn default_1045() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1030() -> Option { +fn default_1046() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1031() -> Vec { +fn default_1047() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1032() -> bool { +fn default_1048() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1033() -> Vec { +fn default_1049() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1034() -> Option { +fn default_1050() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1035() -> Option { +fn default_1051() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1036() -> bool { +fn default_1052() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1037() -> String { +fn default_1053() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_1038() -> Option { +fn default_1054() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1039() -> Option { +fn default_1055() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1040() -> Option { +fn default_1056() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1041() -> String { +fn default_1057() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1042() -> String { +fn default_1058() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1043() -> String { +fn default_1059() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1044() -> HelpGetOutputAudience { +fn default_1060() -> HelpGetOutputAudience { serde_json::from_str("\"user\"").expect("schema default") } -fn default_1045() -> String { +fn default_1061() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1046() -> bool { +fn default_1062() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1047() -> Integer { +fn default_1063() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1048() -> String { +fn default_1064() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1049() -> Vec { +fn default_1065() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1050() -> String { +fn default_1066() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1051() -> Vec { +fn default_1067() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1052() -> Vec { +fn default_1068() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1053() -> String { +fn default_1069() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1054() -> String { +fn default_1070() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1055() -> String { +fn default_1071() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1056() -> Vec { +fn default_1072() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1057() -> String { +fn default_1073() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1058() -> bool { +fn default_1074() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1059() -> Vec { +fn default_1075() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1060() -> Vec { +fn default_1076() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1061() -> Option { +fn default_1077() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1062() -> bool { +fn default_1078() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1063() -> bool { +fn default_1079() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1064() -> Vec { +fn default_1080() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1065() -> Vec> { +fn default_1081() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1066() -> Integer { +fn default_1082() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1067() -> bool { +fn default_1083() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1068() -> String { +fn default_1084() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1069() -> String { +fn default_1085() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1070() -> Integer { +fn default_1086() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1071() -> Integer { +fn default_1087() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1072() -> Vec { +fn default_1088() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1073() -> Integer { +fn default_1089() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1074() -> Vec { +fn default_1090() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1075() -> bool { +fn default_1091() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1076() -> String { +fn default_1092() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1077() -> Option { +fn default_1093() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1078() -> Option { +fn default_1094() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1079() -> Vec> { +fn default_1095() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1080() -> Option { +fn default_1096() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1081() -> bool { +fn default_1097() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1082() -> Integer { +fn default_1098() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1083() -> Vec { +fn default_1099() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1084() -> Vec> { +fn default_1100() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1085() -> Vec { +fn default_1101() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1086() -> Vec> { +fn default_1102() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1087() -> Vec { +fn default_1103() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1088() -> String { +fn default_1104() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1089() -> Vec { +fn default_1105() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1090() -> Vec { +fn default_1106() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1091() -> Option { +fn default_1107() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1092() -> Vec { +fn default_1108() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1093() -> Integer { +fn default_1109() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1094() -> Vec { +fn default_1110() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1095() -> String { +fn default_1111() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1096() -> Vec { +fn default_1112() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1097() -> Vec { +fn default_1113() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1098() -> Option { +fn default_1114() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1099() -> Option { +fn default_1115() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1100() -> bool { +fn default_1116() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1101() -> String { +fn default_1117() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1102() -> String { +fn default_1118() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1103() -> bool { +fn default_1119() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1104() -> String { +fn default_1120() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1105() -> String { +fn default_1121() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1106() -> String { +fn default_1122() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1107() -> Integer { +fn default_1123() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1108() -> String { +fn default_1124() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1109() -> String { +fn default_1125() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1110() -> String { +fn default_1126() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1111() -> Option> { +fn default_1127() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1112() -> Vec { +fn default_1128() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1113() -> Integer { +fn default_1129() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1114() -> Integer { +fn default_1130() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1115() -> Option { +fn default_1131() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1116() -> String { +fn default_1132() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1117() -> String { +fn default_1133() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1118() -> bool { +fn default_1134() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1119() -> Option { +fn default_1135() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1120() -> Option { +fn default_1136() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1121() -> Option { +fn default_1137() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1122() -> Option { +fn default_1138() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1123() -> Option { +fn default_1139() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1124() -> Vec { +fn default_1140() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1125() -> Vec { +fn default_1141() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1126() -> Option { +fn default_1142() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1127() -> Option { +fn default_1143() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1128() -> Option { +fn default_1144() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1129() -> String { +fn default_1145() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1130() -> Option { +fn default_1146() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1131() -> Option { +fn default_1147() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1132() -> Option { +fn default_1148() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1133() -> Vec { +fn default_1149() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1134() -> Vec { +fn default_1150() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1135() -> Option { +fn default_1151() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1136() -> String { +fn default_1152() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1137() -> Option { +fn default_1153() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1138() -> Vec { +fn default_1154() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1139() -> Option { +fn default_1155() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1140() -> Option { +fn default_1156() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1141() -> Option { +fn default_1157() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1142() -> String { +fn default_1158() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1143() -> Option { +fn default_1159() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1144() -> Option { +fn default_1160() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1145() -> bool { +fn default_1161() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1146() -> bool { +fn default_1162() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1147() -> Option { +fn default_1163() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1148() -> Vec { +fn default_1164() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1149() -> bool { +fn default_1165() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1150() -> Option { +fn default_1166() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1151() -> Option { +fn default_1167() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1152() -> Vec { +fn default_1168() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1153() -> String { +fn default_1169() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1154() -> String { +fn default_1170() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1155() -> Vec { +fn default_1171() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1156() -> Integer { +fn default_1172() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1157() -> Vec { +fn default_1173() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1158() -> Vec { +fn default_1174() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1159() -> Vec { +fn default_1175() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1160() -> Vec { +fn default_1176() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1161() -> Vec { +fn default_1177() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1162() -> Option { +fn default_1178() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1163() -> Option { +fn default_1179() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1164() -> Option { +fn default_1180() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1165() -> Option { +fn default_1181() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1166() -> Option { +fn default_1182() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1167() -> Option { +fn default_1183() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1168() -> Option { +fn default_1184() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1169() -> Option { +fn default_1185() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1170() -> Option { +fn default_1186() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1171() -> Option { +fn default_1187() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1172() -> Option { +fn default_1188() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1173() -> Option { +fn default_1189() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1174() -> Vec { +fn default_1190() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1175() -> Option { +fn default_1191() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1176() -> Option { +fn default_1192() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1177() -> Vec { +fn default_1193() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1178() -> Option { +fn default_1194() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1179() -> Option { +fn default_1195() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1180() -> Vec { +fn default_1196() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1181() -> String { +fn default_1197() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1182() -> String { +fn default_1198() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1183() -> Vec { +fn default_1199() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1184() -> Vec { +fn default_1200() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1185() -> Integer { +fn default_1201() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1186() -> Vec { +fn default_1202() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1187() -> Vec { +fn default_1203() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1188() -> Vec { +fn default_1204() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1189() -> Vec { +fn default_1205() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1190() -> Option { +fn default_1206() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1191() -> String { +fn default_1207() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1192() -> bool { +fn default_1208() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1193() -> KnowledgeMoveResultReason { +fn default_1209() -> KnowledgeMoveResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1194() -> Vec { +fn default_1210() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1195() -> String { +fn default_1211() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1196() -> bool { +fn default_1212() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1197() -> Integer { +fn default_1213() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1198() -> Vec { +fn default_1214() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1199() -> Option { +fn default_1215() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1200() -> Vec { +fn default_1216() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1201() -> Vec> { +fn default_1217() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1202() -> bool { +fn default_1218() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1203() -> Vec { +fn default_1219() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1204() -> bool { +fn default_1220() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1205() -> Vec { +fn default_1221() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1206() -> Vec> { +fn default_1222() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1207() -> KnowledgeRestoreOutputReason { +fn default_1223() -> KnowledgeRestoreOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1208() -> String { +fn default_1224() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1209() -> Option { +fn default_1225() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1210() -> Integer { +fn default_1226() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1211() -> KnowledgeRestoreOutputOriginal { +fn default_1227() -> KnowledgeRestoreOutputOriginal { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1212() -> Option { +fn default_1228() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1213() -> Vec> { +fn default_1229() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1214() -> Vec { +fn default_1230() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1215() -> std::collections::HashMap { +fn default_1231() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1216() -> Integer { +fn default_1232() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1217() -> bool { +fn default_1233() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1218() -> Vec { +fn default_1234() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1219() -> Integer { +fn default_1235() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1220() -> bool { +fn default_1236() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1221() -> KnowledgeSourceProbe { +fn default_1237() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1222() -> bool { +fn default_1238() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1223() -> bool { +fn default_1239() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1224() -> Integer { +fn default_1240() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1225() -> bool { +fn default_1241() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1226() -> Vec { +fn default_1242() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1227() -> Integer { +fn default_1243() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1228() -> bool { +fn default_1244() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1229() -> String { +fn default_1245() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1230() -> String { +fn default_1246() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1231() -> String { +fn default_1247() -> String { serde_json::from_str("\"shared\"").expect("schema default") } -fn default_1232() -> bool { +fn default_1248() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1233() -> String { +fn default_1249() -> String { serde_json::from_str("\"namespace\"").expect("schema default") } -fn default_1234() -> std::collections::HashMap { +fn default_1250() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1235() -> String { +fn default_1251() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1236() -> Vec> { +fn default_1252() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1237() -> Vec { +fn default_1253() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1238() -> std::collections::HashMap { +fn default_1254() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1239() -> String { +fn default_1255() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1240() -> String { +fn default_1256() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1241() -> String { +fn default_1257() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1242() -> String { +fn default_1258() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1243() -> String { +fn default_1259() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1244() -> Integer { +fn default_1260() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1245() -> Integer { +fn default_1261() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1246() -> Integer { +fn default_1262() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1247() -> Integer { +fn default_1263() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1248() -> std::collections::HashMap { +fn default_1264() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1249() -> Integer { +fn default_1265() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1250() -> String { +fn default_1266() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1251() -> Integer { +fn default_1267() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1252() -> String { +fn default_1268() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1253() -> Integer { +fn default_1269() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1254() -> Integer { +fn default_1270() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1255() -> Integer { +fn default_1271() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1256() -> String { +fn default_1272() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1257() -> KnowledgeSourceSync { +fn default_1273() -> 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_1258() -> String { +fn default_1274() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1259() -> String { +fn default_1275() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1260() -> String { +fn default_1276() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1261() -> Vec { +fn default_1277() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1262() -> String { +fn default_1278() -> String { serde_json::from_str("\"shared\"").expect("schema default") } -fn default_1263() -> bool { +fn default_1279() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1264() -> String { +fn default_1280() -> String { serde_json::from_str("\"namespace\"").expect("schema default") } -fn default_1265() -> std::collections::HashMap { +fn default_1281() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1266() -> String { +fn default_1282() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1267() -> Vec> { +fn default_1283() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1268() -> Vec { +fn default_1284() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1269() -> std::collections::HashMap { +fn default_1285() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1270() -> String { +fn default_1286() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1271() -> String { +fn default_1287() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1272() -> KnowledgeSourceSync { +fn default_1288() -> 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_1273() -> Vec { +fn default_1289() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1274() -> bool { +fn default_1290() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1275() -> bool { +fn default_1291() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1276() -> bool { +fn default_1292() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1277() -> Option { +fn default_1293() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1278() -> String { +fn default_1294() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1279() -> std::collections::HashMap { +fn default_1295() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1280() -> String { +fn default_1296() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1281() -> Vec { +fn default_1297() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1282() -> bool { +fn default_1298() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1283() -> String { +fn default_1299() -> String { serde_json::from_str("\"disabled\"").expect("schema default") } -fn default_1284() -> String { +fn default_1300() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1285() -> String { +fn default_1301() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1286() -> String { +fn default_1302() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1287() -> String { +fn default_1303() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1288() -> String { +fn default_1304() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1289() -> String { +fn default_1305() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1290() -> Integer { +fn default_1306() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1291() -> f64 { +fn default_1307() -> f64 { serde_json::from_str("0").expect("schema default") } -fn default_1292() -> Integer { +fn default_1308() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1293() -> Option { +fn default_1309() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1294() -> KnowledgeSourceProbe { +fn default_1310() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1295() -> String { +fn default_1311() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1296() -> bool { +fn default_1312() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1297() -> Option { +fn default_1313() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1298() -> Vec> { +fn default_1314() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1299() -> Vec { +fn default_1315() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1300() -> std::collections::HashMap { +fn default_1316() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1301() -> Vec> { +fn default_1317() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1302() -> Vec> { +fn default_1318() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1303() -> KnowledgeSourceProbe { +fn default_1319() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1304() -> Option { +fn default_1320() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1305() -> Option { +fn default_1321() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1306() -> Option { +fn default_1322() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1307() -> Option { +fn default_1323() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1308() -> Option { +fn default_1324() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1309() -> Option { +fn default_1325() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1310() -> Option { +fn default_1326() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1311() -> Option { +fn default_1327() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1312() -> Option { +fn default_1328() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1313() -> Option { +fn default_1329() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1314() -> Vec { +fn default_1330() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1315() -> Option { +fn default_1331() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1316() -> Option { +fn default_1332() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1317() -> Option { +fn default_1333() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1318() -> Vec { +fn default_1334() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1319() -> Integer { +fn default_1335() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1320() -> Option> { +fn default_1336() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1321() -> Vec { +fn default_1337() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1322() -> Vec { +fn default_1338() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1323() -> bool { +fn default_1339() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1324() -> bool { +fn default_1340() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1325() -> String { +fn default_1341() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1326() -> String { +fn default_1342() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1327() -> Vec> { +fn default_1343() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1328() -> bool { +fn default_1344() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1329() -> Vec { +fn default_1345() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1330() -> Vec { +fn default_1346() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1331() -> String { +fn default_1347() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1332() -> String { +fn default_1348() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1333() -> String { +fn default_1349() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1334() -> Vec { +fn default_1350() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1335() -> Integer { +fn default_1351() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1336() -> String { +fn default_1352() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1337() -> Integer { +fn default_1353() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1338() -> String { +fn default_1354() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1339() -> String { +fn default_1355() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1340() -> Integer { +fn default_1356() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1341() -> Integer { +fn default_1357() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1342() -> String { +fn default_1358() -> String { serde_json::from_str("\"memory_supporters\"").expect("schema default") } -fn default_1343() -> String { +fn default_1359() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1344() -> String { +fn default_1360() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1345() -> Option { +fn default_1361() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1346() -> String { +fn default_1362() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1347() -> String { +fn default_1363() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1348() -> bool { +fn default_1364() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1349() -> bool { +fn default_1365() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1350() -> String { +fn default_1366() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1351() -> std::collections::HashMap { +fn default_1367() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1352() -> Vec { +fn default_1368() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1353() -> String { +fn default_1369() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1354() -> String { +fn default_1370() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1355() -> String { +fn default_1371() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1356() -> Vec { +fn default_1372() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1357() -> String { +fn default_1373() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1358() -> String { +fn default_1374() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1359() -> Vec { +fn default_1375() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1360() -> Vec { +fn default_1376() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1361() -> Vec { +fn default_1377() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1362() -> Vec { +fn default_1378() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1363() -> Integer { +fn default_1379() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1364() -> Vec { +fn default_1380() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1365() -> Vec { +fn default_1381() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1366() -> Vec { +fn default_1382() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1367() -> Integer { +fn default_1383() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1368() -> Vec { +fn default_1384() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1369() -> std::collections::HashMap { +fn default_1385() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1370() -> std::collections::HashMap { +fn default_1386() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1371() -> Integer { +fn default_1387() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1372() -> Integer { +fn default_1388() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1373() -> Integer { +fn default_1389() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1374() -> Integer { +fn default_1390() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1375() -> Integer { +fn default_1391() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1376() -> Integer { +fn default_1392() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1377() -> bool { +fn default_1393() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1378() -> String { +fn default_1394() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1379() -> String { +fn default_1395() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1380() -> String { +fn default_1396() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1381() -> String { +fn default_1397() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1382() -> Option { +fn default_1398() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1383() -> String { +fn default_1399() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1384() -> Vec { +fn default_1400() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1385() -> String { +fn default_1401() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1386() -> MemoryAskOutputSource { +fn default_1402() -> MemoryAskOutputSource { serde_json::from_str("\"synthesized\"").expect("schema default") } -fn default_1387() -> bool { +fn default_1403() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1388() -> String { +fn default_1404() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1389() -> Vec { +fn default_1405() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1390() -> Vec { +fn default_1406() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1391() -> Vec { +fn default_1407() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1392() -> String { +fn default_1408() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1393() -> String { +fn default_1409() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1394() -> MemoryAskOutputRouteTier { +fn default_1410() -> MemoryAskOutputRouteTier { serde_json::from_str("\"\"").expect("schema default") } -fn default_1395() -> String { +fn default_1411() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1396() -> Integer { +fn default_1412() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1397() -> Integer { +fn default_1413() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1398() -> bool { +fn default_1414() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1399() -> f64 { +fn default_1415() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1400() -> Option { +fn default_1416() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1401() -> Option { +fn default_1417() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1402() -> bool { +fn default_1418() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1403() -> String { +fn default_1419() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1404() -> Integer { +fn default_1420() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1405() -> Integer { +fn default_1421() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1406() -> Integer { +fn default_1422() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1407() -> Integer { +fn default_1423() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1408() -> String { +fn default_1424() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1409() -> Vec { +fn default_1425() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1410() -> Integer { +fn default_1426() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1411() -> MemoryAskOutputConsistency { +fn default_1427() -> MemoryAskOutputConsistency { serde_json::from_str("\"\"").expect("schema default") } -fn default_1412() -> f64 { +fn default_1428() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1413() -> String { +fn default_1429() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1414() -> Integer { +fn default_1430() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1415() -> Integer { +fn default_1431() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1416() -> String { +fn default_1432() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1417() -> String { +fn default_1433() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1418() -> String { +fn default_1434() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1419() -> String { +fn default_1435() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1420() -> MemoryAskOutputDepth { +fn default_1436() -> MemoryAskOutputDepth { serde_json::from_str("\"\"").expect("schema default") } -fn default_1421() -> bool { +fn default_1437() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1422() -> Vec { +fn default_1438() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1423() -> Integer { +fn default_1439() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1424() -> Integer { +fn default_1440() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1425() -> Integer { +fn default_1441() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1426() -> Vec { +fn default_1442() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1427() -> Integer { +fn default_1443() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1428() -> Integer { +fn default_1444() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1429() -> Integer { +fn default_1445() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1430() -> MemoryAskOutputGrounding { +fn default_1446() -> MemoryAskOutputGrounding { serde_json::from_str("\"\"").expect("schema default") } -fn default_1431() -> String { +fn default_1447() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1432() -> Vec { +fn default_1448() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1433() -> Integer { +fn default_1449() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1434() -> Integer { +fn default_1450() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1435() -> Integer { +fn default_1451() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1436() -> Integer { +fn default_1452() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1437() -> std::collections::HashMap { +fn default_1453() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1438() -> MemoryAskOutputDeepSelector { +fn default_1454() -> MemoryAskOutputDeepSelector { serde_json::from_str("\"\"").expect("schema default") } -fn default_1439() -> MemoryAskOutputDeepFirst { +fn default_1455() -> MemoryAskOutputDeepFirst { serde_json::from_str("\"\"").expect("schema default") } -fn default_1440() -> Integer { +fn default_1456() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1441() -> Integer { +fn default_1457() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1442() -> Integer { +fn default_1458() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1443() -> Integer { +fn default_1459() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1444() -> f64 { +fn default_1460() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1445() -> Integer { +fn default_1461() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1446() -> Integer { +fn default_1462() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1447() -> Integer { +fn default_1463() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1448() -> Integer { +fn default_1464() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1449() -> Integer { +fn default_1465() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1450() -> bool { +fn default_1466() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1451() -> String { +fn default_1467() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1452() -> String { +fn default_1468() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1453() -> String { +fn default_1469() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1454() -> String { +fn default_1470() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1455() -> String { +fn default_1471() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1456() -> String { +fn default_1472() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1457() -> bool { +fn default_1473() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1458() -> String { +fn default_1474() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1459() -> Option { +fn default_1475() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1460() -> String { +fn default_1476() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1461() -> String { +fn default_1477() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1462() -> Vec { +fn default_1478() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1463() -> Option { +fn default_1479() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1464() -> bool { +fn default_1480() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1465() -> String { +fn default_1481() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1466() -> String { +fn default_1482() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1467() -> Vec { +fn default_1483() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1468() -> String { +fn default_1484() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1469() -> Vec { +fn default_1485() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1470() -> String { +fn default_1486() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1471() -> String { +fn default_1487() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1472() -> Vec { +fn default_1488() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1473() -> Vec { +fn default_1489() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1474() -> Integer { +fn default_1490() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1475() -> Vec { +fn default_1491() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1476() -> Vec { +fn default_1492() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1477() -> String { +fn default_1493() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1478() -> String { +fn default_1494() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1479() -> bool { +fn default_1495() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1480() -> String { +fn default_1496() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1481() -> String { +fn default_1497() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1482() -> String { +fn default_1498() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1483() -> bool { +fn default_1499() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1484() -> String { +fn default_1500() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1485() -> String { +fn default_1501() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1486() -> String { +fn default_1502() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1487() -> Vec { +fn default_1503() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1488() -> Vec { +fn default_1504() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1489() -> Vec { +fn default_1505() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1490() -> std::collections::HashMap { +fn default_1506() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1491() -> Vec { +fn default_1507() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1492() -> Integer { +fn default_1508() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1493() -> Vec { +fn default_1509() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1494() -> Integer { +fn default_1510() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1495() -> Integer { +fn default_1511() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1496() -> Integer { +fn default_1512() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1497() -> Integer { +fn default_1513() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1498() -> Integer { +fn default_1514() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1499() -> Integer { +fn default_1515() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1500() -> Integer { +fn default_1516() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1501() -> String { +fn default_1517() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1502() -> String { +fn default_1518() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1503() -> String { +fn default_1519() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1504() -> String { +fn default_1520() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1505() -> bool { +fn default_1521() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1506() -> Integer { +fn default_1522() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1507() -> Integer { +fn default_1523() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1508() -> Integer { +fn default_1524() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1509() -> Integer { +fn default_1525() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1510() -> Integer { +fn default_1526() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1511() -> bool { +fn default_1527() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1512() -> Vec { +fn default_1528() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1513() -> String { +fn default_1529() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1514() -> String { +fn default_1530() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1515() -> Option { +fn default_1531() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1516() -> Vec { +fn default_1532() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1517() -> bool { +fn default_1533() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1518() -> bool { +fn default_1534() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1519() -> Vec { +fn default_1535() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1520() -> bool { +fn default_1536() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1521() -> Option { +fn default_1537() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1522() -> Vec { +fn default_1538() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1523() -> Option { +fn default_1539() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1524() -> Option { +fn default_1540() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1525() -> Vec { +fn default_1541() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1526() -> Integer { +fn default_1542() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1527() -> bool { +fn default_1543() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1528() -> String { +fn default_1544() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1529() -> Integer { +fn default_1545() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1530() -> Integer { +fn default_1546() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1531() -> std::collections::HashMap { +fn default_1547() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1532() -> String { +fn default_1548() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1533() -> f64 { +fn default_1549() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1534() -> bool { +fn default_1550() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1535() -> String { +fn default_1551() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1536() -> String { +fn default_1552() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1537() -> Integer { +fn default_1553() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1538() -> Integer { +fn default_1554() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1539() -> Option { +fn default_1555() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1540() -> Vec { +fn default_1556() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1541() -> Vec { +fn default_1557() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1542() -> Option { +fn default_1558() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1543() -> Option { +fn default_1559() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1544() -> Integer { +fn default_1560() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1545() -> bool { +fn default_1561() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1546() -> String { +fn default_1562() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1547() -> String { +fn default_1563() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1548() -> String { +fn default_1564() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1549() -> String { +fn default_1565() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1550() -> Option { +fn default_1566() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1551() -> String { +fn default_1567() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1552() -> Integer { +fn default_1568() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1553() -> Integer { +fn default_1569() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1554() -> String { +fn default_1570() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1555() -> Vec { +fn default_1571() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1556() -> bool { +fn default_1572() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1557() -> Integer { +fn default_1573() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1558() -> Integer { +fn default_1574() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1559() -> Integer { +fn default_1575() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1560() -> Integer { +fn default_1576() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1561() -> Integer { +fn default_1577() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1562() -> String { +fn default_1578() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1563() -> String { +fn default_1579() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1564() -> String { +fn default_1580() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1565() -> String { +fn default_1581() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1566() -> Vec { +fn default_1582() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1567() -> Integer { +fn default_1583() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1568() -> Integer { +fn default_1584() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1569() -> String { +fn default_1585() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1570() -> String { +fn default_1586() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1571() -> Vec { +fn default_1587() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1572() -> String { +fn default_1588() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1573() -> String { +fn default_1589() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1574() -> Vec { +fn default_1590() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1575() -> Vec { +fn default_1591() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1576() -> String { +fn default_1592() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1577() -> String { +fn default_1593() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1578() -> Vec { +fn default_1594() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1579() -> f64 { +fn default_1595() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1580() -> String { +fn default_1596() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1581() -> String { +fn default_1597() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1582() -> Vec { +fn default_1598() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1583() -> bool { +fn default_1599() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1584() -> String { +fn default_1600() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1585() -> Integer { +fn default_1601() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1586() -> Vec { +fn default_1602() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1587() -> Vec { +fn default_1603() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1588() -> Vec { +fn default_1604() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1589() -> Vec { +fn default_1605() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1590() -> Vec { +fn default_1606() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1591() -> Option { +fn default_1607() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1592() -> Option { +fn default_1608() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1593() -> Vec { +fn default_1609() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1594() -> Integer { +fn default_1610() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1595() -> Integer { +fn default_1611() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1596() -> Vec { +fn default_1612() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1597() -> Vec { +fn default_1613() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1598() -> Integer { +fn default_1614() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1599() -> Integer { +fn default_1615() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1600() -> bool { +fn default_1616() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1601() -> Vec { +fn default_1617() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1602() -> f64 { +fn default_1618() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1603() -> bool { +fn default_1619() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1604() -> String { +fn default_1620() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1605() -> String { +fn default_1621() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1606() -> Option { +fn default_1622() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1607() -> String { +fn default_1623() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1608() -> String { +fn default_1624() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1609() -> String { +fn default_1625() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1610() -> String { +fn default_1626() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1611() -> MemoryForFileHitSupersedesKind { +fn default_1627() -> MemoryForFileHitSupersedesKind { serde_json::from_str("\"\"").expect("schema default") } -fn default_1612() -> Vec { +fn default_1628() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1613() -> String { +fn default_1629() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1614() -> MemoryForFileHitVerification { +fn default_1630() -> MemoryForFileHitVerification { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1615() -> MemoryForFileHitCodeState { +fn default_1631() -> MemoryForFileHitCodeState { serde_json::from_str("\"\"").expect("schema default") } -fn default_1616() -> Vec { +fn default_1632() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1617() -> String { +fn default_1633() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1618() -> Integer { +fn default_1634() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1619() -> bool { +fn default_1635() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1620() -> bool { +fn default_1636() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1621() -> Vec { +fn default_1637() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1622() -> String { +fn default_1638() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1623() -> String { +fn default_1639() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1624() -> String { +fn default_1640() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1625() -> String { +fn default_1641() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1626() -> String { +fn default_1642() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1627() -> String { +fn default_1643() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1628() -> Option { +fn default_1644() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1629() -> Value { +fn default_1645() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1630() -> Option { +fn default_1646() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1631() -> Option { +fn default_1647() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1632() -> Option { +fn default_1648() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1633() -> Option { +fn default_1649() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1634() -> Option { +fn default_1650() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1635() -> Option { +fn default_1651() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1636() -> bool { +fn default_1652() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1637() -> String { +fn default_1653() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1638() -> String { +fn default_1654() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1639() -> Option { +fn default_1655() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1640() -> String { +fn default_1656() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1641() -> String { +fn default_1657() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1642() -> String { +fn default_1658() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1643() -> String { +fn default_1659() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1644() -> String { +fn default_1660() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1645() -> String { +fn default_1661() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1646() -> Option { +fn default_1662() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1647() -> String { +fn default_1663() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1648() -> String { +fn default_1664() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1649() -> String { +fn default_1665() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1650() -> Integer { +fn default_1666() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1651() -> Vec { +fn default_1667() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1652() -> Integer { +fn default_1668() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1653() -> Option { +fn default_1669() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1654() -> Vec { +fn default_1670() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1655() -> std::collections::HashMap { +fn default_1671() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1656() -> Integer { +fn default_1672() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1657() -> f64 { +fn default_1673() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1658() -> Integer { +fn default_1674() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1659() -> Integer { +fn default_1675() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1660() -> Integer { +fn default_1676() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1661() -> Integer { +fn default_1677() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1662() -> Integer { +fn default_1678() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1663() -> MemoryHealthStaleness { +fn default_1679() -> 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_1664() -> Integer { +fn default_1680() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1665() -> Integer { +fn default_1681() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1666() -> f64 { +fn default_1682() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1667() -> MemoryHealthFootprint { +fn default_1683() -> MemoryHealthFootprint { serde_json::from_str("{\"value_chars\":0,\"value_tokens_est\":0,\"tokens_per_row_est\":0.0}") .expect("schema default") } -fn default_1668() -> String { +fn default_1684() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1669() -> Value { +fn default_1685() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1670() -> String { +fn default_1686() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1671() -> bool { +fn default_1687() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1672() -> Option { +fn default_1688() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1673() -> Option { +fn default_1689() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1674() -> Option { +fn default_1690() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1675() -> String { +fn default_1691() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1676() -> String { +fn default_1692() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1677() -> String { +fn default_1693() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1678() -> String { +fn default_1694() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1679() -> String { +fn default_1695() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1680() -> Option { +fn default_1696() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1681() -> String { +fn default_1697() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1682() -> Vec { +fn default_1698() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1683() -> Vec { +fn default_1699() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1684() -> Option { +fn default_1700() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1685() -> String { +fn default_1701() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1686() -> String { +fn default_1702() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1687() -> String { +fn default_1703() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1688() -> String { +fn default_1704() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1689() -> Option { +fn default_1705() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1690() -> Integer { +fn default_1706() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1691() -> Integer { +fn default_1707() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1692() -> Integer { +fn default_1708() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1693() -> Integer { +fn default_1709() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1694() -> MemoryImportResultReason { +fn default_1710() -> MemoryImportResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1695() -> String { +fn default_1711() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1696() -> MemoryImportResultNote { +fn default_1712() -> MemoryImportResultNote { serde_json::from_str("\"\"").expect("schema default") } -fn default_1697() -> bool { +fn default_1713() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1698() -> String { +fn default_1714() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1699() -> Option { +fn default_1715() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1700() -> Integer { +fn default_1716() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1701() -> Integer { +fn default_1717() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1702() -> Integer { +fn default_1718() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1703() -> String { +fn default_1719() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1704() -> Integer { +fn default_1720() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1705() -> Vec { +fn default_1721() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1706() -> Integer { +fn default_1722() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1707() -> Integer { +fn default_1723() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1708() -> Vec { +fn default_1724() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1709() -> Integer { +fn default_1725() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1710() -> Vec { +fn default_1726() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1711() -> Vec { +fn default_1727() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1712() -> Vec { +fn default_1728() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1713() -> Vec { +fn default_1729() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1714() -> Vec { +fn default_1730() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1715() -> Option { +fn default_1731() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1716() -> Option { +fn default_1732() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1717() -> String { +fn default_1733() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1718() -> Integer { +fn default_1734() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1719() -> String { +fn default_1735() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1720() -> Vec { +fn default_1736() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1721() -> bool { +fn default_1737() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1722() -> Vec { +fn default_1738() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1723() -> Option { +fn default_1739() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1724() -> Option { +fn default_1740() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1725() -> String { +fn default_1741() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1726() -> Integer { +fn default_1742() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1727() -> String { +fn default_1743() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1728() -> Integer { +fn default_1744() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1729() -> Option { +fn default_1745() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1730() -> String { +fn default_1746() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1731() -> String { +fn default_1747() -> 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_1732() -> Vec { +fn default_1748() -> Vec { serde_json::from_str("[\"memory.set_from_messages\",\"extraction_instructions\"]") .expect("schema default") } -fn default_1733() -> Vec { +fn default_1749() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1734() -> bool { +fn default_1750() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1735() -> String { +fn default_1751() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1736() -> String { +fn default_1752() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1737() -> Option { +fn default_1753() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1738() -> String { +fn default_1754() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1739() -> String { +fn default_1755() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1740() -> String { +fn default_1756() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1741() -> MemoryLineageOutputMechanism { +fn default_1757() -> MemoryLineageOutputMechanism { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_1742() -> Vec { +fn default_1758() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1743() -> String { +fn default_1759() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1744() -> String { +fn default_1760() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1745() -> Option { +fn default_1761() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1746() -> Vec { +fn default_1762() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1747() -> f64 { +fn default_1763() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1748() -> bool { +fn default_1764() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1749() -> bool { +fn default_1765() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1750() -> Integer { +fn default_1766() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1751() -> Integer { +fn default_1767() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1752() -> String { +fn default_1768() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1753() -> bool { +fn default_1769() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1754() -> Integer { +fn default_1770() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1755() -> String { +fn default_1771() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1756() -> String { +fn default_1772() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1757() -> String { +fn default_1773() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1758() -> Option { +fn default_1774() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1759() -> String { +fn default_1775() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1760() -> Option { +fn default_1776() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1761() -> String { +fn default_1777() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1762() -> String { +fn default_1778() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1763() -> String { +fn default_1779() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1764() -> Integer { +fn default_1780() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1765() -> String { +fn default_1781() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1766() -> Vec { +fn default_1782() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1767() -> bool { +fn default_1783() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1768() -> String { +fn default_1784() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1769() -> String { +fn default_1785() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1770() -> String { +fn default_1786() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1771() -> bool { +fn default_1787() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1772() -> std::collections::HashMap { +fn default_1788() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1773() -> String { +fn default_1789() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1774() -> String { +fn default_1790() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1775() -> Integer { +fn default_1791() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1776() -> Integer { +fn default_1792() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1777() -> Vec { +fn default_1793() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1778() -> Integer { +fn default_1794() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1779() -> Integer { +fn default_1795() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1780() -> Vec { +fn default_1796() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1781() -> String { +fn default_1797() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1782() -> Integer { +fn default_1798() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1783() -> String { +fn default_1799() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1784() -> Vec { +fn default_1800() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1785() -> Integer { +fn default_1801() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1786() -> Option { +fn default_1802() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1787() -> Vec { +fn default_1803() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1788() -> Integer { +fn default_1804() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1789() -> String { +fn default_1805() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1790() -> String { +fn default_1806() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1791() -> Vec { +fn default_1807() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1792() -> String { +fn default_1808() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1793() -> String { +fn default_1809() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1794() -> String { +fn default_1810() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1795() -> String { +fn default_1811() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1796() -> String { +fn default_1812() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1797() -> String { +fn default_1813() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1798() -> Vec { +fn default_1814() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1799() -> String { +fn default_1815() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1800() -> Integer { +fn default_1816() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1801() -> Integer { +fn default_1817() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1802() -> String { +fn default_1818() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1803() -> Integer { +fn default_1819() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1804() -> Integer { +fn default_1820() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1805() -> MemoryProposalReady { +fn default_1821() -> MemoryProposalReady { serde_json::from_str("\"\"").expect("schema default") } -fn default_1806() -> Vec { +fn default_1822() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1807() -> Vec { +fn default_1823() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1808() -> Integer { +fn default_1824() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1809() -> ProposalPolicyMode { +fn default_1825() -> ProposalPolicyMode { serde_json::from_str("\"manual\"").expect("schema default") } -fn default_1810() -> Integer { +fn default_1826() -> Integer { serde_json::from_str("2").expect("schema default") } -fn default_1811() -> Integer { +fn default_1827() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1812() -> Integer { +fn default_1828() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1813() -> ProposalPolicy { +fn default_1829() -> ProposalPolicy { serde_json::from_str( "{\"mode\":\"manual\",\"min_passes\":2,\"max_fails\":0,\"reject_after_fails\":0}", ) .expect("schema default") } -fn default_1814() -> String { +fn default_1830() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1815() -> String { +fn default_1831() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1816() -> String { +fn default_1832() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1817() -> String { +fn default_1833() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1818() -> String { +fn default_1834() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1819() -> String { +fn default_1835() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1820() -> bool { +fn default_1836() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1821() -> String { +fn default_1837() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1822() -> String { +fn default_1838() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1823() -> String { +fn default_1839() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1824() -> String { +fn default_1840() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1825() -> String { +fn default_1841() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1826() -> String { +fn default_1842() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1827() -> String { +fn default_1843() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1828() -> String { +fn default_1844() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1829() -> String { +fn default_1845() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1830() -> Vec { +fn default_1846() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1831() -> f64 { +fn default_1847() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1832() -> String { +fn default_1848() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1833() -> String { +fn default_1849() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1834() -> Vec { +fn default_1850() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1835() -> String { +fn default_1851() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1836() -> String { +fn default_1852() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1837() -> String { +fn default_1853() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1838() -> String { +fn default_1854() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1839() -> bool { +fn default_1855() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1840() -> Integer { +fn default_1856() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1841() -> Integer { +fn default_1857() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1842() -> Integer { +fn default_1858() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1843() -> bool { +fn default_1859() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1844() -> String { +fn default_1860() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1845() -> Integer { +fn default_1861() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_1846() -> MemoryRecallOutputOrder { +fn default_1862() -> MemoryRecallOutputOrder { serde_json::from_str("\"recent\"").expect("schema default") } -fn default_1847() -> Vec { +fn default_1863() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1848() -> Integer { +fn default_1864() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1849() -> Value { +fn default_1865() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1850() -> Value { +fn default_1866() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1851() -> String { +fn default_1867() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1852() -> String { +fn default_1868() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1853() -> Option { +fn default_1869() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1854() -> Option { +fn default_1870() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1855() -> bool { +fn default_1871() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1856() -> String { +fn default_1872() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1857() -> String { +fn default_1873() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1858() -> std::collections::HashMap { +fn default_1874() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1859() -> std::collections::HashMap { +fn default_1875() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1860() -> MemoryRecordRowStatus { +fn default_1876() -> MemoryRecordRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1861() -> Option { +fn default_1877() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1862() -> Option { +fn default_1878() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1863() -> bool { +fn default_1879() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1864() -> String { +fn default_1880() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1865() -> MemoryRecordWriteOutputKeySource { +fn default_1881() -> MemoryRecordWriteOutputKeySource { serde_json::from_str("\"anonymous\"").expect("schema default") } -fn default_1866() -> std::collections::HashMap { +fn default_1882() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1867() -> String { +fn default_1883() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1868() -> Integer { +fn default_1884() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1869() -> bool { +fn default_1885() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1870() -> Option { +fn default_1886() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1871() -> Integer { +fn default_1887() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1872() -> Integer { +fn default_1888() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1873() -> Option { +fn default_1889() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1874() -> String { +fn default_1890() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1875() -> Integer { +fn default_1891() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1876() -> Integer { +fn default_1892() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1877() -> bool { +fn default_1893() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1878() -> Vec { +fn default_1894() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1879() -> Option { +fn default_1895() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1880() -> Option { +fn default_1896() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1881() -> bool { +fn default_1897() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1882() -> bool { +fn default_1898() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1883() -> String { +fn default_1899() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1884() -> f64 { +fn default_1900() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1885() -> String { +fn default_1901() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1886() -> String { +fn default_1902() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1887() -> std::collections::HashMap { +fn default_1903() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1888() -> bool { +fn default_1904() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1889() -> Integer { +fn default_1905() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1890() -> String { +fn default_1906() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1891() -> Vec { +fn default_1907() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1892() -> Vec { +fn default_1908() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1893() -> Integer { +fn default_1909() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1894() -> Integer { +fn default_1910() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1895() -> String { +fn default_1911() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1896() -> String { +fn default_1912() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1897() -> Integer { +fn default_1913() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_1898() -> Integer { +fn default_1914() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1899() -> Integer { +fn default_1915() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1900() -> Vec { +fn default_1916() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1901() -> Integer { +fn default_1917() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1902() -> Integer { +fn default_1918() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1903() -> Integer { +fn default_1919() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1904() -> Integer { +fn default_1920() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1905() -> Vec { +fn default_1921() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1906() -> String { +fn default_1922() -> String { serde_json::from_str("\"whole\"").expect("schema default") } -fn default_1907() -> Integer { +fn default_1923() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1908() -> Vec { +fn default_1924() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1909() -> Vec { +fn default_1925() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1910() -> Integer { +fn default_1926() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1911() -> Vec { +fn default_1927() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1912() -> Integer { +fn default_1928() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1913() -> Vec { +fn default_1929() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1914() -> Vec { +fn default_1930() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1915() -> bool { +fn default_1931() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1916() -> String { +fn default_1932() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1917() -> String { +fn default_1933() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1918() -> std::collections::HashMap { +fn default_1934() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1919() -> String { +fn default_1935() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1920() -> bool { +fn default_1936() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1921() -> Vec { +fn default_1937() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1922() -> Integer { +fn default_1938() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1923() -> Integer { +fn default_1939() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1924() -> String { +fn default_1940() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1925() -> String { +fn default_1941() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1926() -> String { +fn default_1942() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1927() -> bool { +fn default_1943() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1928() -> Integer { +fn default_1944() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1929() -> Option { +fn default_1945() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1930() -> String { +fn default_1946() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1931() -> String { +fn default_1947() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1932() -> String { +fn default_1948() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1933() -> Vec { +fn default_1949() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1934() -> Integer { +fn default_1950() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1935() -> Integer { +fn default_1951() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1936() -> Integer { +fn default_1952() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1937() -> Integer { +fn default_1953() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1938() -> Integer { +fn default_1954() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1939() -> Integer { +fn default_1955() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1940() -> bool { +fn default_1956() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1941() -> Vec> { +fn default_1957() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1942() -> Vec { +fn default_1958() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1943() -> Option { +fn default_1959() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1944() -> String { +fn default_1960() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1945() -> Integer { +fn default_1961() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1946() -> Option { +fn default_1962() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1947() -> Option { +fn default_1963() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1948() -> Option { +fn default_1964() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1949() -> Option { +fn default_1965() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1950() -> Vec { +fn default_1966() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1951() -> Integer { +fn default_1967() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1952() -> String { +fn default_1968() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1953() -> String { +fn default_1969() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1954() -> Option { +fn default_1970() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1955() -> String { +fn default_1971() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1956() -> String { +fn default_1972() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1957() -> String { +fn default_1973() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1958() -> String { +fn default_1974() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1959() -> Option { +fn default_1975() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1960() -> String { +fn default_1976() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1961() -> String { +fn default_1977() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1962() -> Integer { +fn default_1978() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1963() -> String { +fn default_1979() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1964() -> String { +fn default_1980() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1965() -> String { +fn default_1981() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1966() -> String { +fn default_1982() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1967() -> String { +fn default_1983() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1968() -> Integer { +fn default_1984() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1969() -> String { +fn default_1985() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1970() -> Vec { +fn default_1986() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1971() -> String { +fn default_1987() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1972() -> Integer { +fn default_1988() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1973() -> String { +fn default_1989() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1974() -> Integer { +fn default_1990() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1975() -> String { +fn default_1991() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1976() -> String { +fn default_1992() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1977() -> Integer { +fn default_1993() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1978() -> String { +fn default_1994() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1979() -> bool { +fn default_1995() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1980() -> String { +fn default_1996() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1981() -> String { +fn default_1997() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1982() -> String { +fn default_1998() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1983() -> String { +fn default_1999() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1984() -> Option { +fn default_2000() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1985() -> String { +fn default_2001() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1986() -> Integer { +fn default_2002() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1987() -> String { +fn default_2003() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1988() -> String { +fn default_2004() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1989() -> String { +fn default_2005() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1990() -> bool { +fn default_2006() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1991() -> Vec { +fn default_2007() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1992() -> std::collections::HashMap { +fn default_2008() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1993() -> String { +fn default_2009() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1994() -> Vec { +fn default_2010() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1995() -> std::collections::HashMap { +fn default_2011() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1996() -> Integer { +fn default_2012() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1997() -> Option { +fn default_2013() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1998() -> String { +fn default_2014() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1999() -> bool { +fn default_2015() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2000() -> Vec { +fn default_2016() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2001() -> Vec { +fn default_2017() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2002() -> std::collections::HashMap { +fn default_2018() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2003() -> Option { +fn default_2019() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2004() -> Vec { +fn default_2020() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2005() -> Integer { +fn default_2021() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2006() -> Integer { +fn default_2022() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2007() -> Vec { +fn default_2023() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2008() -> Option { +fn default_2024() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2009() -> Vec { +fn default_2025() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2010() -> Option { +fn default_2026() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2011() -> Option { +fn default_2027() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2012() -> Vec { +fn default_2028() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2013() -> bool { +fn default_2029() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2014() -> Vec { +fn default_2030() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2015() -> bool { +fn default_2031() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2016() -> Integer { +fn default_2032() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2017() -> Integer { +fn default_2033() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2018() -> Integer { +fn default_2034() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2019() -> Integer { +fn default_2035() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2020() -> Integer { +fn default_2036() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2021() -> Integer { +fn default_2037() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2022() -> Integer { +fn default_2038() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2023() -> Integer { +fn default_2039() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2024() -> Integer { +fn default_2040() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2025() -> f64 { +fn default_2041() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2026() -> Integer { +fn default_2042() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2027() -> Integer { +fn default_2043() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2028() -> Integer { +fn default_2044() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2029() -> Integer { +fn default_2045() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2030() -> Option { +fn default_2046() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2031() -> Option { +fn default_2047() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2032() -> Vec { +fn default_2048() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2033() -> String { +fn default_2049() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2034() -> String { +fn default_2050() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2035() -> Integer { +fn default_2051() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2036() -> Vec> { +fn default_2052() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2037() -> Vec { +fn default_2053() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2038() -> String { +fn default_2054() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2039() -> bool { +fn default_2055() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2040() -> String { +fn default_2056() -> String { serde_json::from_str("\"approval\"").expect("schema default") } -fn default_2041() -> String { +fn default_2057() -> String { serde_json::from_str("\"public\"").expect("schema default") } -fn default_2042() -> BrowseEntryMyStatus { +fn default_2058() -> BrowseEntryMyStatus { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2043() -> String { +fn default_2059() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2044() -> String { +fn default_2060() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2045() -> String { +fn default_2061() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2046() -> Integer { +fn default_2062() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2047() -> String { +fn default_2063() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2048() -> Option { +fn default_2064() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2049() -> Option { +fn default_2065() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2050() -> Vec { +fn default_2066() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2051() -> Option { +fn default_2067() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2052() -> Option { +fn default_2068() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2053() -> Option { +fn default_2069() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2054() -> Option> { +fn default_2070() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2055() -> Option { +fn default_2071() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2056() -> Option { +fn default_2072() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2057() -> Option { +fn default_2073() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2058() -> Option { +fn default_2074() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2059() -> Option { +fn default_2075() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2060() -> Option { +fn default_2076() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2061() -> Option { +fn default_2077() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2062() -> Option { +fn default_2078() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2063() -> Option { +fn default_2079() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2064() -> Option { +fn default_2080() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2065() -> Option { +fn default_2081() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2066() -> Option { +fn default_2082() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2067() -> Option { +fn default_2083() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2068() -> Option { +fn default_2084() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2069() -> Option { +fn default_2085() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2070() -> Option> { +fn default_2086() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2071() -> Option { +fn default_2087() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2072() -> Option { +fn default_2088() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2073() -> Option { +fn default_2089() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2074() -> Option { +fn default_2090() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2075() -> Option { +fn default_2091() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2076() -> Option>> { +fn default_2092() -> Option>> { serde_json::from_str("null").expect("schema default") } -fn default_2077() -> Option { +fn default_2093() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2078() -> Option { +fn default_2094() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2079() -> Option { +fn default_2095() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2080() -> Option { +fn default_2096() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2081() -> Option { +fn default_2097() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2082() -> Integer { +fn default_2098() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2083() -> String { +fn default_2099() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2084() -> String { +fn default_2100() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2085() -> String { +fn default_2101() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2086() -> String { +fn default_2102() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2087() -> Option { +fn default_2103() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2088() -> bool { +fn default_2104() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2089() -> Integer { +fn default_2105() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2090() -> String { +fn default_2106() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2091() -> String { +fn default_2107() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2092() -> String { +fn default_2108() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2093() -> String { +fn default_2109() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2094() -> Option { +fn default_2110() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2095() -> Option { +fn default_2111() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2096() -> String { +fn default_2112() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2097() -> Vec { +fn default_2113() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2098() -> String { +fn default_2114() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2099() -> String { +fn default_2115() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2100() -> Option { +fn default_2116() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2101() -> Vec { +fn default_2117() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2102() -> Option { +fn default_2118() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2103() -> String { +fn default_2119() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2104() -> bool { +fn default_2120() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2105() -> f64 { +fn default_2121() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2106() -> f64 { +fn default_2122() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2107() -> String { +fn default_2123() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2108() -> Option { +fn default_2124() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2109() -> Integer { +fn default_2125() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2110() -> Integer { +fn default_2126() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2111() -> NamespaceEntryVisibility { +fn default_2127() -> NamespaceEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2112() -> String { +fn default_2128() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2113() -> Option { +fn default_2129() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2114() -> Option { +fn default_2130() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2115() -> Vec { +fn default_2131() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2116() -> MineEntryVisibility { +fn default_2132() -> MineEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2117() -> String { +fn default_2133() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2118() -> String { +fn default_2134() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2119() -> String { +fn default_2135() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2120() -> Option { +fn default_2136() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2121() -> bool { +fn default_2137() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2122() -> bool { +fn default_2138() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2123() -> String { +fn default_2139() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2124() -> NamespaceRegisterOutputVisibility { +fn default_2140() -> NamespaceRegisterOutputVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2125() -> bool { +fn default_2141() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2126() -> Integer { +fn default_2142() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2127() -> Integer { +fn default_2143() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2128() -> bool { +fn default_2144() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2129() -> Vec> { +fn default_2145() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2130() -> Option { +fn default_2146() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2131() -> Option { +fn default_2147() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2132() -> Vec { +fn default_2148() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2133() -> Integer { +fn default_2149() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2134() -> String { +fn default_2150() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2135() -> String { +fn default_2151() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2136() -> String { +fn default_2152() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2137() -> String { +fn default_2153() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2138() -> String { +fn default_2154() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2139() -> Option { +fn default_2155() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2140() -> String { +fn default_2156() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2141() -> String { +fn default_2157() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2142() -> String { +fn default_2158() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2143() -> Vec { +fn default_2159() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2144() -> Option { +fn default_2160() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2145() -> Option { +fn default_2161() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2146() -> Option { +fn default_2162() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2147() -> Option { +fn default_2163() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2148() -> String { +fn default_2164() -> String { serde_json::from_str("\"{}\"").expect("schema default") } -fn default_2149() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { +fn default_2165() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2150() -> Option { +fn default_2166() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2151() -> Vec { +fn default_2167() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2152() -> String { +fn default_2168() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2153() -> Integer { +fn default_2169() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2154() -> Integer { +fn default_2170() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2155() -> Option { +fn default_2171() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2156() -> String { +fn default_2172() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2157() -> String { +fn default_2173() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2158() -> String { +fn default_2174() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2159() -> String { +fn default_2175() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2160() -> Option { +fn default_2176() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2161() -> f64 { +fn default_2177() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2162() -> Option { +fn default_2178() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2163() -> Option { +fn default_2179() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2164() -> Integer { +fn default_2180() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2165() -> Option { +fn default_2181() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2166() -> Option { +fn default_2182() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2167() -> String { +fn default_2183() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2168() -> Option { +fn default_2184() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2169() -> String { +fn default_2185() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2170() -> String { +fn default_2186() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2171() -> String { +fn default_2187() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2172() -> Option { +fn default_2188() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2173() -> String { +fn default_2189() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2174() -> Option { +fn default_2190() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2175() -> String { +fn default_2191() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2176() -> String { +fn default_2192() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2177() -> Vec { +fn default_2193() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2178() -> Vec { +fn default_2194() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2179() -> Option { +fn default_2195() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2180() -> Integer { +fn default_2196() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2181() -> String { +fn default_2197() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2182() -> Vec { +fn default_2198() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2183() -> Vec { +fn default_2199() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2184() -> String { +fn default_2200() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2185() -> Option { +fn default_2201() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2186() -> Vec { +fn default_2202() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2187() -> Integer { +fn default_2203() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2188() -> Vec { +fn default_2204() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2189() -> Option { +fn default_2205() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2190() -> Vec { +fn default_2206() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2191() -> Vec { +fn default_2207() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2192() -> Option { +fn default_2208() -> Option { serde_json::from_str("0").expect("schema default") } -fn default_2193() -> TuneProposalEffect { +fn default_2209() -> TuneProposalEffect { serde_json::from_str("\"future\"").expect("schema default") } -fn default_2194() -> TuneApplyVia { - serde_json::from_str("\"op\"").expect("schema default") -} -fn default_2195() -> bool { - serde_json::from_str("true").expect("schema default") -} -fn default_2196() -> Vec { +fn default_2210() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2197() -> Option { +fn default_2211() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2198() -> Option { +fn default_2212() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2199() -> String { +fn default_2213() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2200() -> Vec { +fn default_2214() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2201() -> Vec { +fn default_2215() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2202() -> Option { +fn default_2216() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2203() -> Option { +fn default_2217() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2204() -> Option { +fn default_2218() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2205() -> String { +fn default_2219() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2206() -> Option { +fn default_2220() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2207() -> Option { +fn default_2221() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2208() -> Option { +fn default_2222() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2209() -> Vec { +fn default_2223() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2210() -> bool { +fn default_2224() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2211() -> Option { +fn default_2225() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2212() -> Option { +fn default_2226() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2213() -> Vec { +fn default_2227() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2214() -> String { +fn default_2228() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2215() -> String { +fn default_2229() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2216() -> Vec> { +fn default_2230() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2217() -> std::collections::HashMap { +fn default_2231() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2218() -> Vec { +fn default_2232() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2219() -> Integer { +fn default_2233() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2220() -> Integer { +fn default_2234() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2221() -> String { +fn default_2235() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2222() -> String { +fn default_2236() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2223() -> String { +fn default_2237() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2224() -> Vec { +fn default_2238() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2225() -> Vec { +fn default_2239() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2226() -> String { +fn default_2240() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2227() -> String { +fn default_2241() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2228() -> bool { +fn default_2242() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2229() -> Integer { +fn default_2243() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2230() -> String { +fn default_2244() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2231() -> Option { +fn default_2245() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2232() -> Vec { +fn default_2246() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2233() -> String { +fn default_2247() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2234() -> String { +fn default_2248() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2235() -> String { +fn default_2249() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2236() -> Vec { +fn default_2250() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2237() -> String { +fn default_2251() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2238() -> String { +fn default_2252() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2239() -> std::collections::HashMap { +fn default_2253() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2240() -> String { +fn default_2254() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2241() -> Option { +fn default_2255() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2242() -> Option { +fn default_2256() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2243() -> bool { +fn default_2257() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2244() -> String { +fn default_2258() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2245() -> String { +fn default_2259() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2246() -> Vec { +fn default_2260() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2247() -> Integer { +fn default_2261() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2248() -> String { +fn default_2262() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2249() -> String { +fn default_2263() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2250() -> Option { +fn default_2264() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2251() -> bool { +fn default_2265() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2252() -> String { +fn default_2266() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2253() -> bool { +fn default_2267() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2254() -> String { +fn default_2268() -> String { serde_json::from_str("\"inherit\"").expect("schema default") } -fn default_2255() -> Option { +fn default_2269() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2256() -> Option { +fn default_2270() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2257() -> bool { +fn default_2271() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2258() -> Vec { +fn default_2272() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2259() -> Integer { +fn default_2273() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2260() -> ProcedureEvolveOutputGate { +fn default_2274() -> ProcedureEvolveOutputGate { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2261() -> String { +fn default_2275() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2262() -> f64 { +fn default_2276() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2263() -> std::collections::HashMap { +fn default_2277() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2264() -> std::collections::HashMap { +fn default_2278() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2265() -> std::collections::HashMap { +fn default_2279() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2266() -> std::collections::HashMap { +fn default_2280() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2267() -> String { +fn default_2281() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2268() -> Vec { +fn default_2282() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2269() -> Vec { +fn default_2283() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2270() -> Vec { +fn default_2284() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2271() -> std::collections::HashMap { +fn default_2285() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2272() -> Integer { +fn default_2286() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2273() -> bool { +fn default_2287() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2274() -> std::collections::HashMap { +fn default_2288() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2275() -> Vec { +fn default_2289() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2276() -> std::collections::HashMap { +fn default_2290() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2277() -> String { +fn default_2291() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2278() -> ProcedureLocateOutputStatus { +fn default_2292() -> ProcedureLocateOutputStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2279() -> Option> { +fn default_2293() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2280() -> Vec>> { +fn default_2294() -> Vec>> { serde_json::from_str("[]").expect("schema default") } -fn default_2281() -> Vec { +fn default_2295() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2282() -> Vec { +fn default_2296() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2283() -> std::collections::HashMap { +fn default_2297() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2284() -> bool { +fn default_2298() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2285() -> Vec { +fn default_2299() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2286() -> Vec> { +fn default_2300() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2287() -> String { +fn default_2301() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2288() -> std::collections::HashMap { +fn default_2302() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2289() -> std::collections::HashMap { +fn default_2303() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2290() -> Vec { +fn default_2304() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2291() -> std::collections::HashMap { +fn default_2305() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2292() -> Option> { +fn default_2306() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2293() -> bool { +fn default_2307() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2294() -> std::collections::HashMap { +fn default_2308() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2295() -> ProcedureMatchStatus { +fn default_2309() -> ProcedureMatchStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2296() -> Option> { +fn default_2310() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2297() -> Vec { +fn default_2311() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2298() -> Integer { +fn default_2312() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2299() -> Vec> { +fn default_2313() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2300() -> f64 { +fn default_2314() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2301() -> f64 { +fn default_2315() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2302() -> f64 { +fn default_2316() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2303() -> Option { +fn default_2317() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2304() -> std::collections::HashMap { +fn default_2318() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2305() -> std::collections::HashMap> { +fn default_2319() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2306() -> String { +fn default_2320() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2307() -> Integer { +fn default_2321() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2308() -> String { +fn default_2322() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2309() -> f64 { +fn default_2323() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2310() -> Vec { +fn default_2324() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2311() -> ProcedureReviseOutputOutcome { +fn default_2325() -> ProcedureReviseOutputOutcome { serde_json::from_str("\"opened\"").expect("schema default") } -fn default_2312() -> Vec { +fn default_2326() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2313() -> Vec { +fn default_2327() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2314() -> String { +fn default_2328() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2315() -> String { +fn default_2329() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2316() -> String { +fn default_2330() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2317() -> String { +fn default_2331() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2318() -> Option { +fn default_2332() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2319() -> Integer { +fn default_2333() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2320() -> Vec { +fn default_2334() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2321() -> std::collections::HashMap { +fn default_2335() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2322() -> Option { +fn default_2336() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2323() -> String { +fn default_2337() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2324() -> Integer { +fn default_2338() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2325() -> String { +fn default_2339() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2326() -> String { +fn default_2340() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2327() -> std::collections::HashMap { +fn default_2341() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2328() -> String { +fn default_2342() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2329() -> String { +fn default_2343() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2330() -> Option { +fn default_2344() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2331() -> RunBeginOutputStatus { +fn default_2345() -> RunBeginOutputStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2332() -> String { +fn default_2346() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2333() -> Integer { +fn default_2347() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2334() -> Integer { +fn default_2348() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2335() -> Integer { +fn default_2349() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2336() -> Integer { +fn default_2350() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2337() -> Vec { +fn default_2351() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2338() -> Integer { +fn default_2352() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2339() -> Integer { +fn default_2353() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2340() -> Integer { +fn default_2354() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2341() -> String { +fn default_2355() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2342() -> String { +fn default_2356() -> String { serde_json::from_str("\"keep\"").expect("schema default") } -fn default_2343() -> Integer { +fn default_2357() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2344() -> Integer { +fn default_2358() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2345() -> Integer { +fn default_2359() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2346() -> Option { +fn default_2360() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2347() -> Integer { +fn default_2361() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2348() -> Vec { +fn default_2362() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2349() -> Vec { +fn default_2363() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2350() -> Integer { +fn default_2364() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2351() -> Integer { +fn default_2365() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2352() -> Integer { +fn default_2366() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2353() -> f64 { +fn default_2367() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2354() -> Integer { +fn default_2368() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2355() -> Vec { +fn default_2369() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2356() -> Integer { +fn default_2370() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2357() -> Vec { +fn default_2371() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2358() -> Integer { +fn default_2372() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2359() -> Integer { +fn default_2373() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2360() -> Integer { +fn default_2374() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2361() -> Vec { +fn default_2375() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2362() -> Option { +fn default_2376() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2363() -> Vec { +fn default_2377() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2364() -> Vec { +fn default_2378() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2365() -> String { +fn default_2379() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2366() -> Vec { +fn default_2380() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2367() -> bool { +fn default_2381() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2368() -> String { +fn default_2382() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2369() -> Integer { +fn default_2383() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2370() -> Integer { +fn default_2384() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2371() -> Integer { +fn default_2385() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2372() -> Integer { +fn default_2386() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2373() -> bool { +fn default_2387() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2374() -> bool { +fn default_2388() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2375() -> Option> { +fn default_2389() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2376() -> LiveSearchResultsLive { +fn default_2390() -> LiveSearchResultsLive { serde_json::from_str("true").expect("schema default") } -fn default_2377() -> String { +fn default_2391() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2378() -> LiveSearchHitLive { +fn default_2392() -> LiveSearchHitLive { serde_json::from_str("true").expect("schema default") } -fn default_2379() -> Vec { +fn default_2393() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2380() -> Option { +fn default_2394() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2381() -> std::collections::HashMap { +fn default_2395() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2382() -> std::collections::HashMap { +fn default_2396() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2383() -> std::collections::HashMap { +fn default_2397() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2384() -> std::collections::HashMap { +fn default_2398() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2385() -> Option> { +fn default_2399() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2386() -> Vec { +fn default_2400() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2387() -> Integer { +fn default_2401() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2388() -> String { +fn default_2402() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2389() -> Integer { +fn default_2403() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2390() -> String { +fn default_2404() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2391() -> String { +fn default_2405() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2392() -> String { +fn default_2406() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2393() -> String { +fn default_2407() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2394() -> String { +fn default_2408() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2395() -> String { +fn default_2409() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2396() -> String { +fn default_2410() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2397() -> String { +fn default_2411() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2398() -> Vec { +fn default_2412() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2399() -> String { +fn default_2413() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2400() -> String { +fn default_2414() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2401() -> Vec { +fn default_2415() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2402() -> String { +fn default_2416() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2403() -> String { +fn default_2417() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2404() -> Vec { +fn default_2418() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2405() -> Vec { +fn default_2419() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2406() -> Vec { +fn default_2420() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2407() -> String { +fn default_2421() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2408() -> String { +fn default_2422() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2409() -> Vec { +fn default_2423() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2410() -> Vec { +fn default_2424() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2411() -> Vec { +fn default_2425() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2412() -> String { +fn default_2426() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2413() -> String { +fn default_2427() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2414() -> Option { +fn default_2428() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2415() -> String { +fn default_2429() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2416() -> String { +fn default_2430() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2417() -> String { +fn default_2431() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2418() -> String { +fn default_2432() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2419() -> String { +fn default_2433() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2420() -> String { +fn default_2434() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2421() -> Vec { +fn default_2435() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2422() -> Option { +fn default_2436() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2423() -> Integer { +fn default_2437() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2424() -> Integer { +fn default_2438() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2425() -> Integer { +fn default_2439() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2426() -> Integer { +fn default_2440() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2427() -> Integer { +fn default_2441() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2428() -> bool { +fn default_2442() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2429() -> String { +fn default_2443() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2430() -> String { +fn default_2444() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2431() -> String { +fn default_2445() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2432() -> String { +fn default_2446() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2433() -> String { +fn default_2447() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2434() -> String { +fn default_2448() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2435() -> String { +fn default_2449() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2436() -> Option { +fn default_2450() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2437() -> Integer { +fn default_2451() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2438() -> Integer { +fn default_2452() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2439() -> Vec { +fn default_2453() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2440() -> String { +fn default_2454() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2441() -> String { +fn default_2455() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2442() -> String { +fn default_2456() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2443() -> String { +fn default_2457() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2444() -> Integer { +fn default_2458() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2445() -> Integer { +fn default_2459() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2446() -> Integer { +fn default_2460() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2447() -> Integer { +fn default_2461() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2448() -> Integer { +fn default_2462() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2449() -> f64 { +fn default_2463() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2450() -> Integer { +fn default_2464() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2451() -> Integer { +fn default_2465() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2452() -> Integer { +fn default_2466() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2453() -> String { +fn default_2467() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2454() -> SessionBriefStats { +fn default_2468() -> 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_2455() -> String { +fn default_2469() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2456() -> String { +fn default_2470() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2457() -> Option { +fn default_2471() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2458() -> Option { +fn default_2472() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2459() -> Option { +fn default_2473() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2460() -> Integer { +fn default_2474() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2461() -> std::collections::HashMap { +fn default_2475() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2462() -> String { +fn default_2476() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2463() -> String { +fn default_2477() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2464() -> Option { +fn default_2478() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2465() -> String { +fn default_2479() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2466() -> Integer { +fn default_2480() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2467() -> Integer { +fn default_2481() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2468() -> Option { +fn default_2482() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2469() -> std::collections::HashMap { +fn default_2483() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2470() -> String { +fn default_2484() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2471() -> Integer { +fn default_2485() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2472() -> String { +fn default_2486() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2473() -> Option { +fn default_2487() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2474() -> String { +fn default_2488() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2475() -> Option { +fn default_2489() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2476() -> String { +fn default_2490() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2477() -> String { +fn default_2491() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2478() -> String { +fn default_2492() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2479() -> String { +fn default_2493() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2480() -> Integer { +fn default_2494() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2481() -> Integer { +fn default_2495() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2482() -> String { +fn default_2496() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2483() -> std::collections::HashMap { +fn default_2497() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2484() -> String { +fn default_2498() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2485() -> String { +fn default_2499() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2486() -> bool { +fn default_2500() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2487() -> String { +fn default_2501() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2488() -> std::collections::HashMap { +fn default_2502() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2489() -> Vec> { +fn default_2503() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2490() -> Vec { +fn default_2504() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2491() -> Vec { +fn default_2505() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2492() -> bool { +fn default_2506() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2493() -> String { +fn default_2507() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_2494() -> String { +fn default_2508() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2495() -> Vec { +fn default_2509() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2496() -> bool { +fn default_2510() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2497() -> String { +fn default_2511() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2498() -> bool { +fn default_2512() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2499() -> Vec { +fn default_2513() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2500() -> std::collections::HashMap { +fn default_2514() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2501() -> Vec> { +fn default_2515() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2502() -> bool { +fn default_2516() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2503() -> bool { +fn default_2517() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2504() -> Vec> { +fn default_2518() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2505() -> std::collections::HashMap { +fn default_2519() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2506() -> String { +fn default_2520() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2507() -> Vec> { +fn default_2521() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2508() -> bool { +fn default_2522() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2509() -> String { +fn default_2523() -> String { serde_json::from_str("\"calibrated\"").expect("schema default") } -fn default_2510() -> std::collections::HashMap { +fn default_2524() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2511() -> std::collections::HashMap { +fn default_2525() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2512() -> String { +fn default_2526() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2513() -> std::collections::HashMap { +fn default_2527() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2514() -> std::collections::HashMap { +fn default_2528() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2515() -> std::collections::HashMap { +fn default_2529() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2516() -> String { +fn default_2530() -> String { serde_json::from_str("\"ok\"").expect("schema default") } -fn default_2517() -> String { +fn default_2531() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2518() -> String { +fn default_2532() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2519() -> bool { +fn default_2533() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2520() -> Integer { +fn default_2534() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2521() -> String { +fn default_2535() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2522() -> String { +fn default_2536() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2523() -> Vec { +fn default_2537() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2524() -> bool { +fn default_2538() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2525() -> Vec { +fn default_2539() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2526() -> std::collections::HashMap> { +fn default_2540() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2527() -> Vec> { +fn default_2541() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2528() -> Vec> { +fn default_2542() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2529() -> String { +fn default_2543() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2530() -> Vec> { +fn default_2544() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2531() -> std::collections::HashMap { +fn default_2545() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2532() -> String { +fn default_2546() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2533() -> Vec> { +fn default_2547() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2534() -> bool { +fn default_2548() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2535() -> Integer { +fn default_2549() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2536() -> Vec> { +fn default_2550() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2537() -> String { +fn default_2551() -> String { serde_json::from_str("\"no_flaky_signal\"").expect("schema default") } -fn default_2538() -> bool { +fn default_2552() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2539() -> Option> { +fn default_2553() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2540() -> Vec { +fn default_2554() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2541() -> bool { +fn default_2555() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2542() -> std::collections::HashMap { +fn default_2556() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2543() -> String { +fn default_2557() -> String { serde_json::from_str("\"not_computed\"").expect("schema default") } -fn default_2544() -> Vec> { +fn default_2558() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2545() -> String { +fn default_2559() -> String { serde_json::from_str("\"candidate\"").expect("schema default") } -fn default_2546() -> std::collections::HashMap { +fn default_2560() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2547() -> String { +fn default_2561() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2548() -> bool { +fn default_2562() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2549() -> Integer { +fn default_2563() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2550() -> std::collections::HashMap { +fn default_2564() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2551() -> bool { +fn default_2565() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2552() -> Vec> { +fn default_2566() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2553() -> std::collections::HashMap { +fn default_2567() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2554() -> std::collections::HashMap { +fn default_2568() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2555() -> String { +fn default_2569() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_2556() -> bool { +fn default_2570() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2557() -> Vec { +fn default_2571() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2558() -> Vec> { +fn default_2572() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2559() -> std::collections::HashMap { +fn default_2573() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2560() -> Vec { +fn default_2574() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2561() -> String { +fn default_2575() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2562() -> bool { +fn default_2576() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2563() -> bool { +fn default_2577() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2564() -> std::collections::HashMap { +fn default_2578() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2565() -> String { +fn default_2579() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2566() -> bool { +fn default_2580() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2567() -> std::collections::HashMap { +fn default_2581() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2568() -> std::collections::HashMap { +fn default_2582() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2569() -> Vec> { +fn default_2583() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2570() -> Vec { +fn default_2584() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2571() -> std::collections::HashMap { +fn default_2585() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2572() -> Vec> { +fn default_2586() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2573() -> bool { +fn default_2587() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2574() -> bool { +fn default_2588() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2575() -> Vec { +fn default_2589() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2576() -> std::collections::HashMap { +fn default_2590() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2577() -> String { +fn default_2591() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2578() -> std::collections::HashMap { +fn default_2592() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2579() -> bool { +fn default_2593() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2580() -> bool { +fn default_2594() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2581() -> String { +fn default_2595() -> String { serde_json::from_str("\"no_signal\"").expect("schema default") } -fn default_2582() -> Vec { +fn default_2596() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2583() -> f64 { +fn default_2597() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2584() -> Integer { +fn default_2598() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2585() -> String { +fn default_2599() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2586() -> std::collections::HashMap { +fn default_2600() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2587() -> std::collections::HashMap { +fn default_2601() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2588() -> std::collections::HashMap { +fn default_2602() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2589() -> std::collections::HashMap { +fn default_2603() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2590() -> String { +fn default_2604() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2591() -> std::collections::HashMap { +fn default_2605() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2592() -> bool { +fn default_2606() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2593() -> std::collections::HashMap { +fn default_2607() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2594() -> std::collections::HashMap { +fn default_2608() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2595() -> std::collections::HashMap { +fn default_2609() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2596() -> std::collections::HashMap { +fn default_2610() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2597() -> String { +fn default_2611() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2598() -> Vec> { +fn default_2612() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2599() -> Integer { +fn default_2613() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2600() -> String { +fn default_2614() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2601() -> bool { +fn default_2615() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2602() -> String { +fn default_2616() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2603() -> Vec { +fn default_2617() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2604() -> bool { +fn default_2618() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2605() -> Vec { +fn default_2619() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2606() -> f64 { +fn default_2620() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2607() -> String { +fn default_2621() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2608() -> Integer { +fn default_2622() -> Integer { serde_json::from_str("4096").expect("schema default") } -fn default_2609() -> Integer { +fn default_2623() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2610() -> Option { +fn default_2624() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2611() -> f64 { +fn default_2625() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2612() -> Option { +fn default_2626() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2613() -> Vec { +fn default_2627() -> 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 7968b055150..e84fa2e2af5 100644 --- a/sdk/rust/tests/registry_contracts.rs +++ b/sdk/rust/tests/registry_contracts.rs @@ -13281,3 +13281,28 @@ fn ui_vitals() { "ui.vitals:route" ); } +#[test] +fn curator_status() { + let value: clickhouse_loom::CuratorStatusInput = + serde_json::from_str("{\"org\":\"sample\",\"namespace\":\"sample\"}").unwrap(); + let encoded = serde_json::to_value(value).unwrap(); + assert!(encoded.is_object()); + let value: clickhouse_loom::CuratorStatusOutput = serde_json::from_str("{}").unwrap(); + let encoded = serde_json::to_value(value).unwrap(); + assert!(encoded.is_object()); + assert_eq!( + encoded["proposals"], + serde_json::from_str::("null").unwrap(), + "curator.status:proposals" + ); + assert_eq!( + encoded["flagged"], + serde_json::from_str::("null").unwrap(), + "curator.status:flagged" + ); + assert_eq!( + encoded["stale"], + serde_json::from_str::("null").unwrap(), + "curator.status:stale" + ); +} diff --git a/sdk/typescript/src/generated/ops.ts b/sdk/typescript/src/generated/ops.ts index e16c2501105..97420b57d11 100644 --- a/sdk/typescript/src/generated/ops.ts +++ b/sdk/typescript/src/generated/ops.ts @@ -2894,6 +2894,52 @@ export interface CostSummaryOutput { cache_saved_usd?: number; } +export interface CuratorStatusInput { + org: string; + namespace: string; + sections?: Array<"proposals" | "flagged" | "stale">; + limit?: number; +} + +export interface CuratorProposals { + pending?: number; + oldest_days?: number; + filed_7d?: number; + decided_7d?: number; + over_scan_cap?: boolean; + unavailable?: string; +} + +export interface CuratorFindings { + items?: CuratorFinding[]; + unavailable?: string; +} + +export interface CuratorFinding { + memory_id: string; + memory_key: string; + code: string; + title: string; + count?: number; + ref?: string; + apply?: TuneApply | null; +} + +export interface TuneApply { + op: string; + via?: "op" | "admin_route" | "environment"; + args: Record; + args_complete?: boolean; + required_role: string; + guard: string; +} + +export interface CuratorStatusOutput { + proposals?: CuratorProposals | null; + flagged?: CuratorFindings | null; + stale?: CuratorFindings | null; +} + export interface DecisionChainInput { org: string; namespace: string; @@ -8962,15 +9008,6 @@ export interface TuneEvidence { documents?: string[]; } -export interface TuneApply { - op: string; - via?: "op" | "admin_route" | "environment"; - args: Record; - args_complete?: boolean; - required_role: string; - guard: string; -} - export interface ChunkingPreview { before: ChunkStats; after: ChunkStats; @@ -11175,6 +11212,7 @@ export type OpName = | "cost.budget_status" | "cost.record_turns" | "cost.summary" + | "curator.status" | "decision.chain" | "decision.outcome" | "decision.precedents" @@ -11566,6 +11604,7 @@ export interface OpMap { "cost.budget_status": { input: CostBudgetStatusInput; output: CostBudgetStatusOutput }; "cost.record_turns": { input: CostRecordTurnsInput; output: CostRecordTurnsOutput }; "cost.summary": { input: CostSummaryInput; output: CostSummaryOutput }; + "curator.status": { input: CuratorStatusInput; output: CuratorStatusOutput }; "decision.chain": { input: DecisionChainInput; output: DecisionChainOutput }; "decision.outcome": { input: DecisionOutcomeInput; output: DecisionOutcomeOutput }; "decision.precedents": { input: DecisionPrecedentsInput; output: DecisionPrecedentsOutput }; @@ -11957,6 +11996,7 @@ export const OPS: readonly OpSpec[] = [ { name: "cost.budget_status", group: "cost", method: "budgetStatus", idempotent: true, role: "viewer", maturity: "stable", budgetP99Ms: 120, audit: false, readOnly: true }, { name: "cost.record_turns", group: "cost", method: "recordTurns", idempotent: true, role: "writer", maturity: "experimental", budgetP99Ms: 150, audit: false, readOnly: false }, { name: "cost.summary", group: "cost", method: "summary", idempotent: true, role: "viewer", maturity: "stable", budgetP99Ms: 200, audit: false, readOnly: true }, + { name: "curator.status", group: "curator", method: "status", idempotent: true, role: "admin", maturity: "experimental", budgetP99Ms: 1500, audit: false, readOnly: false }, { name: "decision.chain", group: "decision", method: "chain", idempotent: true, role: "viewer", maturity: "experimental", budgetP99Ms: 500, audit: false, readOnly: true }, { name: "decision.outcome", group: "decision", method: "outcome", idempotent: false, role: "writer", maturity: "experimental", budgetP99Ms: 1500, audit: true, readOnly: false }, { name: "decision.precedents", group: "decision", method: "precedents", idempotent: true, role: "viewer", maturity: "experimental", budgetP99Ms: 800, audit: false, readOnly: true }, @@ -12253,4 +12293,4 @@ export const OP_BY_NAME: Readonly> = Object.fromEntries( OPS.map((o) => [o.name, o]), ) as Readonly>; -export const GENERATED_OP_COUNT = 388; +export const GENERATED_OP_COUNT = 389; diff --git a/server/cli/login.py b/server/cli/login.py index a10c4bdbf00..81efaf0c1da 100644 --- a/server/cli/login.py +++ b/server/cli/login.py @@ -1,6 +1,6 @@ -"""`loom login | logout | whoami | call | token | connect | pointers`: use a Loom server from -the terminal with the session `loom login` stores. They are the Python SDK's commands -(`loom.cli`), so the CLI and `loom.login()` share one implementation and one +"""`loom login | logout | whoami | call | token | connect | pointers | curator`: use a Loom +server from the terminal with the session `loom login` stores. They are the Python SDK's +commands (`loom.cli`), so the CLI and `loom.login()` share one implementation and one credentials file; `main` hands their arguments straight to the SDK's parser. Registered here by name only, so `loom --help` lists them.""" @@ -17,6 +17,7 @@ "token": "Make, list and revoke your own tokens for CI and agents (`loom token --help`).", "connect": "Print the dashboard link to connect your own Google, Notion or Linear account.", "pointers": "Print the code pointer block for the task prompt on standard input.", + "curator": "Report what in a namespace needs a person (`loom curator --help`).", } diff --git a/server/memory/api/models_curator.py b/server/memory/api/models_curator.py new file mode 100644 index 00000000000..62a59761c05 --- /dev/null +++ b/server/memory/api/models_curator.py @@ -0,0 +1,90 @@ +"""Wire models for `curator.status`: what in a namespace needs a person. The proposal +queue's counts, the accepted facts that were reported harmful or failed graded runs, and +the facts whose linked code or source document changed, each with the write that fixes +it. Nothing is stored and no model is called.""" + +from __future__ import annotations + +from pydantic import BaseModel, Field + +from server.identity.api.models_namespace_tune import TuneApply +from server.memory.domain.curator import Section + + +class CuratorStatusInput(BaseModel): + """Report a namespace's proposal queue and the facts that need a second look. + Read-only, for a namespace admin: nothing is changed, and each finding names the + write that fixes it for a person to run.""" + + org: str + namespace: str + # The sections to compute: `proposals`, `flagged`, `stale`; empty (the default) + # computes all of them. + sections: list[Section] = Field(default_factory=list) + # Findings returned per section, 1 to 50 (default 20). + limit: int = Field(default=20, ge=1, le=50) + + +class CuratorProposals(BaseModel): + """The proposal queue in counts; no proposal's value is read.""" + + # Proposals waiting for a decision. + pending: int = 0 + # Days the oldest pending proposal has waited; 0 when none is pending. + oldest_days: int = 0 + # Facts first written as a proposal in the last 7 days, whatever was decided since. + filed_7d: int = 0 + # Proposals accepted or rejected in the last 7 days. + decided_7d: int = 0 + # True when `pending` is over the most proposals memory.proposals reads for one + # listing (`memory_proposals_scan_cap`): the listing shows the newest of them. + over_scan_cap: bool = False + # Why the section could not be computed, or "". + unavailable: str = "" + + +class CuratorFinding(BaseModel): + """One fact that needs a second look, and the write that fixes it.""" + + # The fact's stable id, the one its write is addressed by. + memory_id: str + # The fact's key. + memory_key: str + # Why the fact is listed: `harm_reported`, `graded_fails`, `stale_link` or + # `source_changed`. + code: str + # The code in words, the same on every surface. + title: str + # How many reports or failed runs the fact has; 0 for a code that counts nothing. + count: int = 0 + # What the finding points at: for `stale_link` the linked file and definition. + ref: str = "" + # The write that fixes the fact, with its id and the content hash memory.get serves for + # it filled in and the new value left to the person. Null for a fact whose hash a + # report does not cite: a high-sensitivity fact, or a value over + # `namespace_report_hash_max_bytes`. + apply: TuneApply | None = None + + +class CuratorFindings(BaseModel): + """One section's findings, or why it has none to show.""" + + items: list[CuratorFinding] = Field(default_factory=list) + # `too_large` when a read behind the section reached its scan cap: `items` is empty + # because a cut list would read as complete. "" when the section was computed. + unavailable: str = "" + + +class CuratorStatusOutput(BaseModel): + """Each section asked for; a section not asked for is null.""" + + # The proposal queue in counts: how many wait, how long the oldest has waited, and how + # many were filed and decided in the last 7 days. + proposals: CuratorProposals | None = None + # Accepted facts with a harm report, most reports first, then those that runs graded + # `fail` relied on, most failed runs first. A conflicted fact is left to the + # conflicts list. + flagged: CuratorFindings | None = None + # Served facts with a stale code link, newest check first, then those tagged + # `source-changed`, newest write first. + stale: CuratorFindings | None = None diff --git a/server/memory/api/ops_curator.py b/server/memory/api/ops_curator.py new file mode 100644 index 00000000000..f92a118b887 --- /dev/null +++ b/server/memory/api/ops_curator.py @@ -0,0 +1,21 @@ +"""The `curator.status` operation declaration; its wire models are in `models_curator`.""" + +from __future__ import annotations + +from server.memory.api.models_curator import CuratorStatusInput, CuratorStatusOutput +from server.memory.app.curator_status import handle_curator_status +from server.operations.base import Operation, Role + +# Admin: the report lists facts of every writer in the namespace and what its reviewers +# decided. +curator_status = Operation( + name="curator.status", + maturity="experimental", + input_model=CuratorStatusInput, + output_model=CuratorStatusOutput, + handler=handle_curator_status, + idempotent=True, + required_role=Role.ADMIN, +) + +OPERATIONS: list[Operation] = [curator_status] diff --git a/server/memory/app/curator_status.py b/server/memory/app/curator_status.py new file mode 100644 index 00000000000..357d610ffd1 --- /dev/null +++ b/server/memory/app/curator_status.py @@ -0,0 +1,195 @@ +"""`curator.status`: what in a namespace needs a person, computed on every call from +rows Loom already holds. The proposal queue in counts, the accepted facts with a harm +report or a failed graded run, and the served facts whose linked code or source document +changed; each finding names `memory.update_by_id`, guarded by the fact's current content +hash, for a person to run under their own name. The sections are read side by side, then +one read cites the live revision of every fact they list. No model is called and nothing +is written. The transport admits a namespace admin with a whole-namespace read scope +before any read here (docs/architecture/curator.md).""" + +from __future__ import annotations + +import asyncio +from collections.abc import Mapping +from dataclasses import dataclass +from typing import Any + +from server.identity.api.models_namespace_tune import TuneApply +from server.identity.app.request_scope import request_scope +from server.memory.api.models_curator import ( + CuratorFinding, + CuratorFindings, + CuratorProposals, + CuratorStatusInput, + CuratorStatusOutput, +) +from server.memory.app.code_link_reads import stale_links +from server.memory.app.finding_evidence import revisions_for +from server.memory.domain import curator as codes +from server.memory.domain.decision_schema import SOURCE_CHANGED_TAG +from server.memory.domain.temporal_sql import SERVED_STATUSES +from server.memory.store import curator as store +from server.settings import settings + +# A flagged fact is an accepted one: served, and not in a conflict, which the conflicts +# list already holds. +_ACCEPTED = ("active",) + + +@dataclass(frozen=True, slots=True) +class _Listed: + """A fact a section lists and why, before its live revision is read.""" + + memory_id: str + code: str + count: int = 0 + ref: str = "" + + +@dataclass(frozen=True, slots=True) +class _Section: + """The facts a section lists, cut to its limit, or why it lists none.""" + + listed: tuple[_Listed, ...] = () + unavailable: str = "" + + +async def handle_curator_status(input: CuratorStatusInput) -> CuratorStatusOutput: + wanted = set(input.sections) or set(codes.SECTIONS) + org, ns = input.org, input.namespace + proposals, flagged, stale = await asyncio.gather( + _proposals(org, ns) if "proposals" in wanted else _not_asked(), + _flagged(org, ns, input.limit) if "flagged" in wanted else _not_asked(), + _stale(org, ns, input.limit) if "stale" in wanted else _not_asked(), + ) + # One read for the report: the live revision of every fact its lists show. + shown = {f.memory_id for s in (flagged, stale) if s is not None for f in s.listed} + revisions = await revisions_for( + org, ns, [{"memory_id": i} for i in sorted(shown)], scope=request_scope() + ) + return CuratorStatusOutput( + proposals=proposals, + flagged=_findings(org, flagged, revisions), + stale=_findings(org, stale, revisions), + ) + + +async def _not_asked() -> None: + return None + + +async def _proposals(org: str, ns: str) -> CuratorProposals: + queue, filed, decided = await asyncio.gather( + store.proposal_queue(org, ns), + store.proposals_filed(org, ns), + store.proposals_decided(org, ns), + ) + return CuratorProposals( + pending=queue["pending"], + oldest_days=queue["oldest_days"], + filed_7d=filed, + decided_7d=decided, + over_scan_cap=queue["pending"] > settings.memory_proposals_scan_cap, + ) + + +async def _flagged(org: str, ns: str, limit: int) -> _Section: + """Harm reports first, most first, then the facts failed graded runs relied on, most + runs first. Each read asks for one row over the scan cap: getting it means more + facts are reported than the section reads, so its list would be cut.""" + cap = store.SCAN_CAP + harmed, failed = await asyncio.gather( + store.harmed(org, ns, limit=cap + 1), + store.failed_keys(org, ns, limit=cap + 1), + ) + if max(len(harmed), len(failed)) > cap: + return _Section(unavailable=codes.TOO_LARGE) + fails = {str(f["memory_key"]): int(f["fails"]) for f in failed} + by_id, by_key = await asyncio.gather( + store.rows_by_id(org, ns, [str(h["id"]) for h in harmed], statuses=_ACCEPTED), + store.rows_by_key(org, ns, list(fails), statuses=_ACCEPTED, limit=cap + 1), + ) + # A run names a key, and every identity that holds the key holds a fact under it. + if len(by_key) > cap: + return _Section(unavailable=codes.TOO_LARGE) + accepted = {str(r["id"]) for r in by_id} + listed = [ + _Listed(str(h["id"]), codes.HARM_REPORTED, count=int(h["harm"])) + for h in harmed + if str(h["id"]) in accepted + ] + by_fails = sorted( + by_key, key=lambda r: (-fails[str(r["memory_key"])], str(r["memory_key"]), str(r["id"])) + ) + listed += [ + _Listed(str(r["id"]), codes.GRADED_FAILS, count=fails[str(r["memory_key"])]) + for r in by_fails + ] + return _Section(tuple(listed[:limit])) + + +async def _stale(org: str, ns: str, limit: int) -> _Section: + """Stale code links first, newest check first, then the facts tagged as having a + changed source, newest write first. `stale_links` lists only served facts, and only + links into repositories the caller may read.""" + links, tagged = await asyncio.gather( + stale_links(org, ns, limit=limit), + store.rows_tagged(org, ns, SOURCE_CHANGED_TAG, statuses=SERVED_STATUSES, limit=limit), + ) + listed = [ + _Listed( + str(a["memory_id"]), + codes.STALE_LINK, + ref=codes.link_ref(str(a["path"]), str(a["qualified_name"])), + ) + for a in links + ] + listed += [_Listed(str(r["id"]), codes.SOURCE_CHANGED) for r in tagged] + return _Section(tuple(listed[:limit])) + + +def _findings( + org: str, section: _Section | None, revisions: Mapping[Any, dict[str, Any]] +) -> CuratorFindings | None: + """A section's findings, each with its key and the write that fixes it; None for a + section that was not asked for. The write is guarded by the hash `memory.get` serves + for the fact, which is what `memory.update_by_id` compares; the stored column can + differ from it. A fact with no live revision is left out: it changed after the + section read it.""" + if section is None: + return None + items = [] + for f in section.listed: + revision = revisions.get(f.memory_id) + if revision is None: + continue + # '' for a fact whose hash a report does not cite (high sensitivity, a value over + # the report's hash bound): an empty `if_match_sha256` guards nothing, so such a + # fact is listed without a write. + sha = str(revision["content_sha256"]) + items.append( + CuratorFinding( + memory_id=f.memory_id, + memory_key=str(revision["memory_key"]), + code=f.code, + title=codes.FINDING_TITLES[f.code], + count=f.count, + ref=f.ref, + apply=_apply(org, f.memory_id, sha) if sha else None, + ) + ) + return CuratorFindings(items=items, unavailable=section.unavailable) + + +def _apply(org: str, memory_id: str, sha: str) -> TuneApply: + """Revise the fact by id, refused when it changed since the report; the person + supplies the new value, so the arguments are not complete.""" + from server.operations.registry import OPERATIONS_BY_NAME + + return TuneApply( + op=codes.APPLY_OP, + args={"org": org, "memory_id": memory_id, "if_match_sha256": sha}, + args_complete=False, + required_role=OPERATIONS_BY_NAME[codes.APPLY_OP].required_role.name.lower(), + guard=codes.APPLY_GUARD, + ) diff --git a/server/memory/domain/curator.py b/server/memory/domain/curator.py new file mode 100644 index 00000000000..f6af69413f5 --- /dev/null +++ b/server/memory/domain/curator.py @@ -0,0 +1,41 @@ +"""The codes of `curator.status` and the words the server sends for each: the sections a +caller may ask for, the code of each finding with its `title`, and the code a section +answers when it cannot be computed. A surface prints the title it is sent, so every +surface says the same words.""" + +from __future__ import annotations + +from typing import Literal, get_args + +Section = Literal["proposals", "flagged", "stale"] +SECTIONS: tuple[Section, ...] = get_args(Section) + +# flagged: an accepted fact reported harmful, or relied on by runs graded fail +HARM_REPORTED = "harm_reported" +GRADED_FAILS = "graded_fails" +# stale: a fact whose linked code changed, or whose source document changed +STALE_LINK = "stale_link" +SOURCE_CHANGED = "source_changed" + +FINDING_TITLES: dict[str, str] = { + HARM_REPORTED: "Reported harmful", + GRADED_FAILS: "Relied on by runs graded fail", + STALE_LINK: "Linked code changed", + SOURCE_CHANGED: "Source document changed", +} + +# A section whose read reached its scan cap: its list would be cut, so it lists nothing. +TOO_LARGE = "too_large" + +# The one write that fixes a flagged or stale fact, and what keeps it from overwriting a +# change made since the report. +APPLY_OP = "memory.update_by_id" +APPLY_GUARD = ( + "if_match_sha256: the write is refused with PRECONDITION_FAILED when the fact " + "changed after this report." +) + + +def link_ref(path: str, qualified_name: str) -> str: + """Where a stale link points: the file, then the definition when the link names one.""" + return f"{path}::{qualified_name}" if qualified_name else path diff --git a/server/memory/store/curator.py b/server/memory/store/curator.py new file mode 100644 index 00000000000..b6afc6a14af --- /dev/null +++ b/server/memory/store/curator.py @@ -0,0 +1,194 @@ +"""The reads behind `curator.status`: a namespace's proposal queue in counts, its facts +with a harm report, the keys its failed graded runs relied on, and its facts under a tag. +Every statement names one (org, namespace) and reads no value column or content hash: +the handler reads the hash a finding cites with `finding_evidence.revisions_for`.""" + +from __future__ import annotations + +from collections.abc import Sequence +from typing import Any + +from server.core.repo_base import _CHClient, _default_client, query_all_sliced + +# not a setting: bounds one read; a section whose read reaches it answers `too_large` +SCAN_CAP = 2000 + +_PENDING_SQL = """ + SELECT count() AS pending, + if(count() = 0, 0, dateDiff('day', min(created_at), now())) AS oldest_days + FROM loom.memory FINAL + WHERE org = {org:String} AND namespace = {ns:String} + AND tombstoned_at IS NULL AND status = 'proposed' +""" + +# A fact keeps its `created_at` through every version, so a version written as a proposal +# with a `created_at` inside the window is a proposal filed inside it, whatever its row +# says now. The history holds every version; the distinct count folds them. +_FILED_SQL = """ + SELECT uniqExact(memory_id) AS filed + FROM loom.memory_versions + WHERE org = {org:String} AND namespace = {ns:String} + AND status = 'proposed' + AND created_at >= now() - INTERVAL 7 DAY +""" + +# The audit log's sort key is (org, namespace, event_type, ts): the two decision events +# of the window are two key ranges. +_DECIDED_SQL = """ + SELECT count() AS decided + FROM loom.audit_log + WHERE org = {org:String} AND namespace = {ns:String} + AND event_type IN ('memory.proposal_accept', 'memory.proposal_reject') + AND ts >= now64(3) - INTERVAL 7 DAY +""" + +# `AS id`, not `AS memory_id`: a same-name alias shadows the column the GROUP BY reads. +_HARMED_SQL = """ + SELECT toString(memory_id) AS id, sum(harm_count) AS harm + FROM loom.memory_usage_totals + WHERE org = {org:String} AND namespace = {ns:String} + GROUP BY memory_id + HAVING harm > 0 + ORDER BY harm DESC, memory_id + LIMIT {lim:UInt32} +""" + +# A run counts once for each key it relied on, as `memory.proposals` counts graded runs. +_FAILED_KEYS_SQL = """ + SELECT key AS memory_key, count() AS fails + FROM loom.agent_runs FINAL + ARRAY JOIN arrayDistinct(memories_used) AS key + WHERE org = {org:String} AND namespace = {ns:String} + AND grade = 'fail' AND key != '' + GROUP BY key + ORDER BY fails DESC, key + LIMIT {lim:UInt32} +""" + +# `AS id`: an alias named memory_id would shadow the column the WHERE reads. +_ROW = "toString(memory_id) AS id, memory_key" +_LIVE = ( + "FROM loom.memory FINAL " + "WHERE org = {org:String} AND namespace = {ns:String} " + "AND tombstoned_at IS NULL AND status IN {statuses:Array(String)}" +) + + +async def proposal_queue( + org: str, namespace: str, *, ch: _CHClient | None = None +) -> dict[str, int]: + """The namespace's pending proposals: how many (`pending`) and the days the oldest + has waited (`oldest_days`, 0 when none).""" + row = await (ch or _default_client()).query_one( + _PENDING_SQL, params={"org": org, "ns": namespace} + ) + return {k: int((row or {}).get(k) or 0) for k in ("pending", "oldest_days")} + + +async def proposals_filed(org: str, namespace: str, *, ch: _CHClient | None = None) -> int: + """Facts first written as a proposal in the last 7 days, decided since or not.""" + row = await (ch or _default_client()).query_one( + _FILED_SQL, params={"org": org, "ns": namespace} + ) + return int((row or {}).get("filed") or 0) + + +async def proposals_decided(org: str, namespace: str, *, ch: _CHClient | None = None) -> int: + """Proposal decisions (accept or reject) the audit log holds for the last 7 days.""" + row = await (ch or _default_client()).query_one( + _DECIDED_SQL, params={"org": org, "ns": namespace} + ) + return int((row or {}).get("decided") or 0) + + +async def harmed( + org: str, namespace: str, *, limit: int, ch: _CHClient | None = None +) -> list[dict[str, Any]]: + """Up to `limit` of the namespace's memory ids with a harm report left after + retractions, most reports first: each with its `id` and `harm` count.""" + return await (ch or _default_client()).query_all( + _HARMED_SQL, params={"org": org, "ns": namespace, "lim": int(limit)} + ) + + +async def failed_keys( + org: str, namespace: str, *, limit: int, ch: _CHClient | None = None +) -> list[dict[str, Any]]: + """Up to `limit` of the keys the namespace's runs graded `fail` relied on, the key of + the most runs first: each with its `memory_key` and `fails`, the number of those runs.""" + return await (ch or _default_client()).query_all( + _FAILED_KEYS_SQL, params={"org": org, "ns": namespace, "lim": int(limit)} + ) + + +async def rows_by_id( + org: str, + namespace: str, + ids: Sequence[str], + *, + statuses: Sequence[str], + ch: _CHClient | None = None, +) -> list[dict[str, Any]]: + """The namespace's live rows among `ids` whose status is one of `statuses`: each + with its `id` and `memory_key`.""" + if not ids: + return [] + return await query_all_sliced( + ch or _default_client(), + f"SELECT {_ROW} {_LIVE} AND memory_id IN {{ids:Array(UUID)}}", + {"org": org, "ns": namespace, "statuses": list(statuses), "ids": sorted(set(ids))}, + "ids", + ) + + +async def rows_by_key( + org: str, + namespace: str, + keys: Sequence[str], + *, + statuses: Sequence[str], + limit: int, + ch: _CHClient | None = None, +) -> list[dict[str, Any]]: + """The namespace's live rows under `keys` whose status is one of `statuses`, every + identity holding one: each with its `id` and `memory_key`. A key is held once by each + agent, user and session that wrote it, so the read stops at `limit` rows for each + slice of `keys` it sends.""" + if not keys: + return [] + return await query_all_sliced( + ch or _default_client(), + f"SELECT {_ROW} {_LIVE} AND memory_key IN {{keys:Array(String)}} LIMIT {{lim:UInt32}}", + { + "org": org, + "ns": namespace, + "statuses": list(statuses), + "keys": sorted(set(keys)), + "lim": int(limit), + }, + "keys", + ) + + +async def rows_tagged( + org: str, + namespace: str, + tag: str, + *, + statuses: Sequence[str], + limit: int, + ch: _CHClient | None = None, +) -> list[dict[str, Any]]: + """Up to `limit` of the namespace's live rows carrying `tag` whose status is one of + `statuses`, the last written first: each with its `id` and `memory_key`.""" + return await (ch or _default_client()).query_all( + f"SELECT {_ROW} {_LIVE} AND has(tags, {{tag:String}}) " + "ORDER BY version DESC, memory_key LIMIT {lim:UInt32}", + params={ + "org": org, + "ns": namespace, + "statuses": list(statuses), + "tag": tag, + "lim": int(limit), + }, + ) diff --git a/server/operations/dashboard.py b/server/operations/dashboard.py index de27b5f6f71..8150fe42902 100644 --- a/server/operations/dashboard.py +++ b/server/operations/dashboard.py @@ -238,6 +238,10 @@ def _named_once(*groups: dict[str, str]) -> dict[str, str]: "each page searches its own plane: Memories memory.search, the Library " "knowledge.search, Conversations conversation.search" ), + "curator.status": ( + "read from the command line with `loom curator status`; the Review queue lists " + "proposals with memory.proposals and conflicts with conflicts.list" + ), "assistant.ask": ( "the assistant for agents and scripts, one whole answer; the Assistant page's " "chat will stream from /v1/assistant/chat/completions instead" diff --git a/server/operations/reach_manifest.py b/server/operations/reach_manifest.py index 65ae6f52948..2f0d97ae3b5 100644 --- a/server/operations/reach_manifest.py +++ b/server/operations/reach_manifest.py @@ -308,6 +308,7 @@ "sdk_method", "dashboard", ), + "curator.status": ("sdk_method",), "decision.chain": ("sdk_method",), "decision.outcome": ("sdk_method",), "decision.precedents": ("sdk_method",), diff --git a/server/operations/registry.py b/server/operations/registry.py index 069322a3753..6c20c93e642 100644 --- a/server/operations/registry.py +++ b/server/operations/registry.py @@ -43,6 +43,7 @@ from server.memory.api import ops_conflicts as conflicts from server.memory.api import ops_context as context from server.memory.api import ops_context_offload as context_offload +from server.memory.api import ops_curator as curator from server.memory.api import ops_decision as decision from server.memory.api import ops_demonstrate as demonstrate from server.memory.api import ops_extraction_policy as extraction_policy @@ -114,6 +115,7 @@ tracker, task, ui, + curator, ) diff --git a/server/settings/catalog.py b/server/settings/catalog.py index b0ce89b3d9e..4e79802220c 100644 --- a/server/settings/catalog.py +++ b/server/settings/catalog.py @@ -4423,8 +4423,8 @@ class NamespaceSettings(BaseModel): # Most live rows the namespace audit's value scan reads (it is O(total value # bytes)); above it that check is skipped and says so. namespace_audit_index_row_scan_cap: Annotated[int, LIVE] = Field(default=20000, ge=1) - # Largest value (bytes) namespace.audit, namespace.validate and memory.inspect read - # to cite a row's content hash; a larger row is cited with none. 0 = cite no hash. + # Largest value (bytes) namespace.audit, namespace.validate, memory.inspect and + # curator.status read to cite a row's content hash; a larger row gets none. 0 = no hash. namespace_report_hash_max_bytes: Annotated[int, LIVE] = Field(default=65536, ge=0, le=2**32 - 1) # Most live documents namespace.tune re-chunks in process to judge the chunk size and # stride, picked by a hash of their source_uri; the report states the cap. @@ -6555,6 +6555,11 @@ class TrackerSettings(BaseModel): "cost.budget_status": 120, "cost.record_turns": 150, "cost.summary": 200, + # Up to eleven reads. Side by side: the three proposal counts, a GROUP BY over the + # namespace's usage totals and one over its failed runs with the rows they name, the + # stale links and a tag read over the namespace's rows. Then the revisions and hashed + # values of the facts the lists show. + "curator.status": 1500, "decision.chain": 500, "decision.outcome": 1500, "decision.precedents": 800, diff --git a/tests/analyzer/cases/planes.py b/tests/analyzer/cases/planes.py index a5f020b0674..32444bb56d0 100644 --- a/tests/analyzer/cases/planes.py +++ b/tests/analyzer/cases/planes.py @@ -1108,6 +1108,21 @@ async def _tune_reads(ch: RecordingCH, c: dict[str, Any]) -> None: await store.tagged_in_other_categories(ORG, NS, "billing", scope=scope, ch=ch) +async def _curator_reads(ch: RecordingCH, c: dict[str, Any]) -> None: + """Every read `curator.status` makes of the namespace's rows besides the stale code + links, which the code link case renders.""" + from server.memory.store import curator as store + + await store.proposal_queue(ORG, NS, ch=ch) + await store.proposals_filed(ORG, NS, ch=ch) + await store.proposals_decided(ORG, NS, ch=ch) + await store.harmed(ORG, NS, limit=20, ch=ch) + await store.failed_keys(ORG, NS, limit=20, ch=ch) + await store.rows_by_id(ORG, NS, [_UUID], statuses=("active",), ch=ch) + await store.rows_by_key(ORG, NS, ["k1"], statuses=("active",), limit=20, ch=ch) + await store.rows_tagged(ORG, NS, "source-changed", statuses=("active",), limit=20, ch=ch) + + # The handlers whose org-wide reads `resolve_org_scope` scopes: an org admin's # `*` claim renders the whole-org branch, the corpus's listed claim the member one. _ORG_ROLLUPS = frozenset({"cost", "learnings", "audit", "agents"}) @@ -1208,6 +1223,7 @@ def cases() -> list[Case]: out.append( Case("namespace_in_use", "server.identity.store.namespace_census", _namespace_in_use, {}) ) + out.append(Case("curator_status", "server.memory.store.curator", _curator_reads, {})) out.append( Case( "namespace_tune", diff --git a/tests/analyzer/shapes.txt b/tests/analyzer/shapes.txt index af3ecd20985..6695d86bbde 100644 --- a/tests/analyzer/shapes.txt +++ b/tests/analyzer/shapes.txt @@ -74,6 +74,7 @@ 06b297a2e8a7 SELECT src_path, test_path FROM loom.code_test_map FINAL WHERE org = {org:String} AND namespace = {ns:String} AND method = {method:String} AND tombstoned_at IS NULL 06ff2b38df31 SELECT count() AS n FROM loom.agent_runs FINAL WHERE org = {org:String} AND namespace = {ns:String} AND agent = {agent:String} AND grade != ? AND started_at >= now() - INTERVAL {win:UInt32} SECOND 07417011df11 SELECT category_id, count() AS item_count FROM loom.memory_categories FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL GROUP BY category_id +07662fbe2fc5 SELECT toString(memory_id) AS id, memory_key FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL AND status IN {statuses:Array(String)} AND memory_id 0775de50682c SELECT max(updated_at) AS updated_at FROM loom.blacklist_version 079b92892a64 ALTER TABLE loom.documents DELETE WHERE (org = {org:String} AND namespace IN {ns:Array(String)}) AND ({erasure_mutation_tag:String} = {erasure_mutation_tag:String}) SETTINGS mutations_sync = ? 07f0130e01ef SELECT count() AS n FROM ( SELECT evidence_id, tombstoned_at FROM loom.memory_evidence WHERE org = {org:String} AND namespace = {ns:String} AND agent = {agent:String} AND user_id = {uid:String} AND se @@ -144,6 +145,7 @@ 1030febb1e77 ALTER TABLE loom.chunks UPDATE doc_superseded_at = {now:DateTime} WHERE (org = {org:String} AND user_id = {uid:String} AND doc_superseded_at IS NULL) AND ({erasure_mutation_tag:String} = {erasure_muta 1032019497c6 SELECT value, memory_type, confidence, promoted_from, promotion_event, promoted_from_candidate_id, promoted_by, rationale, promoted_at, reversible_until, tombstoned_at, version FROM loom.shared FINAL 1036d9982eb4 SELECT concat(?, c.session_id, ?, toString(c.chunk_index)) AS memory_key, ? AS memory_type, c.content AS content_excerpt, toString(ss.session_date) AS created_at, toString(ss.session_date) AS valid_at +106913ee42fa SELECT count() AS decided FROM loom.audit_log WHERE org = {org:String} AND namespace = {ns:String} AND event_type IN (?, ?) AND ts >= now64(?) - INTERVAL ? DAY 1069a110039a SELECT agent, user_id, session_id, version, summary_text, cosineDistance(summary_embedding, {q:Array(Float32)}) AS distance, -- NB: alias must NOT be `valid_at` — under the analyzer a -- SELECT alias 107be5b763da SELECT count() AS n FROM loom.memory_categories FINAL WHERE org = {org:String} AND namespace IN {ns:Array(String)} AND tombstoned_at IS NULL 109db307d85f SELECT count() AS n FROM loom.chunks WHERE org = {org:String} AND user_id = {uid:String} AND doc_superseded_at IS NULL @@ -464,6 +466,7 @@ 34912ecbbcb8 SELECT count() AS n FROM loom.memory_chunk_sources FINAL WHERE org = {org:String} AND tombstoned_at IS NULL AND (namespace, memory_key) IN {keys:Array(Tuple(String, String))} 349d1b15dfc4 SELECT count() AS n FROM loom.dataset_rows WHERE org = {org:String} AND user_id = {uid:String} 34c0098ab598 SELECT count() AS cnt, sum(numeric_value) AS s, avg(numeric_value) AS a, min(occurred_at) AS first_at, max(occurred_at) AS last_at FROM loom.derived_facts WHERE org = {org:String} AND namespace = {ns: +34cefa45c32d SELECT count() AS pending, if(count() = ?, ?, dateDiff(?, min(created_at), now())) AS oldest_days FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL 34e802c88a30 SELECT count() AS n FROM loom.events WHERE org = {org:String} AND namespace = {ns:String} 34eadcb6f3af SELECT count() AS n FROM loom.delete_version_checks WHERE org = {org:String} AND user_id = {uid:String} 350d156c1ad6 SELECT concat(?, toString(c.session_id), ?, toString(c.chunk_index)) AS memory_key, ? AS memory_type, substring(c.content, ?, ?) AS content_excerpt, c.content AS content_full, c.agent AS agent, c.user @@ -794,6 +797,7 @@ 5862d4ef7b73 ALTER TABLE loom.session_brief_revisions DELETE WHERE (org = {org:String} AND user_id = {uid:String}) AND ({erasure_mutation_tag:String} = {erasure_mutation_tag:String}) SETTINGS mutations_sync = ? 58683ec08636 SELECT chunk_id, path, scope, kind, start_line, end_line, content, symbol_ids, context_description FROM loom.code_chunks FINAL WHERE org = {org:String} AND namespace = {ns:String} AND embedding_model 586a6ce18c21 SELECT concat(?, toString(c.session_id), ?, toString(c.chunk_index)) AS memory_key, ? AS memory_type, substring(c.content, ?, ?) AS content_excerpt, c.content AS content_full, c.agent AS agent, c.user +586f4d2bc595 SELECT toString(memory_id) AS id, sum(harm_count) AS harm FROM loom.memory_usage_totals WHERE org = {org:String} AND namespace = {ns:String} GROUP BY memory_id HAVING harm > ? ORDER BY harm DESC, memo 58cdc04fc385 SELECT agent, user_id, session_id, embedding_model, summary_text, key_facts, derived_from, valid_at, created_at, version, length(key_facts) AS kf, length(derived_from) AS df, coalesce(valid_at, create 58dd61abeb39 WITH m AS ( SELECT org, namespace, agent, user_id, session_id, memory_key, argMax(status, version) AS ms, argMax(memory_id, version) AS mid FROM loom.memory WHERE org = {org:String} AND namespace = {n 58f4b29e4e3a SELECT org, namespace, policy_id, effect, description, actions, condition, enabled, mode, created_by, created_at, updated_at, tombstoned_at FROM loom.namespace_policies FINAL WHERE org = {org:String} @@ -1053,6 +1057,7 @@ 75cf782b44f3 SELECT path, scope, symbol_ids, kind, start_line, end_line, content, embedding_model, shingles, uniqExact(path) OVER () AS admitted_files FROM ( SELECT path, scope, symbol_ids, kind, start_line, end_l 75d1ab9d987d SELECT memory_key, memory_type, content_excerpt, ? - cosineDistance(embedding, {qv:Array(Float32)}) AS similarity, toString(coalesce(temporal_anchor, toDateTime(?))) AS temporal_anchor, temporal_confi 75f3fd72118d ALTER TABLE loom.memory_term_freq DELETE WHERE (org = {org:String} AND namespace IN {ns:Array(String)}) AND ({erasure_mutation_tag:String} = {erasure_mutation_tag:String}) SETTINGS mutations_sync = ? +761398d1f397 SELECT toString(memory_id) AS id, memory_key FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL AND status IN {statuses:Array(String)} AND memory_key 7615ac826d0c SELECT *, hex(SHA256(toJSONString((value_json, value)))) AS body_sha FROM (SELECT org, namespace, agent, user_id, session_id, ? AS actor, concat(?, toString(evidence_id)) AS memory_key, toUInt64(toUni 764e065d440e SELECT count() AS n FROM loom.knowledge_ingest_cancels WHERE org = {org:String} AND user_id = {uid:String} AND ? 765404bd5d8d SELECT toDate(coalesce(temporal_anchor, valid_at)) AS event_date, cosineDistance(embedding, {q:Array(Float32)}) AS distance, substring(content_excerpt, ?, ?) AS excerpt, memory_key, temporal_anchor IS @@ -1260,6 +1265,7 @@ 89d751dde263 INSERT INTO loom.memory_records (record_id, org, namespace, schema_id, schema_name, memory_key, memory_id, identity_agent, user_id, session_id, record_json, status, valid_at, valid_to, version, create 89f40a73fa83 SELECT memory_id, org, namespace, agent, user_id, session_id, memory_key, version, value, toString(value_json) AS object_text FROM loom.memory FINAL WHERE tombstoned_at IS NULL AND sensitivity = ? AND 8a1fca063e7f SELECT org, agent, count() AS calls, countIf(if(consumer = ?, args[?], consumer) NOT IN {untagged:Array(String)}) AS tagged, calls - tagged AS untagged, round(tagged / calls, ?) AS tagged_ratio, anyIf +8a27523f69b3 SELECT key AS memory_key, count() AS fails FROM loom.agent_runs FINAL ARRAY JOIN arrayDistinct(memories_used) AS key WHERE org = {org:String} AND namespace = {ns:String} AND grade = ? AND key != ? GRO 8a44f1b04017 SELECT count() AS n FROM loom.entity_triple_rows WHERE org = {org:String} AND namespace IN {ns:Array(String)} AND memory_id NOT IN (SELECT memory_id FROM loom.memory FINAL WHERE org = {org:String} AND 8a5fb93b3273 SELECT agent, user_id, session_id, embedding_model, summary_text, key_facts, derived_from, valid_at, created_at, version, length(key_facts) AS kf, length(derived_from) AS df, coalesce(valid_at, create 8a6b5d3e9731 SELECT p.pr_number AS pr_number, p.merge_commit_sha AS merge_commit_sha, p.pack_tokens AS pack_tokens, p.created_at AS created_at, ifNull(h.title, ?) AS title, ifNull(h.author, ?) AS author, h.merged_ @@ -1316,6 +1322,7 @@ 9017f74f4c3d SELECT agent, user_id, session_id, memory_key, memory_type, content_excerpt, toString(created_at) AS created_at, toString(valid_at) AS valid_at, version FROM loom.memory_embeddings FINAL WHERE org = { 90332816a040 SELECT toString(memory_id) AS memory_id, version, value, tags, valid_at, pinned, lock_mode, lock_until, sensitivity FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND user 9034f734be88 SELECT toString(memory_id) AS memory_id, memory_key, agent, user_id, session_id, duplicate_of FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL AND +906261f5925d SELECT uniqExact(memory_id) AS filed FROM loom.memory_versions WHERE org = {org:String} AND namespace = {ns:String} AND status = ? AND created_at >= now() - INTERVAL ? DAY 90779505e93e SELECT e.memory_key AS memory_key, e.memory_type AS memory_type, e.content_excerpt AS content_excerpt, ? - cosineDistance(e.embedding, {qv:Array(Float32)}) AS similarity, toString(coalesce(e.temporal_ 9121adbb70ab ALTER TABLE loom.memory_embeddings UPDATE tombstoned_at = {now:DateTime} WHERE (org = {org:String} AND tombstoned_at IS NULL AND user_id = {uid:String}) AND ({erasure_mutation_tag:String} = {erasure_m 914e48c84bc1 SELECT count() AS n FROM loom.connected_accounts WHERE ? @@ -2143,6 +2150,7 @@ e2ac0ebae738 SELECT ? FROM loom.conflict_allowlist FINAL WHERE org = {org:String e2b0bf26bd07 SELECT count() AS n FROM loom.knowledge_ingestions WHERE org = {org:String} AND namespace IN {ns:Array(String)} e2b366085ee8 SELECT toString(candidate_id) AS candidate_id, proposed_value FROM loom.learnings_queue FINAL WHERE org = {org:String} AND namespace = {ns:String} AND source_kind IN {kinds:Array(String)} AND proposed e2b5eb67509b SELECT count() AS n FROM loom.scim_users FINAL WHERE deleted = ? +e2d2f758714d SELECT toString(memory_id) AS id, memory_key FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL AND status IN {statuses:Array(String)} AND has(tags, e2d6458239f7 SELECT number, is_pr, state, state_reason, author, title, opened_at, closed_at, merged_at, updated_at FROM loom.code_gh_items FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_ e30e0afa7cd0 ALTER TABLE loom.memory_record_versions DELETE WHERE (org = {org:String} AND user_id = {uid:String}) AND ({erasure_mutation_tag:String} = {erasure_mutation_tag:String}) SETTINGS mutations_sync = ? e31386435853 SELECT count() AS n FROM loom.memory_usage_events WHERE org = {org:String} AND namespace IN {ns:Array(String)} diff --git a/tests/integration/test_curator_status.py b/tests/integration/test_curator_status.py new file mode 100644 index 00000000000..afd9cbd2189 --- /dev/null +++ b/tests/integration/test_curator_status.py @@ -0,0 +1,391 @@ +"""curator.status against a live Loom + ClickHouse. + +A namespace admin with a whole-namespace token reads the report; a writer, a token +narrowed to one user and an admin of another namespace are refused. The proposal counts +follow the queue as proposals are filed and decided. A fact with a harm report or a +failed graded run is flagged, and the write its finding names runs with the person's +new value and is refused once the fact changed; a high-sensitivity fact is listed with +no write. A fact whose linked code changed, or that carries the source-changed tag, is +stale. A namespace with no rows answers zeros. + +The stale-link case runs the handler in-process against the same ClickHouse, since a +code link needs a registered repository; the rest go over HTTP. +""" + +from __future__ import annotations + +import asyncio +import os +import uuid +from typing import Any + +import httpx +import pytest + +from tests.integration._eventually import eventually +from tests.integration._resources import unique_org + +pytestmark = pytest.mark.asyncio + +NO_PROPOSALS = { + "pending": 0, + "oldest_days": 0, + "filed_7d": 0, + "decided_7d": 0, + "over_scan_cap": False, + "unavailable": "", +} +NO_FINDINGS: dict[str, Any] = {"items": [], "unavailable": ""} + + +class _Namespace: + """One fresh namespace of a fresh org, and the tokens of the people who use it.""" + + def __init__(self, client: httpx.AsyncClient, mint_test_token: Any) -> None: + self.client = client + self.org, self.ns = unique_org("curator"), f"cur-{uuid.uuid4().hex[:6]}" + self.scope = {"org": self.org, "namespace": self.ns} + self._mint = mint_test_token + self.admin = self.token("admin") + self.writer = self.token("writer") + + def token(self, role: str, *, namespace: str = "", **claims: Any) -> str: + return self._mint( + org=self.org, + namespaces=[namespace or self.ns], + roles=[role], + subject=f"curator-{role}", + **claims, + ) + + async def call( + self, op: str, body: dict[str, Any] | None = None, *, token: str = "", expect: int = 200 + ) -> Any: + r = await self.client.post( + f"/v1/{op}", + json={**self.scope, **(body or {})}, + headers={"Authorization": f"Bearer {token or self.admin}"}, + ) + assert r.status_code == expect, f"{op}: {r.status_code} {r.text[:400]}" + return r.json() + + async def remember(self, key: str, value: Any, **more: Any) -> dict[str, Any]: + return await self.call( + "memory.set", {"agent": "bot", "memory_key": key, "value": value, **more} + ) + + async def served_hash(self, key: str) -> str: + """The content hash `memory.get` serves for the fact, which a guarded write compares.""" + got = await self.call("memory.get", {"agent": "bot", "memory_key": key}) + return str(got["content_sha256"]) + + async def report_harm(self, fact: dict[str, Any], weight: int) -> None: + body = {"memory_id": fact["memory_id"], "outcome": "negative", "weight": weight} + assert (await self.call("memory.outcome", body))["recorded"] is True + + async def status(self, *sections: str, **more: Any) -> dict[str, Any]: + return await self.call("curator.status", {"sections": list(sections), **more}) + + +@pytest.fixture +async def space(control_plane_url: str, mint_test_token: Any): + async with httpx.AsyncClient(base_url=control_plane_url, timeout=60) as client: + yield _Namespace(client, mint_test_token) + + +def _listed(section: dict[str, Any]) -> list[tuple[str, str, int]]: + return [(i["memory_key"], i["code"], i["count"]) for i in section["items"]] + + +async def test_status_needs_admin_and_a_whole_namespace_scope(space: _Namespace) -> None: + out = await space.call("curator.status") + assert (out["proposals"], out["flagged"], out["stale"]) == ( + NO_PROPOSALS, + NO_FINDINGS, + NO_FINDINGS, + ) + below = await space.call("curator.status", token=space.writer, expect=403) + assert below["detail"]["code"] == "AUTH_INSUFFICIENT", below + # An admin whose token reads one user's rows: the report counts the whole namespace. + narrowed = space.token("admin", read_scope="own_user", read_user_id="u1") + refused = await space.call("curator.status", token=narrowed, expect=403) + assert refused["detail"]["code"] == "AUTH_INSUFFICIENT", refused + assert "read scope" in refused["detail"]["message"] + elsewhere = space.token("admin", namespace=f"{space.ns}-other") + await space.call("curator.status", token=elsewhere, expect=403) + await space.call("curator.status", {"sections": ["everything"]}, expect=422) + await space.call("curator.status", {"limit": 51}, expect=422) + + +async def test_proposal_counts_follow_the_queue(space: _Namespace) -> None: + await space.call("namespace.register", {"owner_email": "owner@example.com"}) + await space.remember("standing-fact", "Invoices go out on the first of the month.") + for key in ("lesson-a", "lesson-b"): + filed = await space.remember(key, f"A lesson a run drew, filed as {key}.", proposed=True) + assert filed["status"] == "proposed" + out = await space.status("proposals") + assert out["proposals"] == {**NO_PROPOSALS, "pending": 2, "filed_7d": 2} + # Only the section asked for is computed. + assert (out["flagged"], out["stale"]) == (None, None) + + decided = await space.call( + "memory.proposal_decide", + {"decision": "reject", "memory_keys": ["lesson-b"], "reason": "restates lesson-a"}, + ) + assert decided["decided"] == 1, decided + + async def counted() -> bool: + # A rejected proposal was still filed this week; the audit row lands after the write. + want = {**NO_PROPOSALS, "pending": 1, "filed_7d": 2, "decided_7d": 1} + return (await space.status("proposals"))["proposals"] == want + + await eventually(counted, description="one pending, two filed, one decided") + + +async def test_a_harmed_fact_is_flagged_and_its_apply_runs( + space: _Namespace, + control_plane_url: str, + monkeypatch: pytest.MonkeyPatch, + capsys: pytest.CaptureFixture[str], + tmp_path: Any, +) -> None: + harmed = await space.remember("refund-window", "Refunds are accepted for 30 days.") + # An object with a null field: the hash a read serves for it is not the stored column. + plan = await space.remember("plan-terms", {"plan": "base", "discount": None}) + secret = await space.remember("door-code", "The side door opens with 4417.", sensitivity="high") + await space.remember("retry-policy", "Uploads are retried three times.") + await space.remember("office-hours", "Support answers from nine to five.") + + await space.report_harm(secret, 3) + await space.report_harm(harmed, 2) + await space.report_harm(plan, 1) + run = await space.call("run.begin", {"agent": "bot", "goal": "answer a ticket"}) + await space.call( + "run.complete", + {"run_id": run["run_id"], "status": "completed", "memories_used": ["retry-policy"]}, + ) + await space.call("run.grade", {"run_id": run["run_id"], "grade": "fail", "source": "reviewer"}) + + async def flagged() -> dict[str, Any] | None: + section = (await space.status("flagged"))["flagged"] + return section if len(section["items"]) == 4 else None + + section = await eventually(flagged, description="the harmed and the failed facts flagged") + # Harm reports first, most first, then failed graded runs; the fact nothing happened + # to is not listed. + assert _listed(section) == [ + ("door-code", "harm_reported", 3), + ("refund-window", "harm_reported", 2), + ("plan-terms", "harm_reported", 1), + ("retry-policy", "graded_fails", 1), + ] + assert [i["title"] for i in section["items"]] == [ + "Reported harmful", + "Reported harmful", + "Reported harmful", + "Relied on by runs graded fail", + ] + hidden, first, nulled, _ = section["items"] + # A high-sensitivity fact is listed, and no hash of it is cited: it names no write. + assert (hidden["memory_id"], hidden["apply"]) == (secret["memory_id"], None) + assert first["apply"]["args"] == { + "org": space.org, + "memory_id": harmed["memory_id"], + "if_match_sha256": harmed["content_sha256"], + } + for item in section["items"][1:]: + apply = item["apply"] + assert (apply["op"], apply["via"], apply["args_complete"], apply["required_role"]) == ( + "memory.update_by_id", + "op", + False, + "writer", + ) + # The guard is the hash a read of the fact serves now. + served = await space.served_hash(item["memory_key"]) + assert apply["args"]["if_match_sha256"] == served != "" + + # The command line prints the same findings, one line each, and no write argument. + monkeypatch.setenv("LOOM_API_KEY", space.admin) + monkeypatch.delenv("LOOM_PROFILE", raising=False) + monkeypatch.setattr("loom.credentials.CREDENTIALS_FILE", tmp_path / "credentials") + monkeypatch.setattr("loom.transport.TOKEN_FILE", tmp_path / "token") + from loom import cli + + argv = ["curator", "status", "--namespace", space.ns, "--org", space.org] + code = await asyncio.to_thread(cli.main, [*argv, "--server", control_plane_url], "loom") + printed = capsys.readouterr() + assert code == 0, printed.err + assert printed.out.split("\n") == [ + "proposals: 0 pending, oldest 0 days; 0 filed and 0 decided in the last 7 days", + "flagged: 4", + " Reported harmful (3): door-code no guarded write", + " Reported harmful (2): refund-window fix with memory.update_by_id", + " Reported harmful (1): plan-terms fix with memory.update_by_id", + " Relied on by runs graded fail (1): retry-policy fix with memory.update_by_id", + "stale: 0", + f"`loom curator status --namespace {space.ns} --json` prints each write's arguments.", + "", + ] + assert harmed["content_sha256"] not in printed.out + + # A writer runs the named write with their own value added; it is refused once the + # fact is no longer the one the report read. + revised = await space.call( + "memory.update_by_id", + {**first["apply"]["args"], "value": "Refunds are accepted for 14 days."}, + token=space.writer, + ) + assert revised["updated"] is True + late = await space.call( + "memory.update_by_id", + {**first["apply"]["args"], "value": "Refunds are accepted for 60 days."}, + token=space.writer, + expect=409, + ) + assert late["detail"]["code"] == "PRECONDITION_FAILED", late + got = await space.call("memory.get", {"agent": "bot", "memory_key": "refund-window"}) + assert got["value"] == "Refunds are accepted for 14 days." + # The write named for the object with a null field runs too. + priced = await space.call( + "memory.update_by_id", + {**nulled["apply"]["args"], "value": {"plan": "base", "discount": 10}}, + token=space.writer, + ) + assert priced["updated"] is True + # The harm report belongs to the fact, not to one version of it: the revised fact + # stays listed, and its write is guarded by the hash of what it says now. + again = (await space.status("flagged"))["flagged"]["items"][1] + assert (again["memory_key"], again["apply"]["args"]["if_match_sha256"]) == ( + "refund-window", + revised["content_sha256"], + ) + + +async def test_a_fact_with_a_stale_link_or_the_source_changed_tag_is_stale( + ch_client: Any, monkeypatch: pytest.MonkeyPatch +) -> None: + from server.auth.context import set_current_auth + from server.auth.jwt import AuthInfo + from server.code.domain.index.remote import repo_tag + from server.code.domain.index.repos import RepoConfig, set_registry_repos + from server.core.ch import get_client + from server.memory.api.models_crud import MemorySetInput + from server.memory.api.models_curator import CuratorStatusInput + from server.memory.app.code_link_reads import inputs_now + from server.memory.app.curator_status import handle_curator_status + from server.memory.app.write import handle_memory_set + from server.memory.domain.decision_schema import SOURCE_CHANGED_TAG + from server.memory.store import code_links + from server.operations.base import Role + from server.settings import settings + + await get_client().connect() + org, tag = unique_org("curator"), os.urandom(3).hex() + code_ns, ns = f"code-widgets-{tag}", f"agent-notes-{tag}" + remote = "https://github.com/acme/widgets.git" + monkeypatch.setattr(settings, "code_self_service_enabled", True) + set_registry_repos( + [ + RepoConfig( + org=org, + namespace=code_ns, + repo="acme/widgets", + git_dir="", + git_remote=remote, + git_branch="main", + path_prefixes=("",), + github_token="", + source="registry", + ) + ], + frozenset(), + ) + + async def remember(key: str, value: str, tags: list[str]) -> Any: + return await handle_memory_set( + MemorySetInput( + org=org, namespace=ns, agent="claude-code", memory_key=key, value=value, tags=tags + ) + ) + + async def stale(namespaces: tuple[str, ...]) -> Any: + set_current_auth( + AuthInfo( + subject="admin@example.com", + org=org, + namespaces=namespaces, + roles=(Role.ADMIN,), + is_service_account=False, + ) + ) + try: + out = await handle_curator_status( + CuratorStatusInput(org=org, namespace=ns, sections=["stale"]) + ) + finally: + set_current_auth(None) + assert (out.proposals, out.flagged) == (None, None) + return out.stale + + try: + linked = await remember( + "reader-rule", "`Reader.read_rows` takes a limit", [repo_tag(remote)] + ) + tagged = await remember( + "pricing-table", "The base plan costs 20 a month.", [SOURCE_CHANGED_TAG] + ) + await remember("office-hours", "Support answers from nine to five.", []) + # The link the link pass leaves once the definition's body changed. + (head,) = await code_links.memory_heads(org, [linked.memory_id]) + await get_client().insert( + code_links.TABLE, + [ + dict( + code_links.link_row( + org=org, + code_namespace=code_ns, + path="src/reader.py", + qualified_name="Reader.read_rows", + namespace=ns, + memory_id=linked.memory_id, + memory_key="reader-rule", + agent="claude-code", + inputs_hash=inputs_now(org, head), + state="changed", + ) + ) + ], + ) + + section = await stale((ns, code_ns)) + assert section.unavailable == "" + assert [(i.memory_key, i.code, i.title, i.ref) for i in section.items] == [ + ("reader-rule", "stale_link", "Linked code changed", "src/reader.py::Reader.read_rows"), + ("pricing-table", "source_changed", "Source document changed", ""), + ] + by_key = {i.memory_key: i for i in section.items} + for key, written in (("reader-rule", linked), ("pricing-table", tagged)): + apply = by_key[key].apply + assert apply is not None and apply.op == "memory.update_by_id" + assert apply.args == { + "org": org, + "memory_id": written.memory_id, + "if_match_sha256": written.content_sha256, + } + # A link into a repository the caller may not read is not listed. + assert [i.memory_key for i in (await stale((ns,))).items] == ["pricing-table"] + finally: + set_registry_repos([], frozenset()) + + +async def test_an_empty_namespace_answers_zeros(space: _Namespace) -> None: + out = await space.status() + assert (out["proposals"], out["flagged"], out["stale"]) == ( + NO_PROPOSALS, + NO_FINDINGS, + NO_FINDINGS, + ) + # Two sections at the smallest limit: empty lists, and no proposal count. + one = await space.status("flagged", "stale", limit=1) + assert (one["proposals"], one["flagged"], one["stale"]) == (None, NO_FINDINGS, NO_FINDINGS) diff --git a/tests/unit/snapshots/cli_help.json b/tests/unit/snapshots/cli_help.json index f378a3ecbfa..f99316ad183 100644 --- a/tests/unit/snapshots/cli_help.json +++ b/tests/unit/snapshots/cli_help.json @@ -1,8 +1,8 @@ { "loom": [ - "usage: loom [-h] [--version] {code,decisions,knowledge,export-okf,import-okf,okf-lint,up,down,ch-setup,participant,deployment,settings,secrets,signing-key,provider-lock,export-analytics,sql-access,reembed,reextract,deploy-delta,entity-export,audit-namespace,mentor,serve,migrate,reconcile-status,period-digest,demote-activity-narration,recalibrate,import-clickgap,import-recall,import-brain,claim-release,mint-token,revoke-token,sso,bot,doctor,report,drops,namespaces-gc,erasure-re-verify,reconcile,router,cell,tracker-probe,tracker-contract-check,tracker-dupcheck-fit,tracker-embed-reset,tracker-feed,namespaces-adopt,sensitivity-sweep,integrity-repair,rechunk,export-actions,lexical-stats-rebuild,version,install,demo,init,ingest-transcript,memory-search,set-host,login,logout,whoami,call,token,connect,pointers} ...", + "usage: loom [-h] [--version] {code,decisions,knowledge,export-okf,import-okf,okf-lint,up,down,ch-setup,participant,deployment,settings,secrets,signing-key,provider-lock,export-analytics,sql-access,reembed,reextract,deploy-delta,entity-export,audit-namespace,mentor,serve,migrate,reconcile-status,period-digest,demote-activity-narration,recalibrate,import-clickgap,import-recall,import-brain,claim-release,mint-token,revoke-token,sso,bot,doctor,report,drops,namespaces-gc,erasure-re-verify,reconcile,router,cell,tracker-probe,tracker-contract-check,tracker-dupcheck-fit,tracker-embed-reset,tracker-feed,namespaces-adopt,sensitivity-sweep,integrity-repair,rechunk,export-actions,lexical-stats-rebuild,version,install,demo,init,ingest-transcript,memory-search,set-host,login,logout,whoami,call,token,connect,pointers,curator} ...", "Loom — vendor-neutral agent memory plane on ClickHouse.", - "positional arguments: {code,decisions,knowledge,export-okf,import-okf,okf-lint,up,down,ch-setup,participant,deployment,settings,secrets,signing-key,provider-lock,export-analytics,sql-access,reembed,reextract,deploy-delta,entity-export,audit-namespace,mentor,serve,migrate,reconcile-status,period-digest,demote-activity-narration,recalibrate,import-clickgap,import-recall,import-brain,claim-release,mint-token,revoke-token,sso,bot,doctor,report,drops,namespaces-gc,erasure-re-verify,reconcile,router,cell,tracker-probe,tracker-contract-check,tracker-dupcheck-fit,tracker-embed-reset,tracker-feed,namespaces-adopt,sensitivity-sweep,integrity-repair,rechunk,export-actions,lexical-stats-rebuild,version,install,demo,init,ingest-transcript,memory-search,set-host,login,logout,whoami,call,token,connect,pointers} code Code intelligence plane operations. decisions Decision records mined from documents. knowledge Knowledge documents and their sources. export-okf Render a namespace as an OKF v0.2 bundle (Markdown + frontmatter) — the git-reviewable projection of Loom memory. import-okf Write the concepts of an OKF v0.2 bundle into a namespace via memory.set. okf-lint Lint an OKF bundle directory offline — the compile gate a mirror repository's CI runs. Exit 2 critical, 1 warnings, 0 clean. up Boot the local stack (Loom, its document extractor and ClickHouse) and print how to connect: creates .env and the ClickHouse config from their templates, runs docker compose up --build, waits for /v1/health, then prints the dashboard URL and the first memory.set (curl + Python SDK) and `claude mcp add` snippets — minting a writer token first when auth is on. Re-run any time. down Stop the local stack while preserving data; --delete-data performs a confirmed reset. ch-setup Prepare a self-managed ClickHouse or a ClickHouse Cloud service for Loom: create the loom database and the read-only reader user, or print the SQL for an admin. participant The Loom processes a provider change waits for. deployment The configuration every replica checks itself against. settings Every setting's value in force, and overrides of the live ones. secrets Credentials and signing keys stored sealed in ClickHouse. signing-key The token signing keys beside LOOM_JWT_SECRET, kept in ClickHouse. provider-lock The provider configuration lock. export-analytics Write one UTC day of usage and a namespace snapshot to S3 as Parquet, names hashed under LOOM_ANALYTICS_EXPORT_NAME_KEY. Never replaces an object, so a repeated run is safe. sql-access Make, rescope or drop a ClickHouse user that reads a tenant's memory, conversations and request ledger through the sql_v1_* views. reembed Re-embed vectors whose embedding_model != the configured embedder (run after changing LOOM_EMBEDDING_MODEL — Loom does not auto-re-embed). Covers memory, entity, and conversation vectors. Coded vector tables keep their width: change a model of another width in Settings → Models & keys, which rebuilds them. reextract Replay a namespace's raw evidence (memory.set_from_messages turns) through a running server's write path into ANOTHER namespace — the current extractor over the stored transcripts; the source is never written. deploy-delta What a colour swap changed: the deployment's ledger rows (volume, errors, p50/p95, upstream spend per operation) and its ClickHouse statement shapes (runs, bytes, seconds) for a window on each side of the swap, with flags for what moved past a coarse threshold. entity-export Export a namespace's entity graph (co-occurrence edges + triples) to GraphML or JSON-LD for an external graph or RDF tool. Read-only; every edge carries its provenance and a note that a path is declared, not proven. audit-namespace How a namespace is being used (namespace.audit): exact-key reads vs searches, hash keys, double-encoded and oversized values, hand-rolled index rows, leases stored as memories, version churn. Read-only; prints a table (code, severity, kind, count, share, first sample) or --json. Exit 1 on a critical finding. mentor The store's advice to one agent (mentor.brief): what it called, the planes its namespace offers, the hints with their evidence, and how often past hints were followed. Read-only; prints a table or --json. Exit 1 when a warning-level hint fires. serve Boot the control plane (uvicorn). migrate Apply schema migrations against the configured CH. reconcile-status Re-emit memory_embeddings rows whose status diverged from loom.memory (superseded / conflicted / duplicate marks the pool never saw), compared and re-emitted per identity row (org, namespace, agent, user_id, session_id, key). Dry run by default (counts by status, the rows it would write); --apply writes. period-digest Write period digests — one derived semantic memory over K consecutive session digests of each identity in one namespace. Additive and idempotent. Dry run by default (plans only); --apply writes. demote-activity-narration Find a namespace's extracted facts that narrate tool activity ('User read lines 1-1000 of X', 'Claude ran a command on …') with no durable outcome and demote (confidence x0.25) or label them through memory.apply. Dry run by default; keys an agent read by name in the last --days are left alone. Never deletes. recalibrate Re-probe the embedder + run per-NS calibration immediately (otherwise this runs weekly via the recalibration worker). import-clickgap Import a ClickGap (Detector→Validator→Reviewer) SQLite export into Loom (lessons + typed entities + categories). Reembed-only; preserves kind→memory_type, per-row TTL, recall_count (→ ranking via reinforcement_count), suppression polarity, and provenance. Idempotent via deterministic keys + per-run version. import-recall Import an external vector-recall agent-memory SQLite export into Loom. Introspects the DB at runtime (schema not assumed): tables are classified by column heuristics into memories (→ memory.set) or conversation transcripts (→ conversation.append, grouped by conversation id); unmatched tables/rows are skipped, never crash. Idempotent via deterministic keys. import-brain Import a markdown agent 'brain' directory into Loom: MEMORY.md (always- injected HOT layer) → profile.set sections; memory/contexts/*.md (read-on- demand WARM layer) → knowledge.add docs. Completes the migration alongside import-recall (the deep vector layer). Missing files are skipped, never crash. claim-release Release a self-signup claim: revoke its grants, clear the owner, deactivate it. The name stays reserved. mint-token Mint a JWT locally (requires LOOM_JWT_SECRET and verified stores). revoke-token Revoke one token by jti or subject (writes loom.revoked_tokens through the revocation module; needs the configured ClickHouse). sso Carry password accounts over to single sign-on. bot Bots and CI jobs that sign in with a key or their CI's identity. doctor Diagnose pre-boot misconfig (Python version, settings, JWT, CH reachability) and print the problem list /v1/health carries, each with its fix. With --client, also examine this machine as a coding-agent client. report Print the bug form's Environment field: versions and the `loom doctor` checks. drops Print the memory ingest drop ledger (loom.memory_drops) for a namespace, by stage/reason — what the pipeline discarded, truncated or gave up on. namespaces-gc List (default) or erase throwaway namespaces — finished bench runs under the bench prefixes that nobody registered and nobody has written to for --idle-hours — in one list-scoped erasure saga per batch. erasure-re-verify Re-verify failed erasure sagas: print each one's last step-named reason and a fresh residue census (default, read-only); --resume re-runs them from their checkpoint past the recovery worker's attempts budget; --orphan-graph lists namespaces whose entity graph outlived their memories and, with --erase, purges them. reconcile After a restore of ClickHouse or Postgres, run again in the restored store the erasures and redactions the other records past the restore point, and (after a ClickHouse restore) publish again every revision committed after it. Stop every server and worker first. Dry run by default. router The router in front of a deployment's cells. cell Operate a deployment's cells through the router's directory. tracker-probe Read-only first contact with the tracker source: counts and newest timestamps per upstream table per credential, breaker states, the configured tracker namespaces. tracker-contract-check Read-only: does each tracker source's schema meet the record contract (docs/features/tracker/record-contract.md)? Names missing tables / columns, optional tables present, feature columns. Exit 0 when every checked source meets it. tracker-dupcheck-fit Refit tracker.duplicate_check's calibrated confidence for one tracker namespace now: replays the duplicate gold at filing time, fits, stores the fit. tracker-embed-reset Clear the tracker_embed pass cursors of one tracker namespace so the next pass re-walks the window and re-embeds every item whose text recipe changed. Dry run by default (prints the cursors); --apply clears them. tracker-feed Maintain a team's GitHub or Linear tracker record namespaces-adopt Give namespaces that hold live memory and no registry row an owner row: kind=bench under the bench prefixes, else memory; retention_days 0, no TTL. Dry run unless --apply. sensitivity-sweep Label live rows the sensitivity detector would have labelled on write but a path skipped. Dry run by default: counts by level, probe shape and namespace. --apply writes one new version per row, tombstones a high row's embedding rows and tags a medium row's. The closing line is the high- sensitivity invariant (high rows with a live embedding). integrity-repair Read the row-level integrity gauges (dim-0 rows holding a vector, tombstoned_at/status drift, active rows past valid_to) and, with --apply, re-emit the dim-0 rows with their true dimension so search can return them again. Drift and valid_to are listed, not repaired. rechunk Re-chunk and re-embed a namespace's knowledge documents from stored content through the current chunker, so every document carries section metadata, chunk context and document frequency. Idempotent; one embedding per new chunk. Dry run by default (counts the documents and chunks); --apply re-chunks. export-actions Export the action schema derived from the operation registry — an MCP tools/list manifest with loom extras (json) or the Cedar schema (cedar) a policy gateway governs the surface with. lexical-stats-rebuild Recompute BM25 document frequency for a namespace from its live rows (the term-frequency views only see inserts; supersession and tombstones leave stale vocabulary behind). version Print installed Loom version. install Wire Loom into a local AI client's config. Writes the MCP server block into Claude Desktop / Cursor / VS Code's config file, atomically, merging with anything already there; for Claude Code it runs (or prints) `claude mcp add` and for Codex `codex mcp add`. Restart the client afterwards. demo The first five minutes: ingest this repo's AGENTS.md (or --file) into the knowledge plane the way `make ingest` does, ask it a question, and print the answer with its evidence rows. On the stock fake-LLM stack it prints the top knowledge.search hits and says what a real answer needs. init Create an identity on a Loom server. `--agent NAME` signs an agent up by itself (server needs LOOM_SELF_SIGNUP=open): mints a writer token on a fresh agent- namespace, saves it to ~/.loom/token, and prints the claim code a person enters once, with a password of their own, to claim the namespace. ingest-transcript Pipe a chat-history file (markdown / JSON) into Loom's conversation table as one thread. Generic ingest for tools without an MCP integration (Aider, Continue.dev, JetBrains AI, anything else): export the chat → run this command → the thread shows in the dashboard's Conversations. memory-search Run a memory.search from the shell. Default human output; --json-agent emits a structured envelope agents can pipe through (a `{command, results}` JSON shape). set-host Designate the Loom host(s) for this deployment. Writes the given login handle(s) or email(s) to LOOM_PLATFORM_ADMINS in the .env (--env-file, default ./.env): a handle promotes that password account to platform_admin, an email promotes an SSO sign-in with that verified email. Multiple OK (on-call rotation, co-operators, etc.). Re-login required after to pick up the role. login Sign in to a Loom server on any browser with a one-time code. logout End the stored session on the server and forget it here. whoami Show who the stored session signs you in as. call Call any operation or API route with the stored session (`loom call --help`). token Make, list and revoke your own tokens for CI and agents (`loom token --help`). connect Print the dashboard link to connect your own Google, Notion or Linear account. pointers Print the code pointer block for the task prompt on standard input.", + "positional arguments: {code,decisions,knowledge,export-okf,import-okf,okf-lint,up,down,ch-setup,participant,deployment,settings,secrets,signing-key,provider-lock,export-analytics,sql-access,reembed,reextract,deploy-delta,entity-export,audit-namespace,mentor,serve,migrate,reconcile-status,period-digest,demote-activity-narration,recalibrate,import-clickgap,import-recall,import-brain,claim-release,mint-token,revoke-token,sso,bot,doctor,report,drops,namespaces-gc,erasure-re-verify,reconcile,router,cell,tracker-probe,tracker-contract-check,tracker-dupcheck-fit,tracker-embed-reset,tracker-feed,namespaces-adopt,sensitivity-sweep,integrity-repair,rechunk,export-actions,lexical-stats-rebuild,version,install,demo,init,ingest-transcript,memory-search,set-host,login,logout,whoami,call,token,connect,pointers,curator} code Code intelligence plane operations. decisions Decision records mined from documents. knowledge Knowledge documents and their sources. export-okf Render a namespace as an OKF v0.2 bundle (Markdown + frontmatter) — the git-reviewable projection of Loom memory. import-okf Write the concepts of an OKF v0.2 bundle into a namespace via memory.set. okf-lint Lint an OKF bundle directory offline — the compile gate a mirror repository's CI runs. Exit 2 critical, 1 warnings, 0 clean. up Boot the local stack (Loom, its document extractor and ClickHouse) and print how to connect: creates .env and the ClickHouse config from their templates, runs docker compose up --build, waits for /v1/health, then prints the dashboard URL and the first memory.set (curl + Python SDK) and `claude mcp add` snippets — minting a writer token first when auth is on. Re-run any time. down Stop the local stack while preserving data; --delete-data performs a confirmed reset. ch-setup Prepare a self-managed ClickHouse or a ClickHouse Cloud service for Loom: create the loom database and the read-only reader user, or print the SQL for an admin. participant The Loom processes a provider change waits for. deployment The configuration every replica checks itself against. settings Every setting's value in force, and overrides of the live ones. secrets Credentials and signing keys stored sealed in ClickHouse. signing-key The token signing keys beside LOOM_JWT_SECRET, kept in ClickHouse. provider-lock The provider configuration lock. export-analytics Write one UTC day of usage and a namespace snapshot to S3 as Parquet, names hashed under LOOM_ANALYTICS_EXPORT_NAME_KEY. Never replaces an object, so a repeated run is safe. sql-access Make, rescope or drop a ClickHouse user that reads a tenant's memory, conversations and request ledger through the sql_v1_* views. reembed Re-embed vectors whose embedding_model != the configured embedder (run after changing LOOM_EMBEDDING_MODEL — Loom does not auto-re-embed). Covers memory, entity, and conversation vectors. Coded vector tables keep their width: change a model of another width in Settings → Models & keys, which rebuilds them. reextract Replay a namespace's raw evidence (memory.set_from_messages turns) through a running server's write path into ANOTHER namespace — the current extractor over the stored transcripts; the source is never written. deploy-delta What a colour swap changed: the deployment's ledger rows (volume, errors, p50/p95, upstream spend per operation) and its ClickHouse statement shapes (runs, bytes, seconds) for a window on each side of the swap, with flags for what moved past a coarse threshold. entity-export Export a namespace's entity graph (co-occurrence edges + triples) to GraphML or JSON-LD for an external graph or RDF tool. Read-only; every edge carries its provenance and a note that a path is declared, not proven. audit-namespace How a namespace is being used (namespace.audit): exact-key reads vs searches, hash keys, double-encoded and oversized values, hand-rolled index rows, leases stored as memories, version churn. Read-only; prints a table (code, severity, kind, count, share, first sample) or --json. Exit 1 on a critical finding. mentor The store's advice to one agent (mentor.brief): what it called, the planes its namespace offers, the hints with their evidence, and how often past hints were followed. Read-only; prints a table or --json. Exit 1 when a warning-level hint fires. serve Boot the control plane (uvicorn). migrate Apply schema migrations against the configured CH. reconcile-status Re-emit memory_embeddings rows whose status diverged from loom.memory (superseded / conflicted / duplicate marks the pool never saw), compared and re-emitted per identity row (org, namespace, agent, user_id, session_id, key). Dry run by default (counts by status, the rows it would write); --apply writes. period-digest Write period digests — one derived semantic memory over K consecutive session digests of each identity in one namespace. Additive and idempotent. Dry run by default (plans only); --apply writes. demote-activity-narration Find a namespace's extracted facts that narrate tool activity ('User read lines 1-1000 of X', 'Claude ran a command on …') with no durable outcome and demote (confidence x0.25) or label them through memory.apply. Dry run by default; keys an agent read by name in the last --days are left alone. Never deletes. recalibrate Re-probe the embedder + run per-NS calibration immediately (otherwise this runs weekly via the recalibration worker). import-clickgap Import a ClickGap (Detector→Validator→Reviewer) SQLite export into Loom (lessons + typed entities + categories). Reembed-only; preserves kind→memory_type, per-row TTL, recall_count (→ ranking via reinforcement_count), suppression polarity, and provenance. Idempotent via deterministic keys + per-run version. import-recall Import an external vector-recall agent-memory SQLite export into Loom. Introspects the DB at runtime (schema not assumed): tables are classified by column heuristics into memories (→ memory.set) or conversation transcripts (→ conversation.append, grouped by conversation id); unmatched tables/rows are skipped, never crash. Idempotent via deterministic keys. import-brain Import a markdown agent 'brain' directory into Loom: MEMORY.md (always- injected HOT layer) → profile.set sections; memory/contexts/*.md (read-on- demand WARM layer) → knowledge.add docs. Completes the migration alongside import-recall (the deep vector layer). Missing files are skipped, never crash. claim-release Release a self-signup claim: revoke its grants, clear the owner, deactivate it. The name stays reserved. mint-token Mint a JWT locally (requires LOOM_JWT_SECRET and verified stores). revoke-token Revoke one token by jti or subject (writes loom.revoked_tokens through the revocation module; needs the configured ClickHouse). sso Carry password accounts over to single sign-on. bot Bots and CI jobs that sign in with a key or their CI's identity. doctor Diagnose pre-boot misconfig (Python version, settings, JWT, CH reachability) and print the problem list /v1/health carries, each with its fix. With --client, also examine this machine as a coding-agent client. report Print the bug form's Environment field: versions and the `loom doctor` checks. drops Print the memory ingest drop ledger (loom.memory_drops) for a namespace, by stage/reason — what the pipeline discarded, truncated or gave up on. namespaces-gc List (default) or erase throwaway namespaces — finished bench runs under the bench prefixes that nobody registered and nobody has written to for --idle-hours — in one list-scoped erasure saga per batch. erasure-re-verify Re-verify failed erasure sagas: print each one's last step-named reason and a fresh residue census (default, read-only); --resume re-runs them from their checkpoint past the recovery worker's attempts budget; --orphan-graph lists namespaces whose entity graph outlived their memories and, with --erase, purges them. reconcile After a restore of ClickHouse or Postgres, run again in the restored store the erasures and redactions the other records past the restore point, and (after a ClickHouse restore) publish again every revision committed after it. Stop every server and worker first. Dry run by default. router The router in front of a deployment's cells. cell Operate a deployment's cells through the router's directory. tracker-probe Read-only first contact with the tracker source: counts and newest timestamps per upstream table per credential, breaker states, the configured tracker namespaces. tracker-contract-check Read-only: does each tracker source's schema meet the record contract (docs/features/tracker/record-contract.md)? Names missing tables / columns, optional tables present, feature columns. Exit 0 when every checked source meets it. tracker-dupcheck-fit Refit tracker.duplicate_check's calibrated confidence for one tracker namespace now: replays the duplicate gold at filing time, fits, stores the fit. tracker-embed-reset Clear the tracker_embed pass cursors of one tracker namespace so the next pass re-walks the window and re-embeds every item whose text recipe changed. Dry run by default (prints the cursors); --apply clears them. tracker-feed Maintain a team's GitHub or Linear tracker record namespaces-adopt Give namespaces that hold live memory and no registry row an owner row: kind=bench under the bench prefixes, else memory; retention_days 0, no TTL. Dry run unless --apply. sensitivity-sweep Label live rows the sensitivity detector would have labelled on write but a path skipped. Dry run by default: counts by level, probe shape and namespace. --apply writes one new version per row, tombstones a high row's embedding rows and tags a medium row's. The closing line is the high- sensitivity invariant (high rows with a live embedding). integrity-repair Read the row-level integrity gauges (dim-0 rows holding a vector, tombstoned_at/status drift, active rows past valid_to) and, with --apply, re-emit the dim-0 rows with their true dimension so search can return them again. Drift and valid_to are listed, not repaired. rechunk Re-chunk and re-embed a namespace's knowledge documents from stored content through the current chunker, so every document carries section metadata, chunk context and document frequency. Idempotent; one embedding per new chunk. Dry run by default (counts the documents and chunks); --apply re-chunks. export-actions Export the action schema derived from the operation registry — an MCP tools/list manifest with loom extras (json) or the Cedar schema (cedar) a policy gateway governs the surface with. lexical-stats-rebuild Recompute BM25 document frequency for a namespace from its live rows (the term-frequency views only see inserts; supersession and tombstones leave stale vocabulary behind). version Print installed Loom version. install Wire Loom into a local AI client's config. Writes the MCP server block into Claude Desktop / Cursor / VS Code's config file, atomically, merging with anything already there; for Claude Code it runs (or prints) `claude mcp add` and for Codex `codex mcp add`. Restart the client afterwards. demo The first five minutes: ingest this repo's AGENTS.md (or --file) into the knowledge plane the way `make ingest` does, ask it a question, and print the answer with its evidence rows. On the stock fake-LLM stack it prints the top knowledge.search hits and says what a real answer needs. init Create an identity on a Loom server. `--agent NAME` signs an agent up by itself (server needs LOOM_SELF_SIGNUP=open): mints a writer token on a fresh agent- namespace, saves it to ~/.loom/token, and prints the claim code a person enters once, with a password of their own, to claim the namespace. ingest-transcript Pipe a chat-history file (markdown / JSON) into Loom's conversation table as one thread. Generic ingest for tools without an MCP integration (Aider, Continue.dev, JetBrains AI, anything else): export the chat → run this command → the thread shows in the dashboard's Conversations. memory-search Run a memory.search from the shell. Default human output; --json-agent emits a structured envelope agents can pipe through (a `{command, results}` JSON shape). set-host Designate the Loom host(s) for this deployment. Writes the given login handle(s) or email(s) to LOOM_PLATFORM_ADMINS in the .env (--env-file, default ./.env): a handle promotes that password account to platform_admin, an email promotes an SSO sign-in with that verified email. Multiple OK (on-call rotation, co-operators, etc.). Re-login required after to pick up the role. login Sign in to a Loom server on any browser with a one-time code. logout End the stored session on the server and forget it here. whoami Show who the stored session signs you in as. call Call any operation or API route with the stored session (`loom call --help`). token Make, list and revoke your own tokens for CI and agents (`loom token --help`). connect Print the dashboard link to connect your own Google, Notion or Linear account. pointers Print the code pointer block for the task prompt on standard input. curator Report what in a namespace needs a person (`loom curator --help`).", "options: -h, --help show this help message and exit --version show program's version number and exit" ], "loom code": [ @@ -625,5 +625,8 @@ ], "loom pointers": [ "usage: loom pointers" + ], + "loom curator": [ + "usage: loom curator" ] } diff --git a/tests/unit/snapshots/cli_tree.json b/tests/unit/snapshots/cli_tree.json index f3edf95e223..1d4a97fbfed 100644 --- a/tests/unit/snapshots/cli_tree.json +++ b/tests/unit/snapshots/cli_tree.json @@ -18275,6 +18275,30 @@ ], "mutually_exclusive": [], "arguments": [] + }, + "curator": { + "prog": "loom curator", + "usage": null, + "description": null, + "epilog": null, + "formatter_class": "argparse:HelpFormatter", + "add_help": false, + "allow_abbrev": true, + "defaults": {}, + "groups": [ + { + "title": "positional arguments", + "description": null, + "dests": [] + }, + { + "title": "options", + "description": null, + "dests": [] + } + ], + "mutually_exclusive": [], + "arguments": [] } }, "aliases_of": { @@ -18347,7 +18371,8 @@ "call": "loom call", "token": "loom token", "connect": "loom connect", - "pointers": "loom pointers" + "pointers": "loom pointers", + "curator": "loom curator" }, "choices_help": [ { @@ -18699,6 +18724,11 @@ "dest": "pointers", "help": "Print the code pointer block for the task prompt on standard input.", "metavar": "pointers" + }, + { + "dest": "curator", + "help": "Report what in a namespace needs a person (`loom curator --help`).", + "metavar": "curator" } ] } diff --git a/tests/unit/snapshots/sdk_public_api.json b/tests/unit/snapshots/sdk_public_api.json index 5ef3eecd5c8..09611f43da6 100644 --- a/tests/unit/snapshots/sdk_public_api.json +++ b/tests/unit/snapshots/sdk_public_api.json @@ -696,6 +696,15 @@ ] } }, + "curator": { + "class": "CuratorOps", + "methods": { + "status": [ + "body", + "options" + ] + } + }, "decision": { "class": "DecisionOps", "methods": { diff --git a/tests/unit/test_cli_curator.py b/tests/unit/test_cli_curator.py new file mode 100644 index 00000000000..e773c16867f --- /dev/null +++ b/tests/unit/test_cli_curator.py @@ -0,0 +1,239 @@ +"""`loom curator status` (the Python SDK's command): one line per section and one per +finding of the `curator.status` answer, with no fact's value and no write argument on +the terminal; `--json` prints the answer whole.""" + +from __future__ import annotations + +import json +from pathlib import Path +from typing import Any + +import httpx +import pytest +from loom import cli + +HASH = "ab" * 32 + + +def _item(key: str, code: str, title: str, **more: Any) -> dict[str, Any]: + memory_id = f"id-of-{key}" + return { + "memory_id": memory_id, + "memory_key": key, + "code": code, + "title": title, + "count": 0, + "ref": "", + "apply": { + "op": "memory.update_by_id", + "via": "op", + "args": {"org": "acme", "memory_id": memory_id, "if_match_sha256": HASH}, + "args_complete": False, + "required_role": "writer", + "guard": "if_match_sha256: the write is refused when the fact changed.", + }, + # No field of the answer holds a fact's value. One that did would stay off the + # terminal: the report prints the fields it names and nothing else. + "value": f"the text of {key}", + **more, + } + + +ANSWER: dict[str, Any] = { + "proposals": { + "pending": 3, + "oldest_days": 12, + "filed_7d": 5, + "decided_7d": 2, + "over_scan_cap": False, + "unavailable": "", + }, + "flagged": { + "items": [ + _item("refund-window", "harm_reported", "Reported harmful", count=4), + _item("retry-policy", "graded_fails", "Relied on by runs graded fail", count=2), + ], + "unavailable": "", + }, + "stale": { + "items": [ + _item( + "upload-backoff", + "stale_link", + "Linked code changed", + ref="src/uploads/retry.py::retry_upload", + ), + _item("pricing-table", "source_changed", "Source document changed"), + ], + "unavailable": "", + }, +} + +REPORT = [ + "proposals: 3 pending, oldest 12 days; 5 filed and 2 decided in the last 7 days", + "flagged: 2", + " Reported harmful (4): refund-window fix with memory.update_by_id", + " Relied on by runs graded fail (2): retry-policy fix with memory.update_by_id", + "stale: 2", + " Linked code changed: upload-backoff (src/uploads/retry.py::retry_upload)" + " fix with memory.update_by_id", + " Source document changed: pricing-table fix with memory.update_by_id", + "`python -m loom curator status --namespace support --json` prints each write's arguments.", +] + + +class _Wire: + """A server that answers every `curator.status` with one reply and keeps the bodies.""" + + def __init__(self, reply: Any, status: int = 200) -> None: + self.reply = reply + self.status = status + self.bodies: list[dict[str, Any]] = [] + + def __call__(self, request: httpx.Request) -> httpx.Response: + assert request.method == "POST" and request.url.path == "/v1/curator.status" + self.bodies.append(json.loads(request.content)) + return httpx.Response(self.status, json=self.reply) + + +def _wired(monkeypatch: pytest.MonkeyPatch, tmp_path: Path, wire: _Wire) -> _Wire: + for name in ("LOOM_PROFILE", "LOOM_MENTOR_BRIEF", "LOOM_AUTO_RUN"): + monkeypatch.delenv(name, raising=False) + monkeypatch.setenv("LOOM_BASE_URL", "http://example.invalid") + monkeypatch.setenv("LOOM_API_KEY", "private-admin-bearer") + monkeypatch.setattr("loom.credentials.CREDENTIALS_FILE", tmp_path / "credentials") + monkeypatch.setattr("loom.transport.TOKEN_FILE", tmp_path / "token") + real_client = httpx.AsyncClient + + def client(*args: Any, **kwargs: Any) -> httpx.AsyncClient: + kwargs["transport"] = httpx.MockTransport(wire) + kwargs.pop("http2", None) + return real_client(*args, **kwargs) + + monkeypatch.setattr("loom.transport.httpx.AsyncClient", client) + return wire + + +def _status(capsys: pytest.CaptureFixture[str], *args: str, prog: str = "") -> tuple[int, str, str]: + argv = ["curator", "status", "--namespace", "support", *args] + code = cli.main(argv, prog=prog) if prog else cli.main(argv) + printed = capsys.readouterr() + return code, printed.out, printed.err + + +def test_status_prints_one_line_per_finding( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str] +) -> None: + wire = _wired(monkeypatch, tmp_path, _Wire(ANSWER)) + code, out, err = _status(capsys, "--org", "acme") + assert (code, err) == (0, "") + assert out.split("\n") == [*REPORT, ""] + # Every finding of the answer has its line, and the lines hold no fact's value, no + # id and no content hash: those are the write's arguments, which `--json` prints. + findings = [i for name in ("flagged", "stale") for i in ANSWER[name]["items"]] + assert sum(line.startswith(" ") for line in out.split("\n")) == len(findings) == 4 + for item in findings: + assert item["memory_key"] in out + assert item["value"] not in out and item["memory_id"] not in out + assert HASH not in out + # One call, for every section at the op's own limit. + assert len(wire.bodies) == 1 + sent = wire.bodies[0] + assert (sent["org"], sent["namespace"]) == ("acme", "support") + assert not {"sections", "limit"} & set(sent) + + +def test_json_prints_the_operations_answer( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str] +) -> None: + _wired(monkeypatch, tmp_path, _Wire(ANSWER)) + code, out, err = _status(capsys, "--json") + assert (code, err) == (0, "") + assert json.loads(out) == ANSWER + assert json.loads(out)["flagged"]["items"][0]["apply"]["args"]["if_match_sha256"] == HASH + + +def test_the_hint_names_the_command_as_it_was_run( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str] +) -> None: + _wired(monkeypatch, tmp_path, _Wire(ANSWER)) + _, out, _ = _status(capsys, prog="loom") + assert out.rstrip("\n").split("\n")[-1] == ( + "`loom curator status --namespace support --json` prints each write's arguments." + ) + + +def test_an_empty_namespace_prints_its_zeros_and_no_hint( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str] +) -> None: + empty = { + "proposals": {**ANSWER["proposals"], "pending": 0, "oldest_days": 0, "filed_7d": 0} + | {"decided_7d": 0}, + "flagged": {"items": [], "unavailable": ""}, + "stale": {"items": [], "unavailable": ""}, + } + _wired(monkeypatch, tmp_path, _Wire(empty)) + code, out, _ = _status(capsys) + assert code == 0 and out.split("\n") == [ + "proposals: 0 pending, oldest 0 days; 0 filed and 0 decided in the last 7 days", + "flagged: 0", + "stale: 0", + "", + ] + + +def test_a_section_that_was_not_computed_says_why_and_the_rest_is_printed( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str] +) -> None: + answer = { + "proposals": {**ANSWER["proposals"], "over_scan_cap": True}, + "flagged": {"items": [], "unavailable": "too_large"}, + "stale": ANSWER["stale"], + } + _wired(monkeypatch, tmp_path, _Wire(answer)) + code, out, _ = _status(capsys) + assert code == 0 and out.split("\n")[:5] == [ + REPORT[0], + " more are pending than memory.proposals lists at once", + "flagged: not computed (too_large)", + "stale: 2", + REPORT[5], + ] + + +def test_a_section_the_answer_leaves_out_has_no_line( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str] +) -> None: + _wired(monkeypatch, tmp_path, _Wire({"proposals": None, "flagged": None, "stale": None})) + assert _status(capsys) == (0, "\n", "") + + +def test_a_key_with_a_line_break_stays_on_its_line_and_a_fact_with_no_write_says_so( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str] +) -> None: + """A key is its writer's text: a line break or an escape sequence in one would + forge a line of the report or drive the terminal.""" + forged = _item("a\nstale: 0\x1b[2J", "source_changed", "Source document changed") + answer = {"stale": {"items": [{**forged, "apply": None}], "unavailable": ""}} + _wired(monkeypatch, tmp_path, _Wire(answer)) + code, out, _ = _status(capsys) + assert code == 0 and out.split("\n")[:2] == [ + "stale: 1", + " Source document changed: a\\nstale: 0\\x1b[2J no guarded write", + ] + assert "\x1b" not in out + + +def test_the_command_needs_a_namespace_and_a_refusal_is_said_without_the_token( + monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str] +) -> None: + refusal = {"detail": {"code": "AUTH_INSUFFICIENT", "message": "curator.status needs admin"}} + wire = _wired(monkeypatch, tmp_path, _Wire(refusal, status=403)) + with pytest.raises(SystemExit) as refused: + cli.main(["curator", "status"]) + assert refused.value.code == 2 and wire.bodies == [] + capsys.readouterr() + code, out, err = _status(capsys) + assert (code, out) == (1, "") + assert err.startswith("loom curator: ") + assert "private-admin-bearer" not in err diff --git a/tests/unit/test_curator_status.py b/tests/unit/test_curator_status.py new file mode 100644 index 00000000000..90c0467d303 --- /dev/null +++ b/tests/unit/test_curator_status.py @@ -0,0 +1,684 @@ +"""curator.status: the proposal queue in counts and the facts that need a second look. + +The handler is driven over a store that answers from lists, then its statements are run +on clickhouse-local against the real tables: a rule that lives in SQL (which rows count +as pending, filed or decided, which harm reports remain, which runs failed) is checked +where it lives. +""" + +from __future__ import annotations + +import ast +from pathlib import Path +from typing import Any + +import pytest +from pydantic import ValidationError + +from server.core.hashing import served_content_sha256 +from server.identity.domain.read_scope import WHOLE_NAMESPACE +from server.memory.api.models_curator import CuratorStatusInput, CuratorStatusOutput +from server.memory.app import curator_status, finding_evidence +from server.memory.domain import curator as codes +from server.memory.store import curator as store +from server.operations.registry import OPERATIONS_BY_NAME +from tests.unit.clickhouse_local import CLICKHOUSE, LocalCH, ddl, view + +needs_clickhouse = pytest.mark.skipif(CLICKHOUSE is None, reason="clickhouse binary not installed") + +ORG, NS = "o", "ns" + + +def _id(n: int) -> str: + return f"00000000-0000-0000-0000-{n:012d}" + + +def _sha(n: int) -> str: + return f"{n:064x}" + + +def _row(n: int, key: str, status: str = "active", sha: str | None = None) -> dict[str, Any]: + """A live memory row: what the store's by-id, by-key and tag reads return of it, the + status the fake filters on, and the hash its live revision is cited with.""" + return { + "id": _id(n), + "memory_key": key, + "sha": _sha(n) if sha is None else sha, + "status": status, + } + + +def _store( + monkeypatch: pytest.MonkeyPatch, + *, + queue: tuple[int, int] = (0, 0), + filed: int = 0, + decided: int = 0, + harmed: list[tuple[int, int]] | None = None, + failed: list[tuple[str, int]] | None = None, + rows: list[dict[str, Any]] | None = None, + tagged: list[dict[str, Any]] | None = None, + links: list[dict[str, Any]] | None = None, +) -> None: + """Answer the handler's reads from lists: `harmed` as (row number, reports), `failed` + as (key, failed runs that relied on it), `rows` as the namespace's live rows.""" + live = rows or [] + + async def proposal_queue(org: str, ns: str, **_: Any) -> dict[str, int]: + return {"pending": queue[0], "oldest_days": queue[1]} + + async def proposals_filed(org: str, ns: str, **_: Any) -> int: + return filed + + async def proposals_decided(org: str, ns: str, **_: Any) -> int: + return decided + + async def harmed_ids(org: str, ns: str, *, limit: int, **_: Any) -> list[dict[str, Any]]: + return [{"id": _id(n), "harm": harm} for n, harm in (harmed or [])][:limit] + + async def failed_keys(org: str, ns: str, *, limit: int, **_: Any) -> list[dict[str, Any]]: + return [{"memory_key": key, "fails": n} for key, n in (failed or [])][:limit] + + async def rows_by_id( + org: str, ns: str, ids: list[str], *, statuses: tuple[str, ...], **_: Any + ) -> list[dict[str, Any]]: + return [r for r in live if r["id"] in ids and r["status"] in statuses] + + async def rows_by_key( + org: str, ns: str, keys: list[str], *, statuses: tuple[str, ...], limit: int, **_: Any + ) -> list[dict[str, Any]]: + return [r for r in live if r["memory_key"] in keys and r["status"] in statuses][:limit] + + async def rows_tagged( + org: str, ns: str, tag: str, *, statuses: tuple[str, ...], limit: int, **_: Any + ) -> list[dict[str, Any]]: + assert tag == "source-changed" + return [r for r in (tagged or []) if r["status"] in statuses][:limit] + + async def stale_links(org: str, ns: str, *, limit: int) -> list[dict[str, Any]]: + return (links or [])[:limit] + + async def revisions_for( + org: str, ns: str, samples: list[dict[str, Any]], *, scope: Any + ) -> dict[str, dict[str, Any]]: + """The live revision of each row asked for by id, as `live_revisions` answers.""" + assert scope == WHOLE_NAMESPACE + asked = {s["memory_id"] for s in samples} + return { + r["id"]: { + "memory_id": r["id"], + "memory_key": r["memory_key"], + "content_sha256": r["sha"], + } + for r in live + if r["id"] in asked + } + + for name, fn in ( + ("proposal_queue", proposal_queue), + ("proposals_filed", proposals_filed), + ("proposals_decided", proposals_decided), + ("harmed", harmed_ids), + ("failed_keys", failed_keys), + ("rows_by_id", rows_by_id), + ("rows_by_key", rows_by_key), + ("rows_tagged", rows_tagged), + ): + monkeypatch.setattr(store, name, fn) + monkeypatch.setattr(curator_status, "stale_links", stale_links) + monkeypatch.setattr(curator_status, "revisions_for", revisions_for) + + +def _link(n: int, key: str, path: str, symbol: str = "") -> dict[str, Any]: + return {"memory_id": _id(n), "memory_key": key, "path": path, "qualified_name": symbol} + + +async def _status(**body: Any) -> CuratorStatusOutput: + return await curator_status.handle_curator_status( + CuratorStatusInput(org=ORG, namespace=NS, **body) + ) + + +# ---------------------------------------------------------------- the sections asked for + + +async def test_an_unknown_section_is_refused(monkeypatch: pytest.MonkeyPatch) -> None: + with pytest.raises(ValidationError) as refused: + CuratorStatusInput(org=ORG, namespace=NS, sections=["proposal"]) # type: ignore[list-item] + assert refused.value.errors()[0]["loc"] == ("sections", 0) + _store(monkeypatch) + everything = await _status() + assert None not in (everything.proposals, everything.flagged, everything.stale) + only = await _status(sections=["stale"]) + assert (only.proposals, only.flagged) == (None, None) + assert only.stale is not None and only.stale.unavailable == "" + + +async def test_a_section_not_asked_for_makes_no_read(monkeypatch: pytest.MonkeyPatch) -> None: + _store(monkeypatch) + + async def unread(*_: Any, **__: Any) -> Any: + raise AssertionError("a section that was not asked for was read") + + for name in ("harmed", "failed_keys", "rows_tagged"): + monkeypatch.setattr(store, name, unread) + monkeypatch.setattr(curator_status, "stale_links", unread) + out = await _status(sections=["proposals"]) + assert out.proposals is not None and (out.flagged, out.stale) == (None, None) + + +async def test_an_empty_namespace_answers_zeros_and_empty_lists( + monkeypatch: pytest.MonkeyPatch, +) -> None: + _store(monkeypatch) + out = await _status() + assert out.model_dump() == { + "proposals": { + "pending": 0, + "oldest_days": 0, + "filed_7d": 0, + "decided_7d": 0, + "over_scan_cap": False, + "unavailable": "", + }, + "flagged": {"items": [], "unavailable": ""}, + "stale": {"items": [], "unavailable": ""}, + } + + +# ---------------------------------------------------------------- the scan cap + + +@pytest.mark.parametrize( + "over", + [ + {"harmed": [(1, 3), (2, 2), (3, 1)]}, + {"failed": [("a", 2), ("b", 1), ("c", 1)]}, + ], + ids=["harm reports", "failed keys"], +) +async def test_a_section_at_its_scan_cap_says_too_large_and_the_rest_answers( + monkeypatch: pytest.MonkeyPatch, over: dict[str, Any] +) -> None: + monkeypatch.setattr(store, "SCAN_CAP", 2) + live = [_row(1, "a"), _row(2, "b"), _row(3, "c"), _row(4, "d", "conflicted")] + _store( + monkeypatch, + queue=(3, 9), + filed=2, + rows=live, + tagged=[live[3]], + links=[_link(1, "a", "src/app.py")], + **over, + ) + out = await _status() + assert out.flagged is not None and out.stale is not None and out.proposals is not None + # A cut list is never served as the whole one. + assert (out.flagged.unavailable, out.flagged.items) == ("too_large", []) + assert (out.proposals.pending, out.proposals.oldest_days, out.proposals.filed_7d) == (3, 9, 2) + assert out.stale.unavailable == "" + assert [(i.code, i.memory_key) for i in out.stale.items] == [ + ("stale_link", "a"), + ("source_changed", "d"), + ] + + +async def test_a_section_under_its_scan_cap_lists_every_finding( + monkeypatch: pytest.MonkeyPatch, +) -> None: + monkeypatch.setattr(store, "SCAN_CAP", 2) + _store( + monkeypatch, + harmed=[(1, 3), (2, 2)], + failed=[("b", 2), ("a", 1)], + rows=[_row(1, "a"), _row(2, "b")], + ) + flagged = (await _status(sections=["flagged"])).flagged + assert flagged is not None and flagged.unavailable == "" + assert [(i.code, i.memory_key, i.count) for i in flagged.items] == [ + ("harm_reported", "a", 3), + ("harm_reported", "b", 2), + ("graded_fails", "b", 2), + ("graded_fails", "a", 1), + ] + + +async def test_a_failed_key_more_identities_hold_than_the_scan_cap_says_too_large( + monkeypatch: pytest.MonkeyPatch, +) -> None: + """A run names a key, and each agent, user and session that wrote the key holds a + fact under it: one key can stand for more facts than the section reads.""" + monkeypatch.setattr(store, "SCAN_CAP", 2) + holders = [_row(3, "a"), _row(1, "a"), _row(2, "a")] + _store(monkeypatch, failed=[("a", 1)], rows=holders) + over = (await _status(sections=["flagged"])).flagged + assert over is not None and (over.unavailable, over.items) == ("too_large", []) + _store(monkeypatch, failed=[("a", 1)], rows=holders[:2]) + at = (await _status(sections=["flagged"])).flagged + assert at is not None and at.unavailable == "" + # Every holder is listed, in one order on every call. + assert [(i.memory_id, i.memory_key, i.count) for i in at.items] == [ + (_id(1), "a", 1), + (_id(3), "a", 1), + ] + + +async def test_pending_over_the_listing_cap_is_said_and_still_counted( + monkeypatch: pytest.MonkeyPatch, +) -> None: + monkeypatch.setattr(curator_status.settings, "memory_proposals_scan_cap", 5) + _store(monkeypatch, queue=(5, 1)) + at = (await _status(sections=["proposals"])).proposals + _store(monkeypatch, queue=(6, 1)) + over = (await _status(sections=["proposals"])).proposals + assert at is not None and over is not None + assert (at.pending, at.over_scan_cap) == (5, False) + assert (over.pending, over.over_scan_cap, over.unavailable) == (6, True, "") + + +# ---------------------------------------------------------------- the findings + + +async def test_only_accepted_facts_are_flagged_and_limit_cuts_each_section( + monkeypatch: pytest.MonkeyPatch, +) -> None: + live = [ + _row(1, "a"), + _row(2, "b", "conflicted"), + _row(3, "c", "proposed"), + _row(4, "d"), + _row(5, "e"), + ] + _store( + monkeypatch, + # Row 9 was deleted since its report: it has no live row. + harmed=[(9, 8), (2, 7), (3, 6), (1, 5), (4, 4)], + failed=[("e", 2), ("b", 1), ("c", 1)], + rows=live, + tagged=[live[0], live[1], live[3]], + links=[_link(5, "e", "src/app.py", "App.run")], + ) + out = await _status() + assert out.flagged is not None and out.stale is not None + assert [(i.code, i.memory_key, i.count) for i in out.flagged.items] == [ + ("harm_reported", "a", 5), + ("harm_reported", "d", 4), + ("graded_fails", "e", 2), + ] + # A conflicted fact with a stale source is still stale: its conflict is another list. + assert [(i.code, i.memory_key, i.ref) for i in out.stale.items] == [ + ("stale_link", "e", "src/app.py::App.run"), + ("source_changed", "a", ""), + ("source_changed", "b", ""), + ("source_changed", "d", ""), + ] + cut = await _status(limit=2) + assert cut.flagged is not None and cut.stale is not None + assert [i.memory_key for i in cut.flagged.items] == ["a", "d"] + assert [i.memory_key for i in cut.stale.items] == ["e", "a"] + + +async def test_every_apply_names_a_registered_op_with_its_declared_role( + monkeypatch: pytest.MonkeyPatch, +) -> None: + live = [_row(1, "a"), _row(2, "b"), _row(3, "c"), _row(4, "d")] + _store( + monkeypatch, + harmed=[(1, 1)], + failed=[("b", 1)], + rows=live, + tagged=[live[2]], + links=[_link(4, "d", "src/app.py")], + ) + out = await _status() + assert out.flagged is not None and out.stale is not None + items = [*out.flagged.items, *out.stale.items] + assert sorted(i.code for i in items) == sorted(codes.FINDING_TITLES) + for n, item in zip((1, 2, 4, 3), items, strict=True): + assert item.apply is not None + op = OPERATIONS_BY_NAME[item.apply.op] + assert item.apply.required_role == op.required_role.name.lower() == "writer" + assert (item.apply.op, item.apply.via) == ("memory.update_by_id", "op") + # The person supplies the new value; every other argument is the op's own field. + assert item.apply.args_complete is False + assert item.apply.args == {"org": ORG, "memory_id": _id(n), "if_match_sha256": _sha(n)} + assert set(item.apply.args) <= set(op.input_model.model_fields) + assert "value" in op.input_model.model_fields + assert "if_match_sha256" in item.apply.guard + + +async def test_a_fact_whose_hash_is_not_cited_is_listed_without_a_write( + monkeypatch: pytest.MonkeyPatch, +) -> None: + """A report cites no hash for a high-sensitivity fact or a value over its hash bound. + An empty `if_match_sha256` is no precondition: the write it names would overwrite a + change made since the report.""" + _store(monkeypatch, harmed=[(1, 2)], rows=[_row(1, "a", sha="")]) + flagged = (await _status(sections=["flagged"])).flagged + assert flagged is not None + (item,) = flagged.items + assert (item.memory_key, item.count, item.apply) == ("a", 2, None) + + +async def test_a_fact_that_is_no_longer_live_when_its_revision_is_read_is_left_out( + monkeypatch: pytest.MonkeyPatch, +) -> None: + live = [_row(1, "a"), _row(2, "b")] + _store(monkeypatch, harmed=[(1, 3), (2, 2)], rows=live, tagged=live) + + async def one_left(*_: Any, **__: Any) -> dict[str, dict[str, Any]]: + # Row 1 was deleted, or rewritten on the memory authority, after the sections read it. + return {_id(2): {"memory_id": _id(2), "memory_key": "b", "content_sha256": _sha(2)}} + + monkeypatch.setattr(curator_status, "revisions_for", one_left) + out = await _status() + assert out.flagged is not None and out.stale is not None + assert [(i.memory_key, i.count) for i in out.flagged.items] == [("b", 2)] + assert [i.memory_key for i in out.stale.items] == ["b"] + # The revisions of `limit` facts are read, so the list is short by the one that left. + cut = await _status(sections=["flagged"], limit=1) + assert cut.flagged is not None and cut.flagged.items == [] + + +async def test_one_read_cites_every_fact_the_lists_show(monkeypatch: pytest.MonkeyPatch) -> None: + live = [_row(1, "a"), _row(2, "b"), _row(3, "c")] + _store(monkeypatch, harmed=[(1, 1)], rows=live, tagged=live[:2]) + cited = curator_status.revisions_for + asked: list[list[str]] = [] + + async def counted( + org: str, ns: str, samples: list[dict[str, Any]], *, scope: Any + ) -> dict[str, dict[str, Any]]: + asked.append([s["memory_id"] for s in samples]) + return await cited(org, ns, samples, scope=scope) + + monkeypatch.setattr(curator_status, "revisions_for", counted) + out = await _status() + assert out.flagged is not None and out.stale is not None + assert [i.memory_key for i in out.flagged.items] == ["a"] + assert [i.memory_key for i in out.stale.items] == ["a", "b"] + # Row 1 is on both lists and is asked for once; row 3 is on neither. + assert asked == [[_id(1), _id(2)]] + # A report of counts names no fact, and that read sends no statement for none. + await _status(sections=["proposals"]) + assert asked[1:] == [[]] + + +def test_every_code_has_a_title() -> None: + """Every code the handler lists a fact under is a key of the domain table, whose words + each surface prints.""" + source = Path(curator_status.__file__).read_text(encoding="utf-8") + given = { + node.args[1].attr + for node in ast.walk(ast.parse(source)) + if isinstance(node, ast.Call) + and isinstance(node.func, ast.Name) + and node.func.id == "_Listed" + and isinstance(node.args[1], ast.Attribute) + } + assert given == {"HARM_REPORTED", "GRADED_FAILS", "STALE_LINK", "SOURCE_CHANGED"} + assert {getattr(codes, name) for name in given} == set(codes.FINDING_TITLES) + assert all(title.strip() for title in codes.FINDING_TITLES.values()) + + +def test_the_op_is_for_a_namespace_admin_and_is_refused_to_a_narrowed_token() -> None: + from server.identity.domain.read_scope import honours_read_scope + from server.operations.base import Role + + op = OPERATIONS_BY_NAME["curator.status"] + assert (op.required_role, op.idempotent, op.audit, op.writes) == ( + Role.ADMIN, + True, + False, + False, + ) + assert (op.maturity, op.row_scoped, op.skip_namespace_authz) == ("experimental", False, False) + assert not honours_read_scope("curator.status") + + +# ---------------------------------------------------------------- the statements + + +VALUE = "the text of a fact, which no answer holds" + + +def _fact(n: int, key: str, status: str = "active", **kw: Any) -> str: + """One version of a memory row; `age_days` is the age of the fact, not of the version. + Its stored hash column is not the hash of its value, as for an object that holds a + null field.""" + cols = { + "org": f"'{ORG}'", + "namespace": f"'{kw.get('ns', NS)}'", + "agent": f"'{kw.get('agent', 'writer')}'", + "memory_key": f"'{key}'", + "memory_type": "'semantic'", + "value": f"'{VALUE}'", + "sensitivity": f"'{kw.get('sensitivity', '')}'", + "version": str(kw.get("version", 1)), + "created_at": f"now() - toIntervalDay({kw.get('age_days', 0)})", + "status": f"'{status}'", + "memory_id": f"'{_id(n)}'", + "tags": "[" + ", ".join(f"'{t}'" for t in kw.get("tags", ())) + "]", + "content_sha256": f"'{_sha(n)}'", + "tombstoned_at": "now()" if kw.get("deleted") else "NULL", + } + return f"INSERT INTO loom.memory ({', '.join(cols)}) VALUES ({', '.join(cols.values())})" + + +def _decision(event: str, age_days: int, ns: str = NS) -> str: + return ( + "INSERT INTO loom.audit_log (ts, event_type, org, namespace, actor, subject, request_id) " + f"VALUES (now64(3) - toIntervalDay({age_days}), '{event}', '{ORG}', '{ns}', " + "'human:reviewer', '{}', 'r')" + ) + + +def _usage(n: int, harm: int, ns: str = NS, used: int = 0) -> str: + return ( + "INSERT INTO loom.memory_usage_totals (memory_id, org, namespace, evidence_count, " + "recall_count, used_count, harm_count, last_recalled_at, bumped_at) " + f"VALUES ('{_id(n)}', '{ORG}', '{ns}', 0, 0, {used}, {harm}, now(), now())" + ) + + +def _run(run_id: str, grade: str, keys: list[str], *, ns: str = NS, version: int = 1) -> str: + used = "[" + ", ".join(f"'{k}'" for k in keys) + "]" + return ( + "INSERT INTO loom.agent_runs (org, namespace, agent, run_id, goal, status, " + f"memories_used, grade, version) VALUES ('{ORG}', '{ns}', 'a', '{run_id}', 'g', " + f"'completed', {used}, '{grade}', {version})" + ) + + +MEMORY = (ddl("memory"), ddl("memory_versions"), view("memory_versions_mv")) + + +@needs_clickhouse +async def test_the_queue_counts_pending_filed_and_decided_from_the_rows() -> None: + ch = LocalCH( + *MEMORY, + ddl("audit_log"), + _fact(1, "waiting", "proposed", age_days=12), + _fact(2, "fresh", "proposed", age_days=2), + # Filed three days ago and rejected since: no longer pending, still filed. + _fact(3, "refused", "proposed", age_days=3), + _fact(3, "refused", "rejected", age_days=3, version=2), + # Filed before the window and accepted inside it: decided, not filed. + _fact(4, "taken", "proposed", age_days=20), + _fact(4, "taken", "active", age_days=20, version=2), + # Never a proposal: a fact, and a fact a writer rejected. + _fact(5, "plain", age_days=1), + _fact(6, "dropped", "rejected", age_days=1), + # A proposal its writer deleted, and one of another namespace. + _fact(7, "withdrawn", "proposed", age_days=30), + _fact(7, "withdrawn", "proposed", age_days=30, version=2, deleted=True), + _fact(8, "elsewhere", "proposed", ns="other"), + _decision("memory.proposal_reject", 1), + _decision("memory.proposal_accept", 2), + _decision("memory.proposal_accept", 10), + _decision("memory.proposal_accept", 1, ns="other"), + _decision("memory.set", 1), + ) + assert await store.proposal_queue(ORG, NS, ch=ch) == {"pending": 2, "oldest_days": 12} + assert await store.proposals_filed(ORG, NS, ch=ch) == 2 + assert await store.proposals_decided(ORG, NS, ch=ch) == 2 + assert await store.proposal_queue(ORG, "empty", ch=ch) == {"pending": 0, "oldest_days": 0} + assert await store.proposals_filed(ORG, "empty", ch=ch) == 0 + assert await store.proposals_decided(ORG, "empty", ch=ch) == 0 + + +@needs_clickhouse +async def test_harm_reports_are_read_most_first_and_a_retracted_one_is_not_read() -> None: + ch = LocalCH( + ddl("memory_usage_totals"), + _usage(1, 1), + _usage(1, 2), + _usage(2, 5), + # Reported and retracted: nothing is left to look at. + _usage(3, 1), + _usage(3, -1), + _usage(4, 0, used=6), + _usage(5, 9, ns="other"), + ) + assert await store.harmed(ORG, NS, limit=10, ch=ch) == [ + {"id": _id(2), "harm": 5}, + {"id": _id(1), "harm": 3}, + ] + assert await store.harmed(ORG, NS, limit=1, ch=ch) == [{"id": _id(2), "harm": 5}] + + +@needs_clickhouse +async def test_failed_keys_count_the_runs_whose_grade_is_fail_now() -> None: + ch = LocalCH( + ddl("agent_runs"), + # A key a run names twice is relied on by one run. + _run("r1", "fail", ["k1", "k2", "k1"]), + _run("r2", "pass", ["k1"]), + _run("r3", "fail", []), + # Regraded: the run's last verdict is a pass. + _run("r4", "fail", ["k1"]), + _run("r4", "pass", ["k1"], version=2), + _run("r5", "", ["k3"]), + _run("r6", "fail", ["k9"], ns="other"), + _run("r7", "fail", ["k2", ""]), + ) + assert await store.failed_keys(ORG, NS, limit=10, ch=ch) == [ + {"memory_key": "k2", "fails": 2}, + {"memory_key": "k1", "fails": 1}, + ] + assert await store.failed_keys(ORG, NS, limit=1, ch=ch) == [{"memory_key": "k2", "fails": 2}] + + +@needs_clickhouse +async def test_rows_are_read_by_id_key_and_tag_inside_the_namespace_and_the_statuses() -> None: + ch = LocalCH( + ddl("memory"), + _fact(1, "a", tags=["source-changed"]), + _fact(2, "a", agent="other-writer"), + _fact(3, "b", "conflicted", tags=["source-changed", "x"], version=5), + _fact(4, "c", "proposed", tags=["source-changed"]), + _fact(5, "d", tags=["source-changed"]), + _fact(5, "d", tags=["source-changed"], version=2, deleted=True), + # The same id and key in another namespace (a restored namespace keeps its ids). + _fact(1, "a", ns="other", tags=["source-changed"]), + _fact(6, "e"), + ) + accepted, served = ("active",), ("active", "conflicted") + ids = [_id(n) for n in range(1, 7)] + + def keys(rows: list[dict[str, Any]]) -> list[tuple[str, str]]: + return sorted((r["id"], r["memory_key"]) for r in rows) + + by_id = await store.rows_by_id(ORG, NS, ids, statuses=accepted, ch=ch) + assert keys(by_id) == [(_id(1), "a"), (_id(2), "a"), (_id(6), "e")] + # A row is its id and key: the hash a finding cites is read with its live revision. + assert all(set(r) == {"id", "memory_key"} for r in by_id) + assert keys(await store.rows_by_id(ORG, NS, ids, statuses=served, ch=ch)) == [ + (_id(1), "a"), + (_id(2), "a"), + (_id(3), "b"), + (_id(6), "e"), + ] + assert await store.rows_by_id(ORG, NS, [], statuses=served, ch=ch) == [] + # Every identity holding the key is one row. + wanted = ["a", "b", "c", "d"] + by_key = await store.rows_by_key(ORG, NS, wanted, statuses=accepted, limit=10, ch=ch) + assert keys(by_key) == [(_id(1), "a"), (_id(2), "a")] + assert len(await store.rows_by_key(ORG, NS, wanted, statuses=accepted, limit=1, ch=ch)) == 1 + assert await store.rows_by_key(ORG, NS, [], statuses=accepted, limit=10, ch=ch) == [] + tagged = await store.rows_tagged(ORG, NS, "source-changed", statuses=served, limit=10, ch=ch) + assert [(r["id"], r["memory_key"]) for r in tagged] == [(_id(3), "b"), (_id(1), "a")] + newest = await store.rows_tagged(ORG, NS, "source-changed", statuses=served, limit=1, ch=ch) + assert [r["memory_key"] for r in newest] == ["b"] + + +@needs_clickhouse +async def test_the_report_runs_its_statements_and_cites_the_hash_a_read_serves( + monkeypatch: pytest.MonkeyPatch, +) -> None: + """The handler over the real statements: a harmed fact and a fact a failed run relied + on are flagged, a conflicted one is not, each write is guarded by the hash `memory.get` + serves and not by the stored column, a high-sensitivity fact is listed without a + write, and the answer holds no text of any value.""" + ch = LocalCH( + *MEMORY, + ddl("audit_log"), + ddl("memory_usage_totals"), + ddl("agent_runs"), + _fact(1, "harmed"), + _fact(2, "disputed", "conflicted"), + _fact(3, "failed"), + _fact(4, "moved", tags=["source-changed"]), + _fact(5, "trial", "proposed", age_days=4), + _fact(6, "secret", sensitivity="high"), + _usage(1, 2), + _usage(2, 4), + _usage(6, 1), + _run("r1", "fail", ["failed", "disputed", "trial"]), + _decision("memory.proposal_reject", 1), + ) + monkeypatch.setattr(store, "_default_client", lambda: ch) + + async def stale_links(org: str, ns: str, *, limit: int) -> list[dict[str, Any]]: + return [_link(3, "failed", "src/app.py", "run")] + + async def revisions_for( + org: str, ns: str, samples: list[dict[str, Any]], *, scope: Any + ) -> dict[Any, dict[str, Any]]: + return await finding_evidence.revisions_for(org, ns, samples, scope=scope, ch=ch) + + monkeypatch.setattr(curator_status, "stale_links", stale_links) + monkeypatch.setattr(curator_status, "revisions_for", revisions_for) + out = await _status() + assert out.proposals is not None and out.flagged is not None and out.stale is not None + assert out.proposals.model_dump() == { + "pending": 1, + "oldest_days": 4, + "filed_7d": 1, + "decided_7d": 1, + "over_scan_cap": False, + "unavailable": "", + } + assert [(i.code, i.memory_id, i.memory_key, i.count) for i in out.flagged.items] == [ + ("harm_reported", _id(1), "harmed", 2), + ("harm_reported", _id(6), "secret", 1), + ("graded_fails", _id(3), "failed", 1), + ] + assert [(i.code, i.memory_id, i.ref) for i in out.stale.items] == [ + ("stale_link", _id(3), "src/app.py::run"), + ("source_changed", _id(4), ""), + ] + served = served_content_sha256(VALUE) + assert served not in {_sha(n) for n in range(1, 7)} + for item in (*out.flagged.items, *out.stale.items): + assert item.title == codes.FINDING_TITLES[item.code] + if item.memory_key == "secret": + assert item.apply is None + continue + assert item.apply is not None + assert item.apply.args == { + "org": ORG, + "memory_id": item.memory_id, + "if_match_sha256": served, + } + assert VALUE not in out.model_dump_json() From dbbca15fe0ae0f82e3ed21c72110ef7a2fd12190 Mon Sep 17 00:00:00 2001 From: Mohammad Lareb Zafar Date: Sat, 5 Dec 2026 04:31:06 +0000 Subject: [PATCH 2/3] The curator.status reads pass the alias lint, skip usage totals with no harm and reuse the status read The failed-key statement drops the empty key where it unrolls the keys of a run, not in WHERE. The alias lint reads a WHERE on the ARRAY JOIN alias `key` as a filter on a column the alias shadows, so the statement failed tests/unit/test_sql_alias_shadow.py. Its result is the same. The harm-report statement groups only the usage totals whose harm count is not zero. A recall, use or evidence event writes a total with no harm, which cannot change the sum, so the result is the same and the statement no longer builds a group for every fact that was recalled. The status of each id with a harm report is read with statuses_by_ids, the read behind memory.statuses. The handler keeps the ids whose status is active. rows_by_id, its statement shape and its assertions are removed. test_every_code_has_a_title runs the handler over a namespace with one finding for each code and compares the listed codes with the title table. It no longer parses the source of the handler. Signed-off-by: Mohammad Lareb Zafar Co-Authored-By: Claude Fable 5.2 --- docs/architecture/curator.md | 7 +- server/memory/app/curator_status.py | 8 ++- server/memory/store/curator.py | 30 ++------- tests/analyzer/cases/planes.py | 1 - tests/analyzer/shapes.txt | 5 +- tests/unit/test_curator_status.py | 99 ++++++++++++++++------------- 6 files changed, 73 insertions(+), 77 deletions(-) diff --git a/docs/architecture/curator.md b/docs/architecture/curator.md index 75f812adbc7..19a35694109 100644 --- a/docs/architecture/curator.md +++ b/docs/architecture/curator.md @@ -46,7 +46,7 @@ Accepted facts, `status = 'active'`. A conflicted fact is not listed: `conflicts 1. The memory ids whose harm reports in `loom.memory_usage_totals` sum to more than zero, most reports first. A report is a `negative` outcome recorded with `memory.outcome`, `memory.outcome_run` or `run.complete`; a retraction (`run.retract_credit`) subtracts it. 2. The keys named in `memories_used` by the runs of `loom.agent_runs` graded `fail`, the key of the most runs first. A run counts once for a key, and a run regraded to `pass` no longer counts. -3. The live accepted rows of those ids and those keys. +3. The current status of each of those ids, by the read `memory.statuses` makes, and the live accepted rows under those keys. The list holds the harm reports first, then the failed runs, cut at `limit`. @@ -96,7 +96,7 @@ A fact that is no longer live when its revision is read is left out, so a list c | ----------------------------- | ---------------------------------------------------------------------------------------------------- | | Harm reports, failed-run keys | 2,000 each (`SCAN_CAP` in `server/memory/store/curator.py`). The statement asks for one row more. | | Rows under the failed keys | 2,000. A key is held once by each agent, user and session that wrote it. | -| Rows of the harmed ids | The ids the harm-report read returned. | +| Statuses of the harmed ids | The ids the harm-report read returned. | | Stale links, tagged rows | `limit` rows each. | | Revisions and hashed values | The facts the lists show, `limit` a list, each value at most `LOOM_NAMESPACE_REPORT_HASH_MAX_BYTES`. | | The whole call | A p99 budget of 1,500 ms (`OP_BUDGETS_P99_MS` in `server/settings/catalog.py`). | @@ -117,7 +117,8 @@ A failed statement fails the call. A repository whose grant could not be read is - `server/memory/api/ops_curator.py` (`curator_status`), `server/memory/api/models_curator.py`: the operation and its wire models. - `server/memory/app/curator_status.py` (`handle_curator_status`): the sections and the findings. -- `server/memory/store/curator.py`: every statement, and `SCAN_CAP`. +- `server/memory/store/curator.py`: the statements of the sections, and `SCAN_CAP`. +- `server/memory/store/reads.py` (`statuses_by_ids`): the current status of each id with a harm report. - `server/memory/domain/curator.py`: the section names, the codes and their titles. - `server/memory/app/code_link_reads.py` (`stale_links`): the stale link read. - `server/memory/app/finding_evidence.py` (`revisions_for`): the live revision and served hash of each fact a list shows. diff --git a/server/memory/app/curator_status.py b/server/memory/app/curator_status.py index 357d610ffd1..4fbc7c626f2 100644 --- a/server/memory/app/curator_status.py +++ b/server/memory/app/curator_status.py @@ -29,6 +29,7 @@ from server.memory.domain.decision_schema import SOURCE_CHANGED_TAG from server.memory.domain.temporal_sql import SERVED_STATUSES from server.memory.store import curator as store +from server.memory.store.reads import statuses_by_ids from server.settings import settings # A flagged fact is an accepted one: served, and not in a conflict, which the conflicts @@ -105,14 +106,15 @@ async def _flagged(org: str, ns: str, limit: int) -> _Section: if max(len(harmed), len(failed)) > cap: return _Section(unavailable=codes.TOO_LARGE) fails = {str(f["memory_key"]): int(f["fails"]) for f in failed} - by_id, by_key = await asyncio.gather( - store.rows_by_id(org, ns, [str(h["id"]) for h in harmed], statuses=_ACCEPTED), + statuses, by_key = await asyncio.gather( + statuses_by_ids(org, ns, [str(h["id"]) for h in harmed], scope=request_scope()), store.rows_by_key(org, ns, list(fails), statuses=_ACCEPTED, limit=cap + 1), ) # A run names a key, and every identity that holds the key holds a fact under it. if len(by_key) > cap: return _Section(unavailable=codes.TOO_LARGE) - accepted = {str(r["id"]) for r in by_id} + # A deleted fact's status reads `deleted`, so it is not an accepted one. + accepted = {s["memory_id"] for s in statuses if s["status"] in _ACCEPTED} listed = [ _Listed(str(h["id"]), codes.HARM_REPORTED, count=int(h["harm"])) for h in harmed diff --git a/server/memory/store/curator.py b/server/memory/store/curator.py index b6afc6a14af..b1af7558ba9 100644 --- a/server/memory/store/curator.py +++ b/server/memory/store/curator.py @@ -43,10 +43,13 @@ """ # `AS id`, not `AS memory_id`: a same-name alias shadows the column the GROUP BY reads. +# Every recall, use and evidence event writes a total with no harm, which cannot change +# the sum: only the totals that hold a report or a retraction are grouped. _HARMED_SQL = """ SELECT toString(memory_id) AS id, sum(harm_count) AS harm FROM loom.memory_usage_totals WHERE org = {org:String} AND namespace = {ns:String} + AND harm_count != 0 GROUP BY memory_id HAVING harm > 0 ORDER BY harm DESC, memory_id @@ -54,18 +57,19 @@ """ # A run counts once for each key it relied on, as `memory.proposals` counts graded runs. +# The empty key is dropped where the keys are unrolled, so the WHERE names no alias. _FAILED_KEYS_SQL = """ SELECT key AS memory_key, count() AS fails FROM loom.agent_runs FINAL - ARRAY JOIN arrayDistinct(memories_used) AS key + ARRAY JOIN arrayFilter(k -> k != '', arrayDistinct(memories_used)) AS key WHERE org = {org:String} AND namespace = {ns:String} - AND grade = 'fail' AND key != '' + AND grade = 'fail' GROUP BY key ORDER BY fails DESC, key LIMIT {lim:UInt32} """ -# `AS id`: an alias named memory_id would shadow the column the WHERE reads. +# `AS id`, not `AS memory_id`: a same-name alias shadows the column in every clause. _ROW = "toString(memory_id) AS id, memory_key" _LIVE = ( "FROM loom.memory FINAL " @@ -121,26 +125,6 @@ async def failed_keys( ) -async def rows_by_id( - org: str, - namespace: str, - ids: Sequence[str], - *, - statuses: Sequence[str], - ch: _CHClient | None = None, -) -> list[dict[str, Any]]: - """The namespace's live rows among `ids` whose status is one of `statuses`: each - with its `id` and `memory_key`.""" - if not ids: - return [] - return await query_all_sliced( - ch or _default_client(), - f"SELECT {_ROW} {_LIVE} AND memory_id IN {{ids:Array(UUID)}}", - {"org": org, "ns": namespace, "statuses": list(statuses), "ids": sorted(set(ids))}, - "ids", - ) - - async def rows_by_key( org: str, namespace: str, diff --git a/tests/analyzer/cases/planes.py b/tests/analyzer/cases/planes.py index 32444bb56d0..4c28f9e76c5 100644 --- a/tests/analyzer/cases/planes.py +++ b/tests/analyzer/cases/planes.py @@ -1118,7 +1118,6 @@ async def _curator_reads(ch: RecordingCH, c: dict[str, Any]) -> None: await store.proposals_decided(ORG, NS, ch=ch) await store.harmed(ORG, NS, limit=20, ch=ch) await store.failed_keys(ORG, NS, limit=20, ch=ch) - await store.rows_by_id(ORG, NS, [_UUID], statuses=("active",), ch=ch) await store.rows_by_key(ORG, NS, ["k1"], statuses=("active",), limit=20, ch=ch) await store.rows_tagged(ORG, NS, "source-changed", statuses=("active",), limit=20, ch=ch) diff --git a/tests/analyzer/shapes.txt b/tests/analyzer/shapes.txt index 6695d86bbde..e2344a084d3 100644 --- a/tests/analyzer/shapes.txt +++ b/tests/analyzer/shapes.txt @@ -74,7 +74,6 @@ 06b297a2e8a7 SELECT src_path, test_path FROM loom.code_test_map FINAL WHERE org = {org:String} AND namespace = {ns:String} AND method = {method:String} AND tombstoned_at IS NULL 06ff2b38df31 SELECT count() AS n FROM loom.agent_runs FINAL WHERE org = {org:String} AND namespace = {ns:String} AND agent = {agent:String} AND grade != ? AND started_at >= now() - INTERVAL {win:UInt32} SECOND 07417011df11 SELECT category_id, count() AS item_count FROM loom.memory_categories FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL GROUP BY category_id -07662fbe2fc5 SELECT toString(memory_id) AS id, memory_key FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL AND status IN {statuses:Array(String)} AND memory_id 0775de50682c SELECT max(updated_at) AS updated_at FROM loom.blacklist_version 079b92892a64 ALTER TABLE loom.documents DELETE WHERE (org = {org:String} AND namespace IN {ns:Array(String)}) AND ({erasure_mutation_tag:String} = {erasure_mutation_tag:String}) SETTINGS mutations_sync = ? 07f0130e01ef SELECT count() AS n FROM ( SELECT evidence_id, tombstoned_at FROM loom.memory_evidence WHERE org = {org:String} AND namespace = {ns:String} AND agent = {agent:String} AND user_id = {uid:String} AND se @@ -244,6 +243,7 @@ 1ccbc41cb8ff SELECT e.memory_key AS memory_key, e.memory_type AS memory_type, e.content_excerpt AS content_excerpt, e.status AS status, e.version AS version, -- The content hash, for the read receipt of a hit this 1cfc6f95dc0f SELECT uniqExact(pr_number) AS fixes, count() AS branch_rows, max(computed_at) AS last_computed, min(computed_at) AS first_computed FROM loom.code_backport_gaps FINAL WHERE org = {org:String} AND code 1d111f0f3599 SELECT count() AS n FROM loom.conversation_embeddings FINAL WHERE org = {org:String} AND user_id = {uid:String} +1d4ef152f425 SELECT toString(memory_id) AS id, sum(harm_count) AS harm FROM loom.memory_usage_totals WHERE org = {org:String} AND namespace = {ns:String} AND harm_count != ? GROUP BY memory_id HAVING harm > ? ORDE 1d56611f4e39 ALTER TABLE loom.blob_uploads DELETE WHERE (org = {org:String} AND namespace = {ns:String}) AND ({erasure_mutation_tag:String} = {erasure_mutation_tag:String}) SETTINGS mutations_sync = ? 1d5aebee9613 SELECT namespace, role, ifNull(status, ?) AS status, pending_role FROM loom.namespace_grants FINAL WHERE org = {org:String} AND subject = {subject:String} AND revoked_at IS NULL 1d6537d88c67 SELECT m.namespace AS namespace, m.agent AS agent, m.user_id AS user_id, m.session_id AS session_id, m.memory_key AS memory_key, m.superseded_by AS superseded_by, s.memory_key AS successor_key, toStri @@ -797,7 +797,6 @@ 5862d4ef7b73 ALTER TABLE loom.session_brief_revisions DELETE WHERE (org = {org:String} AND user_id = {uid:String}) AND ({erasure_mutation_tag:String} = {erasure_mutation_tag:String}) SETTINGS mutations_sync = ? 58683ec08636 SELECT chunk_id, path, scope, kind, start_line, end_line, content, symbol_ids, context_description FROM loom.code_chunks FINAL WHERE org = {org:String} AND namespace = {ns:String} AND embedding_model 586a6ce18c21 SELECT concat(?, toString(c.session_id), ?, toString(c.chunk_index)) AS memory_key, ? AS memory_type, substring(c.content, ?, ?) AS content_excerpt, c.content AS content_full, c.agent AS agent, c.user -586f4d2bc595 SELECT toString(memory_id) AS id, sum(harm_count) AS harm FROM loom.memory_usage_totals WHERE org = {org:String} AND namespace = {ns:String} GROUP BY memory_id HAVING harm > ? ORDER BY harm DESC, memo 58cdc04fc385 SELECT agent, user_id, session_id, embedding_model, summary_text, key_facts, derived_from, valid_at, created_at, version, length(key_facts) AS kf, length(derived_from) AS df, coalesce(valid_at, create 58dd61abeb39 WITH m AS ( SELECT org, namespace, agent, user_id, session_id, memory_key, argMax(status, version) AS ms, argMax(memory_id, version) AS mid FROM loom.memory WHERE org = {org:String} AND namespace = {n 58f4b29e4e3a SELECT org, namespace, policy_id, effect, description, actions, condition, enabled, mode, created_by, created_at, updated_at, tombstoned_at FROM loom.namespace_policies FINAL WHERE org = {org:String} @@ -1192,6 +1191,7 @@ 823744cea1f9 SELECT e.memory_key AS memory_key, e.memory_type AS memory_type, e.content_excerpt AS content_excerpt, e.status AS status, e.version AS version, -- The content hash, for the read receipt of a hit this 824960aa6a71 SELECT DISTINCT path, kind, scope, start_line, end_line FROM loom.code_chunks FINAL WHERE org = {org:String} AND namespace = {ns:String} AND path IN {paths:Array(String)} AND tombstoned_at IS NULL ORD 82554a8768f6 SELECT DISTINCT toString(record_id) AS id FROM (SELECT record_id FROM loom.memory_records WHERE org = {org:String} AND user_id = {uid:String}) +826ea0d91068 SELECT key AS memory_key, count() AS fails FROM loom.agent_runs FINAL ARRAY JOIN arrayFilter(k -> k != ?, arrayDistinct(memories_used)) AS key WHERE org = {org:String} AND namespace = {ns:String} AND 82ab558f7ff1 SELECT * FROM loom.scim_users FINAL WHERE lowerUTF8(user_name) = lowerUTF8({n:String}) AND deleted = ? LIMIT ? 82c613217f47 SELECT DISTINCT org, namespace, agent, user_id, session_id, memory_key FROM loom.memory WHERE tombstoned_at IS NULL AND sensitivity = ? AND (expires_at IS NULL OR expires_at > now()) AND (match(value, 82fff045a9ab SELECT c.session_id AS session_id, c.chunk_index AS chunk_index, c.parent_memory_key AS parent_memory_key, cosineDistance(c.embedding, {q:Array(Float32)}) AS distance FROM loom.memory_chunks AS c WHER @@ -1265,7 +1265,6 @@ 89d751dde263 INSERT INTO loom.memory_records (record_id, org, namespace, schema_id, schema_name, memory_key, memory_id, identity_agent, user_id, session_id, record_json, status, valid_at, valid_to, version, create 89f40a73fa83 SELECT memory_id, org, namespace, agent, user_id, session_id, memory_key, version, value, toString(value_json) AS object_text FROM loom.memory FINAL WHERE tombstoned_at IS NULL AND sensitivity = ? AND 8a1fca063e7f SELECT org, agent, count() AS calls, countIf(if(consumer = ?, args[?], consumer) NOT IN {untagged:Array(String)}) AS tagged, calls - tagged AS untagged, round(tagged / calls, ?) AS tagged_ratio, anyIf -8a27523f69b3 SELECT key AS memory_key, count() AS fails FROM loom.agent_runs FINAL ARRAY JOIN arrayDistinct(memories_used) AS key WHERE org = {org:String} AND namespace = {ns:String} AND grade = ? AND key != ? GRO 8a44f1b04017 SELECT count() AS n FROM loom.entity_triple_rows WHERE org = {org:String} AND namespace IN {ns:Array(String)} AND memory_id NOT IN (SELECT memory_id FROM loom.memory FINAL WHERE org = {org:String} AND 8a5fb93b3273 SELECT agent, user_id, session_id, embedding_model, summary_text, key_facts, derived_from, valid_at, created_at, version, length(key_facts) AS kf, length(derived_from) AS df, coalesce(valid_at, create 8a6b5d3e9731 SELECT p.pr_number AS pr_number, p.merge_commit_sha AS merge_commit_sha, p.pack_tokens AS pack_tokens, p.created_at AS created_at, ifNull(h.title, ?) AS title, ifNull(h.author, ?) AS author, h.merged_ diff --git a/tests/unit/test_curator_status.py b/tests/unit/test_curator_status.py index 90c0467d303..0ba580aba82 100644 --- a/tests/unit/test_curator_status.py +++ b/tests/unit/test_curator_status.py @@ -8,8 +8,6 @@ from __future__ import annotations -import ast -from pathlib import Path from typing import Any import pytest @@ -17,10 +15,15 @@ from server.core.hashing import served_content_sha256 from server.identity.domain.read_scope import WHOLE_NAMESPACE -from server.memory.api.models_curator import CuratorStatusInput, CuratorStatusOutput +from server.memory.api.models_curator import ( + CuratorFinding, + CuratorStatusInput, + CuratorStatusOutput, +) from server.memory.app import curator_status, finding_evidence from server.memory.domain import curator as codes from server.memory.store import curator as store +from server.memory.store import reads from server.operations.registry import OPERATIONS_BY_NAME from tests.unit.clickhouse_local import CLICKHOUSE, LocalCH, ddl, view @@ -38,8 +41,9 @@ def _sha(n: int) -> str: def _row(n: int, key: str, status: str = "active", sha: str | None = None) -> dict[str, Any]: - """A live memory row: what the store's by-id, by-key and tag reads return of it, the - status the fake filters on, and the hash its live revision is cited with.""" + """A memory row: what the store's by-key and tag reads return of it, the status the + status read answers and those reads filter on, and the hash its live revision is + cited with.""" return { "id": _id(n), "memory_key": key, @@ -61,7 +65,7 @@ def _store( links: list[dict[str, Any]] | None = None, ) -> None: """Answer the handler's reads from lists: `harmed` as (row number, reports), `failed` - as (key, failed runs that relied on it), `rows` as the namespace's live rows.""" + as (key, failed runs that relied on it), `rows` as the rows the namespace holds.""" live = rows or [] async def proposal_queue(org: str, ns: str, **_: Any) -> dict[str, int]: @@ -79,10 +83,17 @@ async def harmed_ids(org: str, ns: str, *, limit: int, **_: Any) -> list[dict[st async def failed_keys(org: str, ns: str, *, limit: int, **_: Any) -> list[dict[str, Any]]: return [{"memory_key": key, "fails": n} for key, n in (failed or [])][:limit] - async def rows_by_id( - org: str, ns: str, ids: list[str], *, statuses: tuple[str, ...], **_: Any - ) -> list[dict[str, Any]]: - return [r for r in live if r["id"] in ids and r["status"] in statuses] + async def statuses_by_ids( + org: str, ns: str, ids: list[str], *, scope: Any + ) -> list[dict[str, str]]: + """The status of each id the namespace holds, whatever it is, as the status + read answers.""" + assert scope == WHOLE_NAMESPACE + return [ + {"memory_id": r["id"], "status": r["status"], "superseded_by": ""} + for r in live + if r["id"] in ids + ] async def rows_by_key( org: str, ns: str, keys: list[str], *, statuses: tuple[str, ...], limit: int, **_: Any @@ -120,11 +131,11 @@ async def revisions_for( ("proposals_decided", proposals_decided), ("harmed", harmed_ids), ("failed_keys", failed_keys), - ("rows_by_id", rows_by_id), ("rows_by_key", rows_by_key), ("rows_tagged", rows_tagged), ): monkeypatch.setattr(store, name, fn) + monkeypatch.setattr(curator_status, "statuses_by_ids", statuses_by_ids) monkeypatch.setattr(curator_status, "stale_links", stale_links) monkeypatch.setattr(curator_status, "revisions_for", revisions_for) @@ -288,11 +299,12 @@ async def test_only_accepted_facts_are_flagged_and_limit_cuts_each_section( _row(3, "c", "proposed"), _row(4, "d"), _row(5, "e"), + _row(6, "f", "deleted"), ] _store( monkeypatch, - # Row 9 was deleted since its report: it has no live row. - harmed=[(9, 8), (2, 7), (3, 6), (1, 5), (4, 4)], + # Row 6 was deleted since its report, and the namespace does not hold row 9. + harmed=[(6, 9), (9, 8), (2, 7), (3, 6), (1, 5), (4, 4)], failed=[("e", 2), ("b", 1), ("c", 1)], rows=live, tagged=[live[0], live[1], live[3]], @@ -318,9 +330,9 @@ async def test_only_accepted_facts_are_flagged_and_limit_cuts_each_section( assert [i.memory_key for i in cut.stale.items] == ["e", "a"] -async def test_every_apply_names_a_registered_op_with_its_declared_role( - monkeypatch: pytest.MonkeyPatch, -) -> None: +async def _one_finding_per_code(monkeypatch: pytest.MonkeyPatch) -> list[CuratorFinding]: + """The report's findings for a namespace that holds one fact for each code, in the + order the report lists them: rows 1, 2, 4 and 3.""" live = [_row(1, "a"), _row(2, "b"), _row(3, "c"), _row(4, "d")] _store( monkeypatch, @@ -332,7 +344,13 @@ async def test_every_apply_names_a_registered_op_with_its_declared_role( ) out = await _status() assert out.flagged is not None and out.stale is not None - items = [*out.flagged.items, *out.stale.items] + return [*out.flagged.items, *out.stale.items] + + +async def test_every_apply_names_a_registered_op_with_its_declared_role( + monkeypatch: pytest.MonkeyPatch, +) -> None: + items = await _one_finding_per_code(monkeypatch) assert sorted(i.code for i in items) == sorted(codes.FINDING_TITLES) for n, item in zip((1, 2, 4, 3), items, strict=True): assert item.apply is not None @@ -404,21 +422,13 @@ async def counted( assert asked[1:] == [[]] -def test_every_code_has_a_title() -> None: - """Every code the handler lists a fact under is a key of the domain table, whose words - each surface prints.""" - source = Path(curator_status.__file__).read_text(encoding="utf-8") - given = { - node.args[1].attr - for node in ast.walk(ast.parse(source)) - if isinstance(node, ast.Call) - and isinstance(node.func, ast.Name) - and node.func.id == "_Listed" - and isinstance(node.args[1], ast.Attribute) - } - assert given == {"HARM_REPORTED", "GRADED_FAILS", "STALE_LINK", "SOURCE_CHANGED"} - assert {getattr(codes, name) for name in given} == set(codes.FINDING_TITLES) - assert all(title.strip() for title in codes.FINDING_TITLES.values()) +async def test_every_code_has_a_title(monkeypatch: pytest.MonkeyPatch) -> None: + """The codes the report lists facts under are the keys of the domain table, and each + finding carries its code's words, which every surface prints.""" + items = await _one_finding_per_code(monkeypatch) + assert {i.code for i in items} == set(codes.FINDING_TITLES) + assert all(i.title.strip() for i in items) + assert [i.title for i in items] == [codes.FINDING_TITLES[i.code] for i in items] def test_the_op_is_for_a_namespace_admin_and_is_refused_to_a_narrowed_token() -> None: @@ -570,7 +580,7 @@ async def test_failed_keys_count_the_runs_whose_grade_is_fail_now() -> None: @needs_clickhouse -async def test_rows_are_read_by_id_key_and_tag_inside_the_namespace_and_the_statuses() -> None: +async def test_rows_are_read_by_key_and_tag_inside_the_namespace_and_the_statuses() -> None: ch = LocalCH( ddl("memory"), _fact(1, "a", tags=["source-changed"]), @@ -584,26 +594,21 @@ async def test_rows_are_read_by_id_key_and_tag_inside_the_namespace_and_the_stat _fact(6, "e"), ) accepted, served = ("active",), ("active", "conflicted") - ids = [_id(n) for n in range(1, 7)] def keys(rows: list[dict[str, Any]]) -> list[tuple[str, str]]: return sorted((r["id"], r["memory_key"]) for r in rows) - by_id = await store.rows_by_id(ORG, NS, ids, statuses=accepted, ch=ch) - assert keys(by_id) == [(_id(1), "a"), (_id(2), "a"), (_id(6), "e")] + # Every identity holding the key is one row. + wanted = ["a", "b", "c", "d"] + by_key = await store.rows_by_key(ORG, NS, wanted, statuses=accepted, limit=10, ch=ch) + assert keys(by_key) == [(_id(1), "a"), (_id(2), "a")] # A row is its id and key: the hash a finding cites is read with its live revision. - assert all(set(r) == {"id", "memory_key"} for r in by_id) - assert keys(await store.rows_by_id(ORG, NS, ids, statuses=served, ch=ch)) == [ + assert all(set(r) == {"id", "memory_key"} for r in by_key) + assert keys(await store.rows_by_key(ORG, NS, wanted, statuses=served, limit=10, ch=ch)) == [ (_id(1), "a"), (_id(2), "a"), (_id(3), "b"), - (_id(6), "e"), ] - assert await store.rows_by_id(ORG, NS, [], statuses=served, ch=ch) == [] - # Every identity holding the key is one row. - wanted = ["a", "b", "c", "d"] - by_key = await store.rows_by_key(ORG, NS, wanted, statuses=accepted, limit=10, ch=ch) - assert keys(by_key) == [(_id(1), "a"), (_id(2), "a")] assert len(await store.rows_by_key(ORG, NS, wanted, statuses=accepted, limit=1, ch=ch)) == 1 assert await store.rows_by_key(ORG, NS, [], statuses=accepted, limit=10, ch=ch) == [] tagged = await store.rows_tagged(ORG, NS, "source-changed", statuses=served, limit=10, ch=ch) @@ -642,11 +647,17 @@ async def test_the_report_runs_its_statements_and_cites_the_hash_a_read_serves( async def stale_links(org: str, ns: str, *, limit: int) -> list[dict[str, Any]]: return [_link(3, "failed", "src/app.py", "run")] + async def statuses_by_ids( + org: str, ns: str, ids: list[str], *, scope: Any + ) -> list[dict[str, Any]]: + return await reads.statuses_by_ids(org, ns, ids, scope=scope, ch=ch) + async def revisions_for( org: str, ns: str, samples: list[dict[str, Any]], *, scope: Any ) -> dict[Any, dict[str, Any]]: return await finding_evidence.revisions_for(org, ns, samples, scope=scope, ch=ch) + monkeypatch.setattr(curator_status, "statuses_by_ids", statuses_by_ids) monkeypatch.setattr(curator_status, "stale_links", stale_links) monkeypatch.setattr(curator_status, "revisions_for", revisions_for) out = await _status() From 9330a8105cb9342b59b266fff5325b79f89ec674 Mon Sep 17 00:00:00 2001 From: Mohammad Lareb Zafar Date: Sat, 5 Dec 2026 04:54:50 +0000 Subject: [PATCH 3/3] The curator.status analyzer case says which statements it drives `_curator_reads` drives the seven statements of `server.memory.store.curator`. The other reads of `curator.status` are statements of other modules: the status read of the harmed ids, the stale code links and the citation read. The docstring names them as outside the case. Signed-off-by: Mohammad Lareb Zafar Co-Authored-By: Claude Fable 5.2 --- tests/analyzer/cases/planes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/analyzer/cases/planes.py b/tests/analyzer/cases/planes.py index 4c28f9e76c5..bdc15041044 100644 --- a/tests/analyzer/cases/planes.py +++ b/tests/analyzer/cases/planes.py @@ -1109,8 +1109,8 @@ async def _tune_reads(ch: RecordingCH, c: dict[str, Any]) -> None: async def _curator_reads(ch: RecordingCH, c: dict[str, Any]) -> None: - """Every read `curator.status` makes of the namespace's rows besides the stale code - links, which the code link case renders.""" + """The statements of `server.memory.store.curator`. The status read of the harmed ids, + the stale code links and the citation read are statements of other modules.""" from server.memory.store import curator as store await store.proposal_queue(ORG, NS, ch=ch)