From 864257f424997e5ea25328a240a2a9f7b48b0aa8 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sat, 28 Nov 2026 21:55:59 +0530 Subject: [PATCH 01/15] memory.proposals counts every pending proposal with count_only A badge needs the number, not the rows. count_only answers total from one count() over the pending proposals the caller may read, with prefix and tags applied, past the listing's scan cap and with no value, graded count or policy read. It refuses only=ready, which needs each row's verdict. The generated SDKs, the MCP description and the operation reference carry the field. Signed-off-by: Vanshaj Poonia --- docs/reference/operations/memory.md | 3 +- sdk/python/loom/ops.py | 2 + sdk/ruby/lib/clickhouse/loom/generated/ops.rb | 2 +- sdk/rust/src/wire_models.rs | 11 ++++ sdk/typescript/src/generated/ops.ts | 1 + server/memory/api/models_proposals.py | 14 ++++- server/memory/app/proposals_ops.py | 37 ++++++++--- server/transport/mcp_descriptions.py | 3 +- tests/unit/test_proposals.py | 61 +++++++++++++++++++ 9 files changed, 120 insertions(+), 14 deletions(-) diff --git a/docs/reference/operations/memory.md b/docs/reference/operations/memory.md index d7764f89d92..a652fd0ec8d 100644 --- a/docs/reference/operations/memory.md +++ b/docs/reference/operations/memory.md @@ -1566,11 +1566,12 @@ List facts on trial (written with memory.set proposed=true) with the graded runs | `tags` | `list[str]` | *(computed)* | Only proposals carrying any of these tags; empty = no tag filter. | | `only` | `Literal['', 'ready']` | `''` | `ready` keeps only proposals the policy thresholds would decide now (accept or reject); "" lists every proposal. | | `limit` | `int` | `50` | At most this many proposals returned, newest first. | +| `count_only` | `bool` | `False` | Answer only `total`, the exact number of pending proposals that match prefix and tags, with no proposal, graded count or policy read; default off. | | Output field | Type | Meaning | | --- | --- | --- | | `proposals` | `list[MemoryProposal]` | The proposals in scope, newest first, with graded counts and `ready`. | -| `total` | `int` | Proposals in scope before `only` and `limit`. | +| `total` | `int` | Proposals in scope before `only` and `limit`, up to the scan cap; exact with `count_only`. | | `policy` | `ProposalPolicy` | The namespace's proposal policy: `mode` (manual / auto) and thresholds. | ## `memory.provenance` diff --git a/sdk/python/loom/ops.py b/sdk/python/loom/ops.py index 3d16c65c8b9..439ec019677 100644 --- a/sdk/python/loom/ops.py +++ b/sdk/python/loom/ops.py @@ -15336,6 +15336,7 @@ class MemoryProposalsInput(TypedDict, total=False): tags: NotRequired[list[str]] only: NotRequired[Literal["", "ready"]] limit: NotRequired[int] + count_only: NotRequired[bool] class MemoryProposalsBody(TypedDict, total=False): @@ -15345,6 +15346,7 @@ class MemoryProposalsBody(TypedDict, total=False): tags: NotRequired[list[str]] only: NotRequired[Literal["", "ready"]] limit: NotRequired[int] + count_only: NotRequired[bool] class MemoryProposalsOutput(TypedDict, total=False): diff --git a/sdk/ruby/lib/clickhouse/loom/generated/ops.rb b/sdk/ruby/lib/clickhouse/loom/generated/ops.rb index 78a4a630688..69540d0b846 100644 --- a/sdk/ruby/lib/clickhouse/loom/generated/ops.rb +++ b/sdk/ruby/lib/clickhouse/loom/generated/ops.rb @@ -237,7 +237,7 @@ module Generated "memory.pin" => OpSpec.new("memory.pin", "memory", "pin", true, false, "writer", "experimental", %w[org namespace agent user_id session_id run_id memory_key memory_type value tags entities relations files confidence source_trace source_class source_resource_id ttl_seconds clear_expiry on_expire expire_reason valid_at valid_to pinned classify if_match_sha256 char_limit sensitivity dry_run proposed].freeze, %w[org namespace agent memory_key value].freeze), "memory.promote" => OpSpec.new("memory.promote", "memory", "promote", false, false, "admin", "experimental", %w[org namespace agent user_id session_id memory_key target_key rationale approver reversible_for_days promoted_from_candidate_id approved_sha256].freeze, %w[org namespace agent memory_key].freeze), "memory.proposal_decide" => OpSpec.new("memory.proposal_decide", "memory", "proposal_decide", true, false, "admin", "experimental", %w[org namespace memory_keys decision approved_sha256 reason].freeze, %w[org namespace memory_keys decision].freeze), - "memory.proposals" => OpSpec.new("memory.proposals", "memory", "proposals", true, true, "viewer", "experimental", %w[org namespace prefix tags only limit].freeze, %w[org namespace].freeze), + "memory.proposals" => OpSpec.new("memory.proposals", "memory", "proposals", true, true, "viewer", "experimental", %w[org namespace prefix tags only limit count_only].freeze, %w[org namespace].freeze), "memory.provenance" => OpSpec.new("memory.provenance", "memory", "provenance", true, true, "viewer", "stable", %w[org namespace agent user_id session_id run_id memory_key].freeze, %w[org namespace agent memory_key].freeze), "memory.recall" => OpSpec.new("memory.recall", "memory", "recall", true, true, "viewer", "stable", %w[org namespace agent user_id session_id run_id query since until thread role match order top_k cursor offset max_chars read_scope].freeze, %w[org namespace agent].freeze), "memory.record.conflicts" => OpSpec.new("memory.record.conflicts", "memory", "record_conflicts", true, true, "viewer", "experimental", %w[org namespace schema_name memory_key open_only limit].freeze, %w[org namespace].freeze), diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs index 55d1ac43899..0e959dbff9a 100644 --- a/sdk/rust/src/wire_models.rs +++ b/sdk/rust/src/wire_models.rs @@ -38561,6 +38561,12 @@ pub struct MemoryProposalsInput { deserialize_with = "present_value" )] pub limit: Option, + #[serde( + default, + skip_serializing_if = "Option::is_none", + deserialize_with = "present_value" + )] + pub count_only: Option, } impl Default for MemoryProposalsInput { fn default() -> Self { @@ -38576,6 +38582,7 @@ impl MemoryProposalsInput { tags: None, only: None, limit: None, + count_only: None, } } pub fn org(mut self, org: impl Into) -> Self { @@ -38602,6 +38609,10 @@ impl MemoryProposalsInput { self.limit = Some(limit.into()); self } + pub fn count_only(mut self, count_only: bool) -> Self { + self.count_only = Some(count_only); + self + } pub async fn send( self, client: &crate::Client, diff --git a/sdk/typescript/src/generated/ops.ts b/sdk/typescript/src/generated/ops.ts index 41901ca9ddc..5cd796a1d90 100644 --- a/sdk/typescript/src/generated/ops.ts +++ b/sdk/typescript/src/generated/ops.ts @@ -6817,6 +6817,7 @@ export interface MemoryProposalsInput { tags?: string[]; only?: "" | "ready"; limit?: number; + count_only?: boolean; } export interface MemoryProposal { diff --git a/server/memory/api/models_proposals.py b/server/memory/api/models_proposals.py index 8d574c5521b..b90e7678a88 100644 --- a/server/memory/api/models_proposals.py +++ b/server/memory/api/models_proposals.py @@ -14,7 +14,7 @@ from typing import Literal -from pydantic import BaseModel, Field +from pydantic import BaseModel, Field, model_validator from server.memory.domain.proposal_policy import ProposalPolicy @@ -31,6 +31,15 @@ class MemoryProposalsInput(BaseModel): only: Literal["", "ready"] = "" # At most this many proposals returned, newest first. limit: int = Field(default=50, ge=1, le=500) + # Answer only `total`, the exact number of pending proposals that match prefix and + # tags, with no proposal, graded count or policy read; default off. + count_only: bool = False + + @model_validator(mode="after") + def _count_has_no_verdict(self) -> MemoryProposalsInput: + if self.count_only and self.only: + raise ValueError("count_only counts every pending proposal; leave `only` empty") + return self class MemoryProposal(BaseModel): @@ -61,7 +70,8 @@ class MemoryProposal(BaseModel): class MemoryProposalsOutput(BaseModel): # The proposals in scope, newest first, with graded counts and `ready`. proposals: list[MemoryProposal] = Field(default_factory=list) - # Proposals in scope before `only` and `limit`. + # Proposals in scope before `only` and `limit`, up to the scan cap; exact with + # `count_only`. total: int = 0 # The namespace's proposal policy: `mode` (manual / auto) and thresholds. policy: ProposalPolicy = Field(default_factory=ProposalPolicy) diff --git a/server/memory/app/proposals_ops.py b/server/memory/app/proposals_ops.py index 99155ab4bb4..bbe19ee0879 100644 --- a/server/memory/app/proposals_ops.py +++ b/server/memory/app/proposals_ops.py @@ -22,21 +22,15 @@ log = logging.getLogger(__name__) -async def handle_memory_proposals(input: MemoryProposalsInput) -> MemoryProposalsOutput: - from server.memory.app import proposals as _p - - ch = get_client() +def _pending_filter(input: MemoryProposalsInput) -> tuple[list[str], dict[str, Any]]: + """The pending proposals the caller may read, narrowed by prefix and tags.""" where = [ "org = {org:String}", "namespace = {ns:String}", "tombstoned_at IS NULL", "status = 'proposed'", ] - params: dict[str, Any] = { - "org": input.org, - "ns": input.namespace, - "cap": settings.memory_proposals_scan_cap, - } + params: dict[str, Any] = {"org": input.org, "ns": input.namespace} if input.prefix: where.append("startsWith(memory_key, {p:String})") params["p"] = input.prefix @@ -44,6 +38,31 @@ async def handle_memory_proposals(input: MemoryProposalsInput) -> MemoryProposal where.append("hasAny(tags, {tags:Array(String)})") params["tags"] = list(input.tags) where.extend(scope_where(request_scope(), params)) + return where, params + + +async def _pending_count(ch: Any, input: MemoryProposalsInput) -> int: + """Every pending proposal in scope, past the listing's scan cap, with no value read.""" + where, params = _pending_filter(input) + rows = await ch.query_all( + f""" + SELECT count() AS n + FROM loom.memory FINAL + WHERE {" AND ".join(where)} + """, + params=params, + ) + return int((rows[0] if rows else {}).get("n") or 0) + + +async def handle_memory_proposals(input: MemoryProposalsInput) -> MemoryProposalsOutput: + from server.memory.app import proposals as _p + + ch = get_client() + if input.count_only: + return MemoryProposalsOutput(total=await _pending_count(ch, input)) + where, params = _pending_filter(input) + params["cap"] = settings.memory_proposals_scan_cap rows = await ch.query_all( f""" SELECT memory_key, toString(memory_id) AS mid, content_sha256, agent, memory_type, diff --git a/server/transport/mcp_descriptions.py b/server/transport/mcp_descriptions.py index 0a3abad2cd0..de08488d51f 100644 --- a/server/transport/mcp_descriptions.py +++ b/server/transport/mcp_descriptions.py @@ -913,7 +913,8 @@ def revision_policy(update: str) -> str: "memory.proposals": ( "List facts on trial (written with memory.set proposed=true) with the " "graded runs that relied on each — passes, fails — and what the " - "namespace's proposal policy says (`ready`: accept / reject)." + "namespace's proposal policy says (`ready`: accept / reject). " + "`count_only` answers just how many wait." ), "memory.proposal_decide": ( "Accept (→ active, served by default) or reject a list of proposals. " diff --git a/tests/unit/test_proposals.py b/tests/unit/test_proposals.py index 5235d099796..d721c04b3e6 100644 --- a/tests/unit/test_proposals.py +++ b/tests/unit/test_proposals.py @@ -538,3 +538,64 @@ async def policy(*args, **kwargs): monkeypatch.setattr(p, "policy_for", policy) out = await proposals_ops.handle_memory_proposals(MemoryProposalsInput(org="o", namespace="n")) assert out.proposals[0].content_sha256 == _HASH + + +class _CountingCH: + def __init__(self, n: int = 0) -> None: + self.n = n + self.calls: list[tuple[str, dict[str, Any]]] = [] + + async def query_all(self, sql: str, params: dict[str, Any] | None = None, **_: Any): + self.calls.append((sql, dict(params or {}))) + return [{"n": self.n}] if "count()" in sql else [] + + +async def test_count_only_answers_every_pending_proposal_past_the_scan_cap(monkeypatch): + from server.memory.api.models_proposals import MemoryProposalsInput + from server.memory.app import proposals_ops + from server.settings import settings + + ch = _CountingCH(n=settings.memory_proposals_scan_cap + 500) + + async def no_policy(*args, **kwargs): + raise AssertionError("a count reads no policy") + + monkeypatch.setattr(proposals_ops, "get_client", lambda: ch) + monkeypatch.setattr(p, "policy_for", no_policy) + out = await proposals_ops.handle_memory_proposals( + MemoryProposalsInput(org="o", namespace="n", count_only=True) + ) + assert out.total == settings.memory_proposals_scan_cap + 500 and out.proposals == [] + [(sql, _)] = ch.calls + assert "count()" in sql and "value" not in sql and "LIMIT" not in sql + + +async def test_count_only_counts_what_the_listing_would_list(monkeypatch): + from server.memory.api.models_proposals import MemoryProposalsInput + from server.memory.app import proposals_ops + + ch = _CountingCH() + + async def policy(*args, **kwargs): + return pp.ProposalPolicy() + + monkeypatch.setattr(proposals_ops, "get_client", lambda: ch) + monkeypatch.setattr(p, "policy_for", policy) + narrow = {"org": "o", "namespace": "n", "prefix": "lesson_", "tags": ["deploy"]} + await proposals_ops.handle_memory_proposals(MemoryProposalsInput(**narrow, count_only=True)) + await proposals_ops.handle_memory_proposals(MemoryProposalsInput(**narrow)) + (count_sql, count_params), (list_sql, list_params) = ch.calls[0], ch.calls[1] + + def where(sql: str) -> str: + return sql.split("WHERE", 1)[1].split("ORDER BY")[0].strip() + + list_params.pop("cap") + assert where(count_sql) == where(list_sql) and count_params == list_params + assert count_params["p"] == "lesson_" and count_params["tags"] == ["deploy"] + + +def test_count_only_refuses_a_ready_filter_it_cannot_apply() -> None: + from server.memory.api.models_proposals import MemoryProposalsInput + + with pytest.raises(ValidationError, match="count_only"): + MemoryProposalsInput(org="o", namespace="n", count_only=True, only="ready") From 0f725c635b872db7a823e526971a424ad0bdf05c Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sat, 28 Nov 2026 21:56:05 +0530 Subject: [PATCH 02/15] The Review queue entry stays listed and counts pending proposals The entry is listed for every admin of a memory namespace, so an empty queue or a failed count still leaves it reachable. Its count is the review items waiting, open conflicts plus pending proposals from memory.proposals count_only, and its accessible name gives each kind or says which one could not be counted. The phone's More sheet and the closed Admin button read the same entry. Signed-off-by: Vanshaj Poonia --- frontend/src/App.boot.test.tsx | 10 +++- frontend/src/api.ts | 11 ++++ frontend/src/callBudget.test.tsx | 2 + frontend/src/layout/MobileMore.tsx | 12 +++- frontend/src/layout/Sidebar.test.tsx | 77 ++++++++++++++++++++----- frontend/src/layout/Sidebar.tsx | 86 +++++++++++++++++++--------- frontend/src/lib/state.ts | 6 +- 7 files changed, 159 insertions(+), 45 deletions(-) diff --git a/frontend/src/App.boot.test.tsx b/frontend/src/App.boot.test.tsx index 51294a7a538..bcc49c11fbf 100644 --- a/frontend/src/App.boot.test.tsx +++ b/frontend/src/App.boot.test.tsx @@ -596,7 +596,10 @@ describe("a link's namespace", () => { expect(calls.some((c) => c.body?.namespace === "group-b-shared")).toBe(false); expect( calls.filter((c) => c.path.startsWith("memory.")).map((c) => ({ path: c.path, namespace: c.body?.namespace })), - ).toEqual([{ path: "memory.auto_retirements", namespace: NS }]); + ).toEqual([ + { path: "memory.proposals", namespace: NS }, + { path: "memory.auto_retirements", namespace: NS }, + ]); expect(localStorage.getItem("loom_namespace_v1")).toBe(NS); expect(savedDefault()).toBe(false); // Continue: the page the link asked for, on the namespace the picker shows. @@ -642,7 +645,10 @@ describe("a link's namespace", () => { expect(calls.some((c) => c.body?.namespace === "joined")).toBe(false); expect( calls.filter((c) => c.path.startsWith("memory.")).map((c) => ({ path: c.path, namespace: c.body?.namespace })), - ).toEqual([{ path: "memory.auto_retirements", namespace: NS }]); + ).toEqual([ + { path: "memory.proposals", namespace: NS }, + { path: "memory.auto_retirements", namespace: NS }, + ]); }); it("when the membership read fails, a reload still opens the saved pick: the server answers its reads", async () => { diff --git a/frontend/src/api.ts b/frontend/src/api.ts index 7261bfa9ae3..58fa4ea2aec 100644 --- a/frontend/src/api.ts +++ b/frontend/src/api.ts @@ -1051,6 +1051,17 @@ export async function countConflicts( return r.total ?? 0; } +/** How many proposals wait in a namespace: `memory.proposals` with `count_only`, one count + * over every pending proposal the caller may read, with no row or value. */ +export async function countProposals(id: Pick, opts: RequestOpts = {}): Promise { + const r = await post<{ total?: number | null }>( + "/v1/memory.proposals", + { org: id.org, namespace: id.namespace, count_only: true }, + opts.signal, + ); + return r.total ?? 0; +} + /** The conflicted memory keys of a namespace, for the cards' chips * — the same operation with `keys_only`, one FINAL read of the key columns and no value * column. */ diff --git a/frontend/src/callBudget.test.tsx b/frontend/src/callBudget.test.tsx index aa163f413af..9726ecc3201 100644 --- a/frontend/src/callBudget.test.tsx +++ b/frontend/src/callBudget.test.tsx @@ -188,6 +188,8 @@ const BUDGET: Record JSX.Element; view: View; allow: Rec // The task inbox bell asks for counts once per two minutes. allow: { "/v1/conflicts.list": 1, + // The Review queue's count of pending proposals, beside the open conflicts. + "/v1/memory.proposals": 1, // Fifty retirement records: whether the Review queue's Auto-resolved tab has anything. "/v1/memory.auto_retirements": 1, "/v1/cost.budget_status": 1, diff --git a/frontend/src/layout/MobileMore.tsx b/frontend/src/layout/MobileMore.tsx index c16819a5cad..9ee9d01a53a 100644 --- a/frontend/src/layout/MobileMore.tsx +++ b/frontend/src/layout/MobileMore.tsx @@ -6,7 +6,16 @@ import { canWrite, needsRole, useNamespaceRole } from "../lib/namespaceRole"; import { openNewDialog } from "../lib/newDialogs"; import type { MyNamespaceEntry, WhoAmI } from "../api"; import { useStore, viewHref, type AdminBadges } from "../lib/state"; -import { adminItems, groupAdminItems, NavBadge, RAIL_GROUPS, SETTINGS_ITEM, DOCS_ITEM, type NavItem } from "./Sidebar"; +import { + adminItems, + groupAdminItems, + linkName, + NavBadge, + RAIL_GROUPS, + SETTINGS_ITEM, + DOCS_ITEM, + type NavItem, +} from "./Sidebar"; import { ACTIVE, PRIMARY_IDS } from "./mobileTabs"; // The sheet is generated from the sidebar's own nav arrays rather than a second hand-written @@ -109,6 +118,7 @@ export default function MoreSheet({ onClose }: { onClose: () => void }) { onClose(); }} aria-current={active ? "page" : undefined} + aria-label={m.badgeLabel ? linkName(m) : undefined} className={`flex min-h-11 items-center gap-2 border border-border p-2.5 rounded-sm transition-colors no-underline hover:no-underline text-text ${ active ? `${ACTIVE} font-medium` : "bg-surface-2 hover:bg-surface-3" }`} diff --git a/frontend/src/layout/Sidebar.test.tsx b/frontend/src/layout/Sidebar.test.tsx index 7a04fb2c9f1..08afdfa40a6 100644 --- a/frontend/src/layout/Sidebar.test.tsx +++ b/frontend/src/layout/Sidebar.test.tsx @@ -24,6 +24,7 @@ vi.mock("../api", async (importOriginal) => { return { ...actual, countConflicts: vi.fn(async () => 0), + countProposals: vi.fn(async () => 0), getBudgetStatus: vi.fn(async () => ({ over_cap: false })), countNewAgents: vi.fn(async () => 0), // The badge asks for a number }; @@ -33,7 +34,7 @@ vi.mock("../api/audit", async (importOriginal) => ({ ...(await importOriginal()), hasAutoResolved: vi.fn(async () => false), })); -import { getBudgetStatus, countConflicts, countNewAgents } from "../api"; +import { getBudgetStatus, countConflicts, countNewAgents, countProposals } from "../api"; import { hasAutoResolved } from "../api/audit"; const row = (namespace: string, role: MyNamespaceEntry["role"]): MyNamespaceEntry => ({ @@ -84,6 +85,7 @@ describe("Sidebar admin drawer", () => { // Let any effect that would have polled run. await painted(); expect(countConflicts).not.toHaveBeenCalled(); + expect(countProposals).not.toHaveBeenCalled(); expect(getBudgetStatus).not.toHaveBeenCalled(); expect(countNewAgents).not.toHaveBeenCalled(); expect(hasAutoResolved).not.toHaveBeenCalled(); @@ -176,7 +178,7 @@ describe("Sidebar admin drawer", () => { ); await painted(); expect(screen.getByRole("button", { name: /Admin/ })).toBeInTheDocument(); - expect(screen.queryByRole("link", { name: /Review queue/ })).not.toBeInTheDocument(); + expect(screen.getByRole("link", { name: /Review queue/ })).not.toHaveTextContent(/\d/); expect(countConflicts).toHaveBeenCalledTimes(1); }); @@ -193,14 +195,55 @@ describe("Sidebar admin drawer", () => { expect(screen.getByRole("link", { name: /Review queue/ })).not.toHaveTextContent(/\d/); }); - it("hides the Review queue with no open conflict and no recent auto-resolution", async () => { + // An empty queue stays reachable: the entry is listed with no number. + it("lists the Review queue with nothing pending, with no count", async () => { sessionStorage.clear(); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); useStore.setState({ view: "admin:health" }); render(); await painted(); expect(hasAutoResolved).toHaveBeenCalledTimes(1); - expect(screen.queryByRole("link", { name: /Review queue/ })).not.toBeInTheDocument(); + const review = screen.getByRole("link", { name: "Review queue, 0 conflicts, 0 proposals" }); + expect(review).not.toHaveTextContent(/\d/); + }); + + // The count is the review items waiting: open conflicts plus pending proposals. + it("counts pending proposals with the open conflicts and names each kind", async () => { + sessionStorage.clear(); + vi.mocked(countConflicts).mockResolvedValueOnce(2); + vi.mocked(countProposals).mockResolvedValueOnce(3); + seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); + useStore.setState({ view: "admin:health" }); + render(); + await painted(); + expect(countProposals).toHaveBeenCalledWith({ org: "dev", namespace: "team-a" }); + const review = screen.getByRole("link", { name: "Review queue, 2 conflicts, 3 proposals" }); + expect(review).toHaveTextContent("5"); + }); + + it("shows proposals waiting alone, with no open conflict", async () => { + sessionStorage.clear(); + vi.mocked(countProposals).mockResolvedValueOnce(1); + seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); + useStore.setState({ view: "admin:health" }); + render(); + await painted(); + expect(screen.getByRole("link", { name: "Review queue, 0 conflicts, 1 proposal" })).toHaveTextContent("1"); + }); + + // A count that failed is unknown, never 0: the number covers what was counted and the + // name says which kind is missing. + it("says which kind went uncounted when the proposals count fails", async () => { + sessionStorage.clear(); + vi.mocked(countConflicts).mockResolvedValueOnce(2); + vi.mocked(countProposals).mockRejectedValueOnce(new Error("offline")); + seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); + useStore.setState({ view: "admin:health" }); + render(); + await painted(); + expect(screen.getByRole("link", { name: "Review queue, 2 conflicts, proposals not counted" })).toHaveTextContent( + "2", + ); }); it("is shown for a platform admin regardless of grants, with the Users entry", async () => { @@ -268,13 +311,19 @@ describe("the admin list on every width", () => { it("redraws the open sheet when a new badge answer lands", async () => { seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); - useStore.setState({ adminBadges: { conflicts: 3, autoResolved: false, overCap: false, newAgents: 0 } }); + useStore.setState({ + adminBadges: { conflicts: 3, proposals: 0, autoResolved: false, overCap: false, newAgents: 0 }, + }); render(); await userEvent.setup().click(screen.getByRole("button", { name: "More" })); const sheet = await screen.findByRole("dialog", { name: "More" }); const review = () => within(sheet).getByRole("link", { name: /Review queue/ }); expect(review()).toHaveTextContent("3"); - act(() => useStore.setState({ adminBadges: { conflicts: 5, autoResolved: false, overCap: false, newAgents: 0 } })); + act(() => + useStore.setState({ + adminBadges: { conflicts: 5, proposals: 0, autoResolved: false, overCap: false, newAgents: 0 }, + }), + ); expect(review()).toHaveTextContent("5"); }); @@ -289,9 +338,9 @@ describe("the admin list on every width", () => { const admin = () => within(sheet).getByRole("navigation", { name: "Review" }); expect(within(admin()).getByRole("link", { name: /Review queue/ })).toHaveTextContent("3"); act(() => useStore.setState({ identity: { org: "dev", namespace: "team-b", agent: "loom-ui" } })); - expect(within(admin()).queryByRole("link", { name: /Review queue/ })).toBeNull(); + expect(within(admin()).getByRole("link", { name: /Review queue/ })).not.toHaveTextContent("3"); await painted(); - expect(within(admin()).queryByRole("link", { name: /Review queue/ })).toBeNull(); + expect(within(admin()).getByRole("link", { name: /Review queue/ })).not.toHaveTextContent("3"); }); it("shows no badge from the other org after an org switch", async () => { @@ -302,15 +351,17 @@ describe("the admin list on every width", () => { await painted(); expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("3"); act(() => useStore.setState({ identity: { org: "other", namespace: "team-a", agent: "loom-ui" } })); - expect(screen.queryByRole("link", { name: /Review queue/ })).toBeNull(); + expect(screen.getByRole("link", { name: /Review queue/ })).not.toHaveTextContent("3"); await painted(); expect(countConflicts).toHaveBeenLastCalledWith({ org: "other", namespace: "team-a" }); - expect(screen.queryByRole("link", { name: /Review queue/ })).toBeNull(); + expect(screen.getByRole("link", { name: /Review queue/ })).not.toHaveTextContent("3"); }); it("draws Usage's warning dot and the Agents count on the More sheet", async () => { seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); - useStore.setState({ adminBadges: { conflicts: null, autoResolved: false, overCap: true, newAgents: 2 } }); + useStore.setState({ + adminBadges: { conflicts: null, proposals: null, autoResolved: false, overCap: true, newAgents: 2 }, + }); render(); await userEvent.setup().click(screen.getByRole("button", { name: "More" })); const sheet = await screen.findByRole("dialog", { name: "More" }); @@ -344,7 +395,7 @@ describe("the admin list on every width", () => { render(); expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("3"); await painted(); - expect(screen.queryByRole("link", { name: /Review queue/ })).toBeNull(); + expect(screen.getByRole("link", { name: /conflicts not counted/ })).not.toHaveTextContent(/\d/); }); it("shows the reads' answers together, once the slowest settles", async () => { @@ -355,7 +406,7 @@ describe("the admin list on every width", () => { useStore.setState({ view: "admin:health" }); render(); await painted(); - expect(screen.queryByRole("link", { name: /Review queue/ })).toBeNull(); + expect(screen.getByRole("link", { name: /Review queue/ })).not.toHaveTextContent("3"); await act(async () => settle(2)); expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("3"); expect(screen.getByRole("link", { name: /Agents/ })).toHaveTextContent("2"); diff --git a/frontend/src/layout/Sidebar.tsx b/frontend/src/layout/Sidebar.tsx index 1a3c53b916f..4cf25f4c906 100644 --- a/frontend/src/layout/Sidebar.tsx +++ b/frontend/src/layout/Sidebar.tsx @@ -4,7 +4,7 @@ import { Icon, type IconName } from "@clickhouse/click-ui/Icon"; import { IconButton } from "../components/IconButton"; import { Tip } from "../components/ui/Tooltip"; import { useStore, viewHref, type AdminBadges, type View } from "../lib/state"; -import { countConflicts, countNewAgents, type MyNamespaceEntry, type WhoAmI } from "../api"; +import { countConflicts, countNewAgents, countProposals, type MyNamespaceEntry, type WhoAmI } from "../api"; import { readSession, useAfterPaint, writeSession } from "../lib/afterPaint"; import { sharedBudgetStatus, sharedHasAutoResolved } from "../lib/sharedReads"; import { hasOrgAdminClaim, hasPlatformAdminClaim, isNamespaceAdmin } from "../lib/role"; @@ -34,6 +34,8 @@ export interface NavItem { // differently from a neutral count (review queue). Number >= 999 // collapses to a dot rather than a numeric label. badgeTone?: "default" | "warn" | "accent"; + /** What the badge counts, read out with the entry's name (the number alone says less). */ + badgeLabel?: string; } // The phone's More dialog uses the same destinations so route labels stay in sync. @@ -74,11 +76,8 @@ export const MAIN: NavItem[] = RAIL_GROUPS.flatMap((g) => g.items); export const SETTINGS_ITEM: NavItem = { id: "setup", label: "Settings", icon: "gear", scope: "namespace" }; export const DOCS_ITEM: NavItem = { id: "help", label: "Documentation", icon: "book" }; -// Admin drawer items. Review queue is HIDDEN by default — it's a -// usually-empty surface (conflicts/learnings only appear on -// multi-writer namespaces) and a permanent rail entry advertising -// emptiness is noise. The route stays resolvable for deep links; when there's actually -// something to review the entry slides in automatically via the badge logic below. +// Admin drawer items. Review queue is added by `adminItems` for an admin of a memory +// namespace, so it can be found with nothing pending or after a failed count. // // Badges are layered on at render time by `adminItems` so the // labels can come straight from the const while count / warning @@ -180,17 +179,37 @@ export function adminItems( return { ...item, badge: badges.newAgents, badgeTone: "accent" }; return item; }); - const open = !!badges?.conflicts; - if (!open && !badges?.autoResolved) return items; - // Open conflicts warn with their count; recent auto-resolutions alone use the - // Auto-resolved tab's icon, no number. - const review: NavItem = { + if (!isMemoryNamespace(namespace, mine)) return items; + return [reviewItem(badges), ...items]; +} + +/** The Review queue entry. Its count is the review items waiting, open conflicts plus + * pending proposals, and its name says each kind or that a kind went uncounted. */ +function reviewItem(badges: AdminBadges | null): NavItem { + const conflicts = badges?.conflicts ?? null; + const proposals = badges?.proposals ?? null; + const pending = (conflicts ?? 0) + (proposals ?? 0); + // The icon follows what waits: conflicts warn, proposals ask, recent auto-resolutions + // alone use the Auto-resolved tab's icon. + const icon: IconName = conflicts + ? "warning" + : proposals + ? "question" + : badges?.autoResolved + ? "flash" + : "check-in-circle"; + return { id: "admin:review_queue", label: "Review queue", - icon: open ? "warning" : "flash", - badge: badges?.conflicts || undefined, + icon, + badge: pending || undefined, + badgeLabel: badges ? `${countOf(conflicts, "conflict")}, ${countOf(proposals, "proposal")}` : undefined, }; - return [review, ...items]; +} + +function countOf(n: number | null, kind: string): string { + if (n === null) return `${kind}s not counted`; + return `${n} ${n === 1 ? kind : `${kind}s`}`; } export function Sidebar() { @@ -219,15 +238,15 @@ export function Sidebar() { // fails; polling on "unknown" would fire conflicts.list + cost.budget_status every 30 s // into AUTH_INSUFFICIENT. Unknown does not poll. const roleHere = roleOnNamespace(whoami, myNamespaces, identity?.namespace ?? ""); - // The badges count conflicts, budget and agents of the memory plane; a code index or a - // tracker namespace has none, so its admin is not polled for them either. + // The badges count conflicts, proposals, budget and agents of the memory plane; a code + // index or a tracker namespace has none, so its admin is not polled for them either. const pollsBadges = roleHere === "admin" && isMemoryNamespace(identity?.namespace ?? "", myNamespaces); const visibleAdmin = adminItems(whoami, myNamespaces, identity?.namespace ?? "", badges); - const conflicts = visibleAdmin.find((item) => item.id === "admin:review_queue")?.badge; + const review = visibleAdmin.find((item) => item.id === "admin:review_queue"); - // Fetch conflict count + recent auto-resolutions + budget + agents activity on identity - // change and refresh every 60s. All four are fail-quiet — a missing + // Fetch conflict and proposal counts + recent auto-resolutions + budget + agents activity on + // identity change and refresh every 60s. All five are fail-quiet — a missing // backend op just leaves its badge hidden. Only for a known admin of this // namespace: otherwise a viewer-only token draws AUTH_INSUFFICIENT 403s on every page // load, and a token-only principal through the fail-open gate. Each call also passes @@ -249,7 +268,7 @@ export function Sidebar() { let cancelled = false; const fetch_ = async () => { const tasks: Promise[] = []; - const next: AdminBadges = { conflicts: null, autoResolved: false, overCap: false, newAgents: 0 }; + const next: AdminBadges = { conflicts: null, proposals: null, autoResolved: false, overCap: false, newAgents: 0 }; if (canCall("conflicts.list", roleHere, whoami)) { tasks.push( // The badge asks for the number, not 100 rows with their values (33 MB per tick @@ -263,6 +282,18 @@ export function Sidebar() { }), ); } + if (canCall("memory.proposals", roleHere, whoami)) { + tasks.push( + // One count over every pending proposal in scope, past the listing's scan cap. + countProposals({ org: identity.org, namespace: identity.namespace }) + .then((n) => { + next.proposals = n; + }) + .catch(() => { + /* unknown: the entry says so */ + }), + ); + } // The Review queue shows the Auto-resolved tab only to a role that reaches both. if (canCall("memory.auto_retirements", roleHere, whoami) && canCall("audit.list", roleHere, whoami)) { tasks.push( @@ -405,11 +436,11 @@ export function Sidebar() { Admin - {!!conflicts && !adminOpen && ( + {!!review?.badge && !adminOpen && ( - , {conflicts} open conflicts + , review queue: {review.badgeLabel} )} @@ -528,7 +559,7 @@ function NavBtn({ onActivate(); }} className={`${NAV_ITEM} ${collapsed ? "justify-center px-2!" : "justify-between"}`} - aria-label={collapsed ? collapsedName(item) : undefined} + aria-label={collapsed || item.badgeLabel ? linkName(item) : undefined} aria-current={active ? "page" : undefined} aria-describedby={hint ? hintId : undefined} > @@ -556,9 +587,10 @@ function NavBtn({ ); } -/** A collapsed item's name: its label, and its badge's count, which the name would - * otherwise hide. */ -function collapsedName(item: NavItem): string { +/** An item's name with what its badge counts, which a collapsed rail or a bare number + * would otherwise hide. */ +export function linkName(item: NavItem): string { + if (item.badgeLabel) return `${item.label}, ${item.badgeLabel}`; if (!item.badge) return item.label; return item.badge >= 999 ? `${item.label}, attention required` : `${item.label}, ${item.badge}`; } diff --git a/frontend/src/lib/state.ts b/frontend/src/lib/state.ts index ae0ddbde0f8..f4e53e18f70 100644 --- a/frontend/src/lib/state.ts +++ b/frontend/src/lib/state.ts @@ -350,10 +350,12 @@ export function pathnameView(): View | null { * sign-in link brought that it refused is "refused"; a first visit carries null. */ export type GateReason = "expired" | "ended" | "refused" | null; -/** One namespace's admin badge answer: its open conflicts, whether Loom retired a memory - * on its own lately, whether it is over its LLM cap, and the agents new in the last 24 h. */ +/** One namespace's admin badge answer: its open conflicts and pending proposals (null when + * that count is unknown), whether Loom retired a memory on its own lately, whether it is + * over its LLM cap, and the agents new in the last 24 h. */ export interface AdminBadges { conflicts: number | null; + proposals: number | null; autoResolved: boolean; overCap: boolean; newAgents: number; From 59b782dff1cc616e9791d0ab4f9dab77da884e82 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sat, 28 Nov 2026 21:56:06 +0530 Subject: [PATCH 03/15] The Review queue opens on Proposals when only proposals wait With proposals pending and no open conflict, the queue starts on its Proposals tab, and a tab the person picks stays until the namespace changes. A decision lowers the sidebar's proposal count at once instead of at its next read. The dashboard guide describes the entry and its count. Signed-off-by: Vanshaj Poonia --- docs/features/dashboard.md | 12 ++++--- frontend/src/views/admin/Proposals.test.tsx | 16 +++++++++ frontend/src/views/admin/Proposals.tsx | 9 ++++- frontend/src/views/admin/ReviewQueue.test.tsx | 35 ++++++++++++++++++- frontend/src/views/admin/ReviewQueue.tsx | 12 ++++++- 5 files changed, 76 insertions(+), 8 deletions(-) diff --git a/docs/features/dashboard.md b/docs/features/dashboard.md index 8d0e99ce2a4..c200acb0403 100644 --- a/docs/features/dashboard.md +++ b/docs/features/dashboard.md @@ -447,7 +447,7 @@ entry that would answer 403. | Group | Page | URL | What it is for | | ------- | ---------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Review | **Review queue** | `/admin/review_queue` | Conflicts (pairs of memories that disagree, each with a suggested decision on request, except a sensitive one), learnings proposed for promotion, memories Loom retired on its own (Auto-resolved, each with an Undo), exceptions (the allowlist of pairs that may coexist), proposals (facts on trial, accepted or rejected), and duplicate memories and documents with the namespace-wide repairs. Shown in the drawer only while a conflict waits or Loom retired a memory in the last 30 days; the URL always resolves. See [conflicts and refusal](memory/conflicts-and-refusal.md). | +| Review | **Review queue** | `/admin/review_queue` | Conflicts (pairs of memories that disagree, each with a suggested decision on request, except a sensitive one), learnings proposed for promotion, memories Loom retired on its own (Auto-resolved, each with an Undo), exceptions (the allowlist of pairs that may coexist), proposals (facts on trial, accepted or rejected), and duplicate memories and documents with the namespace-wide repairs. In the drawer for every admin of a memory namespace, even when empty; it counts open conflicts plus pending proposals. See [conflicts and refusal](memory/conflicts-and-refusal.md). | | Review | **Guardrails** | `/admin/guardrails` | Blacklist patterns: content Loom should never store, each with a sweep that deletes the stored memories it already matches; for an org admin, the org's and the namespace's extraction rules and the org's model-call switch. | | Review | **Policies** | `/admin/policies` | History policy rules, a dry run of a hypothetical call, and the decision ledger. | | Observe | **Health** | `/admin/health` | Worker status and how agents in the namespace spend their calls; the namespace's memory report, search gates and recent extractions; an admin's repairs (apply expiry, re-embed, remove an extractor's facts, roll back, snapshot and restore); an org admin's projection failures, retried or dismissed. | @@ -457,10 +457,12 @@ entry that would answer 403. | Observe | **Agents** | `/admin/agents` | Which clients connected in a window (`agents.connected`); confirms a new MCP connection works. A namespace admin can forget every memory one agent holds there. | | Access | **Users** | `/admin/users` | Org and platform admins only: every subject, their grants (namespaces, collections and repositories) and roles, last activity, and releasing a namespace whose owner lost their password. | -The Admin button shows the number of open conflicts while its drawer is closed. The -Review queue appears with its conflict count, or with no count when Loom retired a memory on its -own in the last 30 days (the Auto-resolved tab), Usage warns when the namespace is over -its 24-hour cap, Agents counts clients new in the last 24 hours. The header carries a task +The Admin button shows the Review queue's count while its drawer is closed. That count is the +review items waiting: open conflicts plus pending proposals (`memory.proposals` with +`count_only`, every proposal past the listing's scan cap). The entry's accessible name gives +each kind, or says a kind could not be counted, and with proposals waiting and no open conflict +the queue opens on Proposals. Usage warns when the namespace is over its 24-hour cap, Agents +counts clients new in the last 24 hours. The header carries a task bell (triage and blocked-on-person items) and a pending-approvals bell (grant requests the person can decide). The phone's More sheet lists the same admin entries with the same badges; a badge whose read fails is hidden. diff --git a/frontend/src/views/admin/Proposals.test.tsx b/frontend/src/views/admin/Proposals.test.tsx index df4ce4313ba..0a5cec3840f 100644 --- a/frontend/src/views/admin/Proposals.test.tsx +++ b/frontend/src/views/admin/Proposals.test.tsx @@ -159,6 +159,22 @@ describe("ProposalsPanel", () => { await waitFor(() => expect(api.listProposals).toHaveBeenCalledTimes(2)); }); + it("lowers the sidebar's proposal count as soon as a decision lands", async () => { + vi.mocked(api.decideProposals).mockResolvedValueOnce({ + decided: 1, + results: [{ memory_key: "deploy_window", decided: true, status: "rejected", reason: "" }], + }); + vi.mocked(api.listProposals).mockResolvedValue({ proposals: [], total: 0 }); + useStore.setState({ + adminBadges: { conflicts: 0, proposals: 3, autoResolved: false, overCap: false, newAgents: 0 }, + }); + await show([P]); + await userEvent.click(screen.getByRole("button", { name: "Actions for deploy_window" })); + await userEvent.click(await screen.findByRole("menuitem", { name: "Reject" })); + await waitFor(() => expect(useStore.getState().adminBadges?.proposals).toBe(2)); + useStore.setState({ adminBadges: null }); + }); + it("offers no decision on a key two agents proposed, shows a high one as sensitive, and says the list is cut", async () => { const other = { ...P, memory_id: "m2", agent: "cursor", value_preview: "", sensitivity: "high" as const }; const lone = { ...P, memory_id: "m3", memory_key: "standup_time" }; diff --git a/frontend/src/views/admin/Proposals.tsx b/frontend/src/views/admin/Proposals.tsx index 3436479a0ca..282ff2a9fe1 100644 --- a/frontend/src/views/admin/Proposals.tsx +++ b/frontend/src/views/admin/Proposals.tsx @@ -3,7 +3,7 @@ import { Badge } from "@clickhouse/click-ui/Badge"; import { Button } from "@clickhouse/click-ui/Button"; import { Table } from "@clickhouse/click-ui/Table"; import { decideProposals, getMemoryById, listProposals, type MemoryProposal, type MemoryById } from "../../api"; -import { useIdentity, useStore } from "../../lib/state"; +import { useIdentity, useStore, type AdminBadges } from "../../lib/state"; import { useNamespaceRoleRead } from "../../lib/namespaceRole"; import { callReason } from "../../lib/callReason"; import { useAbortableEffect } from "../../lib/hooks"; @@ -103,6 +103,8 @@ export function ProposalsPanel() { [key]: approvedHash, }); const result = r.results[0]; + // The sidebar's count drops now, not at its next read. + if (r.decided > 0) useStore.setState((s) => ({ adminBadges: lessProposals(s.adminBadges, r.decided) })); if (r.decided === 0) // Not a proposal any more: decided by the policy or by someone else first. toast(`Not decided: ${result.reason || "it is no longer a proposal"}`, "info"); @@ -251,3 +253,8 @@ export function ProposalsPanel() { ); } + +function lessProposals(badges: AdminBadges | null, decided: number): AdminBadges | null { + if (badges?.proposals == null) return badges; + return { ...badges, proposals: Math.max(badges.proposals - decided, 0) }; +} diff --git a/frontend/src/views/admin/ReviewQueue.test.tsx b/frontend/src/views/admin/ReviewQueue.test.tsx index e5cc8c49168..283fc00b22f 100644 --- a/frontend/src/views/admin/ReviewQueue.test.tsx +++ b/frontend/src/views/admin/ReviewQueue.test.tsx @@ -206,7 +206,40 @@ describe("ReviewQueue", () => { }); afterEach(() => { cleanup(); - useStore.setState({ whoami: null, myNamespaces: null }); + useStore.setState({ whoami: null, myNamespaces: null, adminBadges: null }); + }); + + // The sidebar's last count says what waits: proposals with no open conflict open the + // page on Proposals, and a tab the person picks stays when the count changes. + it("opens on Proposals when proposals wait and no conflict does", async () => { + vi.mocked(listConflicts).mockResolvedValue({ rows: [], next_before_version: null }); + vi.mocked(listProposals).mockResolvedValue({ proposals: [], total: 0 }); + seed("ns-a", "admin"); + useStore.setState({ + adminBadges: { conflicts: 0, proposals: 2, autoResolved: false, overCap: false, newAgents: 0 }, + }); + const user = userEvent.setup(); + render(); + const tab = (name: RegExp) => screen.getByRole("tab", { name }); + await waitFor(() => expect(tab(/Proposals/)).toHaveAttribute("aria-selected", "true"), WAIT); + await user.click(tab(/Conflicts/)); + act(() => { + useStore.setState({ + adminBadges: { conflicts: 0, proposals: 1, autoResolved: false, overCap: false, newAgents: 0 }, + }); + }); + expect(tab(/Conflicts/)).toHaveAttribute("aria-selected", "true"); + }); + + it("opens on Conflicts while a conflict is open, whatever else waits", async () => { + vi.mocked(listConflicts).mockResolvedValue({ rows: [conflict("city")], next_before_version: null }); + seed("ns-a", "admin"); + useStore.setState({ + adminBadges: { conflicts: 1, proposals: 2, autoResolved: false, overCap: false, newAgents: 0 }, + }); + render(); + await screen.findByText("value of city", {}, WAIT); + expect(screen.getByRole("tab", { name: /Conflicts/ })).toHaveAttribute("aria-selected", "true"); }); it("shows Duplicates to every role, read for an admin only; Proposals to a reader; none read for an unknown role", async () => { diff --git a/frontend/src/views/admin/ReviewQueue.tsx b/frontend/src/views/admin/ReviewQueue.tsx index 39821e00ad5..084e5966575 100644 --- a/frontend/src/views/admin/ReviewQueue.tsx +++ b/frontend/src/views/admin/ReviewQueue.tsx @@ -121,7 +121,12 @@ export function ReviewQueue() { // Shown to every role; one that cannot read them sees what it needs, and nothing is read. // No probe: the tab reads when it opens, so the page costs no read for them. const proposalsReason = callReason("memory.proposals", queueRole, whoami, identity.namespace); - const [tab, setTab] = useState("conflicts"); + // With proposals waiting and no open conflict (the sidebar's last count), the page starts + // on Proposals; a tab the person picked stays until the namespace changes. + const badges = useStore((s) => s.adminBadges); + const startTab: QueueTab = badges?.conflicts === 0 && (badges.proposals ?? 0) > 0 ? "proposals" : "conflicts"; + const [tab, setTab] = useState(startTab); + const picked = useRef(false); // A tab that is no longer offered (its probe found nothing, or its access went) hands the // page back to Conflicts. const offered: Record = { @@ -147,6 +152,7 @@ export function ReviewQueue() { setSeedsUsed({ learnings: false, exceptions: false }); // A namespace switch starts from Conflicts: the previous namespace's probes (and a tab // they revealed) must not outlive it. + picked.current = false; setTab("conflicts"); setAutoOpened(false); listLearnings({ org: identity.org, namespace: identity.namespace }, "pending", LEARNINGS_READ, { signal }) @@ -166,6 +172,9 @@ export function ReviewQueue() { }, [identity.org, identity.namespace], ); + useEffect(() => { + if (!picked.current) setTab(startTab); + }, [startTab, scopeKey]); useAbortableEffect( (_signal, live) => { setProbedAuto(null); @@ -198,6 +207,7 @@ export function ReviewQueue() { { + picked.current = true; setTab(t as QueueTab); if (t === "auto") setAutoOpened(true); }} From cd66ec8bc857e39cafe504e8cf06d507f3582d41 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sun, 29 Nov 2026 06:36:32 +0530 Subject: [PATCH 04/15] The analyzer corpus drives the memory.proposals count and its filtered listing apart Signed-off-by: Vanshaj Poonia --- tests/analyzer/cases/planes.py | 21 +++++++++++++++++++++ tests/analyzer/shapes.txt | 2 ++ 2 files changed, 23 insertions(+) diff --git a/tests/analyzer/cases/planes.py b/tests/analyzer/cases/planes.py index a0814de3a3f..8a3e811275f 100644 --- a/tests/analyzer/cases/planes.py +++ b/tests/analyzer/cases/planes.py @@ -1106,6 +1106,18 @@ async def _tune_reads(ch: RecordingCH, c: dict[str, Any]) -> None: _ORG_ROLLUPS = frozenset({"cost", "learnings", "audit", "agents"}) +async def _proposals(ch: RecordingCH, c: dict[str, Any]) -> None: + """`memory.proposals` lists or counts, each with and without its prefix and tags: the + handlers case fills `count_only`, which leaves the filtered listing undriven.""" + from server.memory.api.models_proposals import MemoryProposalsInput + from server.memory.app.proposals_ops import handle_memory_proposals + + filters: dict[str, Any] = {"prefix": "k", "tags": ["billing"]} if c["filters"] else {} + await handle_memory_proposals( + MemoryProposalsInput(org=ORG, namespace=NS, count_only=c["count_only"], **filters) + ) + + async def _definition_draft_reads(ch: RecordingCH, c: dict[str, Any]) -> None: from server.knowledge.store import gaps, query_history from server.memory.store import learnings @@ -1148,6 +1160,15 @@ def cases() -> list[Case]: rows=_HANDLER_ROWS, ) ) + out.append( + Case( + "memory_proposals", + "server.memory.app.proposals_ops", + _proposals, + {"count_only": (False, True), "filters": (False, True)}, + rows=_HANDLER_ROWS, + ) + ) out.append( Case( "definition_draft_reads", diff --git a/tests/analyzer/shapes.txt b/tests/analyzer/shapes.txt index 7ed24eebe3f..f6744e4dbfe 100644 --- a/tests/analyzer/shapes.txt +++ b/tests/analyzer/shapes.txt @@ -1557,6 +1557,7 @@ afdcda2bf23a SELECT count() AS n FROM loom.memory_ask_precedents WHERE org = {or aff1e632ca9c 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, e.agent AS agent, e.user_id AS user_id, e.session_id AS b0198f2a1337 SELECT uniqExact(path) AS n FROM loom.code_chunks FINAL WHERE org = {org:String} AND namespace = {ns:String} AND embedding_model = {model:String} AND tombstoned_at IS NULL AND startsWith(path, {prefix b062ee2ddb58 SELECT toString(r.record_id) AS record_id FROM loom.memory_records AS r FINAL WHERE r.org = {org:String} AND r.namespace = {ns:String} AND r.schema_name = {schema:String} AND r.status = ? AND r.tombst +b07bc2344da4 SELECT count() AS n FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL AND status = ? b0b2f5049b7f SELECT count() AS n FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND status != ? AND tombstoned_at IS NULL AND agent = {agent:String} AND user_id = {uid:String} AND sess b0eeab7a67c1 SELECT org, namespace, agent, user_id, session_id, memory_key, embedding_model, length(embedding) AS vector_len FROM loom.memory_embeddings FINAL WHERE tombstoned_at IS NULL AND embedding_dim = ? AND b0fbecd9222a SELECT memory_id, org, namespace, agent, user_id, session_id, memory_key, memory_type, if(length(toString(value_json)) > ?, toString(value_json), value) AS value, -- The stored bytes, for version rows @@ -1792,6 +1793,7 @@ c892414a0cf3 SELECT role, granted_by, status, pending_role, pending_since FROM l c8ce735d214f SELECT count() AS n FROM loom.memory_embeddings FINAL WHERE org = {org:String} AND tombstoned_at IS NULL AND namespace IN {ns:Array(String)} c8e4a254b959 SELECT count() AS n FROM loom.conversation_threads FINAL WHERE org = {org:String} AND tombstoned_at IS NULL AND user_id = {uid:String} c901eadb5f4f SELECT status AS was FROM loom.memory_versions WHERE org = {org:String} AND namespace = {ns:String} AND agent = {a:String} AND user_id = {u:String} AND session_id = {s:String} AND memory_key = {k:Stri +c91d7e14d509 SELECT count() AS n FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL AND status = ? AND startsWith(memory_key, {p:String}) AND hasAny(tags, {tags:A c924a3001167 SELECT memory_id, version, confidence, source_trace, pinned, created_at, updated_at, expires_at, tombstoned_at, redacted_at, redaction_reason, actor, source_class, agent, status, conflict_with, tags, c92bf0b39a95 SELECT chunk_index, content, embedding_dim FROM loom.memory_chunks FINAL WHERE org = {org:String} AND namespace = {namespace:String} AND session_id = {session_id:String} AND chunk_index BETWEEN {first c95045c50e46 SELECT count() AS n FROM loom.code_answers WHERE org = {org:String} AND (namespace = {ns:String} OR memory_namespace = {ns:String}) From 88f59e42edcea98b3681aea40835a4c5734c3e94 Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sun, 29 Nov 2026 06:36:37 +0530 Subject: [PATCH 05/15] conflicts.list with count_only also counts the pending proposals, from the same read Signed-off-by: Vanshaj Poonia --- docs/reference/operations/conflicts.md | 3 +- sdk/python/loom/ops.py | 1 + sdk/rust/src/wire_models.rs | 6449 ++++++++++---------- sdk/rust/tests/registry_contracts.rs | 5 + sdk/typescript/src/generated/ops.ts | 1 + server/memory/api/models_conflicts.py | 6 +- server/memory/app/conflicts_ops.py | 36 +- server/memory/app/proposals_ops.py | 3 + server/memory/store/conflicts.py | 21 +- tests/analyzer/cases/planes.py | 1 + tests/analyzer/shapes.txt | 1 + tests/unit/test_badge_reads.py | 71 +- tests/unit/test_conflicts_resolve_scope.py | 11 +- tests/unit/test_read_scope_admission.py | 16 +- 14 files changed, 3346 insertions(+), 3279 deletions(-) diff --git a/docs/reference/operations/conflicts.md b/docs/reference/operations/conflicts.md index 25d369595f6..90a5610443b 100644 --- a/docs/reference/operations/conflicts.md +++ b/docs/reference/operations/conflicts.md @@ -55,7 +55,7 @@ List unresolved conflicts where two memories contradict each other. | `namespace` | `str` | required | The namespace the op reads or writes. | | `limit` | `int` | `50` | At most this many rows, 1-500, newest version first. | | `before_version` | `int \| None` | `None` | Keyset cursor — pass previous response's earliest version to paginate. | -| `count_only` | `bool` | `False` | A badge needs the number, not the rows. | +| `count_only` | `bool` | `False` | A badge needs the numbers, not the rows. | | `fresh` | `bool` | `False` | With count_only, count now instead of reading the minute-long cache; default off. | | `keys_only` | `bool` | `False` | The Memories view marks cards that have a conflict and needs only the keys. | | `fields` | `list[str] \| None` | `None` | The output fields the caller reads (a whitelist resolved against the row model; an unknown name is a 422); unset, every field. | @@ -65,6 +65,7 @@ List unresolved conflicts where two memories contradict each other. | `rows` | `list[_ConflictRow]` | Conflicted memories, newest version first; empty on a `count_only` or `keys_only` call. | | `next_before_version` | `int \| None` | Pass as `before_version` for the next page; null on the last page. | | `total` | `int \| None` | The live conflicted count for the namespace; set on a count_only call. | +| `proposals` | `int \| None` | The pending proposals in the same scope, from the same read; set on a count_only call. | | `keys` | `list[str] \| None` | The conflicted memory keys of the namespace; set on a keys_only call. | ## `conflicts.propose_revision` diff --git a/sdk/python/loom/ops.py b/sdk/python/loom/ops.py index 2d2ce710aef..2de6cb04fa9 100644 --- a/sdk/python/loom/ops.py +++ b/sdk/python/loom/ops.py @@ -8528,6 +8528,7 @@ class ConflictsListOutput(TypedDict, total=False): rows: Required[list["ConflictRow"]] next_before_version: NotRequired[Optional[int]] total: NotRequired[Optional[int]] + proposals: NotRequired[Optional[int]] keys: NotRequired[Optional[list[str]]] diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs index 51d1d0fe621..5d37468a60a 100644 --- a/sdk/rust/src/wire_models.rs +++ b/sdk/rust/src/wire_models.rs @@ -16856,6 +16856,8 @@ pub struct ConflictsListOutput { #[serde(default = "default_870")] pub total: Option, #[serde(default = "default_871")] + pub proposals: Option, + #[serde(default = "default_872")] pub keys: Option>, } @@ -17007,7 +17009,7 @@ pub struct ConflictRevisionSuggestion { pub target_local_id: Integer, pub peer_local_ids: Vec, pub rationale: String, - #[serde(default = "default_873")] + #[serde(default = "default_874")] pub apply_operation: String, } @@ -17015,11 +17017,11 @@ pub struct ConflictRevisionSuggestion { #[non_exhaustive] pub struct ConflictsProposeRevisionOutput { pub found: bool, - #[serde(default = "default_872")] + #[serde(default = "default_873")] pub memories: Vec, - #[serde(default = "default_874")] - pub suggestions: Vec, #[serde(default = "default_875")] + pub suggestions: Vec, + #[serde(default = "default_876")] pub note: String, } @@ -17099,9 +17101,9 @@ pub struct ConflictsResolveOutput { pub resolved: bool, pub decision: ConflictsResolveOutputDecision, pub affected_memory_ids: Vec, - #[serde(default = "default_876")] - pub resolved_at: Option, #[serde(default = "default_877")] + pub resolved_at: Option, + #[serde(default = "default_878")] pub total: Option, } @@ -17258,9 +17260,9 @@ pub enum ConnectionEntryKind { pub struct ConnectionEntry { pub kind: ConnectionEntryKind, pub connected: bool, - #[serde(default = "default_878")] - pub account_email: Option, #[serde(default = "default_879")] + pub account_email: Option, + #[serde(default = "default_880")] pub scopes: Vec, pub connect_url: String, } @@ -17435,23 +17437,23 @@ impl ConsolidationsListInput { pub struct ContextFetchOutput { pub found: bool, pub blob_key: String, - #[serde(default = "default_880")] - pub content: String, #[serde(default = "default_881")] - pub content_type: String, + pub content: String, #[serde(default = "default_882")] - pub summary: String, + pub content_type: String, #[serde(default = "default_883")] - pub total_chars: Integer, + pub summary: String, #[serde(default = "default_884")] - pub total_lines: Integer, + pub total_chars: Integer, #[serde(default = "default_885")] - pub offset: Integer, + pub total_lines: Integer, #[serde(default = "default_886")] - pub next_offset: Integer, + pub offset: Integer, #[serde(default = "default_887")] - pub matched_lines: Integer, + pub next_offset: Integer, #[serde(default = "default_888")] + pub matched_lines: Integer, + #[serde(default = "default_889")] pub expires_at: Option, } @@ -17745,9 +17747,9 @@ pub enum ConversationAppendOutputReason { pub struct ConversationAppendOutput { pub msg_id: String, pub ts: String, - #[serde(default = "default_889")] - pub stored: bool, #[serde(default = "default_890")] + pub stored: bool, + #[serde(default = "default_891")] pub reason: ConversationAppendOutputReason, } @@ -17896,13 +17898,13 @@ impl ConversationAppendInput { pub struct ConversationCompactOutput { pub compacted: bool, pub messages_summarized: Integer, - #[serde(default = "default_891")] - pub summary_msg_id: String, #[serde(default = "default_892")] - pub tokens_in: Integer, + pub summary_msg_id: String, #[serde(default = "default_893")] - pub tokens_out: Integer, + pub tokens_in: Integer, #[serde(default = "default_894")] + pub tokens_out: Integer, + #[serde(default = "default_895")] pub reason: String, } @@ -18166,7 +18168,7 @@ pub enum ConversationEntryRole { #[non_exhaustive] pub struct ConversationEntry { pub msg_id: String, - #[serde(default = "default_903")] + #[serde(default = "default_904")] pub agent: String, pub role: ConversationEntryRole, pub content: String, @@ -18183,25 +18185,25 @@ pub struct ConversationEntry { pub struct ConversationGetOutput { pub found: bool, pub thread_id: String, - #[serde(default = "default_895")] - pub title: String, #[serde(default = "default_896")] - pub metadata: std::collections::HashMap, + pub title: String, #[serde(default = "default_897")] - pub run_id: String, + pub metadata: std::collections::HashMap, #[serde(default = "default_898")] - pub user_id: String, + pub run_id: String, #[serde(default = "default_899")] - pub agent: String, + pub user_id: String, #[serde(default = "default_900")] - pub created_at: Option, + pub agent: String, #[serde(default = "default_901")] - pub updated_at: Option, + pub created_at: Option, #[serde(default = "default_902")] + pub updated_at: Option, + #[serde(default = "default_903")] pub msg_count: Integer, - #[serde(default = "default_904")] - pub messages: Vec, #[serde(default = "default_905")] + pub messages: Vec, + #[serde(default = "default_906")] pub next_cursor: Option, } @@ -18315,7 +18317,7 @@ impl ConversationGetInput { #[non_exhaustive] pub struct ConversationListOutput { pub rows: Vec, - #[serde(default = "default_906")] + #[serde(default = "default_907")] pub next_cursor: Option, } @@ -18461,7 +18463,7 @@ pub struct SavedMessageHit { #[non_exhaustive] pub struct ConversationListSavedMessagesOutput { pub rows: Vec, - #[serde(default = "default_907")] + #[serde(default = "default_908")] pub next_cursor: Option, } @@ -18601,7 +18603,7 @@ pub struct ConversationSaveMessageOutput { pub conversation_id: String, pub message_id: String, pub indexed: bool, - #[serde(default = "default_908")] + #[serde(default = "default_909")] pub reason: ConversationSaveMessageOutputReason, pub ts: String, } @@ -18774,7 +18776,7 @@ pub struct ConversationHit { pub role: ConversationHitRole, pub content_excerpt: String, pub ts: String, - #[serde(default = "default_909")] + #[serde(default = "default_910")] pub namespace: String, } @@ -18782,7 +18784,7 @@ pub struct ConversationHit { #[non_exhaustive] pub struct ConversationSearchOutput { pub hits: Vec, - #[serde(default = "default_910")] + #[serde(default = "default_911")] pub namespaces_skipped: Vec, } @@ -19315,7 +19317,7 @@ pub struct ConversationUnsaveMessageOutput { pub conversation_id: String, pub message_id: String, pub found: bool, - #[serde(default = "default_911")] + #[serde(default = "default_912")] pub removed: bool, pub ts: String, } @@ -19388,7 +19390,7 @@ impl ConversationUnsaveMessageInput { pub struct ConversationUpdateOutput { pub updated: bool, pub thread_id: String, - #[serde(default = "default_912")] + #[serde(default = "default_913")] pub updated_at: Option, } @@ -19493,17 +19495,17 @@ impl ConversationUpdateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CostAgentSummaryRow { - #[serde(default = "default_913")] - pub namespace: Option, #[serde(default = "default_914")] - pub agent: Option, + pub namespace: Option, #[serde(default = "default_915")] - pub day: Option, + pub agent: Option, #[serde(default = "default_916")] - pub model: Option, + pub day: Option, #[serde(default = "default_917")] - pub consumer: Option, + pub model: Option, #[serde(default = "default_918")] + pub consumer: Option, + #[serde(default = "default_919")] pub session_id: Option, pub turns: Integer, pub sessions: Integer, @@ -19652,18 +19654,18 @@ pub enum BudgetStatusOutputCapSource { #[non_exhaustive] pub struct BudgetStatusOutput { pub namespace: String, - #[serde(default = "default_919")] + #[serde(default = "default_920")] pub user_id: Option, #[serde(deserialize_with = "required_nullable")] pub spent_24h_usd: Option, pub cap_usd: f64, pub cap_source: BudgetStatusOutputCapSource, pub over_cap: bool, - #[serde(default = "default_920")] - pub namespace_over_cap: Option, #[serde(default = "default_921")] - pub pct_of_cap: Option, + pub namespace_over_cap: Option, #[serde(default = "default_922")] + pub pct_of_cap: Option, + #[serde(default = "default_923")] pub namespaces_with_spend: Integer, } @@ -19736,11 +19738,11 @@ impl BudgetStatusInput { pub struct CostRecordTurnsOutput { pub recorded: Integer, pub priced: Integer, - #[serde(default = "default_923")] - pub unpriced_models: Vec, #[serde(default = "default_924")] - pub cost_usd: f64, + pub unpriced_models: Vec, #[serde(default = "default_925")] + pub cost_usd: f64, + #[serde(default = "default_926")] pub turns_dated_ahead: Integer, } @@ -19911,25 +19913,25 @@ impl CostRecordTurnsInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct CostSummaryRow { - #[serde(default = "default_926")] - pub namespace: Option, #[serde(default = "default_927")] - pub agent: Option, + pub namespace: Option, #[serde(default = "default_928")] - pub day: Option, + pub agent: Option, #[serde(default = "default_929")] - pub operation: Option, + pub day: Option, #[serde(default = "default_930")] - pub memory_key: Option, + pub operation: Option, #[serde(default = "default_931")] - pub user_id: Option, + pub memory_key: Option, #[serde(default = "default_932")] - pub model: Option, + pub user_id: Option, #[serde(default = "default_933")] - pub traffic_class: Option, + pub model: Option, #[serde(default = "default_934")] - pub instance_label: Option, + pub traffic_class: Option, #[serde(default = "default_935")] + pub instance_label: Option, + #[serde(default = "default_936")] pub build_commit: Option, pub ops: Integer, pub errors: Integer, @@ -19939,9 +19941,9 @@ pub struct CostSummaryRow { pub latency_p50_ms: f64, pub latency_p95_ms: f64, pub latency_p99_ms: f64, - #[serde(default = "default_936")] - pub cache_hits: Integer, #[serde(default = "default_937")] + pub cache_hits: Integer, + #[serde(default = "default_938")] pub cache_saved_usd: f64, } @@ -19952,9 +19954,9 @@ pub struct CostSummaryOutput { pub total_ops: Integer, pub total_errors: Integer, pub total_cost_usd: f64, - #[serde(default = "default_938")] - pub cache_hits: Integer, #[serde(default = "default_939")] + pub cache_hits: Integer, + #[serde(default = "default_940")] pub cache_saved_usd: f64, } @@ -20141,31 +20143,31 @@ pub enum DecisionRowStage { #[non_exhaustive] pub struct DecisionRow { pub memory_key: String, - #[serde(default = "default_940")] - pub category: String, #[serde(default = "default_941")] - pub scenario: String, + pub category: String, #[serde(default = "default_942")] - pub reasoning: String, + pub scenario: String, #[serde(default = "default_943")] - pub outcome: String, + pub reasoning: String, #[serde(default = "default_944")] - pub alternatives: Vec, + pub outcome: String, #[serde(default = "default_945")] - pub confidence: Option, + pub alternatives: Vec, #[serde(default = "default_946")] - pub decision_maker: String, + pub confidence: Option, #[serde(default = "default_947")] - pub run_id: String, + pub decision_maker: String, #[serde(default = "default_948")] - pub realized_outcome: String, + pub run_id: String, #[serde(default = "default_949")] - pub success: Option, + pub realized_outcome: String, #[serde(default = "default_950")] - pub made_at: String, + pub success: Option, #[serde(default = "default_951")] - pub stage: DecisionRowStage, + pub made_at: String, #[serde(default = "default_952")] + pub stage: DecisionRowStage, + #[serde(default = "default_953")] pub similarity: f64, } @@ -20177,7 +20179,7 @@ pub struct ChainNodeRow { pub relation: String, pub direction: String, pub via: String, - #[serde(default = "default_954")] + #[serde(default = "default_955")] pub decision: Option, } @@ -20185,7 +20187,7 @@ pub struct ChainNodeRow { #[non_exhaustive] pub struct DecisionChainOutput { pub seed: String, - #[serde(default = "default_953")] + #[serde(default = "default_954")] pub seed_decision: Option, pub nodes: Vec, } @@ -20270,7 +20272,7 @@ impl DecisionChainInput { pub struct DecisionOutcomeOutput { pub memory_key: String, pub updated: bool, - #[serde(default = "default_955")] + #[serde(default = "default_956")] pub memories_credited: Integer, } @@ -20348,7 +20350,7 @@ impl DecisionOutcomeInput { #[non_exhaustive] pub struct DecisionPrecedentsOutput { pub precedents: Vec, - #[serde(default = "default_956")] + #[serde(default = "default_957")] pub embedding_model: String, } @@ -20443,11 +20445,11 @@ impl DecisionPrecedentsInput { pub struct DecisionRecordOutput { pub memory_key: String, pub record_id: String, - #[serde(default = "default_957")] - pub superseded_prior: bool, #[serde(default = "default_958")] - pub edges_written: Integer, + pub superseded_prior: bool, #[serde(default = "default_959")] + pub edges_written: Integer, + #[serde(default = "default_960")] pub next: String, } @@ -20723,7 +20725,7 @@ pub enum ErasureExportOutputScopeType { pub struct ErasureExportSection { pub rows: Vec>, pub count: Integer, - #[serde(default = "default_960")] + #[serde(default = "default_961")] pub truncated: bool, } @@ -20836,17 +20838,17 @@ pub struct ErasureListRow { pub requester: String, pub status: ErasureListRowStatus, pub requested_at: String, - #[serde(default = "default_961")] - pub completed_at: Option, #[serde(default = "default_962")] - pub failure_reason: String, + pub completed_at: Option, #[serde(default = "default_963")] - pub steps_completed_count: Integer, + pub failure_reason: String, #[serde(default = "default_964")] - pub reversals_count: Integer, + pub steps_completed_count: Integer, #[serde(default = "default_965")] - pub residue_count: Integer, + pub reversals_count: Integer, #[serde(default = "default_966")] + pub residue_count: Integer, + #[serde(default = "default_967")] pub verified_at: Option, } @@ -20943,7 +20945,7 @@ pub enum ErasureRequestOutputStatus { pub struct ErasureStepResult { pub step: String, pub rows_affected: Integer, - #[serde(default = "default_967")] + #[serde(default = "default_968")] pub notes: String, } @@ -20954,21 +20956,21 @@ pub struct ErasureRequestOutput { pub status: ErasureRequestOutputStatus, pub steps: Vec, pub requested_at: String, - #[serde(default = "default_968")] - pub completed_at: Option, #[serde(default = "default_969")] - pub residue_count: Integer, + pub completed_at: Option, #[serde(default = "default_970")] - pub residue: std::collections::HashMap, + pub residue_count: Integer, #[serde(default = "default_971")] - pub verified_at: Option, + pub residue: std::collections::HashMap, #[serde(default = "default_972")] - pub census: Option>, + pub verified_at: Option, #[serde(default = "default_973")] - pub purge: bool, + pub census: Option>, #[serde(default = "default_974")] - pub failure_reason: String, + pub purge: bool, #[serde(default = "default_975")] + pub failure_reason: String, + #[serde(default = "default_976")] pub steps_completed: Vec, } @@ -21080,33 +21082,33 @@ pub enum ErasureStatusOutputStatus { pub struct ErasureStatusOutput { pub found: bool, pub erasure_id: String, - #[serde(default = "default_976")] - pub org: Option, #[serde(default = "default_977")] - pub scope_type: Option, + pub org: Option, #[serde(default = "default_978")] - pub scope_value: Option, + pub scope_type: Option, #[serde(default = "default_979")] - pub requester: Option, + pub scope_value: Option, #[serde(default = "default_980")] - pub status: Option, + pub requester: Option, #[serde(default = "default_981")] - pub current_step: Option, + pub status: Option, #[serde(default = "default_982")] - pub requested_at: Option, + pub current_step: Option, #[serde(default = "default_983")] - pub completed_at: Option, + pub requested_at: Option, #[serde(default = "default_984")] - pub failure_reason: Option, + pub completed_at: Option, #[serde(default = "default_985")] - pub residue_count: Integer, + pub failure_reason: Option, #[serde(default = "default_986")] - pub residue: std::collections::HashMap, + pub residue_count: Integer, #[serde(default = "default_987")] - pub verified_at: Option, + pub residue: std::collections::HashMap, #[serde(default = "default_988")] - pub census: Option>, + pub verified_at: Option, #[serde(default = "default_989")] + pub census: Option>, + #[serde(default = "default_990")] pub purge: bool, } @@ -21143,9 +21145,9 @@ pub enum ExtractionPolicyOutputScope { #[non_exhaustive] pub struct NamespacePolicy { pub namespace: String, - #[serde(default = "default_995")] - pub updated_by: String, #[serde(default = "default_996")] + pub updated_by: String, + #[serde(default = "default_997")] pub updated_at: Option, } @@ -21154,17 +21156,17 @@ pub struct NamespacePolicy { pub struct ExtractionPolicyOutput { pub org: String, pub scope: ExtractionPolicyOutputScope, - #[serde(default = "default_990")] - pub namespace: String, #[serde(default = "default_991")] - pub policy: String, + pub namespace: String, #[serde(default = "default_992")] - pub updated_by: String, + pub policy: String, #[serde(default = "default_993")] - pub updated_at: Option, + pub updated_by: String, #[serde(default = "default_994")] + pub updated_at: Option, + #[serde(default = "default_995")] pub effective: String, - #[serde(default = "default_997")] + #[serde(default = "default_998")] pub namespace_policies: Vec, } @@ -21398,13 +21400,13 @@ pub struct FactRow { pub object: String, pub co_occur: Integer, pub last_seen: String, - #[serde(default = "default_998")] - pub provenance: String, #[serde(default = "default_999")] - pub source_keys: Vec, + pub provenance: String, #[serde(default = "default_1000")] - pub sources: Vec, + pub source_keys: Vec, #[serde(default = "default_1001")] + pub sources: Vec, + #[serde(default = "default_1002")] pub stale: bool, } @@ -21412,7 +21414,7 @@ pub struct FactRow { #[non_exhaustive] pub struct FactsListOutput { pub rows: Vec, - #[serde(default = "default_1002")] + #[serde(default = "default_1003")] pub truncated: bool, } @@ -21631,14 +21633,14 @@ impl FactsListInput { pub struct PathEdge { pub entity_a: String, pub entity_b: String, - #[serde(default = "default_1003")] - pub relation: String, #[serde(default = "default_1004")] + pub relation: String, + #[serde(default = "default_1005")] pub direction: String, pub co_occur: Integer, - #[serde(default = "default_1005")] - pub valid_from: Option, #[serde(default = "default_1006")] + pub valid_from: Option, + #[serde(default = "default_1007")] pub valid_to: Option, } @@ -21869,23 +21871,23 @@ pub struct TraversalNode { pub hop: Integer, pub cumulative_weight: f64, pub via_co_occur: Integer, - #[serde(default = "default_1008")] - pub hub: bool, #[serde(default = "default_1009")] - pub degree: Integer, + pub hub: bool, #[serde(default = "default_1010")] - pub via_relation: String, + pub degree: Integer, #[serde(default = "default_1011")] - pub via_direction: String, + pub via_relation: String, #[serde(default = "default_1012")] - pub via_provenance: String, + pub via_direction: String, #[serde(default = "default_1013")] - pub valid_from: String, + pub via_provenance: String, #[serde(default = "default_1014")] - pub valid_to: String, + pub valid_from: String, #[serde(default = "default_1015")] - pub community_id: Option, + pub valid_to: String, #[serde(default = "default_1016")] + pub community_id: Option, + #[serde(default = "default_1017")] pub path: Vec, } @@ -21893,12 +21895,12 @@ pub struct TraversalNode { #[non_exhaustive] pub struct FactsTraverseOutput { pub seed: String, - #[serde(default = "default_1007")] + #[serde(default = "default_1008")] pub seed_community_id: Option, pub nodes: Vec, - #[serde(default = "default_1017")] - pub truncated: bool, #[serde(default = "default_1018")] + pub truncated: bool, + #[serde(default = "default_1019")] pub hubs: Vec, } @@ -22107,7 +22109,7 @@ pub struct GrantsApproveOutput { pub subject: String, pub namespace: String, pub decision: GrantsApproveOutputDecision, - #[serde(default = "default_1019")] + #[serde(default = "default_1020")] pub role: Option, pub decided_at: String, } @@ -22386,9 +22388,9 @@ pub struct GrantEntry { #[non_exhaustive] pub struct GrantsListOutput { pub rows: Vec, - #[serde(default = "default_1020")] - pub next_cursor: Option, #[serde(default = "default_1021")] + pub next_cursor: Option, + #[serde(default = "default_1022")] pub truncated: bool, } @@ -22504,12 +22506,12 @@ pub enum PendingForMeEntryRequestedRole { #[non_exhaustive] pub struct PendingForMeEntry { pub namespace: String, - #[serde(default = "default_1022")] + #[serde(default = "default_1023")] pub kind: String, pub subject: String, pub current_role: PendingForMeEntryCurrentRole, pub requested_role: PendingForMeEntryRequestedRole, - #[serde(default = "default_1023")] + #[serde(default = "default_1024")] pub pending_since: Option, } @@ -22568,7 +22570,7 @@ impl GrantsPendingForMeInput { #[non_exhaustive] pub struct GrantsRevokeOutput { pub revoked: bool, - #[serde(default = "default_1024")] + #[serde(default = "default_1025")] pub revoked_at: Option, } @@ -22698,7 +22700,7 @@ impl GrantsShareAgentInput { #[non_exhaustive] pub struct GrantsUnshareAgentOutput { pub revoked: bool, - #[serde(default = "default_1025")] + #[serde(default = "default_1026")] pub revoked_at: Option, } @@ -22758,7 +22760,7 @@ pub enum HelpGetOutputAudience { pub struct HelpOutlineEntry { pub section: String, pub anchor: String, - #[serde(default = "default_1033")] + #[serde(default = "default_1034")] pub heading: String, } @@ -22768,21 +22770,21 @@ pub struct HelpGetOutput { pub available: bool, pub found: bool, pub path: String, - #[serde(default = "default_1026")] - pub title: String, #[serde(default = "default_1027")] - pub section: String, + pub title: String, #[serde(default = "default_1028")] - pub anchor: String, + pub section: String, #[serde(default = "default_1029")] - pub audience: HelpGetOutputAudience, + pub anchor: String, #[serde(default = "default_1030")] - pub text: String, + pub audience: HelpGetOutputAudience, #[serde(default = "default_1031")] - pub truncated: bool, + pub text: String, #[serde(default = "default_1032")] + pub truncated: bool, + #[serde(default = "default_1033")] pub next_offset: Integer, - #[serde(default = "default_1034")] + #[serde(default = "default_1035")] pub sections: Vec, } @@ -22927,21 +22929,21 @@ pub struct InboxPayload { pub inbox: String, pub owner_agent: String, pub owner_namespace: String, - #[serde(default = "default_1035")] - pub description: String, #[serde(default = "default_1036")] - pub posters: Vec, + pub description: String, #[serde(default = "default_1037")] + pub posters: Vec, + #[serde(default = "default_1038")] 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_1038")] - pub webhook_url: String, #[serde(default = "default_1039")] - pub created_by: String, + pub webhook_url: String, #[serde(default = "default_1040")] + pub created_by: String, + #[serde(default = "default_1041")] pub owner_subject: String, pub created_at: String, pub updated_at: String, @@ -23051,9 +23053,9 @@ pub struct PolicyPayload { pub poster: String, pub kind: String, pub mode: PolicyPayloadMode, - #[serde(default = "default_1041")] - pub require_evidence: Vec, #[serde(default = "default_1042")] + pub require_evidence: Vec, + #[serde(default = "default_1043")] pub set_by: String, pub set_at: String, pub version: Integer, @@ -23123,7 +23125,7 @@ impl InboxPolicyListInput { pub struct InboxPolicySetOutput { #[serde(deserialize_with = "required_nullable")] pub policy: Option, - #[serde(default = "default_1043")] + #[serde(default = "default_1044")] pub removed: bool, } @@ -23252,15 +23254,15 @@ pub struct Principal { pub subject: String, pub label: String, pub kind: PrincipalKind, - #[serde(default = "default_1044")] - pub namespaces: Vec, #[serde(default = "default_1045")] - pub roles: Vec, + pub namespaces: Vec, #[serde(default = "default_1046")] - pub last_seen: Option, + pub roles: Vec, #[serde(default = "default_1047")] - pub can_already_post: bool, + pub last_seen: Option, #[serde(default = "default_1048")] + pub can_already_post: bool, + #[serde(default = "default_1049")] pub listed: bool, } @@ -23622,15 +23624,15 @@ pub struct AnalysisColumn { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InsightsQueryOutput { - #[serde(default = "default_1049")] - pub columns: Vec, #[serde(default = "default_1050")] - pub rows: Vec>, + pub columns: Vec, #[serde(default = "default_1051")] - pub row_count: Integer, + pub rows: Vec>, #[serde(default = "default_1052")] - pub truncated: bool, + pub row_count: Integer, #[serde(default = "default_1053")] + pub truncated: bool, + #[serde(default = "default_1054")] pub sql_digest: String, } @@ -23929,32 +23931,32 @@ pub struct DatasetOut { pub dataset_id: String, pub source_uri: String, pub name: String, - #[serde(default = "default_1054")] - pub sheet: String, #[serde(default = "default_1055")] - pub row_start: Integer, + pub sheet: String, #[serde(default = "default_1056")] + pub row_start: Integer, + #[serde(default = "default_1057")] pub row_end: Integer, pub revision: Integer, pub snapshot_id: String, pub schema_state: String, pub columns: Vec, - #[serde(default = "default_1057")] + #[serde(default = "default_1058")] pub clarifications: Vec, pub row_count: Integer, - #[serde(default = "default_1058")] - pub rejected_rows: Integer, #[serde(default = "default_1059")] - pub rejected: Vec, + pub rejected_rows: Integer, #[serde(default = "default_1060")] - pub complete: bool, + pub rejected: Vec, #[serde(default = "default_1061")] - pub approved_by: String, + pub complete: bool, #[serde(default = "default_1062")] - pub approved_at: Option, + pub approved_by: String, #[serde(default = "default_1063")] - pub created_at: Option, + pub approved_at: Option, #[serde(default = "default_1064")] + pub created_at: Option, + #[serde(default = "default_1065")] pub rows: Vec>, } @@ -23962,9 +23964,9 @@ pub struct DatasetOut { #[non_exhaustive] pub struct KnowledgeDatasetApproveOutput { pub found: bool, - #[serde(default = "default_1065")] - pub dataset: Option, #[serde(default = "default_1066")] + pub dataset: Option, + #[serde(default = "default_1067")] pub retyped: bool, } @@ -24058,9 +24060,9 @@ impl KnowledgeDatasetApproveInput { #[non_exhaustive] pub struct KnowledgeDatasetGetOutput { pub found: bool, - #[serde(default = "default_1067")] - pub revision: Integer, #[serde(default = "default_1068")] + pub revision: Integer, + #[serde(default = "default_1069")] pub datasets: Vec, } @@ -24133,7 +24135,7 @@ impl KnowledgeDatasetGetInput { pub struct KnowledgeDocCluster { pub content_sha256: String, pub doc_count: Integer, - #[serde(default = "default_1069")] + #[serde(default = "default_1070")] pub docs: Vec>, } @@ -24143,16 +24145,16 @@ pub struct KnowledgeChunkCluster { pub content_sha256: String, pub chunk_count: Integer, pub uri_count: Integer, - #[serde(default = "default_1071")] + #[serde(default = "default_1072")] pub samples: Vec>, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeDedupListOutput { - #[serde(default = "default_1070")] + #[serde(default = "default_1071")] pub doc_clusters: Vec, - #[serde(default = "default_1072")] + #[serde(default = "default_1073")] pub chunk_clusters: Vec, } @@ -24229,7 +24231,7 @@ pub struct KnowledgeDedupResolveOutput { pub canonical_uri: String, pub duplicate_uri: String, pub decision: String, - #[serde(default = "default_1073")] + #[serde(default = "default_1074")] pub superseded_uri: String, } @@ -24348,24 +24350,24 @@ impl KnowledgeDeleteInput { #[non_exhaustive] pub struct KnowledgeFormat { pub format: String, - #[serde(default = "default_1074")] - pub extensions: Vec, #[serde(default = "default_1075")] - pub media_types: Vec, + pub extensions: Vec, #[serde(default = "default_1076")] + pub media_types: Vec, + #[serde(default = "default_1077")] pub available: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeFormatsOutput { - #[serde(default = "default_1077")] - pub formats: Vec, #[serde(default = "default_1078")] - pub max_upload_bytes: Integer, + pub formats: Vec, #[serde(default = "default_1079")] - pub refused_extensions: Vec, + pub max_upload_bytes: Integer, #[serde(default = "default_1080")] + pub refused_extensions: Vec, + #[serde(default = "default_1081")] pub default_format: String, } @@ -24467,7 +24469,7 @@ impl KnowledgeGapsDraftInput { pub struct KnowledgeGap { pub gap_id: String, pub head: String, - #[serde(default = "default_1081")] + #[serde(default = "default_1082")] pub samples: Vec, pub askers: Integer, pub asks: Integer, @@ -24477,13 +24479,13 @@ pub struct KnowledgeGap { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeGapsListOutput { - #[serde(default = "default_1082")] - pub gaps: Vec, #[serde(default = "default_1083")] - pub built_at: Option, + pub gaps: Vec, #[serde(default = "default_1084")] - pub capturing: Option, + pub built_at: Option, #[serde(default = "default_1085")] + pub capturing: Option, + #[serde(default = "default_1086")] pub enabled: bool, } @@ -24549,7 +24551,7 @@ pub struct KnowledgeIngestOutput { pub ingestion_id: String, pub state: String, pub source_uri: String, - #[serde(default = "default_1086")] + #[serde(default = "default_1087")] pub namespace: String, } @@ -24768,9 +24770,9 @@ impl KnowledgeIngestInput { #[non_exhaustive] pub struct KnowledgeIngestCancelOutput { pub found: bool, - #[serde(default = "default_1087")] - pub state: String, #[serde(default = "default_1088")] + pub state: String, + #[serde(default = "default_1089")] pub cancelled: bool, } @@ -24821,39 +24823,39 @@ impl KnowledgeIngestCancelInput { pub struct KnowledgeIngestStatusOutput { pub found: bool, pub ingestion_id: String, - #[serde(default = "default_1089")] - pub source_uri: String, #[serde(default = "default_1090")] - pub state: String, + pub source_uri: String, #[serde(default = "default_1091")] - pub stage: String, + pub state: String, #[serde(default = "default_1092")] - pub attempts: Integer, + pub stage: String, #[serde(default = "default_1093")] - pub error_code: String, + pub attempts: Integer, #[serde(default = "default_1094")] - pub error_message: String, + pub error_code: String, #[serde(default = "default_1095")] - pub format: String, + pub error_message: String, #[serde(default = "default_1096")] - pub coverage: Option>, + pub format: String, #[serde(default = "default_1097")] - pub warnings: Vec, + pub coverage: Option>, #[serde(default = "default_1098")] - pub chunks: Integer, + pub warnings: Vec, #[serde(default = "default_1099")] - pub revision: Integer, + pub chunks: Integer, #[serde(default = "default_1100")] - pub expected_revision: Option, + pub revision: Integer, #[serde(default = "default_1101")] - pub filename: String, + pub expected_revision: Option, #[serde(default = "default_1102")] - pub retrieval: String, + pub filename: String, #[serde(default = "default_1103")] - pub cancel_requested: bool, + pub retrieval: String, #[serde(default = "default_1104")] - pub created_at: Option, + pub cancel_requested: bool, #[serde(default = "default_1105")] + pub created_at: Option, + #[serde(default = "default_1106")] pub updated_at: Option, } @@ -24910,21 +24912,21 @@ pub struct DocumentCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct DocumentTotals { - #[serde(default = "default_1106")] - pub live: Option, #[serde(default = "default_1107")] - pub deleted: Option, + pub live: Option, #[serde(default = "default_1108")] - pub newest_ingested_at: Option, + pub deleted: Option, #[serde(default = "default_1109")] - pub by_format: Vec, + pub newest_ingested_at: Option, #[serde(default = "default_1110")] - pub by_source_scheme: Vec, + pub by_format: Vec, #[serde(default = "default_1111")] - pub earlier_revisions: Option, + pub by_source_scheme: Vec, #[serde(default = "default_1112")] - pub unnumbered: Option, + pub earlier_revisions: Option, #[serde(default = "default_1113")] + pub unnumbered: Option, + #[serde(default = "default_1114")] pub retired_versions: Option, } @@ -24939,15 +24941,15 @@ pub struct ChunkModelCount { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ChunkTotals { - #[serde(default = "default_1114")] - pub embedder_model: String, #[serde(default = "default_1115")] - pub live: Option, + pub embedder_model: String, #[serde(default = "default_1116")] - pub searchable: Option, + pub live: Option, #[serde(default = "default_1117")] - pub unembedded: Option, + pub searchable: Option, #[serde(default = "default_1118")] + pub unembedded: Option, + #[serde(default = "default_1119")] pub by_model: Vec, } @@ -24972,9 +24974,9 @@ pub struct DocumentDecisions { #[non_exhaustive] pub struct DecisionTotals { pub definition: String, - #[serde(default = "default_1119")] - pub refs: Vec, #[serde(default = "default_1120")] + pub refs: Vec, + #[serde(default = "default_1121")] pub all_documents: Option, } @@ -24989,7 +24991,7 @@ pub struct DocumentChunks { pub min_chars: Integer, pub median_chars: Integer, pub max_chars: Integer, - #[serde(default = "default_1123")] + #[serde(default = "default_1124")] pub models: Vec, } @@ -25039,11 +25041,11 @@ pub struct IngestJob { pub failure_class: IngestJobFailureClass, pub queued_at: String, pub updated_at: String, - #[serde(default = "default_1128")] - pub ended_at: Option, #[serde(default = "default_1129")] - pub next_attempt_at: Option, + pub ended_at: Option, #[serde(default = "default_1130")] + pub next_attempt_at: Option, + #[serde(default = "default_1131")] pub stalled: bool, } @@ -25053,11 +25055,11 @@ pub struct SourceJobs { pub source_uri: String, pub jobs: Integer, pub open_jobs: Integer, - #[serde(default = "default_1127")] + #[serde(default = "default_1128")] pub open_ingestion_id: String, pub latest: IngestJob, pub current: IngestJob, - #[serde(default = "default_1131")] + #[serde(default = "default_1132")] pub replaced: bool, } @@ -25070,18 +25072,18 @@ pub struct InspectDocument { pub source_scheme: String, pub version: Integer, pub revision: Integer, - #[serde(default = "default_1121")] + #[serde(default = "default_1122")] pub ingestion_id: String, pub ingested_at: String, - #[serde(default = "default_1122")] + #[serde(default = "default_1123")] pub retired_versions: Option, - #[serde(default = "default_1124")] - pub chunks: Option, #[serde(default = "default_1125")] - pub decisions: Option, + pub chunks: Option, #[serde(default = "default_1126")] + pub decisions: Option, + #[serde(default = "default_1127")] pub extraction: Option, - #[serde(default = "default_1132")] + #[serde(default = "default_1133")] pub jobs: Option, } @@ -25126,40 +25128,40 @@ pub struct DocumentFinding { pub kind: DocumentFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1135")] - pub window_seconds: Option, #[serde(default = "default_1136")] + pub window_seconds: Option, + #[serde(default = "default_1137")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1137")] - pub evidence: Vec, #[serde(default = "default_1138")] - pub exceptions: String, + pub evidence: Vec, #[serde(default = "default_1139")] + pub exceptions: String, + #[serde(default = "default_1140")] pub uncertainty: String, pub code: String, pub severity: DocumentFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1140")] - pub samples: Vec, #[serde(default = "default_1141")] - pub ingested: Integer, + pub samples: Vec, #[serde(default = "default_1142")] + pub ingested: Integer, + #[serde(default = "default_1143")] pub ingested_samples: Vec, pub detail: String, pub remedy: String, - #[serde(default = "default_1143")] + #[serde(default = "default_1144")] pub refs: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ReportCoverage { - #[serde(default = "default_1145")] - pub rules_run: Vec, #[serde(default = "default_1146")] + pub rules_run: Vec, + #[serde(default = "default_1147")] pub rules_skipped: Vec, pub complete: bool, } @@ -25167,43 +25169,43 @@ pub struct ReportCoverage { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct IngestionTotals { - #[serde(default = "default_1147")] - pub sources: Option, #[serde(default = "default_1148")] - pub without_document: Option, + pub sources: Option, #[serde(default = "default_1149")] - pub replaced: Option, + pub without_document: Option, #[serde(default = "default_1150")] - pub pending: Option, + pub replaced: Option, #[serde(default = "default_1151")] - pub processing: Option, + pub pending: Option, #[serde(default = "default_1152")] - pub stalled: Option, + pub processing: Option, #[serde(default = "default_1153")] - pub ready: Option, + pub stalled: Option, #[serde(default = "default_1154")] - pub partial: Option, + pub ready: Option, #[serde(default = "default_1155")] - pub failed: Option, + pub partial: Option, #[serde(default = "default_1156")] - pub cancelled: Option, + pub failed: Option, #[serde(default = "default_1157")] + pub cancelled: Option, + #[serde(default = "default_1158")] pub oldest_open_queued_at: Option, pub worker_enabled: bool, - #[serde(default = "default_1158")] - pub extractor_configured: Option, #[serde(default = "default_1159")] + pub extractor_configured: Option, + #[serde(default = "default_1160")] pub without_document_listed: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ExtractionTotals { - #[serde(default = "default_1160")] - pub documents: Option, #[serde(default = "default_1161")] - pub incomplete: Option, + pub documents: Option, #[serde(default = "default_1162")] + pub incomplete: Option, + #[serde(default = "default_1163")] pub lost: Vec, } @@ -25233,31 +25235,31 @@ pub struct IngestFinding { pub kind: IngestFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1163")] - pub window_seconds: Option, #[serde(default = "default_1164")] + pub window_seconds: Option, + #[serde(default = "default_1165")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1165")] - pub evidence: Vec, #[serde(default = "default_1166")] - pub exceptions: String, + pub evidence: Vec, #[serde(default = "default_1167")] + pub exceptions: String, + #[serde(default = "default_1168")] pub uncertainty: String, pub code: String, pub severity: IngestFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1168")] - pub samples: Vec, #[serde(default = "default_1169")] - pub ingestion_ids: Vec, + pub samples: Vec, #[serde(default = "default_1170")] + pub ingestion_ids: Vec, + #[serde(default = "default_1171")] pub without_document: Integer, pub detail: String, pub remedy: String, - #[serde(default = "default_1171")] + #[serde(default = "default_1172")] pub refs: Vec, } @@ -25284,20 +25286,20 @@ pub struct KnowledgeInspectOutput { pub documents: DocumentTotals, pub chunks: ChunkTotals, pub decisions: DecisionTotals, - #[serde(default = "default_1133")] - pub listed: Vec, #[serde(default = "default_1134")] + pub listed: Vec, + #[serde(default = "default_1135")] pub listed_complete: bool, - #[serde(default = "default_1144")] + #[serde(default = "default_1145")] pub findings: Vec, pub coverage: ReportCoverage, pub ingestions: IngestionTotals, pub extraction: ExtractionTotals, - #[serde(default = "default_1172")] - pub ingest_findings: Vec, #[serde(default = "default_1173")] - pub memory_findings: Vec, + pub ingest_findings: Vec, #[serde(default = "default_1174")] + pub memory_findings: Vec, + #[serde(default = "default_1175")] pub skipped: Vec, } @@ -25444,7 +25446,7 @@ pub struct KnowledgeListEntry { #[non_exhaustive] pub struct KnowledgeListOutput { pub rows: Vec, - #[serde(default = "default_1175")] + #[serde(default = "default_1176")] pub next_cursor: Option, } @@ -25610,9 +25612,9 @@ pub enum KnowledgeMoveResultReason { #[non_exhaustive] pub struct KnowledgeMoveResult { pub source_uri: String, - #[serde(default = "default_1177")] - pub moved: bool, #[serde(default = "default_1178")] + pub moved: bool, + #[serde(default = "default_1179")] pub reason: KnowledgeMoveResultReason, } @@ -25620,9 +25622,9 @@ pub struct KnowledgeMoveResult { #[non_exhaustive] pub struct KnowledgeMoveOutput { pub found: bool, - #[serde(default = "default_1176")] + #[serde(default = "default_1177")] pub to_namespace: String, - #[serde(default = "default_1179")] + #[serde(default = "default_1180")] pub results: Vec, } @@ -25688,17 +25690,17 @@ pub struct OutlineEntry { pub struct KnowledgeOutlineOutput { pub found: bool, pub source_uri: String, - #[serde(default = "default_1180")] - pub title: String, #[serde(default = "default_1181")] - pub structured: bool, + pub title: String, #[serde(default = "default_1182")] - pub chunk_count: Integer, + pub structured: bool, #[serde(default = "default_1183")] - pub sections: Vec, + pub chunk_count: Integer, #[serde(default = "default_1184")] - pub section_content: Option, + pub sections: Vec, #[serde(default = "default_1185")] + pub section_content: Option, + #[serde(default = "default_1186")] pub section_chunk_idxs: Vec, } @@ -25805,12 +25807,12 @@ pub struct QueryReceipt { pub struct KnowledgeQueryOutput { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1186")] - pub row_ids: Vec>, #[serde(default = "default_1187")] + pub row_ids: Vec>, + #[serde(default = "default_1188")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1188")] + #[serde(default = "default_1189")] pub incomplete: Vec, pub receipt: QueryReceipt, } @@ -26483,9 +26485,9 @@ pub struct QueryHistoryListOutputQueryHistorySource { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct QueryHistoryListOutput { - #[serde(default = "default_1189")] - pub enabled: bool, #[serde(default = "default_1190")] + pub enabled: bool, + #[serde(default = "default_1191")] pub sources: Vec, } @@ -26616,7 +26618,7 @@ impl QueryHistoryRemoveInput { #[non_exhaustive] pub struct KnowledgeReadsOutput { pub window_days: Integer, - #[serde(default = "default_1191")] + #[serde(default = "default_1192")] pub reads: Vec>, } @@ -26719,15 +26721,15 @@ pub enum KnowledgeRestoreOutputOriginal { #[non_exhaustive] pub struct KnowledgeRestoreOutput { pub restored: bool, - #[serde(default = "default_1192")] - pub reason: KnowledgeRestoreOutputReason, #[serde(default = "default_1193")] - pub doc_id: String, + pub reason: KnowledgeRestoreOutputReason, #[serde(default = "default_1194")] - pub revision: Option, + pub doc_id: String, #[serde(default = "default_1195")] - pub chunks_restored: Integer, + pub revision: Option, #[serde(default = "default_1196")] + pub chunks_restored: Integer, + #[serde(default = "default_1197")] pub original: KnowledgeRestoreOutputOriginal, } @@ -26791,15 +26793,15 @@ impl KnowledgeRestoreInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceProbe { - #[serde(default = "default_1200")] - pub documents: Integer, #[serde(default = "default_1201")] - pub more: bool, + pub documents: Integer, #[serde(default = "default_1202")] - pub sample: Vec, + pub more: bool, #[serde(default = "default_1203")] - pub checked: Integer, + pub sample: Vec, #[serde(default = "default_1204")] + pub checked: Integer, + #[serde(default = "default_1205")] pub sampled: bool, } @@ -26809,15 +26811,15 @@ pub struct KnowledgeSourceAddOutput { pub name: String, pub kind: String, pub namespace: String, - #[serde(default = "default_1197")] - pub items: Vec>, #[serde(default = "default_1198")] - pub include: Vec, + pub items: Vec>, #[serde(default = "default_1199")] + pub include: Vec, + #[serde(default = "default_1200")] pub config: std::collections::HashMap, - #[serde(default = "default_1205")] - pub probe: KnowledgeSourceProbe, #[serde(default = "default_1206")] + pub probe: KnowledgeSourceProbe, + #[serde(default = "default_1207")] pub dry_run: bool, } @@ -26974,21 +26976,21 @@ impl KnowledgeSourceAddInput { #[non_exhaustive] pub struct KnowledgeSourceCheckOutput { pub name: String, - #[serde(default = "default_1207")] - pub reachable: bool, #[serde(default = "default_1208")] - pub documents: Integer, + pub reachable: bool, #[serde(default = "default_1209")] - pub more: bool, + pub documents: Integer, #[serde(default = "default_1210")] - pub sample: Vec, + pub more: bool, #[serde(default = "default_1211")] - pub checked: Integer, + pub sample: Vec, #[serde(default = "default_1212")] - pub sampled: bool, + pub checked: Integer, #[serde(default = "default_1213")] - pub summary: String, + pub sampled: bool, #[serde(default = "default_1214")] + pub summary: String, + #[serde(default = "default_1215")] pub checked_at: String, } @@ -27037,37 +27039,37 @@ impl KnowledgeSourceCheckInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceSync { - #[serde(default = "default_1223")] - pub requested_at: String, #[serde(default = "default_1224")] - pub last_synced_at: String, + pub requested_at: String, #[serde(default = "default_1225")] - pub status: String, + pub last_synced_at: String, #[serde(default = "default_1226")] - pub documents_seen: Integer, + pub status: String, #[serde(default = "default_1227")] - pub changed: Integer, + pub documents_seen: Integer, #[serde(default = "default_1228")] - pub removed: Integer, + pub changed: Integer, #[serde(default = "default_1229")] - pub unconverted: Integer, + pub removed: Integer, #[serde(default = "default_1230")] - pub unconverted_reasons: std::collections::HashMap, + pub unconverted: Integer, #[serde(default = "default_1231")] - pub skipped: Integer, + pub unconverted_reasons: std::collections::HashMap, #[serde(default = "default_1232")] - pub error: String, + pub skipped: Integer, #[serde(default = "default_1233")] - pub pending_extract: Integer, + pub error: String, #[serde(default = "default_1234")] - pub last_extracted_at: String, + pub pending_extract: Integer, #[serde(default = "default_1235")] - pub extracted: Integer, + pub last_extracted_at: String, #[serde(default = "default_1236")] - pub flagged_pinned: Integer, + pub extracted: Integer, #[serde(default = "default_1237")] - pub unextracted: Integer, + pub flagged_pinned: Integer, #[serde(default = "default_1238")] + pub unextracted: Integer, + #[serde(default = "default_1239")] pub extract_error: String, } @@ -27075,11 +27077,11 @@ pub struct KnowledgeSourceSync { #[non_exhaustive] pub struct KnowledgeSourceDocument { pub source_uri: String, - #[serde(default = "default_1240")] - pub title: String, #[serde(default = "default_1241")] - pub source_revision: String, + pub title: String, #[serde(default = "default_1242")] + pub source_revision: String, + #[serde(default = "default_1243")] pub ingested_at: String, } @@ -27088,25 +27090,25 @@ pub struct KnowledgeSourceDocument { pub struct KnowledgeSourceInspectOutput { pub name: String, pub kind: String, - #[serde(default = "default_1215")] - pub credential_mode: String, #[serde(default = "default_1216")] - pub access: String, + pub credential_mode: String, #[serde(default = "default_1217")] - pub owner_subject: String, + pub access: String, #[serde(default = "default_1218")] - pub items: Vec>, + pub owner_subject: String, #[serde(default = "default_1219")] - pub include: Vec, + pub items: Vec>, #[serde(default = "default_1220")] - pub config: std::collections::HashMap, + pub include: Vec, #[serde(default = "default_1221")] - pub created_by: String, + pub config: std::collections::HashMap, #[serde(default = "default_1222")] + pub created_by: String, + #[serde(default = "default_1223")] pub created_at: String, - #[serde(default = "default_1239")] + #[serde(default = "default_1240")] pub sync: KnowledgeSourceSync, - #[serde(default = "default_1243")] + #[serde(default = "default_1244")] pub documents: Vec, } @@ -27159,34 +27161,34 @@ impl KnowledgeSourceInspectInput { pub struct KnowledgeSourceEntry { pub name: String, pub kind: String, - #[serde(default = "default_1244")] - pub credential_mode: String, #[serde(default = "default_1245")] - pub access: String, + pub credential_mode: String, #[serde(default = "default_1246")] - pub owner_subject: String, + pub access: String, #[serde(default = "default_1247")] - pub items: Vec>, + pub owner_subject: String, #[serde(default = "default_1248")] - pub include: Vec, + pub items: Vec>, #[serde(default = "default_1249")] - pub config: std::collections::HashMap, + pub include: Vec, #[serde(default = "default_1250")] - pub created_by: String, + pub config: std::collections::HashMap, #[serde(default = "default_1251")] - pub created_at: String, + pub created_by: String, #[serde(default = "default_1252")] + pub created_at: String, + #[serde(default = "default_1253")] pub sync: KnowledgeSourceSync, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceListOutput { - #[serde(default = "default_1253")] - pub sources: Vec, #[serde(default = "default_1254")] - pub enabled: bool, + pub sources: Vec, #[serde(default = "default_1255")] + pub enabled: bool, + #[serde(default = "default_1256")] pub accepts_sources: bool, } @@ -27239,18 +27241,18 @@ impl KnowledgeSourceListInput { #[non_exhaustive] pub struct KnowledgeSourceParsedLink { pub link: String, - #[serde(default = "default_1256")] - pub kind: String, #[serde(default = "default_1257")] - pub item: std::collections::HashMap, + pub kind: String, #[serde(default = "default_1258")] + pub item: std::collections::HashMap, + #[serde(default = "default_1259")] pub unreadable: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct KnowledgeSourceParseLinksOutput { - #[serde(default = "default_1259")] + #[serde(default = "default_1260")] pub links: Vec, } @@ -27301,25 +27303,25 @@ impl KnowledgeSourceParseLinksInput { #[derive(Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct PushStatusOutput { - #[serde(default = "default_1260")] - pub enabled: bool, #[serde(default = "default_1261")] - pub status: String, + pub enabled: bool, #[serde(default = "default_1262")] - pub provider: String, + pub status: String, #[serde(default = "default_1263")] - pub generation: String, + pub provider: String, #[serde(default = "default_1264")] - pub callback_url: String, + pub generation: String, #[serde(default = "default_1265")] - pub provider_id: String, + pub callback_url: String, #[serde(default = "default_1266")] - pub challenge_fingerprint: String, + pub provider_id: String, #[serde(default = "default_1267")] - pub verification_token: String, + pub challenge_fingerprint: String, #[serde(default = "default_1268")] - pub channels: Integer, + pub verification_token: String, #[serde(default = "default_1269")] + pub channels: Integer, + #[serde(default = "default_1270")] pub expires_at: f64, } impl std::fmt::Debug for PushStatusOutput { @@ -27564,7 +27566,7 @@ impl PushStatusInput { #[non_exhaustive] pub struct KnowledgeSourceRemoveOutput { pub name: String, - #[serde(default = "default_1270")] + #[serde(default = "default_1271")] pub documents_pending: Integer, } @@ -27627,9 +27629,9 @@ impl KnowledgeSourceRemoveInput { #[non_exhaustive] pub struct KnowledgeSourceRotateOutput { pub name: String, - #[serde(default = "default_1271")] - pub probe: KnowledgeSourceProbe, #[serde(default = "default_1272")] + pub probe: KnowledgeSourceProbe, + #[serde(default = "default_1273")] pub rotated_at: String, } @@ -27681,7 +27683,7 @@ impl KnowledgeSourceRotateInput { #[non_exhaustive] pub struct KnowledgeSourceSyncNowOutput { pub name: String, - #[serde(default = "default_1273")] + #[serde(default = "default_1274")] pub enabled: bool, } @@ -27744,17 +27746,17 @@ impl KnowledgeSourceSyncNowInput { #[non_exhaustive] pub struct KnowledgeSourceUpdateOutput { pub name: String, - #[serde(default = "default_1274")] - pub items: Vec>, #[serde(default = "default_1275")] - pub include: Vec, + pub items: Vec>, #[serde(default = "default_1276")] - pub config: std::collections::HashMap, + pub include: Vec, #[serde(default = "default_1277")] - pub added: Vec>, + pub config: std::collections::HashMap, #[serde(default = "default_1278")] - pub removed: Vec>, + pub added: Vec>, #[serde(default = "default_1279")] + pub removed: Vec>, + #[serde(default = "default_1280")] pub probe: KnowledgeSourceProbe, } @@ -27870,9 +27872,9 @@ impl KnowledgeSourceUpdateInput { pub struct CitedChunk { pub source_uri: String, pub chunk_idx: Integer, - #[serde(default = "default_1281")] - pub revision: Integer, #[serde(default = "default_1282")] + pub revision: Integer, + #[serde(default = "default_1283")] pub locator: Option>, } @@ -27881,12 +27883,12 @@ pub struct CitedChunk { pub struct SynthesizeCalculation { pub columns: Vec, pub rows: Vec>, - #[serde(default = "default_1289")] - pub row_ids: Vec>, #[serde(default = "default_1290")] + pub row_ids: Vec>, + #[serde(default = "default_1291")] pub truncated: bool, pub complete: bool, - #[serde(default = "default_1291")] + #[serde(default = "default_1292")] pub incomplete: Vec, pub receipt: QueryReceipt, pub citation: String, @@ -27900,23 +27902,23 @@ pub struct KnowledgeSynthesizeOutput { pub chunks_read: Integer, pub documents: Integer, pub reduce_rounds: Integer, - #[serde(default = "default_1280")] + #[serde(default = "default_1281")] pub citations: Vec, - #[serde(default = "default_1283")] - pub cited_chunks: Vec, #[serde(default = "default_1284")] - pub unsupported_citations: Vec, + pub cited_chunks: Vec, #[serde(default = "default_1285")] - pub truncated: bool, + pub unsupported_citations: Vec, #[serde(default = "default_1286")] - pub abstain: bool, + pub truncated: bool, #[serde(default = "default_1287")] - pub abstain_reason: String, + pub abstain: bool, #[serde(default = "default_1288")] + pub abstain_reason: String, + #[serde(default = "default_1289")] pub clarification: String, - #[serde(default = "default_1292")] - pub calculations: Vec, #[serde(default = "default_1293")] + pub calculations: Vec, + #[serde(default = "default_1294")] pub model: String, } @@ -28032,13 +28034,13 @@ impl KnowledgeSynthesizeInput { #[non_exhaustive] pub struct KnowledgeUpdateMetadataOutput { pub updated: bool, - #[serde(default = "default_1294")] - pub title: String, #[serde(default = "default_1295")] - pub description: String, + pub title: String, #[serde(default = "default_1296")] - pub tags: Vec, + pub description: String, #[serde(default = "default_1297")] + pub tags: Vec, + #[serde(default = "default_1298")] pub chunks_reindexed: Integer, } @@ -28150,13 +28152,13 @@ pub struct KnowledgeUpsertOutput { pub chunks_superseded: Integer, pub embedding_model: String, pub embedding_dim: Integer, - #[serde(default = "default_1298")] - pub duplicate_of_uri: String, #[serde(default = "default_1299")] - pub duplicate_chunk_count: Integer, + pub duplicate_of_uri: String, #[serde(default = "default_1300")] - pub namespace: String, + pub duplicate_chunk_count: Integer, #[serde(default = "default_1301")] + pub namespace: String, + #[serde(default = "default_1302")] pub source_uri: String, } @@ -28341,26 +28343,26 @@ pub struct LearningEntry { pub memory_type: String, pub proposed_value: Value, pub supporter_count: Integer, - #[serde(default = "default_1302")] - pub supporter_sessions: Integer, #[serde(default = "default_1303")] + pub supporter_sessions: Integer, + #[serde(default = "default_1304")] pub supporter_writers: Integer, pub confidence_avg: f64, pub supporters: Vec, pub rationale: String, - #[serde(default = "default_1304")] - pub source_kind: String, #[serde(default = "default_1305")] - pub source_resource_id: String, + pub source_kind: String, #[serde(default = "default_1306")] + pub source_resource_id: String, + #[serde(default = "default_1307")] pub agent: String, pub status: LearningEntryStatus, pub proposed_at: String, - #[serde(default = "default_1307")] - pub decided_at: Option, #[serde(default = "default_1308")] - pub decided_by: String, + pub decided_at: Option, #[serde(default = "default_1309")] + pub decided_by: String, + #[serde(default = "default_1310")] pub decision_reason: String, } @@ -28563,11 +28565,11 @@ pub enum LearningsReviewOutputNewStatus { pub struct LearningsReviewOutput { pub candidate_id: String, pub new_status: LearningsReviewOutputNewStatus, - #[serde(default = "default_1310")] - pub promoted_to_shared: bool, #[serde(default = "default_1311")] - pub promoted_to_knowledge: bool, + pub promoted_to_shared: bool, #[serde(default = "default_1312")] + pub promoted_to_knowledge: bool, + #[serde(default = "default_1313")] pub knowledge_source_uri: String, pub decided_at: String, } @@ -28771,7 +28773,7 @@ impl MemoryAgentsListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct AggregateRow { - #[serde(default = "default_1313")] + #[serde(default = "default_1314")] pub group: std::collections::HashMap, pub metric: f64, } @@ -28779,9 +28781,9 @@ pub struct AggregateRow { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAggregateOutput { - #[serde(default = "default_1314")] - pub rows: Vec, #[serde(default = "default_1315")] + pub rows: Vec, + #[serde(default = "default_1316")] pub sql_executed: String, } @@ -28949,15 +28951,15 @@ impl MemoryAggregateInput { pub struct BulkSetResult { pub memory_key: String, pub version: Integer, - #[serde(default = "default_1316")] - pub memory_id: String, #[serde(default = "default_1317")] - pub conflict_verdict: String, + pub memory_id: String, #[serde(default = "default_1318")] - pub peers: Vec, + pub conflict_verdict: String, #[serde(default = "default_1319")] - pub next: String, + pub peers: Vec, #[serde(default = "default_1320")] + pub next: String, + #[serde(default = "default_1321")] pub pinned_blocker_id: String, } @@ -28965,29 +28967,29 @@ pub struct BulkSetResult { #[non_exhaustive] pub struct MemoryBulkSetOutput { pub written: Vec, - #[serde(default = "default_1321")] - pub skipped_pinned: Vec, #[serde(default = "default_1322")] - pub skipped_locked: Vec, + pub skipped_pinned: Vec, #[serde(default = "default_1323")] - pub skipped_blacklisted: Vec, + pub skipped_locked: Vec, #[serde(default = "default_1324")] - pub merged: Vec, + pub skipped_blacklisted: Vec, #[serde(default = "default_1325")] - pub value_updates_linked: Integer, + pub merged: Vec, #[serde(default = "default_1326")] - pub rejected_pinned: Vec, + pub value_updates_linked: Integer, #[serde(default = "default_1327")] - pub duplicates: Vec, + pub rejected_pinned: Vec, #[serde(default = "default_1328")] - pub conflicted: Vec, + pub duplicates: Vec, #[serde(default = "default_1329")] - pub unchecked: Integer, + pub conflicted: Vec, #[serde(default = "default_1330")] - pub retyped: Vec, + pub unchecked: Integer, #[serde(default = "default_1331")] - pub identity_duplicates: std::collections::HashMap, + pub retyped: Vec, #[serde(default = "default_1332")] + pub identity_duplicates: std::collections::HashMap, + #[serde(default = "default_1333")] pub stage_ms: std::collections::HashMap, } @@ -29137,18 +29139,18 @@ pub enum ApplyRowStatus { #[non_exhaustive] pub struct ApplyRow { pub memory_key: String, - #[serde(default = "default_1340")] - pub memory_id: String, #[serde(default = "default_1341")] - pub agent: String, + pub memory_id: String, #[serde(default = "default_1342")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1343")] + pub user_id: String, + #[serde(default = "default_1344")] pub session_id: String, pub status: ApplyRowStatus, - #[serde(default = "default_1344")] - pub version: Option, #[serde(default = "default_1345")] + pub version: Option, + #[serde(default = "default_1346")] pub detail: String, } @@ -29158,21 +29160,21 @@ pub struct MemoryApplyOutput { pub action: String, pub dry_run: bool, pub target: String, - #[serde(default = "default_1333")] - pub matched: Integer, #[serde(default = "default_1334")] - pub applied: Integer, + pub matched: Integer, #[serde(default = "default_1335")] - pub would_apply: Integer, + pub applied: Integer, #[serde(default = "default_1336")] - pub refused: Integer, + pub would_apply: Integer, #[serde(default = "default_1337")] - pub noop: Integer, + pub refused: Integer, #[serde(default = "default_1338")] - pub failed: Integer, + pub noop: Integer, #[serde(default = "default_1339")] + pub failed: Integer, + #[serde(default = "default_1340")] pub truncated: bool, - #[serde(default = "default_1346")] + #[serde(default = "default_1347")] pub rows: Vec, } @@ -29906,137 +29908,137 @@ pub enum MemoryAskOutputDeepFirst { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAskOutput { - #[serde(default = "default_1347")] - pub answer: String, #[serde(default = "default_1348")] - pub source: MemoryAskOutputSource, + pub answer: String, #[serde(default = "default_1349")] - pub abstain: bool, + pub source: MemoryAskOutputSource, #[serde(default = "default_1350")] - pub abstain_reason: String, + pub abstain: bool, #[serde(default = "default_1351")] - pub memory_keys: Vec, + pub abstain_reason: String, #[serde(default = "default_1352")] - pub results: Vec, + pub memory_keys: Vec, #[serde(default = "default_1353")] - pub cited_sessions: Vec, + pub results: Vec, #[serde(default = "default_1354")] - pub next: String, + pub cited_sessions: Vec, #[serde(default = "default_1355")] - pub synth_model: String, + pub next: String, #[serde(default = "default_1356")] - pub route_tier: MemoryAskOutputRouteTier, + pub synth_model: String, #[serde(default = "default_1357")] - pub route_reason: String, + pub route_tier: MemoryAskOutputRouteTier, #[serde(default = "default_1358")] - pub llm_cache_hits: Integer, + pub route_reason: String, #[serde(default = "default_1359")] - pub llm_cache_misses: Integer, + pub llm_cache_hits: Integer, #[serde(default = "default_1360")] - pub llm_cache: bool, + pub llm_cache_misses: Integer, #[serde(default = "default_1361")] - pub llm_cache_saved_usd: f64, + pub llm_cache: bool, #[serde(default = "default_1362")] - pub temporal_consistency: Option, + pub llm_cache_saved_usd: f64, #[serde(default = "default_1363")] - pub citation_concentration: Option, + pub temporal_consistency: Option, #[serde(default = "default_1364")] - pub escalated: bool, + pub citation_concentration: Option, #[serde(default = "default_1365")] - pub gate_mode: String, + pub escalated: bool, #[serde(default = "default_1366")] - pub gate_kept: Integer, + pub gate_mode: String, #[serde(default = "default_1367")] - pub gate_dropped: Integer, + pub gate_kept: Integer, #[serde(default = "default_1368")] - pub pending_extraction: Integer, + pub gate_dropped: Integer, #[serde(default = "default_1369")] - pub pending_evidence: Integer, + pub pending_extraction: Integer, #[serde(default = "default_1370")] - pub retrieval_query: String, + pub pending_evidence: Integer, #[serde(default = "default_1371")] - pub facets: Vec, + pub retrieval_query: String, #[serde(default = "default_1372")] - pub facet_memories_added: Integer, + pub facets: Vec, #[serde(default = "default_1373")] - pub consistency: MemoryAskOutputConsistency, + pub facet_memories_added: Integer, #[serde(default = "default_1374")] - pub consistency_score: f64, + pub consistency: MemoryAskOutputConsistency, #[serde(default = "default_1375")] - pub consistency_note: String, + pub consistency_score: f64, #[serde(default = "default_1376")] - pub identifier_chase_hops: Integer, + pub consistency_note: String, #[serde(default = "default_1377")] - pub identifier_chase_added: Integer, + pub identifier_chase_hops: Integer, #[serde(default = "default_1378")] - pub premise_conflict: String, + pub identifier_chase_added: Integer, #[serde(default = "default_1379")] - pub premise_note: String, + pub premise_conflict: String, #[serde(default = "default_1380")] - pub premise_verdict: String, + pub premise_note: String, #[serde(default = "default_1381")] - pub attribution_note: String, + pub premise_verdict: String, #[serde(default = "default_1382")] - pub depth: MemoryAskOutputDepth, + pub attribution_note: String, #[serde(default = "default_1383")] - pub deep_fired: bool, + pub depth: MemoryAskOutputDepth, #[serde(default = "default_1384")] - pub decomposed: Vec, + pub deep_fired: bool, #[serde(default = "default_1385")] - pub decomposed_parts: Integer, + pub decomposed: Vec, #[serde(default = "default_1386")] - pub superseded_dropped: Integer, + pub decomposed_parts: Integer, #[serde(default = "default_1387")] - pub stale_sentences_masked: Integer, + pub superseded_dropped: Integer, #[serde(default = "default_1388")] - pub entity_followed: Vec, + pub stale_sentences_masked: Integer, #[serde(default = "default_1389")] - pub when_evidence_turns: Integer, + pub entity_followed: Vec, #[serde(default = "default_1390")] - pub decompose_failed: Integer, + pub when_evidence_turns: Integer, #[serde(default = "default_1391")] - pub pool_k: Integer, + pub decompose_failed: Integer, #[serde(default = "default_1392")] - pub grounding: MemoryAskOutputGrounding, + pub pool_k: Integer, #[serde(default = "default_1393")] - pub deep_reason: String, + pub grounding: MemoryAskOutputGrounding, #[serde(default = "default_1394")] - pub deep_keys: Vec, + pub deep_reason: String, #[serde(default = "default_1395")] - pub deep_chars: Integer, + pub deep_keys: Vec, #[serde(default = "default_1396")] - pub code_hits: Integer, + pub deep_chars: Integer, #[serde(default = "default_1397")] - pub pool_facts: Integer, + pub code_hits: Integer, #[serde(default = "default_1398")] - pub pool_chunks: Integer, + pub pool_facts: Integer, #[serde(default = "default_1399")] - pub prompt_blocks: std::collections::HashMap, + pub pool_chunks: Integer, #[serde(default = "default_1400")] - pub deep_selector: MemoryAskOutputDeepSelector, + pub prompt_blocks: std::collections::HashMap, #[serde(default = "default_1401")] - pub deep_first: MemoryAskOutputDeepFirst, + pub deep_selector: MemoryAskOutputDeepSelector, #[serde(default = "default_1402")] - pub synth_calls: Integer, + pub deep_first: MemoryAskOutputDeepFirst, #[serde(default = "default_1403")] - pub synth_input_tokens: Integer, + pub synth_calls: Integer, #[serde(default = "default_1404")] - pub synth_cached_input_tokens: Integer, + pub synth_input_tokens: Integer, #[serde(default = "default_1405")] - pub synth_cache_write_tokens: Integer, + pub synth_cached_input_tokens: Integer, #[serde(default = "default_1406")] - pub synth_cost_usd: f64, + pub synth_cache_write_tokens: Integer, #[serde(default = "default_1407")] - pub context_tokens_est: Integer, + pub synth_cost_usd: f64, #[serde(default = "default_1408")] - pub context_trimmed: Integer, + pub context_tokens_est: Integer, #[serde(default = "default_1409")] - pub summary_hits: Integer, + pub context_trimmed: Integer, #[serde(default = "default_1410")] - pub knowledge_hits: Integer, + pub summary_hits: Integer, #[serde(default = "default_1411")] - pub timeline_rows: Integer, + pub knowledge_hits: Integer, #[serde(default = "default_1412")] + pub timeline_rows: Integer, + #[serde(default = "default_1413")] pub count_recomputed: bool, } @@ -30991,36 +30993,36 @@ pub struct MemoryAutoRetirement { pub reason: String, pub memory_id: String, pub memory_key: String, - #[serde(default = "default_1413")] - pub agent: String, #[serde(default = "default_1414")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1415")] - pub session_id: String, + pub user_id: String, #[serde(default = "default_1416")] - pub superseded_by: String, + pub session_id: String, #[serde(default = "default_1417")] - pub superseded_by_key: String, + pub superseded_by: String, #[serde(default = "default_1418")] - pub label: String, + pub superseded_by_key: String, #[serde(default = "default_1419")] - pub unconfirmed: bool, + pub label: String, #[serde(default = "default_1420")] - pub judge_verdict: String, + pub unconfirmed: bool, #[serde(default = "default_1421")] - pub judge_confidence: Option, + pub judge_verdict: String, #[serde(default = "default_1422")] - pub judge_model: String, + pub judge_confidence: Option, #[serde(default = "default_1423")] + pub judge_model: String, + #[serde(default = "default_1424")] pub judge_prompt_version: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryAutoRetirementsOutput { - #[serde(default = "default_1424")] - pub rows: Vec, #[serde(default = "default_1425")] + pub rows: Vec, + #[serde(default = "default_1426")] pub next_cursor: Option, } @@ -31114,9 +31116,9 @@ impl MemoryAutoRetirementsInput { #[non_exhaustive] pub struct BacklinkVersion { pub version: Integer, - #[serde(default = "default_1427")] - pub status: String, #[serde(default = "default_1428")] + pub status: String, + #[serde(default = "default_1429")] pub created_at: String, } @@ -31124,7 +31126,7 @@ pub struct BacklinkVersion { #[non_exhaustive] pub struct BacklinkDigest { pub session_id: String, - #[serde(default = "default_1430")] + #[serde(default = "default_1431")] pub date: String, } @@ -31132,9 +31134,9 @@ pub struct BacklinkDigest { #[non_exhaustive] pub struct BacklinkEdge { pub memory_key: String, - #[serde(default = "default_1432")] - pub relation: String, #[serde(default = "default_1433")] + pub relation: String, + #[serde(default = "default_1434")] pub created_at: String, } @@ -31142,7 +31144,7 @@ pub struct BacklinkEdge { #[non_exhaustive] pub struct BacklinkRelated { pub memory_key: String, - #[serde(default = "default_1437")] + #[serde(default = "default_1438")] pub shared_entities: Vec, } @@ -31150,19 +31152,19 @@ pub struct BacklinkRelated { #[non_exhaustive] pub struct MemoryBacklinksOutput { pub memory_key: String, - #[serde(default = "default_1426")] + #[serde(default = "default_1427")] pub found: bool, - #[serde(default = "default_1429")] + #[serde(default = "default_1430")] pub versions: Vec, - #[serde(default = "default_1431")] + #[serde(default = "default_1432")] pub digests: Vec, - #[serde(default = "default_1434")] - pub links_in: Vec, #[serde(default = "default_1435")] - pub links_out: Vec, + pub links_in: Vec, #[serde(default = "default_1436")] + pub links_out: Vec, + #[serde(default = "default_1437")] pub evidence_count: Integer, - #[serde(default = "default_1438")] + #[serde(default = "default_1439")] pub related: Vec, } @@ -31267,36 +31269,36 @@ impl MemoryBacklinksInput { #[non_exhaustive] pub struct BriefEvidence { pub memory_key: String, - #[serde(default = "default_1443")] - pub source: String, #[serde(default = "default_1444")] - pub source_class: String, + pub source: String, #[serde(default = "default_1445")] - pub verified: bool, + pub source_class: String, #[serde(default = "default_1446")] - pub when: String, + pub verified: bool, #[serde(default = "default_1447")] - pub session_id: String, + pub when: String, #[serde(default = "default_1448")] + pub session_id: String, + #[serde(default = "default_1449")] pub excerpt: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBriefOutput { - #[serde(default = "default_1439")] - pub query: String, #[serde(default = "default_1440")] - pub answer: String, + pub query: String, #[serde(default = "default_1441")] - pub abstained: bool, + pub answer: String, #[serde(default = "default_1442")] + pub abstained: bool, + #[serde(default = "default_1443")] pub grounding: String, - #[serde(default = "default_1449")] - pub evidence: Vec, #[serde(default = "default_1450")] - pub unknowns: Vec, + pub evidence: Vec, #[serde(default = "default_1451")] + pub unknowns: Vec, + #[serde(default = "default_1452")] pub next_reads: Vec, } @@ -31710,9 +31712,9 @@ pub struct MemoryBulkGetOutputMemoryGetOutput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryBulkGetOutput { - #[serde(default = "default_1452")] - pub results: std::collections::HashMap, #[serde(default = "default_1453")] + pub results: std::collections::HashMap, + #[serde(default = "default_1454")] pub missing: Vec, } @@ -32225,7 +32227,7 @@ pub struct MemoryClearOutput { pub cleared_at: String, pub rows_affected: std::collections::HashMap, pub total: Integer, - #[serde(default = "default_1454")] + #[serde(default = "default_1455")] pub locked_skipped: Integer, } @@ -32313,21 +32315,21 @@ pub struct MemoryConsolidateResult { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryConsolidateOutput { - #[serde(default = "default_1455")] - pub consolidated: Vec, #[serde(default = "default_1456")] - pub examined: Integer, + pub consolidated: Vec, #[serde(default = "default_1457")] - pub clusters_found: Integer, + pub examined: Integer, #[serde(default = "default_1458")] - pub clusters_failed: Integer, + pub clusters_found: Integer, #[serde(default = "default_1459")] - pub clusters_refused_lossy: Integer, + pub clusters_failed: Integer, #[serde(default = "default_1460")] - pub skipped_in_flight: Integer, + pub clusters_refused_lossy: Integer, #[serde(default = "default_1461")] - pub tokens_in: Integer, + pub skipped_in_flight: Integer, #[serde(default = "default_1462")] + pub tokens_in: Integer, + #[serde(default = "default_1463")] pub tokens_out: Integer, } @@ -32468,7 +32470,7 @@ impl MemoryConsolidateInput { #[non_exhaustive] pub struct MemoryCopyToOutput { pub copied: bool, - #[serde(default = "default_1463")] + #[serde(default = "default_1464")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, @@ -32579,11 +32581,11 @@ impl MemoryCopyToInput { #[non_exhaustive] pub struct MemoryCrossPromoteOutput { pub promoted: bool, - #[serde(default = "default_1464")] + #[serde(default = "default_1465")] pub target_memory_id: String, pub target_namespace: String, pub target_key: String, - #[serde(default = "default_1465")] + #[serde(default = "default_1466")] pub cross_promoted_from_memory_id: String, } @@ -32666,23 +32668,23 @@ pub struct DedupCollapsePair { #[non_exhaustive] pub struct MemoryDedupCollapseOutput { pub namespace: String, - #[serde(default = "default_1466")] - pub prefix: String, #[serde(default = "default_1467")] - pub dry_run: bool, + pub prefix: String, #[serde(default = "default_1468")] - pub pairs: Integer, + pub dry_run: bool, #[serde(default = "default_1469")] - pub canonical_live: Integer, + pub pairs: Integer, #[serde(default = "default_1470")] - pub orphans: Integer, + pub canonical_live: Integer, #[serde(default = "default_1471")] - pub mirror_stale: Integer, + pub orphans: Integer, #[serde(default = "default_1472")] - pub restamped: Integer, + pub mirror_stale: Integer, #[serde(default = "default_1473")] - pub truncated: bool, + pub restamped: Integer, #[serde(default = "default_1474")] + pub truncated: bool, + #[serde(default = "default_1475")] pub sample: Vec, } @@ -32781,7 +32783,7 @@ pub struct DedupDuplicate { pub memory_id: String, pub memory_key: String, pub agent: String, - #[serde(default = "default_1477")] + #[serde(default = "default_1478")] pub created_at: Option, } @@ -32789,12 +32791,12 @@ pub struct DedupDuplicate { #[non_exhaustive] pub struct DedupCluster { pub canonical_id: String, - #[serde(default = "default_1475")] - pub canonical_key: String, #[serde(default = "default_1476")] + pub canonical_key: String, + #[serde(default = "default_1477")] pub canonical_agent: String, pub dup_count: Integer, - #[serde(default = "default_1478")] + #[serde(default = "default_1479")] pub duplicates: Vec, } @@ -32866,11 +32868,11 @@ pub struct MemoryDedupResolveOutput { pub canonical_key: String, pub duplicate_key: String, pub decision: String, - #[serde(default = "default_1479")] - pub canonical_tombstoned: bool, #[serde(default = "default_1480")] - pub duplicate_tombstoned: bool, + pub canonical_tombstoned: bool, #[serde(default = "default_1481")] + pub duplicate_tombstoned: bool, + #[serde(default = "default_1482")] pub ignored_args: Vec, } @@ -33008,17 +33010,17 @@ pub struct LostName { pub struct DefinitionEntry { pub memory_key: String, pub promoted_at: String, - #[serde(default = "default_1482")] - pub capped: bool, #[serde(default = "default_1483")] - pub term: Option, + pub capped: bool, #[serde(default = "default_1484")] - pub aliases: Vec, + pub term: Option, #[serde(default = "default_1485")] - pub verdict: Option, + pub aliases: Vec, #[serde(default = "default_1486")] - pub lapse_reason: Option, + pub verdict: Option, #[serde(default = "default_1487")] + pub lapse_reason: Option, + #[serde(default = "default_1488")] pub lost: Vec, } @@ -33079,15 +33081,15 @@ impl MemoryDefinitionsListInput { #[non_exhaustive] pub struct MemoryDeleteVersionOutput { pub tombstoned: bool, - #[serde(default = "default_1488")] - pub version: Integer, #[serde(default = "default_1489")] - pub found: bool, + pub version: Integer, #[serde(default = "default_1490")] - pub reason: String, + pub found: bool, #[serde(default = "default_1491")] - pub dependents_tombstoned: Integer, + pub reason: String, #[serde(default = "default_1492")] + pub dependents_tombstoned: Integer, + #[serde(default = "default_1493")] pub dependents_downgraded: Integer, } @@ -33214,21 +33216,21 @@ pub struct DemonstrationRow { pub struct MemoryDemonstrateOutput { pub query: String, pub demonstrations: Vec, - #[serde(default = "default_1493")] - pub votes: std::collections::HashMap, #[serde(default = "default_1494")] - pub predicted_label: String, + pub votes: std::collections::HashMap, #[serde(default = "default_1495")] - pub margin: f64, + pub predicted_label: String, #[serde(default = "default_1496")] - pub abstain: bool, + pub margin: f64, #[serde(default = "default_1497")] - pub abstain_reason: String, + pub abstain: bool, #[serde(default = "default_1498")] - pub few_shot_block: String, + pub abstain_reason: String, #[serde(default = "default_1499")] - pub examined: Integer, + pub few_shot_block: String, #[serde(default = "default_1500")] + pub examined: Integer, + #[serde(default = "default_1501")] pub labelled: Integer, } @@ -33368,7 +33370,7 @@ impl MemoryDemonstrateInput { pub struct MemoryDemoteOutput { pub demoted: bool, pub was_reversible: bool, - #[serde(default = "default_1501")] + #[serde(default = "default_1502")] pub tombstoned_at: Option, } @@ -33430,15 +33432,15 @@ impl MemoryDemoteInput { pub struct DigestRow { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1502")] - pub key_facts: Vec, #[serde(default = "default_1503")] - pub derived_from: Vec, + pub key_facts: Vec, #[serde(default = "default_1504")] - pub valid_at: Option, + pub derived_from: Vec, #[serde(default = "default_1505")] - pub created_at: Option, + pub valid_at: Option, #[serde(default = "default_1506")] + pub created_at: Option, + #[serde(default = "default_1507")] pub version: Integer, } @@ -33446,7 +33448,7 @@ pub struct DigestRow { #[non_exhaustive] pub struct MemoryDigestsOutput { pub rows: Vec, - #[serde(default = "default_1507")] + #[serde(default = "default_1508")] pub truncated: bool, } @@ -33571,17 +33573,17 @@ pub struct MemoryEvidenceItem { pub evidence_id: String, pub support_type: String, pub scope: MemoryEvidenceItemScope, - #[serde(default = "default_1511")] - pub role: String, #[serde(default = "default_1512")] - pub observed_at: Option, + pub role: String, #[serde(default = "default_1513")] - pub content: String, + pub observed_at: Option, #[serde(default = "default_1514")] - pub char_start: Integer, + pub content: String, #[serde(default = "default_1515")] - pub char_end: Integer, + pub char_start: Integer, #[serde(default = "default_1516")] + pub char_end: Integer, + #[serde(default = "default_1517")] pub span: String, } @@ -33589,23 +33591,23 @@ pub struct MemoryEvidenceItem { #[non_exhaustive] pub struct MemoryEvidenceOutput { pub found: bool, - #[serde(default = "default_1508")] - pub memory_key: String, #[serde(default = "default_1509")] - pub memory_id: String, + pub memory_key: String, #[serde(default = "default_1510")] + pub memory_id: String, + #[serde(default = "default_1511")] pub value: String, - #[serde(default = "default_1517")] - pub items: Vec, #[serde(default = "default_1518")] - pub truncated: bool, + pub items: Vec, #[serde(default = "default_1519")] - pub cited: Integer, + pub truncated: bool, #[serde(default = "default_1520")] - pub lexical: Integer, + pub cited: Integer, #[serde(default = "default_1521")] - pub window: Integer, + pub lexical: Integer, #[serde(default = "default_1522")] + pub window: Integer, + #[serde(default = "default_1523")] pub derived: Integer, } @@ -33710,26 +33712,26 @@ impl MemoryEvidenceInput { #[non_exhaustive] pub struct EvidenceChunk { pub session_id: String, - #[serde(default = "default_1523")] + #[serde(default = "default_1524")] pub chunk_index: Integer, pub content: String, - #[serde(default = "default_1524")] - pub content_sha256: String, #[serde(default = "default_1525")] - pub agent: String, + pub content_sha256: String, #[serde(default = "default_1526")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1527")] - pub parent_memory_key: String, + pub user_id: String, #[serde(default = "default_1528")] - pub memory_keys: Vec, + pub parent_memory_key: String, #[serde(default = "default_1529")] - pub line_start: Integer, + pub memory_keys: Vec, #[serde(default = "default_1530")] - pub line_end: Integer, + pub line_start: Integer, #[serde(default = "default_1531")] - pub created_at: String, + pub line_end: Integer, #[serde(default = "default_1532")] + pub created_at: String, + #[serde(default = "default_1533")] pub source_url: String, } @@ -33738,17 +33740,17 @@ pub struct EvidenceChunk { pub struct EvidenceDigest { pub session_id: String, pub summary_text: String, - #[serde(default = "default_1534")] - pub agent: String, #[serde(default = "default_1535")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1536")] - pub key_facts: Vec, + pub user_id: String, #[serde(default = "default_1537")] - pub derived_from: Vec, + pub key_facts: Vec, #[serde(default = "default_1538")] - pub valid_at: String, + pub derived_from: Vec, #[serde(default = "default_1539")] + pub valid_at: String, + #[serde(default = "default_1540")] pub created_at: String, } @@ -33758,28 +33760,28 @@ pub struct EvidenceEdge { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1541")] - pub confidence: f64, #[serde(default = "default_1542")] - pub explanation: String, + pub confidence: f64, #[serde(default = "default_1543")] + pub explanation: String, + #[serde(default = "default_1544")] pub created_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExportEvidenceOutput { - #[serde(default = "default_1533")] + #[serde(default = "default_1534")] pub chunks: Vec, - #[serde(default = "default_1540")] + #[serde(default = "default_1541")] pub digests: Vec, - #[serde(default = "default_1544")] - pub edges: Vec, #[serde(default = "default_1545")] - pub has_more: bool, + pub edges: Vec, #[serde(default = "default_1546")] - pub next_cursor: String, + pub has_more: bool, #[serde(default = "default_1547")] + pub next_cursor: String, + #[serde(default = "default_1548")] pub held_high: Integer, } @@ -33972,15 +33974,15 @@ impl ExposureSummaryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionRetryMineOutput { - #[serde(default = "default_1548")] - pub requeued: Vec, #[serde(default = "default_1549")] - pub not_failed: Vec, + pub requeued: Vec, #[serde(default = "default_1550")] - pub model_calls_off: Vec, + pub not_failed: Vec, #[serde(default = "default_1551")] - pub expired: Vec, + pub model_calls_off: Vec, #[serde(default = "default_1552")] + pub expired: Vec, + #[serde(default = "default_1553")] pub unknown: Vec, } @@ -34041,20 +34043,20 @@ pub struct ExtractionQueueRow { pub content_chars: Integer, pub written: Integer, pub last_error: String, - #[serde(default = "default_1553")] - pub enqueued_at: Option, #[serde(default = "default_1554")] + pub enqueued_at: Option, + #[serde(default = "default_1555")] pub updated_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusOutput { - #[serde(default = "default_1555")] - pub batches: Vec, #[serde(default = "default_1556")] - pub pending: Integer, + pub batches: Vec, #[serde(default = "default_1557")] + pub pending: Integer, + #[serde(default = "default_1558")] pub failed: Integer, } @@ -34202,13 +34204,13 @@ impl MemoryExtractionStatusInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryExtractionStatusMineOutput { - #[serde(default = "default_1558")] - pub batches: Vec, #[serde(default = "default_1559")] - pub unknown: Vec, + pub batches: Vec, #[serde(default = "default_1560")] - pub pending: Integer, + pub unknown: Vec, #[serde(default = "default_1561")] + pub pending: Integer, + #[serde(default = "default_1562")] pub failed: Integer, } @@ -34329,39 +34331,39 @@ pub struct MemoryForFileHit { pub memory_key: String, pub memory_type: String, pub value: String, - #[serde(default = "default_1562")] - pub value_truncated: bool, #[serde(default = "default_1563")] - pub tags: Vec, + pub value_truncated: bool, #[serde(default = "default_1564")] - pub confidence: f64, + pub tags: Vec, #[serde(default = "default_1565")] - pub pinned: bool, + pub confidence: f64, #[serde(default = "default_1566")] - pub status: String, + pub pinned: bool, #[serde(default = "default_1567")] - pub agent: String, + pub status: String, #[serde(default = "default_1568")] - pub updated_at: Option, + pub agent: String, #[serde(default = "default_1569")] - pub namespace: String, + pub updated_at: Option, #[serde(default = "default_1570")] - pub actor: String, + pub namespace: String, #[serde(default = "default_1571")] - pub supersedes_key: String, + pub actor: String, #[serde(default = "default_1572")] - pub supersedes: String, + pub supersedes_key: String, #[serde(default = "default_1573")] - pub supersedes_kind: MemoryForFileHitSupersedesKind, + pub supersedes: String, #[serde(default = "default_1574")] - pub matched_files: Vec, + pub supersedes_kind: MemoryForFileHitSupersedesKind, #[serde(default = "default_1575")] - pub source_resource_id: String, + pub matched_files: Vec, #[serde(default = "default_1576")] - pub verification: MemoryForFileHitVerification, + pub source_resource_id: String, #[serde(default = "default_1577")] - pub code_state: MemoryForFileHitCodeState, + pub verification: MemoryForFileHitVerification, #[serde(default = "default_1578")] + pub code_state: MemoryForFileHitCodeState, + #[serde(default = "default_1579")] pub code_moved: Vec, } @@ -34371,11 +34373,11 @@ pub struct MemoryForFileOutput { pub path: String, pub total: Integer, pub hits: Vec, - #[serde(default = "default_1579")] - pub rendered: String, #[serde(default = "default_1580")] - pub tokens_estimate: Integer, + pub rendered: String, #[serde(default = "default_1581")] + pub tokens_estimate: Integer, + #[serde(default = "default_1582")] pub truncated: bool, } @@ -34483,61 +34485,61 @@ impl MemoryForFileInput { #[non_exhaustive] pub struct MemoryGetByIdOutput { pub found: bool, - #[serde(default = "default_1582")] - pub memory_id: String, #[serde(default = "default_1583")] - pub namespace: String, + pub memory_id: String, #[serde(default = "default_1584")] - pub agent: String, + pub namespace: String, #[serde(default = "default_1585")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1586")] - pub session_id: String, + pub user_id: String, #[serde(default = "default_1587")] - pub memory_key: String, + pub session_id: String, #[serde(default = "default_1588")] - pub memory_type: Option, + pub memory_key: String, #[serde(default = "default_1589")] - pub value: Value, + pub memory_type: Option, #[serde(default = "default_1590")] - pub confidence: Option, + pub value: Value, #[serde(default = "default_1591")] - pub version: Option, + pub confidence: Option, #[serde(default = "default_1592")] - pub created_at: Option, + pub version: Option, #[serde(default = "default_1593")] - pub expires_at: Option, + pub created_at: Option, #[serde(default = "default_1594")] - pub valid_at: Option, + pub expires_at: Option, #[serde(default = "default_1595")] - pub valid_to: Option, + pub valid_at: Option, #[serde(default = "default_1596")] - pub pinned: bool, + pub valid_to: Option, #[serde(default = "default_1597")] - pub content_sha256: String, + pub pinned: bool, #[serde(default = "default_1598")] - pub verified_by: String, + pub content_sha256: String, #[serde(default = "default_1599")] - pub verified_at: Option, + pub verified_by: String, #[serde(default = "default_1600")] - pub verification: String, + pub verified_at: Option, #[serde(default = "default_1601")] - pub sensitivity: String, + pub verification: String, #[serde(default = "default_1602")] - pub actor: String, + pub sensitivity: String, #[serde(default = "default_1603")] - pub source_class: String, + pub actor: String, #[serde(default = "default_1604")] - pub lock_mode: String, + pub source_class: String, #[serde(default = "default_1605")] - pub lock_reason: String, + pub lock_mode: String, #[serde(default = "default_1606")] - pub lock_until: Option, + pub lock_reason: String, #[serde(default = "default_1607")] - pub locked_by: String, + pub lock_until: Option, #[serde(default = "default_1608")] - pub on_expire: String, + pub locked_by: String, #[serde(default = "default_1609")] + pub on_expire: String, + #[serde(default = "default_1610")] pub expire_reason: String, } @@ -34613,41 +34615,41 @@ pub struct MemoryHealthTopRow { pub memory_type: String, pub recall_count: Integer, pub used_count: Integer, - #[serde(default = "default_1612")] - pub harm_count: Integer, #[serde(default = "default_1613")] + pub harm_count: Integer, + #[serde(default = "default_1614")] pub last_recalled_at: Option, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthStaleness { - #[serde(default = "default_1615")] - pub by_age: std::collections::HashMap, #[serde(default = "default_1616")] - pub with_validity_end: Integer, + pub by_age: std::collections::HashMap, #[serde(default = "default_1617")] - pub with_validity_end_share: f64, + pub with_validity_end: Integer, #[serde(default = "default_1618")] - pub with_expiry: Integer, + pub with_validity_end_share: f64, #[serde(default = "default_1619")] - pub expiring_7d: Integer, + pub with_expiry: Integer, #[serde(default = "default_1620")] - pub pinned: Integer, + pub expiring_7d: Integer, #[serde(default = "default_1621")] - pub days_since_reinforced_p50: Integer, + pub pinned: Integer, #[serde(default = "default_1622")] + pub days_since_reinforced_p50: Integer, + #[serde(default = "default_1623")] pub days_since_reinforced_p90: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryHealthFootprint { - #[serde(default = "default_1624")] - pub value_chars: Integer, #[serde(default = "default_1625")] - pub value_tokens_est: Integer, + pub value_chars: Integer, #[serde(default = "default_1626")] + pub value_tokens_est: Integer, + #[serde(default = "default_1627")] pub tokens_per_row_est: f64, } @@ -34657,19 +34659,19 @@ pub struct MemoryHealthOutput { pub live: Integer, pub recalled_ever: Integer, pub used_ever: Integer, - #[serde(default = "default_1610")] + #[serde(default = "default_1611")] pub harmed_ever: Integer, pub silent: Integer, pub silent_older: Integer, pub silent_share: f64, pub silent_after_days: Integer, - #[serde(default = "default_1611")] + #[serde(default = "default_1612")] pub by_type: Vec, - #[serde(default = "default_1614")] + #[serde(default = "default_1615")] pub top_recalled: Vec, - #[serde(default = "default_1623")] + #[serde(default = "default_1624")] pub staleness: MemoryHealthStaleness, - #[serde(default = "default_1627")] + #[serde(default = "default_1628")] pub footprint: MemoryHealthFootprint, } @@ -34789,51 +34791,51 @@ impl MemoryHealthInput { pub struct MemoryHistoryRow { pub memory_id: String, pub version: Integer, - #[serde(default = "default_1628")] - pub version_text: String, #[serde(default = "default_1629")] + pub version_text: String, + #[serde(default = "default_1630")] pub value: Value, pub confidence: f64, - #[serde(default = "default_1630")] - pub source_trace: String, #[serde(default = "default_1631")] + pub source_trace: String, + #[serde(default = "default_1632")] pub pinned: bool, pub created_at: String, - #[serde(default = "default_1632")] - pub expires_at: Option, #[serde(default = "default_1633")] - pub tombstoned_at: Option, + pub expires_at: Option, #[serde(default = "default_1634")] - pub redacted_at: Option, + pub tombstoned_at: Option, #[serde(default = "default_1635")] - pub redaction_reason: String, + pub redacted_at: Option, #[serde(default = "default_1636")] - pub content_sha256: String, + pub redaction_reason: String, #[serde(default = "default_1637")] - pub actor: String, + pub content_sha256: String, #[serde(default = "default_1638")] - pub source_class: String, + pub actor: String, #[serde(default = "default_1639")] - pub agent: String, + pub source_class: String, #[serde(default = "default_1640")] - pub written_at: Option, + pub agent: String, #[serde(default = "default_1641")] - pub status: String, + pub written_at: Option, #[serde(default = "default_1642")] - pub conflict_with: Vec, + pub status: String, #[serde(default = "default_1643")] - pub tags: Vec, + pub conflict_with: Vec, #[serde(default = "default_1644")] - pub verified_at: Option, + pub tags: Vec, #[serde(default = "default_1645")] - pub verified_by: String, + pub verified_at: Option, #[serde(default = "default_1646")] - pub verified_sha256: String, + pub verified_by: String, #[serde(default = "default_1647")] - pub lock_mode: String, + pub verified_sha256: String, #[serde(default = "default_1648")] - pub lock_reason: String, + pub lock_mode: String, #[serde(default = "default_1649")] + pub lock_reason: String, + #[serde(default = "default_1650")] pub lock_until: Option, } @@ -34943,13 +34945,13 @@ impl MemoryHistoryInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportTotals { - #[serde(default = "default_1650")] - pub written: Integer, #[serde(default = "default_1651")] - pub held: Integer, + pub written: Integer, #[serde(default = "default_1652")] - pub skipped: Integer, + pub held: Integer, #[serde(default = "default_1653")] + pub skipped: Integer, + #[serde(default = "default_1654")] pub refused: Integer, } @@ -35032,11 +35034,11 @@ pub struct MemoryImportResult { pub index: Integer, pub key: String, pub outcome: MemoryImportResultOutcome, - #[serde(default = "default_1654")] - pub reason: MemoryImportResultReason, #[serde(default = "default_1655")] - pub held_by: String, + pub reason: MemoryImportResultReason, #[serde(default = "default_1656")] + pub held_by: String, + #[serde(default = "default_1657")] pub note: MemoryImportResultNote, } @@ -35045,7 +35047,7 @@ pub struct MemoryImportResult { pub struct MemoryImportOutput { pub totals: MemoryImportTotals, pub results: Vec, - #[serde(default = "default_1657")] + #[serde(default = "default_1658")] pub dry_run: bool, } @@ -35238,9 +35240,9 @@ pub struct MemoryImportCuratedRow { pub section_heading: String, pub bytes_written: Integer, pub verdict: String, - #[serde(default = "default_1658")] - pub rejection_reason: String, #[serde(default = "default_1659")] + pub rejection_reason: String, + #[serde(default = "default_1660")] pub pinned_blocker_id: Option, } @@ -35332,21 +35334,21 @@ impl MemoryImportCuratedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryImportEvidenceOutput { - #[serde(default = "default_1660")] - pub chunks_written: Integer, #[serde(default = "default_1661")] - pub links_written: Integer, + pub chunks_written: Integer, #[serde(default = "default_1662")] - pub digests_written: Integer, + pub links_written: Integer, #[serde(default = "default_1663")] - pub embedding_model: String, + pub digests_written: Integer, #[serde(default = "default_1664")] - pub embedding_dim: Integer, + pub embedding_model: String, #[serde(default = "default_1665")] - pub edited: Vec, + pub embedding_dim: Integer, #[serde(default = "default_1666")] - pub skipped: Integer, + pub edited: Vec, #[serde(default = "default_1667")] + pub skipped: Integer, + #[serde(default = "default_1668")] pub unchecked: Integer, } @@ -35683,7 +35685,7 @@ pub struct InspectRow { pub memory_key: String, pub memory_id: String, pub version: Integer, - #[serde(default = "default_1677")] + #[serde(default = "default_1678")] pub content_sha256: String, pub memory_type: String, pub status: String, @@ -35694,9 +35696,9 @@ pub struct InspectRow { pub actor: String, pub updated_at: String, pub sensitivity: String, - #[serde(default = "default_1678")] - pub versions: Integer, #[serde(default = "default_1679")] + pub versions: Integer, + #[serde(default = "default_1680")] pub excerpt: String, } @@ -35704,27 +35706,27 @@ pub struct InspectRow { #[non_exhaustive] pub struct InspectView { pub definition: String, - #[serde(default = "default_1668")] - pub refs: Vec, #[serde(default = "default_1669")] - pub live_rows: Integer, + pub refs: Vec, #[serde(default = "default_1670")] - pub by_type: Vec, + pub live_rows: Integer, #[serde(default = "default_1671")] - pub by_status: Vec, + pub by_type: Vec, #[serde(default = "default_1672")] - pub by_source_class: Vec, + pub by_status: Vec, #[serde(default = "default_1673")] - pub top_tags: Vec, + pub by_source_class: Vec, #[serde(default = "default_1674")] - pub categories: Vec, + pub top_tags: Vec, #[serde(default = "default_1675")] - pub first_updated_at: Option, + pub categories: Vec, #[serde(default = "default_1676")] + pub first_updated_at: Option, + #[serde(default = "default_1677")] pub last_updated_at: Option, - #[serde(default = "default_1680")] - pub newest: Vec, #[serde(default = "default_1681")] + pub newest: Vec, + #[serde(default = "default_1682")] pub complete: bool, } @@ -35740,32 +35742,32 @@ pub struct InspectCall { #[non_exhaustive] pub struct InspectActivity { pub window_seconds: Integer, - #[serde(default = "default_1682")] - pub calls: Vec, #[serde(default = "default_1683")] - pub first_at: Option, + pub calls: Vec, #[serde(default = "default_1684")] - pub last_at: Option, + pub first_at: Option, #[serde(default = "default_1685")] + pub last_at: Option, + #[serde(default = "default_1686")] pub gap: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct InspectSettings { - #[serde(default = "default_1686")] - pub guide_revision: Integer, #[serde(default = "default_1687")] - pub guide_summary: String, + pub guide_revision: Integer, #[serde(default = "default_1688")] - pub categories_registered: Integer, + pub guide_summary: String, #[serde(default = "default_1689")] - pub extraction_policy: Option, + pub categories_registered: Integer, #[serde(default = "default_1690")] - pub extraction_policy_unavailable: String, + pub extraction_policy: Option, #[serde(default = "default_1691")] - pub extraction_instructions: String, + pub extraction_policy_unavailable: String, #[serde(default = "default_1692")] + pub extraction_instructions: String, + #[serde(default = "default_1693")] pub extraction_instructions_refs: Vec, } @@ -35781,7 +35783,7 @@ pub struct MemoryInspectOutput { pub others: InspectView, pub activity: InspectActivity, pub settings: InspectSettings, - #[serde(default = "default_1693")] + #[serde(default = "default_1694")] pub skipped: Vec, } @@ -35875,7 +35877,7 @@ pub struct MemoryKeyRef { #[non_exhaustive] pub struct MemoryKeysOutput { pub keys: Vec, - #[serde(default = "default_1694")] + #[serde(default = "default_1695")] pub truncated: bool, } @@ -35978,9 +35980,9 @@ pub struct LineageCandidate { pub decided_at: String, pub decided_by: String, pub match_confidence: LineageCandidateMatchConfidence, - #[serde(default = "default_1703")] - pub seeded_from_thread_id: String, #[serde(default = "default_1704")] + pub seeded_from_thread_id: String, + #[serde(default = "default_1705")] pub seeded_from_msg_id: String, } @@ -35998,25 +36000,25 @@ pub struct LineageAuditEvent { pub struct MemoryLineageOutput { pub found: bool, pub memory_key: String, - #[serde(default = "default_1695")] - pub promotion_event: String, #[serde(default = "default_1696")] - pub promoted_by: String, + pub promotion_event: String, #[serde(default = "default_1697")] - pub promoted_at: Option, + pub promoted_by: String, #[serde(default = "default_1698")] - pub rationale: String, + pub promoted_at: Option, #[serde(default = "default_1699")] - pub source_trace: String, + pub rationale: String, #[serde(default = "default_1700")] - pub source_resource_id: String, + pub source_trace: String, #[serde(default = "default_1701")] - pub mechanism: MemoryLineageOutputMechanism, + pub source_resource_id: String, #[serde(default = "default_1702")] + pub mechanism: MemoryLineageOutputMechanism, + #[serde(default = "default_1703")] pub supporters: Vec, - #[serde(default = "default_1705")] - pub candidate: Option, #[serde(default = "default_1706")] + pub candidate: Option, + #[serde(default = "default_1707")] pub audit_chain: Vec, } @@ -36145,11 +36147,11 @@ pub struct MemoryLinkOutput { pub from_key: String, pub to_key: String, pub relation: String, - #[serde(default = "default_1707")] - pub confidence: f64, #[serde(default = "default_1708")] - pub conflict_opened: bool, + pub confidence: f64, #[serde(default = "default_1709")] + pub conflict_opened: bool, + #[serde(default = "default_1710")] pub relation_defaulted: bool, } @@ -36463,17 +36465,17 @@ pub struct MemoryListEntry { pub struct MemoryListOutput { pub entries: Vec, pub truncated: bool, - #[serde(default = "default_1710")] - pub total: Integer, #[serde(default = "default_1711")] - pub today: Integer, + pub total: Integer, #[serde(default = "default_1712")] - pub namespace_version: String, + pub today: Integer, #[serde(default = "default_1713")] - pub unchanged: bool, + pub namespace_version: String, #[serde(default = "default_1714")] - pub hidden: Integer, + pub unchanged: bool, #[serde(default = "default_1715")] + pub hidden: Integer, + #[serde(default = "default_1716")] pub hidden_hint: String, } @@ -36859,19 +36861,19 @@ impl MemoryListInput { #[non_exhaustive] pub struct MemoryLockOutput { pub locked: bool, - #[serde(default = "default_1716")] - pub reason: String, #[serde(default = "default_1717")] - pub memory_id: String, + pub reason: String, #[serde(default = "default_1718")] - pub version: Option, + pub memory_id: String, #[serde(default = "default_1719")] - pub lock_mode: String, + pub version: Option, #[serde(default = "default_1720")] - pub lock_until: Option, + pub lock_mode: String, #[serde(default = "default_1721")] - pub locked_by: String, + pub lock_until: Option, #[serde(default = "default_1722")] + pub locked_by: String, + #[serde(default = "default_1723")] pub previous_mode: String, } @@ -37030,21 +37032,21 @@ pub struct MemoryMoveOutput { pub from_key: String, pub to_key: String, pub redirected: bool, - #[serde(default = "default_1723")] - pub memory_id: String, #[serde(default = "default_1724")] - pub version: Integer, + pub memory_id: String, #[serde(default = "default_1725")] - pub content_sha256: String, + pub version: Integer, #[serde(default = "default_1726")] - pub advisories: Vec, + pub content_sha256: String, #[serde(default = "default_1727")] - pub dry_run: bool, + pub advisories: Vec, #[serde(default = "default_1728")] - pub memory_type: String, + pub dry_run: bool, #[serde(default = "default_1729")] - pub value_preview: String, + pub memory_type: String, #[serde(default = "default_1730")] + pub value_preview: String, + #[serde(default = "default_1731")] pub sensitivity: String, } @@ -37256,7 +37258,7 @@ impl MemoryMoveInput { pub struct MemoryOutcomeOutput { pub recorded: bool, pub evidence_count_after: Integer, - #[serde(default = "default_1731")] + #[serde(default = "default_1732")] pub quarantined: bool, } @@ -37499,13 +37501,13 @@ impl MemoryOutcomeRunInput { #[non_exhaustive] pub struct OutlineSession { pub session_id: String, - #[serde(default = "default_1733")] - pub date: String, #[serde(default = "default_1734")] - pub headline: String, + pub date: String, #[serde(default = "default_1735")] - pub key_facts: Integer, + pub headline: String, #[serde(default = "default_1736")] + pub key_facts: Integer, + #[serde(default = "default_1737")] pub rows: Integer, } @@ -37513,7 +37515,7 @@ pub struct OutlineSession { #[non_exhaustive] pub struct OutlineHub { pub entity: String, - #[serde(default = "default_1739")] + #[serde(default = "default_1740")] pub degree: Integer, } @@ -37521,28 +37523,28 @@ pub struct OutlineHub { #[non_exhaustive] pub struct OutlineCommunity { pub community_id: Integer, - #[serde(default = "default_1741")] - pub label: String, #[serde(default = "default_1742")] - pub size: Integer, + pub label: String, #[serde(default = "default_1743")] + pub size: Integer, + #[serde(default = "default_1744")] pub computed_at: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryOutlineOutput { - #[serde(default = "default_1732")] + #[serde(default = "default_1733")] pub rows_by_type: std::collections::HashMap, - #[serde(default = "default_1737")] - pub sessions: Vec, #[serde(default = "default_1738")] + pub sessions: Vec, + #[serde(default = "default_1739")] pub sessions_total: Integer, - #[serde(default = "default_1740")] + #[serde(default = "default_1741")] pub hubs: Vec, - #[serde(default = "default_1744")] - pub communities: Vec, #[serde(default = "default_1745")] + pub communities: Vec, + #[serde(default = "default_1746")] pub profile_chars: Integer, } @@ -37694,7 +37696,7 @@ pub struct OwnerUsageRow { pub recalls: Integer, pub used: Integer, pub harm: Integer, - #[serde(default = "default_1746")] + #[serde(default = "default_1747")] pub last_recalled: Option, } @@ -38181,7 +38183,7 @@ pub struct MemoryPromoteOutput { pub shared_memory_key: String, pub promotion_event: String, pub reversible_until: String, - #[serde(default = "default_1747")] + #[serde(default = "default_1748")] pub ignored_args: Vec, } @@ -38350,18 +38352,18 @@ impl MemoryPromoteInput { pub struct MemoryProposalDecision { pub memory_key: String, pub decided: bool, - #[serde(default = "default_1749")] - pub status: String, #[serde(default = "default_1750")] + pub status: String, + #[serde(default = "default_1751")] pub reason: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalDecideOutput { - #[serde(default = "default_1748")] + #[serde(default = "default_1749")] pub decided: Integer, - #[serde(default = "default_1751")] + #[serde(default = "default_1752")] pub results: Vec, } @@ -38462,33 +38464,33 @@ pub enum MemoryProposalReady { pub struct MemoryProposal { pub memory_key: String, pub memory_id: String, - #[serde(default = "default_1752")] - pub content_sha256: String, #[serde(default = "default_1753")] - pub agent: String, + pub content_sha256: String, #[serde(default = "default_1754")] - pub memory_type: String, + pub agent: String, #[serde(default = "default_1755")] - pub value_preview: String, + pub memory_type: String, #[serde(default = "default_1756")] - pub sensitivity: String, + pub value_preview: String, #[serde(default = "default_1757")] - pub tags: Vec, + pub sensitivity: String, #[serde(default = "default_1758")] - pub created_at: String, + pub tags: Vec, #[serde(default = "default_1759")] - pub graded_passes: Integer, + pub created_at: String, #[serde(default = "default_1760")] - pub graded_fails: Integer, + pub graded_passes: Integer, #[serde(default = "default_1761")] - pub last_graded_at: String, + pub graded_fails: Integer, #[serde(default = "default_1762")] - pub used_count: Integer, + pub last_graded_at: String, #[serde(default = "default_1763")] - pub harm_count: Integer, + pub used_count: Integer, #[serde(default = "default_1764")] - pub ready: MemoryProposalReady, + pub harm_count: Integer, #[serde(default = "default_1765")] + pub ready: MemoryProposalReady, + #[serde(default = "default_1766")] pub conflict_with: Vec, } @@ -38504,24 +38506,24 @@ pub enum ProposalPolicyMode { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProposalPolicy { - #[serde(default = "default_1768")] - pub mode: ProposalPolicyMode, #[serde(default = "default_1769")] - pub min_passes: Integer, + pub mode: ProposalPolicyMode, #[serde(default = "default_1770")] - pub max_fails: Integer, + pub min_passes: Integer, #[serde(default = "default_1771")] + pub max_fails: Integer, + #[serde(default = "default_1772")] pub reject_after_fails: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryProposalsOutput { - #[serde(default = "default_1766")] - pub proposals: Vec, #[serde(default = "default_1767")] + pub proposals: Vec, + #[serde(default = "default_1768")] pub total: Integer, - #[serde(default = "default_1772")] + #[serde(default = "default_1773")] pub policy: ProposalPolicy, } @@ -38639,19 +38641,19 @@ impl MemoryProposalsInput { pub struct MemoryProvenanceLink { pub direction: String, pub memory_key: String, - #[serde(default = "default_1786")] - pub relation: String, #[serde(default = "default_1787")] - pub label: String, + pub relation: String, #[serde(default = "default_1788")] - pub explanation: String, + pub label: String, #[serde(default = "default_1789")] - pub evidence: Vec, + pub explanation: String, #[serde(default = "default_1790")] - pub confidence: f64, + pub evidence: Vec, #[serde(default = "default_1791")] - pub author: String, + pub confidence: f64, #[serde(default = "default_1792")] + pub author: String, + #[serde(default = "default_1793")] pub run_id: String, } @@ -38659,33 +38661,33 @@ pub struct MemoryProvenanceLink { #[non_exhaustive] pub struct MemoryProvenanceOutput { pub found: bool, - #[serde(default = "default_1773")] - pub source_trace: String, #[serde(default = "default_1774")] - pub source_kind: String, + pub source_trace: String, #[serde(default = "default_1775")] - pub actor: String, + pub source_kind: String, #[serde(default = "default_1776")] - pub source_class: String, + pub actor: String, #[serde(default = "default_1777")] - pub source_label: String, + pub source_class: String, #[serde(default = "default_1778")] - pub thread_id: String, + pub source_label: String, #[serde(default = "default_1779")] - pub thread_exists: bool, + pub thread_id: String, #[serde(default = "default_1780")] - pub thread_title: String, + pub thread_exists: bool, #[serde(default = "default_1781")] - pub agent: String, + pub thread_title: String, #[serde(default = "default_1782")] - pub session_id: String, + pub agent: String, #[serde(default = "default_1783")] - pub run_id: String, + pub session_id: String, #[serde(default = "default_1784")] - pub written_at: String, + pub run_id: String, #[serde(default = "default_1785")] + pub written_at: String, + #[serde(default = "default_1786")] pub source_resource_id: String, - #[serde(default = "default_1793")] + #[serde(default = "default_1794")] pub links: Vec, } @@ -38780,17 +38782,17 @@ impl MemoryProvenanceInput { pub struct RecallTurn { pub evidence_id: String, pub session_id: String, - #[serde(default = "default_1794")] - pub role: String, #[serde(default = "default_1795")] - pub actor: String, + pub role: String, #[serde(default = "default_1796")] - pub observed_at: String, + pub actor: String, #[serde(default = "default_1797")] - pub content: String, + pub observed_at: String, #[serde(default = "default_1798")] - pub truncated: bool, + pub content: String, #[serde(default = "default_1799")] + pub truncated: bool, + #[serde(default = "default_1800")] pub matched_tokens: Integer, } @@ -38807,21 +38809,21 @@ pub enum MemoryRecallOutputOrder { #[non_exhaustive] pub struct MemoryRecallOutput { pub turns: Vec, - #[serde(default = "default_1800")] - pub total_matched: Integer, #[serde(default = "default_1801")] - pub returned: Integer, + pub total_matched: Integer, #[serde(default = "default_1802")] - pub has_more: bool, + pub returned: Integer, #[serde(default = "default_1803")] - pub next_cursor: String, + pub has_more: bool, #[serde(default = "default_1804")] - pub next_offset: Integer, + pub next_cursor: String, #[serde(default = "default_1805")] - pub order: MemoryRecallOutputOrder, + pub next_offset: Integer, #[serde(default = "default_1806")] - pub query_tokens: Vec, + pub order: MemoryRecallOutputOrder, #[serde(default = "default_1807")] + pub query_tokens: Vec, + #[serde(default = "default_1808")] pub tokens_returned: Integer, } @@ -39103,19 +39105,19 @@ pub struct MemoryRecordConflictRow { pub schema_name: String, pub memory_key: String, pub field_name: String, - #[serde(default = "default_1808")] - pub prior_value: Value, #[serde(default = "default_1809")] + pub prior_value: Value, + #[serde(default = "default_1810")] pub incoming_value: Value, pub prior_record_id: String, pub incoming_record_id: String, - #[serde(default = "default_1810")] - pub prior_memory_id: String, #[serde(default = "default_1811")] - pub incoming_memory_id: String, + pub prior_memory_id: String, #[serde(default = "default_1812")] - pub detected_at: Option, + pub incoming_memory_id: String, #[serde(default = "default_1813")] + pub detected_at: Option, + #[serde(default = "default_1814")] pub resolved_at: Option, } @@ -39123,7 +39125,7 @@ pub struct MemoryRecordConflictRow { #[non_exhaustive] pub struct MemoryRecordConflictsOutput { pub rows: Vec, - #[serde(default = "default_1814")] + #[serde(default = "default_1815")] pub truncated: bool, } @@ -39233,19 +39235,19 @@ pub enum MemoryRecordRowStatus { #[non_exhaustive] pub struct MemoryRecordRow { pub record_id: String, - #[serde(default = "default_1815")] - pub memory_key: String, #[serde(default = "default_1816")] - pub memory_id: String, + pub memory_key: String, #[serde(default = "default_1817")] - pub record: std::collections::HashMap, + pub memory_id: String, #[serde(default = "default_1818")] - pub field_states: std::collections::HashMap, + pub record: std::collections::HashMap, #[serde(default = "default_1819")] - pub status: MemoryRecordRowStatus, + pub field_states: std::collections::HashMap, #[serde(default = "default_1820")] - pub valid_at: Option, + pub status: MemoryRecordRowStatus, #[serde(default = "default_1821")] + pub valid_at: Option, + #[serde(default = "default_1822")] pub valid_to: Option, } @@ -39312,7 +39314,7 @@ impl MemoryRecordHistoryInput { #[non_exhaustive] pub struct MemoryRecordQueryOutput { pub rows: Vec, - #[serde(default = "default_1822")] + #[serde(default = "default_1823")] pub truncated: bool, } @@ -39536,15 +39538,15 @@ pub enum MemoryRecordWriteOutputKeySource { pub struct MemoryRecordWriteOutput { pub record_id: String, pub field_count: Integer, - #[serde(default = "default_1823")] - pub memory_key: String, #[serde(default = "default_1824")] - pub key_source: MemoryRecordWriteOutputKeySource, + pub memory_key: String, #[serde(default = "default_1825")] - pub fold: std::collections::HashMap, + pub key_source: MemoryRecordWriteOutputKeySource, #[serde(default = "default_1826")] - pub superseded_record_id: String, + pub fold: std::collections::HashMap, #[serde(default = "default_1827")] + pub superseded_record_id: String, + #[serde(default = "default_1828")] pub conflicts: Integer, } @@ -39787,13 +39789,13 @@ impl MemoryRecordWriteInput { #[non_exhaustive] pub struct MemoryRedactOutput { pub redacted: bool, - #[serde(default = "default_1828")] - pub refused_head: bool, #[serde(default = "default_1829")] - pub redacted_at: Option, + pub refused_head: bool, #[serde(default = "default_1830")] - pub cache_rows_deleted: Integer, + pub redacted_at: Option, #[serde(default = "default_1831")] + pub cache_rows_deleted: Integer, + #[serde(default = "default_1832")] pub precedent_rows_deleted: Integer, } @@ -39953,7 +39955,7 @@ impl MemoryReindexInput { #[non_exhaustive] pub struct MemoryRejectOutput { pub rejected: bool, - #[serde(default = "default_1832")] + #[serde(default = "default_1833")] pub rejected_at: Option, } @@ -40069,7 +40071,7 @@ pub struct MemoryRelatedHit { pub struct MemoryRelatedOutput { pub results: Vec, pub source_entities: Vec, - #[serde(default = "default_1833")] + #[serde(default = "default_1834")] pub reason: String, } @@ -40184,13 +40186,13 @@ impl MemoryRelatedInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryResolveOrphanDuplicatesOutput { - #[serde(default = "default_1834")] - pub candidates: Integer, #[serde(default = "default_1835")] - pub reactivated: Integer, + pub candidates: Integer, #[serde(default = "default_1836")] - pub dry_run: bool, + pub reactivated: Integer, #[serde(default = "default_1837")] + pub dry_run: bool, + #[serde(default = "default_1838")] pub memory_ids: Vec, } @@ -40267,15 +40269,15 @@ impl MemoryResolveOrphanDuplicatesInput { #[non_exhaustive] pub struct MemoryRestoreOutput { pub restored: bool, - #[serde(default = "default_1838")] - pub memory_id: Option, #[serde(default = "default_1839")] - pub version: Option, + pub memory_id: Option, #[serde(default = "default_1840")] - pub expired: bool, + pub version: Option, #[serde(default = "default_1841")] - pub redacted: bool, + pub expired: bool, #[serde(default = "default_1842")] + pub redacted: bool, + #[serde(default = "default_1843")] pub from_status: String, } @@ -40395,13 +40397,13 @@ pub struct SearchTraceHit { pub content_excerpt: String, pub distance: f64, pub similarity: f64, - #[serde(default = "default_1843")] + #[serde(default = "default_1844")] pub entity_boost: f64, pub rank_score: f64, pub rank: Integer, - #[serde(default = "default_1844")] - pub source: String, #[serde(default = "default_1845")] + pub source: String, + #[serde(default = "default_1846")] pub parent_memory_key: String, } @@ -40411,11 +40413,11 @@ pub struct MemorySearchTraceOutput { pub results: Vec, pub embedding_model: String, pub entity_filter: Vec, - #[serde(default = "default_1846")] - pub query_spellings: std::collections::HashMap, #[serde(default = "default_1847")] - pub query_spellings_skipped: bool, + pub query_spellings: std::collections::HashMap, #[serde(default = "default_1848")] + pub query_spellings_skipped: bool, + #[serde(default = "default_1849")] pub stale_dropped: Integer, } @@ -41596,7 +41598,7 @@ pub struct SearchTraceLogRow { pub embedding_model: String, pub latency_ms: Integer, pub run_id: String, - #[serde(default = "default_1849")] + #[serde(default = "default_1850")] pub operation: String, } @@ -41705,71 +41707,71 @@ pub struct RefusedFact { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySetFromMessagesOutput { - #[serde(default = "default_1850")] - pub written: Vec, #[serde(default = "default_1851")] - pub refused: Vec, + pub written: Vec, #[serde(default = "default_1852")] - pub tokens_in: Integer, + pub refused: Vec, #[serde(default = "default_1853")] - pub tokens_out: Integer, + pub tokens_in: Integer, #[serde(default = "default_1854")] - pub llm_provider: String, + pub tokens_out: Integer, #[serde(default = "default_1855")] - pub llm_model: String, + pub llm_provider: String, #[serde(default = "default_1856")] - pub segments: Integer, + pub llm_model: String, #[serde(default = "default_1857")] - pub foresight: Integer, + pub segments: Integer, #[serde(default = "default_1858")] - pub forgotten: Integer, + pub foresight: Integer, #[serde(default = "default_1859")] - pub forgotten_keys: Vec, + pub forgotten: Integer, #[serde(default = "default_1860")] - pub forget_requests: Integer, + pub forgotten_keys: Vec, #[serde(default = "default_1861")] - pub about_other: Integer, + pub forget_requests: Integer, #[serde(default = "default_1862")] - pub premise_facts: Integer, + pub about_other: Integer, #[serde(default = "default_1863")] - pub learning_candidates: Integer, + pub premise_facts: Integer, #[serde(default = "default_1864")] - pub ignored_args: Vec, + pub learning_candidates: Integer, #[serde(default = "default_1865")] - pub segmenter: String, + pub ignored_args: Vec, #[serde(default = "default_1866")] - pub cached_tokens_in: Integer, + pub segmenter: String, #[serde(default = "default_1867")] - pub ontology_warnings: Vec, + pub cached_tokens_in: Integer, #[serde(default = "default_1868")] - pub evidence_ids: Vec, + pub ontology_warnings: Vec, #[serde(default = "default_1869")] - pub belief_source_links: Integer, + pub evidence_ids: Vec, #[serde(default = "default_1870")] - pub pipeline_errors: Vec, + pub belief_source_links: Integer, #[serde(default = "default_1871")] - pub value_updates_linked: Integer, + pub pipeline_errors: Vec, #[serde(default = "default_1872")] - pub stubbed_fields: Vec, + pub value_updates_linked: Integer, #[serde(default = "default_1873")] - pub degraded: Vec, + pub stubbed_fields: Vec, #[serde(default = "default_1874")] - pub deferred: bool, + pub degraded: Vec, #[serde(default = "default_1875")] - pub queue_id: String, + pub deferred: bool, #[serde(default = "default_1876")] - pub deferred_by: String, + pub queue_id: String, #[serde(default = "default_1877")] - pub stage_ms: std::collections::HashMap, + pub deferred_by: String, #[serde(default = "default_1878")] - pub observation_date_source: String, + pub stage_ms: std::collections::HashMap, #[serde(default = "default_1879")] - pub under_operator_policy: bool, + pub observation_date_source: String, #[serde(default = "default_1880")] - pub extract_prompt_keys: Vec, + pub under_operator_policy: bool, #[serde(default = "default_1881")] - pub llm_cache_hits: Integer, + pub extract_prompt_keys: Vec, #[serde(default = "default_1882")] + pub llm_cache_hits: Integer, + #[serde(default = "default_1883")] pub llm_cache_misses: Integer, } @@ -42183,22 +42185,22 @@ pub enum StackEntrySection { #[non_exhaustive] pub struct StackEntry { pub section: StackEntrySection, - #[serde(default = "default_1883")] - pub memory_key: String, #[serde(default = "default_1884")] - pub memory_type: String, + pub memory_key: String, #[serde(default = "default_1885")] + pub memory_type: String, + #[serde(default = "default_1886")] pub value: String, pub tokens: Integer, - #[serde(default = "default_1886")] - pub pinned: bool, #[serde(default = "default_1887")] - pub recall_count: Integer, + pub pinned: bool, #[serde(default = "default_1888")] - pub last_recalled_at: Option, + pub recall_count: Integer, #[serde(default = "default_1889")] - pub actor: String, + pub last_recalled_at: Option, #[serde(default = "default_1890")] + pub actor: String, + #[serde(default = "default_1891")] pub namespace: String, } @@ -42383,14 +42385,14 @@ impl MemoryStackInput { pub struct MemoryStatus { pub memory_id: String, pub status: String, - #[serde(default = "default_1891")] + #[serde(default = "default_1892")] pub superseded_by: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemoryStatusesOutput { - #[serde(default = "default_1892")] + #[serde(default = "default_1893")] pub rows: Vec, } @@ -42439,23 +42441,23 @@ impl MemoryStatusesInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct MemorySweepExpiredOutput { - #[serde(default = "default_1893")] - pub scanned: Integer, #[serde(default = "default_1894")] - pub tombstoned: Integer, + pub scanned: Integer, #[serde(default = "default_1895")] - pub demoted: Integer, + pub tombstoned: Integer, #[serde(default = "default_1896")] - pub anonymized: Integer, + pub demoted: Integer, #[serde(default = "default_1897")] - pub locked_skipped: Integer, + pub anonymized: Integer, #[serde(default = "default_1898")] - pub moved_skipped: Integer, + pub locked_skipped: Integer, #[serde(default = "default_1899")] - pub dry_run: bool, + pub moved_skipped: Integer, #[serde(default = "default_1900")] - pub sample: Vec>, + pub dry_run: bool, #[serde(default = "default_1901")] + pub sample: Vec>, + #[serde(default = "default_1902")] pub failures: Vec, } @@ -42532,10 +42534,10 @@ pub struct MemoryTimelineEntry { pub memory_key: String, pub memory_type: String, pub content_excerpt: String, - #[serde(default = "default_1902")] + #[serde(default = "default_1903")] pub valid_at: Option, pub created_at: String, - #[serde(default = "default_1903")] + #[serde(default = "default_1904")] pub namespace: String, } @@ -42543,7 +42545,7 @@ pub struct MemoryTimelineEntry { #[non_exhaustive] pub struct MemoryTimelineOutput { pub events: Vec, - #[serde(default = "default_1904")] + #[serde(default = "default_1905")] pub total_matching: Integer, } @@ -42735,9 +42737,9 @@ impl MemoryTimelineInput { pub struct MemoryTouchResult { pub memory_key: String, pub touched: bool, - #[serde(default = "default_1907")] - pub version: Option, #[serde(default = "default_1908")] + pub version: Option, + #[serde(default = "default_1909")] pub expires_at: Option, } @@ -42745,13 +42747,13 @@ pub struct MemoryTouchResult { #[non_exhaustive] pub struct MemoryTouchOutput { pub touched: bool, - #[serde(default = "default_1905")] - pub version: Option, #[serde(default = "default_1906")] + pub version: Option, + #[serde(default = "default_1907")] pub expires_at: Option, - #[serde(default = "default_1909")] - pub results: Vec, #[serde(default = "default_1910")] + pub results: Vec, + #[serde(default = "default_1911")] pub touched_count: Integer, } @@ -42931,15 +42933,15 @@ impl MemoryTouchInput { #[non_exhaustive] pub struct MemoryUnlockOutput { pub unlocked: bool, - #[serde(default = "default_1911")] - pub reason: String, #[serde(default = "default_1912")] - pub memory_id: String, + pub reason: String, #[serde(default = "default_1913")] - pub version: Option, + pub memory_id: String, #[serde(default = "default_1914")] - pub previous_mode: String, + pub version: Option, #[serde(default = "default_1915")] + pub previous_mode: String, + #[serde(default = "default_1916")] pub unlocked_by: String, } @@ -43044,11 +43046,11 @@ impl MemoryUnlockInput { #[non_exhaustive] pub struct MemoryUnpinOutput { pub unpinned: bool, - #[serde(default = "default_1916")] - pub reason: String, #[serde(default = "default_1917")] - pub memory_id: String, + pub reason: String, #[serde(default = "default_1918")] + pub memory_id: String, + #[serde(default = "default_1919")] pub version: Option, } @@ -43142,15 +43144,15 @@ impl MemoryUnpinInput { #[non_exhaustive] pub struct MemoryUpdateCandidate { pub memory_id: String, - #[serde(default = "default_1924")] - pub agent: String, #[serde(default = "default_1925")] - pub user_id: String, + pub agent: String, #[serde(default = "default_1926")] - pub session_id: String, + pub user_id: String, #[serde(default = "default_1927")] - pub version: Integer, + pub session_id: String, #[serde(default = "default_1928")] + pub version: Integer, + #[serde(default = "default_1929")] pub status: String, } @@ -43158,23 +43160,23 @@ pub struct MemoryUpdateCandidate { #[non_exhaustive] pub struct MemoryUpdateOutput { pub updated: bool, - #[serde(default = "default_1919")] - pub memory_id: String, #[serde(default = "default_1920")] - pub memory_key: String, + pub memory_id: String, #[serde(default = "default_1921")] - pub new_version: Integer, + pub memory_key: String, #[serde(default = "default_1922")] - pub content_sha256: String, + pub new_version: Integer, #[serde(default = "default_1923")] + pub content_sha256: String, + #[serde(default = "default_1924")] pub reason: String, - #[serde(default = "default_1929")] - pub candidates: Vec, #[serde(default = "default_1930")] - pub conflict_verdict: String, + pub candidates: Vec, #[serde(default = "default_1931")] - pub conflict_peers: Integer, + pub conflict_verdict: String, #[serde(default = "default_1932")] + pub conflict_peers: Integer, + #[serde(default = "default_1933")] pub duplicate_of: String, } @@ -43383,15 +43385,15 @@ impl MemoryUpdateInput { #[non_exhaustive] pub struct MemoryUpdateByIdOutput { pub updated: bool, - #[serde(default = "default_1933")] - pub new_version: Integer, #[serde(default = "default_1934")] - pub content_sha256: String, + pub new_version: Integer, #[serde(default = "default_1935")] - pub conflict_verdict: String, + pub content_sha256: String, #[serde(default = "default_1936")] - pub conflict_peers: Integer, + pub conflict_verdict: String, #[serde(default = "default_1937")] + pub conflict_peers: Integer, + #[serde(default = "default_1938")] pub duplicate_of: String, } @@ -43519,23 +43521,23 @@ impl MemoryUpdateByIdInput { #[non_exhaustive] pub struct MemoryVerifyOutput { pub found: bool, - #[serde(default = "default_1938")] - pub changed: bool, #[serde(default = "default_1939")] - pub memory_id: String, + pub changed: bool, #[serde(default = "default_1940")] - pub memory_key: String, + pub memory_id: String, #[serde(default = "default_1941")] - pub namespace: String, + pub memory_key: String, #[serde(default = "default_1942")] - pub verified_by: String, + pub namespace: String, #[serde(default = "default_1943")] - pub verified_at: Option, + pub verified_by: String, #[serde(default = "default_1944")] - pub verification: String, + pub verified_at: Option, #[serde(default = "default_1945")] - pub version: Integer, + pub verification: String, #[serde(default = "default_1946")] + pub version: Integer, + #[serde(default = "default_1947")] pub content_sha256: String, } @@ -43740,13 +43742,13 @@ pub struct SchemaFieldOutput { #[serde(rename = "type")] pub r#type: String, pub required: bool, - #[serde(default = "default_1949")] - pub identity: bool, #[serde(default = "default_1950")] - pub enum_values: Vec, + pub identity: bool, #[serde(default = "default_1951")] - pub constraints: std::collections::HashMap, + pub enum_values: Vec, #[serde(default = "default_1952")] + pub constraints: std::collections::HashMap, + #[serde(default = "default_1953")] pub description: String, } @@ -43755,11 +43757,11 @@ pub struct SchemaFieldOutput { pub struct MemorySchemaSummary { pub schema_id: String, pub name: String, - #[serde(default = "default_1947")] - pub description: String, #[serde(default = "default_1948")] + pub description: String, + #[serde(default = "default_1949")] pub status: String, - #[serde(default = "default_1953")] + #[serde(default = "default_1954")] pub fields: Vec, } @@ -44174,13 +44176,13 @@ impl MemorySchemaRegisterInput { #[non_exhaustive] pub struct MentorPlane { pub plane: String, - #[serde(default = "default_1955")] - pub calls: Integer, #[serde(default = "default_1956")] - pub available: Option, + pub calls: Integer, #[serde(default = "default_1957")] - pub when: String, + pub available: Option, #[serde(default = "default_1958")] + pub when: String, + #[serde(default = "default_1959")] pub mentored: bool, } @@ -44190,11 +44192,11 @@ pub struct MentorHint { pub code: String, pub severity: String, pub text: String, - #[serde(default = "default_1960")] - pub ops: Vec, #[serde(default = "default_1961")] - pub evidence: std::collections::HashMap, + pub ops: Vec, #[serde(default = "default_1962")] + pub evidence: std::collections::HashMap, + #[serde(default = "default_1963")] pub plane: Option, } @@ -44202,9 +44204,9 @@ pub struct MentorHint { #[non_exhaustive] pub struct MentorAdoption { pub code: String, - #[serde(default = "default_1964")] - pub shown_sessions: Integer, #[serde(default = "default_1965")] + pub shown_sessions: Integer, + #[serde(default = "default_1966")] pub followed_sessions: Integer, } @@ -44240,7 +44242,7 @@ pub enum UsageRungSource { #[non_exhaustive] pub struct UsageRung { pub rung: UsageRungRung, - #[serde(default = "default_1967")] + #[serde(default = "default_1968")] pub count: Option, pub source: UsageRungSource, pub meaning: String, @@ -44255,27 +44257,27 @@ pub struct MentorBriefOutput { pub window_seconds: Integer, pub computed_at: String, pub sessions: Integer, - #[serde(default = "default_1954")] + #[serde(default = "default_1955")] pub usage: std::collections::HashMap, - #[serde(default = "default_1959")] + #[serde(default = "default_1960")] pub planes: Vec, - #[serde(default = "default_1963")] + #[serde(default = "default_1964")] pub hints: Vec, - #[serde(default = "default_1966")] + #[serde(default = "default_1967")] pub adoption: Vec, - #[serde(default = "default_1968")] - pub usage_evidence: Vec, #[serde(default = "default_1969")] - pub ledger_from: Option, + pub usage_evidence: Vec, #[serde(default = "default_1970")] - pub ledger_retention_days: Option, + pub ledger_from: Option, #[serde(default = "default_1971")] - pub agents: Vec, + pub ledger_retention_days: Option, #[serde(default = "default_1972")] - pub agent_defaulted: bool, + pub agents: Vec, #[serde(default = "default_1973")] - pub skipped: Vec, + pub agent_defaulted: bool, #[serde(default = "default_1974")] + pub skipped: Vec, + #[serde(default = "default_1975")] pub healthy: bool, } @@ -44424,33 +44426,33 @@ impl MentorGuideInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct NamespaceAuditSummary { - #[serde(default = "default_1975")] - pub live_rows: Integer, #[serde(default = "default_1976")] - pub live_bytes: Integer, + pub live_rows: Integer, #[serde(default = "default_1977")] - pub excerpt_bytes: Integer, + pub live_bytes: Integer, #[serde(default = "default_1978")] - pub version_rows: Integer, + pub excerpt_bytes: Integer, #[serde(default = "default_1979")] - pub version_bytes: Integer, + pub version_rows: Integer, #[serde(default = "default_1980")] - pub unembedded_rows: Integer, + pub version_bytes: Integer, #[serde(default = "default_1981")] - pub gets: Integer, + pub unembedded_rows: Integer, #[serde(default = "default_1982")] - pub searches: Integer, + pub gets: Integer, #[serde(default = "default_1983")] - pub sets: Integer, + pub searches: Integer, #[serde(default = "default_1984")] - pub get_search_ratio: f64, + pub sets: Integer, #[serde(default = "default_1985")] - pub inspector_calls: Integer, + pub get_search_ratio: f64, #[serde(default = "default_1986")] - pub typed_gets: Integer, + pub inspector_calls: Integer, #[serde(default = "default_1987")] - pub written_in_window: Integer, + pub typed_gets: Integer, #[serde(default = "default_1988")] + pub written_in_window: Integer, + #[serde(default = "default_1989")] pub ledger_calls: Integer, } @@ -44482,25 +44484,25 @@ pub struct NamespaceAuditFinding { pub kind: NamespaceAuditFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_1989")] - pub window_seconds: Option, #[serde(default = "default_1990")] + pub window_seconds: Option, + #[serde(default = "default_1991")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_1991")] - pub evidence: Vec, #[serde(default = "default_1992")] - pub exceptions: String, + pub evidence: Vec, #[serde(default = "default_1993")] + pub exceptions: String, + #[serde(default = "default_1994")] pub uncertainty: String, pub code: String, pub severity: NamespaceAuditFindingSeverity, pub count: Integer, pub share: f64, - #[serde(default = "default_1994")] - pub bytes: Integer, #[serde(default = "default_1995")] + pub bytes: Integer, + #[serde(default = "default_1996")] pub samples: Vec>, pub detail: String, pub remedy: String, @@ -44515,7 +44517,7 @@ pub struct NamespaceAuditOutput { pub window_seconds: Integer, pub summary: NamespaceAuditSummary, pub findings: Vec, - #[serde(default = "default_1996")] + #[serde(default = "default_1997")] pub skipped: Vec, pub coverage: ReportCoverage, pub healthy: bool, @@ -44606,29 +44608,29 @@ pub enum BrowseEntryMyStatus { #[non_exhaustive] pub struct BrowseEntry { pub namespace: String, - #[serde(default = "default_1997")] + #[serde(default = "default_1998")] pub kind: String, pub description: String, pub owner_email: String, pub member_count: Integer, - #[serde(default = "default_1998")] + #[serde(default = "default_1999")] pub requires_approval: bool, pub created_at: String, - #[serde(default = "default_1999")] - pub join_policy: String, #[serde(default = "default_2000")] - pub visibility: String, + pub join_policy: String, #[serde(default = "default_2001")] - pub my_status: BrowseEntryMyStatus, + pub visibility: String, #[serde(default = "default_2002")] - pub my_role: String, + pub my_status: BrowseEntryMyStatus, #[serde(default = "default_2003")] - pub repo: String, + pub my_role: String, #[serde(default = "default_2004")] - pub branch: String, + pub repo: String, #[serde(default = "default_2005")] - pub guide_revision: Integer, + pub branch: String, #[serde(default = "default_2006")] + pub guide_revision: Integer, + #[serde(default = "default_2007")] pub guide_summary: String, } @@ -44732,9 +44734,9 @@ pub enum NamespaceCancelRequestOutputClearedRole { pub struct NamespaceCancelRequestOutput { pub cancelled: bool, pub namespace: String, - #[serde(default = "default_2007")] - pub cleared_role: Option, #[serde(default = "default_2008")] + pub cleared_role: Option, + #[serde(default = "default_2009")] pub cancelled_at: Option, } @@ -44806,7 +44808,7 @@ pub struct NamespaceDeleteOutput { pub deleted: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2009")] + #[serde(default = "default_2010")] pub sources_retired: Vec, } @@ -44875,67 +44877,67 @@ pub enum NamespaceGetOutputClassification { pub struct NamespaceGetOutput { pub found: bool, pub namespace: String, - #[serde(default = "default_2010")] - pub kind: Option, #[serde(default = "default_2011")] - pub owner_email: Option, + pub kind: Option, #[serde(default = "default_2012")] - pub description: Option, + pub owner_email: Option, #[serde(default = "default_2013")] - pub tags: Option>, + pub description: Option, #[serde(default = "default_2014")] - pub active: Option, + pub tags: Option>, #[serde(default = "default_2015")] - pub conversation_logging_enabled: Option, + pub active: Option, #[serde(default = "default_2016")] - pub capture_generation_io: Option, + pub conversation_logging_enabled: Option, #[serde(default = "default_2017")] - pub coverage_sweep: Option, + pub capture_generation_io: Option, #[serde(default = "default_2018")] - pub consolidation_enabled: Option, + pub coverage_sweep: Option, #[serde(default = "default_2019")] - pub daily_cost_cap_usd: Option, + pub consolidation_enabled: Option, #[serde(default = "default_2020")] - pub daily_user_cost_cap_usd: Option, + pub daily_cost_cap_usd: Option, #[serde(default = "default_2021")] - pub budget_alert_inbox: Option, + pub daily_user_cost_cap_usd: Option, #[serde(default = "default_2022")] - pub conflict_threshold: Option, + pub budget_alert_inbox: Option, #[serde(default = "default_2023")] - pub retention_days: Option, + pub conflict_threshold: Option, #[serde(default = "default_2024")] - pub warm_days: Option, + pub retention_days: Option, #[serde(default = "default_2025")] - pub visibility: Option, + pub warm_days: Option, #[serde(default = "default_2026")] - pub requires_approval: Option, + pub visibility: Option, #[serde(default = "default_2027")] - pub join_policy: Option, + pub requires_approval: Option, #[serde(default = "default_2028")] - pub effective_join_policy: Option, + pub join_policy: Option, #[serde(default = "default_2029")] - pub retrieval_defaults: Option>, + pub effective_join_policy: Option, #[serde(default = "default_2030")] - pub rerank_endpoint: Option, + pub retrieval_defaults: Option>, #[serde(default = "default_2031")] - pub classify_endpoint: Option, + pub rerank_endpoint: Option, #[serde(default = "default_2032")] - pub default_conflict_policy: Option, + pub classify_endpoint: Option, #[serde(default = "default_2033")] - pub proposal_policy: Option, + pub default_conflict_policy: Option, #[serde(default = "default_2034")] - pub code_change_policy: Option, + pub proposal_policy: Option, #[serde(default = "default_2035")] - pub tag_registry: Option>>, + pub code_change_policy: Option, #[serde(default = "default_2036")] - pub classification: Option, + pub tag_registry: Option>>, #[serde(default = "default_2037")] - pub guide_revision: Option, + pub classification: Option, #[serde(default = "default_2038")] - pub guide_summary: Option, + pub guide_revision: Option, #[serde(default = "default_2039")] - pub created_at: Option, + pub guide_summary: Option, #[serde(default = "default_2040")] + pub created_at: Option, + #[serde(default = "default_2041")] pub updated_at: Option, } @@ -44988,17 +44990,17 @@ impl NamespaceGetInput { #[non_exhaustive] pub struct NamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2041")] - pub revision: Integer, #[serde(default = "default_2042")] - pub content: String, + pub revision: Integer, #[serde(default = "default_2043")] - pub summary: String, + pub content: String, #[serde(default = "default_2044")] - pub note: String, + pub summary: String, #[serde(default = "default_2045")] - pub updated_by: String, + pub note: String, #[serde(default = "default_2046")] + pub updated_by: String, + #[serde(default = "default_2047")] pub updated_at: Option, } @@ -45135,17 +45137,17 @@ impl NamespaceGuideHistoryInput { #[non_exhaustive] pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { pub found: bool, - #[serde(default = "default_2048")] - pub revision: Integer, #[serde(default = "default_2049")] - pub content: String, + pub revision: Integer, #[serde(default = "default_2050")] - pub summary: String, + pub content: String, #[serde(default = "default_2051")] - pub note: String, + pub summary: String, #[serde(default = "default_2052")] - pub updated_by: String, + pub note: String, #[serde(default = "default_2053")] + pub updated_by: String, + #[serde(default = "default_2054")] pub updated_at: Option, } @@ -45153,10 +45155,10 @@ pub struct NamespaceGuideSetOutputNamespaceGuideGetOutput { #[non_exhaustive] pub struct NamespaceGuideSetOutput { pub written: bool, - #[serde(default = "default_2047")] + #[serde(default = "default_2048")] pub conflict: bool, pub revision: Integer, - #[serde(default = "default_2054")] + #[serde(default = "default_2055")] pub current: Option, } @@ -45277,7 +45279,7 @@ pub struct InventorySection { #[serde(deserialize_with = "required_nullable")] pub latest_at: Option, pub complete: bool, - #[serde(default = "default_2055")] + #[serde(default = "default_2056")] pub reason: String, } @@ -45307,10 +45309,10 @@ pub struct InventoryPopulation { pub population: InventoryPopulationPopulation, #[serde(deserialize_with = "required_nullable")] pub total: Option, - #[serde(default = "default_2056")] + #[serde(default = "default_2057")] pub top: Vec, pub complete: bool, - #[serde(default = "default_2057")] + #[serde(default = "default_2058")] pub reason: String, } @@ -45476,11 +45478,11 @@ pub struct NamespaceJoinOutput { pub joined: bool, pub namespace: String, pub role: NamespaceJoinOutputRole, - #[serde(default = "default_2058")] - pub status: String, #[serde(default = "default_2059")] - pub requested_role: Option, + pub status: String, #[serde(default = "default_2060")] + pub requested_role: Option, + #[serde(default = "default_2061")] pub pending_admins: Vec, pub joined_at: String, } @@ -45572,7 +45574,7 @@ impl NamespaceJoinInput { pub struct NamespaceLeaveOutput { pub left: bool, pub namespace: String, - #[serde(default = "default_2061")] + #[serde(default = "default_2062")] pub left_at: Option, } @@ -45649,27 +45651,27 @@ pub enum NamespaceEntryVisibility { #[non_exhaustive] pub struct NamespaceEntry { pub namespace: String, - #[serde(default = "default_2062")] + #[serde(default = "default_2063")] pub kind: String, pub owner_email: String, pub description: String, pub tags: Vec, pub active: bool, - #[serde(default = "default_2063")] - pub consolidation_enabled: bool, #[serde(default = "default_2064")] - pub daily_cost_cap_usd: f64, + pub consolidation_enabled: bool, #[serde(default = "default_2065")] - pub daily_user_cost_cap_usd: f64, + pub daily_cost_cap_usd: f64, #[serde(default = "default_2066")] - pub budget_alert_inbox: String, + pub daily_user_cost_cap_usd: f64, #[serde(default = "default_2067")] - pub conflict_threshold: Option, + pub budget_alert_inbox: String, #[serde(default = "default_2068")] - pub retention_days: Integer, + pub conflict_threshold: Option, #[serde(default = "default_2069")] - pub warm_days: Integer, + pub retention_days: Integer, #[serde(default = "default_2070")] + pub warm_days: Integer, + #[serde(default = "default_2071")] pub visibility: NamespaceEntryVisibility, pub created_at: String, pub updated_at: String, @@ -45824,27 +45826,27 @@ pub enum MineEntryVisibility { pub struct MineEntry { pub namespace: String, pub role: String, - #[serde(default = "default_2071")] - pub status: String, #[serde(default = "default_2072")] - pub pending_role: Option, + pub status: String, #[serde(default = "default_2073")] - pub pending_since: Option, + pub pending_role: Option, #[serde(default = "default_2074")] - pub pending_admins: Vec, + pub pending_since: Option, #[serde(default = "default_2075")] - pub visibility: MineEntryVisibility, + pub pending_admins: Vec, #[serde(default = "default_2076")] - pub kind: String, + pub visibility: MineEntryVisibility, #[serde(default = "default_2077")] - pub title: String, + pub kind: String, #[serde(default = "default_2078")] - pub description: String, + pub title: String, #[serde(default = "default_2079")] - pub joined_at: Option, + pub description: String, #[serde(default = "default_2080")] - pub is_new: bool, + pub joined_at: Option, #[serde(default = "default_2081")] + pub is_new: bool, + #[serde(default = "default_2082")] pub inherited: bool, } @@ -45910,7 +45912,7 @@ pub struct OntologyEntry { pub name: String, pub status: String, pub description: String, - #[serde(default = "default_2082")] + #[serde(default = "default_2083")] pub cardinality: String, pub created_by: String, pub updated_at: String, @@ -46103,7 +46105,7 @@ pub struct NamespaceRegisterOutput { pub registered: bool, pub namespace: String, pub updated_at: String, - #[serde(default = "default_2083")] + #[serde(default = "default_2084")] pub visibility: NamespaceRegisterOutputVisibility, } @@ -47183,7 +47185,7 @@ impl NamespaceRegisterOntologyInput { #[non_exhaustive] pub struct NamespaceRestoreOutput { pub restored: bool, - #[serde(default = "default_2084")] + #[serde(default = "default_2085")] pub publication_pending: bool, pub target_namespace: String, pub snapshot_id: String, @@ -48070,15 +48072,15 @@ pub struct NamespaceRollbackOutput { pub version_at: Integer, pub reinstate: Integer, pub remove: Integer, - #[serde(default = "default_2085")] - pub skipped_no_head: Integer, #[serde(default = "default_2086")] - pub skipped_already_gone: Integer, + pub skipped_no_head: Integer, #[serde(default = "default_2087")] - pub truncated: bool, + pub skipped_already_gone: Integer, #[serde(default = "default_2088")] - pub sample: Vec>, + pub truncated: bool, #[serde(default = "default_2089")] + pub sample: Vec>, + #[serde(default = "default_2090")] pub applied_at: Option, } @@ -48257,101 +48259,101 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub confidence: f64, pub source_trace: String, pub pinned: bool, - #[serde(default = "default_2090")] - pub expires_at: Option, #[serde(default = "default_2091")] - pub entities: Vec, + pub expires_at: Option, #[serde(default = "default_2092")] - pub version: Integer, + pub entities: Vec, #[serde(default = "default_2093")] - pub content_sha256: String, + pub version: Integer, #[serde(default = "default_2094")] - pub actor: String, + pub content_sha256: String, #[serde(default = "default_2095")] - pub source_class: String, + pub actor: String, #[serde(default = "default_2096")] - pub source_resource_id: String, + pub source_class: String, #[serde(default = "default_2097")] - pub verified_by: String, + pub source_resource_id: String, #[serde(default = "default_2098")] - pub verified_at: Option, + pub verified_by: String, #[serde(default = "default_2099")] - pub verified_sha256: String, + pub verified_at: Option, #[serde(default = "default_2100")] - pub grounding: String, + pub verified_sha256: String, #[serde(default = "default_2101")] - pub evidence: String, + pub grounding: String, #[serde(default = "default_2102")] - pub tags: Vec, + pub evidence: String, #[serde(default = "default_2103")] - pub valid_at: Option, + pub tags: Vec, #[serde(default = "default_2104")] - pub valid_to: Option, + pub valid_at: Option, #[serde(default = "default_2105")] - pub created_at: Option, + pub valid_to: Option, #[serde(default = "default_2106")] - pub updated_at: Option, + pub created_at: Option, #[serde(default = "default_2107")] - pub value_json: String, + pub updated_at: Option, #[serde(default = "default_2108")] - pub status: NamespaceSnapshotOutputSnapshotMemoryRowStatus, + pub value_json: String, #[serde(default = "default_2109")] - pub requires_review: Option, + pub status: NamespaceSnapshotOutputSnapshotMemoryRowStatus, #[serde(default = "default_2110")] - pub conflict_with: Vec, + pub requires_review: Option, #[serde(default = "default_2111")] - pub duplicate_of: String, + pub conflict_with: Vec, #[serde(default = "default_2112")] - pub evidence_count: Integer, + pub duplicate_of: String, #[serde(default = "default_2113")] - pub recall_count: Integer, + pub evidence_count: Integer, #[serde(default = "default_2114")] - pub last_recalled_at: Option, + pub recall_count: Integer, #[serde(default = "default_2115")] - pub cross_promoted_from_memory_id: String, + pub last_recalled_at: Option, #[serde(default = "default_2116")] - pub cross_promoted_from_namespace: String, + pub cross_promoted_from_memory_id: String, #[serde(default = "default_2117")] - pub superseded_by: String, + pub cross_promoted_from_namespace: String, #[serde(default = "default_2118")] - pub rejection_reason: String, + pub superseded_by: String, #[serde(default = "default_2119")] - pub temporal_anchor: Option, + pub rejection_reason: String, #[serde(default = "default_2120")] - pub temporal_confidence: f64, + pub temporal_anchor: Option, #[serde(default = "default_2121")] - pub invalid_at: Option, + pub temporal_confidence: f64, #[serde(default = "default_2122")] - pub char_limit: Option, + pub invalid_at: Option, #[serde(default = "default_2123")] - pub reinforcement_count: Integer, + pub char_limit: Option, #[serde(default = "default_2124")] - pub last_reinforced_at: Option, + pub reinforcement_count: Integer, #[serde(default = "default_2125")] - pub mentioned_at: Option, + pub last_reinforced_at: Option, #[serde(default = "default_2126")] - pub sensitivity: String, + pub mentioned_at: Option, #[serde(default = "default_2127")] - pub redacted_at: Option, + pub sensitivity: String, #[serde(default = "default_2128")] - pub redaction_reason: String, + pub redacted_at: Option, #[serde(default = "default_2129")] - pub lock_mode: String, + pub redaction_reason: String, #[serde(default = "default_2130")] - pub lock_reason: String, + pub lock_mode: String, #[serde(default = "default_2131")] - pub lock_until: Option, + pub lock_reason: String, #[serde(default = "default_2132")] - pub locked_by: String, + pub lock_until: Option, #[serde(default = "default_2133")] - pub locked_at: Option, + pub locked_by: String, #[serde(default = "default_2134")] - pub on_expire: String, + pub locked_at: Option, #[serde(default = "default_2135")] - pub expire_reason: String, + pub on_expire: String, #[serde(default = "default_2136")] - pub files: Vec, + pub expire_reason: String, #[serde(default = "default_2137")] + pub files: Vec, + #[serde(default = "default_2138")] pub concepts: Vec, } @@ -48360,11 +48362,11 @@ pub struct NamespaceSnapshotOutputSnapshotMemoryRow { pub struct NamespaceSnapshotOutputSnapshotTypeRow { pub memory_type: String, pub retention_days: Integer, - #[serde(default = "default_2138")] - pub dedup_threshold: Option, #[serde(default = "default_2139")] - pub hot_quota: Integer, + pub dedup_threshold: Option, #[serde(default = "default_2140")] + pub hot_quota: Integer, + #[serde(default = "default_2141")] pub conflict_policy: String, } @@ -48579,7 +48581,7 @@ pub struct TaxonomyCommunity { pub community_id: Integer, pub label: String, pub size: Integer, - #[serde(default = "default_2141")] + #[serde(default = "default_2142")] pub top_entities: Vec, } @@ -48590,9 +48592,9 @@ pub struct NamespaceTaxonomyOutput { pub entities: Vec, pub memory_count: Integer, pub memory_types: Vec, - #[serde(default = "default_2142")] - pub communities: Vec, #[serde(default = "default_2143")] + pub communities: Vec, + #[serde(default = "default_2144")] pub communities_computed_at: String, } @@ -48692,15 +48694,15 @@ pub enum TuneProposalTarget { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TuneEvidence { - #[serde(default = "default_2145")] - pub finding_codes: Vec, #[serde(default = "default_2146")] - pub supporting_count: Integer, + pub finding_codes: Vec, #[serde(default = "default_2147")] - pub supporting: Vec, + pub supporting_count: Integer, #[serde(default = "default_2148")] - pub counter_count: Option, + pub supporting: Vec, #[serde(default = "default_2149")] + pub counter_count: Option, + #[serde(default = "default_2150")] pub documents: Vec, } @@ -48726,10 +48728,10 @@ pub enum TuneApplyVia { #[non_exhaustive] pub struct TuneApply { pub op: String, - #[serde(default = "default_2153")] + #[serde(default = "default_2154")] pub via: TuneApplyVia, pub args: std::collections::HashMap, - #[serde(default = "default_2154")] + #[serde(default = "default_2155")] pub args_complete: bool, pub required_role: String, pub guard: String, @@ -48748,7 +48750,7 @@ pub struct ChunkStats { pub sections: Integer, pub sections_cut: Integer, pub max_input_tokens: Integer, - #[serde(default = "default_2156")] + #[serde(default = "default_2157")] pub over_input_limit: Option, } @@ -48768,25 +48770,25 @@ pub struct TuneProposal { pub title: String, pub rationale: String, pub current: String, - #[serde(default = "default_2144")] + #[serde(default = "default_2145")] pub current_revision: Option, pub proposed: String, pub evidence: TuneEvidence, - #[serde(default = "default_2150")] - pub affected_agents: Vec, #[serde(default = "default_2151")] - pub affected_agents_total: Option, + pub affected_agents: Vec, #[serde(default = "default_2152")] + pub affected_agents_total: Option, + #[serde(default = "default_2153")] pub effect: TuneProposalEffect, pub historical: String, pub apply: TuneApply, - #[serde(default = "default_2155")] + #[serde(default = "default_2156")] pub apply_also: Vec, - #[serde(default = "default_2157")] - pub preview: Option, #[serde(default = "default_2158")] - pub limits: String, + pub preview: Option, #[serde(default = "default_2159")] + pub limits: String, + #[serde(default = "default_2160")] pub refs: Vec, } @@ -48794,13 +48796,13 @@ pub struct TuneProposal { #[non_exhaustive] pub struct ChunkingSample { pub cap: Integer, - #[serde(default = "default_2165")] + #[serde(default = "default_2166")] pub population: Option, pub documents: Integer, pub unread: Integer, pub load_cap: Integer, pub embedder_model: String, - #[serde(default = "default_2166")] + #[serde(default = "default_2167")] pub input_token_limit: Option, pub current: ChunkStats, } @@ -48811,21 +48813,21 @@ pub struct NamespaceTuneOutput { pub org: String, pub namespace: String, pub computed_at: String, - #[serde(default = "default_2160")] - pub proposals: Vec, #[serde(default = "default_2161")] - pub guide_revision: Option, + pub proposals: Vec, #[serde(default = "default_2162")] - pub categories_registered: Option, + pub guide_revision: Option, #[serde(default = "default_2163")] - pub extraction_policy: Option, + pub categories_registered: Option, #[serde(default = "default_2164")] + pub extraction_policy: Option, + #[serde(default = "default_2165")] pub extraction_policy_unavailable: String, - #[serde(default = "default_2167")] - pub chunking: Option, #[serde(default = "default_2168")] - pub skipped: Vec, + pub chunking: Option, #[serde(default = "default_2169")] + pub skipped: Vec, + #[serde(default = "default_2170")] pub model_used: bool, } @@ -48946,25 +48948,25 @@ pub struct NamespaceValidateFinding { pub kind: NamespaceValidateFindingKind, pub rule_version: Integer, pub source_op: String, - #[serde(default = "default_2170")] - pub window_seconds: Option, #[serde(default = "default_2171")] + pub window_seconds: Option, + #[serde(default = "default_2172")] pub population: Option, pub sample_limit: Integer, pub samples_complete: bool, - #[serde(default = "default_2172")] - pub evidence: Vec, #[serde(default = "default_2173")] - pub exceptions: String, + pub evidence: Vec, #[serde(default = "default_2174")] + pub exceptions: String, + #[serde(default = "default_2175")] pub uncertainty: String, pub check: String, pub severity: NamespaceValidateFindingSeverity, pub count: Integer, - #[serde(default = "default_2175")] + #[serde(default = "default_2176")] pub samples: Vec>, pub detail: String, - #[serde(default = "default_2176")] + #[serde(default = "default_2177")] pub totals: std::collections::HashMap, } @@ -48978,9 +48980,9 @@ pub struct NamespaceValidateOutput { pub warnings: Integer, pub infos: Integer, pub findings: Vec, - #[serde(default = "default_2177")] - pub skipped: Vec, #[serde(default = "default_2178")] + pub skipped: Vec, + #[serde(default = "default_2179")] pub keys_scoped: Integer, pub coverage: ReportCoverage, pub checked_at: String, @@ -49100,9 +49102,9 @@ impl NamespaceValidateInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ObserveCrystallizeOutput { - #[serde(default = "default_2179")] - pub enqueued: Integer, #[serde(default = "default_2180")] + pub enqueued: Integer, + #[serde(default = "default_2181")] pub session_id: String, } @@ -49199,23 +49201,23 @@ impl ObserveCrystallizeInput { #[non_exhaustive] pub struct ObserveRecordOutput { pub memory_key: String, - #[serde(default = "default_2181")] - pub memory_id: String, #[serde(default = "default_2182")] - pub kind: String, + pub memory_id: String, #[serde(default = "default_2183")] - pub tags: Vec, + pub kind: String, #[serde(default = "default_2184")] - pub file_paths: Vec, + pub tags: Vec, #[serde(default = "default_2185")] - pub content_sha256: String, + pub file_paths: Vec, #[serde(default = "default_2186")] - pub tool_name: String, + pub content_sha256: String, #[serde(default = "default_2187")] - pub has_error: bool, + pub tool_name: String, #[serde(default = "default_2188")] - pub narrative_chars: Integer, + pub has_error: bool, #[serde(default = "default_2189")] + pub narrative_chars: Integer, + #[serde(default = "default_2190")] pub skipped_reason: String, } @@ -49414,26 +49416,26 @@ pub struct ProjectionFailureRow { pub failure_id: String, pub org: String, pub namespace: String, - #[serde(default = "default_2190")] + #[serde(default = "default_2191")] pub agent: String, pub projection: String, - #[serde(default = "default_2191")] - pub source_operation: String, #[serde(default = "default_2192")] - pub source_resource_id: String, + pub source_operation: String, #[serde(default = "default_2193")] - pub memory_keys: Vec, + pub source_resource_id: String, #[serde(default = "default_2194")] - pub error_type: String, + pub memory_keys: Vec, #[serde(default = "default_2195")] - pub error_message: String, + pub error_type: String, #[serde(default = "default_2196")] - pub payload: std::collections::HashMap, + pub error_message: String, #[serde(default = "default_2197")] - pub status: String, + pub payload: std::collections::HashMap, #[serde(default = "default_2198")] - pub created_at: Option, + pub status: String, #[serde(default = "default_2199")] + pub created_at: Option, + #[serde(default = "default_2200")] pub resolved_at: Option, } @@ -49587,22 +49589,22 @@ pub struct ProjectionFailureRetryRow { pub projection: String, pub retried: bool, pub resolved: bool, - #[serde(default = "default_2200")] - pub abandoned: bool, #[serde(default = "default_2201")] - pub reason: String, + pub abandoned: bool, #[serde(default = "default_2202")] + pub reason: String, + #[serde(default = "default_2203")] pub error: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProjectionFailureRetryOutput { - #[serde(default = "default_2203")] + #[serde(default = "default_2204")] pub results: Vec, pub retried: Integer, pub resolved: Integer, - #[serde(default = "default_2204")] + #[serde(default = "default_2205")] pub abandoned: Integer, } @@ -49684,15 +49686,15 @@ impl ProjectionFailureRetryInput { pub struct OrgModelCallsOutput { pub org: String, pub enabled: bool, - #[serde(default = "default_2205")] - pub reason: String, #[serde(default = "default_2206")] - pub updated_by: String, + pub reason: String, #[serde(default = "default_2207")] - pub updated_at: Option, + pub updated_by: String, #[serde(default = "default_2208")] - pub locked: bool, + pub updated_at: Option, #[serde(default = "default_2209")] + pub locked: bool, + #[serde(default = "default_2210")] pub locked_by: String, } @@ -50031,7 +50033,7 @@ impl PolicyDecisionsInput { #[non_exhaustive] pub struct PolicyDeleteOutput { pub removed: bool, - #[serde(default = "default_2210")] + #[serde(default = "default_2211")] pub widening: bool, } @@ -50097,12 +50099,12 @@ pub struct PolicyRuleOut { pub condition: std::collections::HashMap, pub description: String, pub enabled: bool, - #[serde(default = "default_2211")] + #[serde(default = "default_2212")] pub mode: String, pub created_by: String, - #[serde(default = "default_2212")] - pub created_at: Option, #[serde(default = "default_2213")] + pub created_at: Option, + #[serde(default = "default_2214")] pub updated_at: Option, } @@ -50174,9 +50176,9 @@ impl PolicyListInput { pub struct PolicySetOutput { pub rule: PolicyRuleOut, pub leaf_count: Integer, - #[serde(default = "default_2214")] - pub widening: bool, #[serde(default = "default_2215")] + pub widening: bool, + #[serde(default = "default_2216")] pub change: Vec, } @@ -50446,37 +50448,37 @@ pub struct ProcedureEvolveOutput { pub revision: Integer, pub changed: bool, pub template: bool, - #[serde(default = "default_2216")] - pub folded_runs: Integer, #[serde(default = "default_2217")] - pub gate: ProcedureEvolveOutputGate, + pub folded_runs: Integer, #[serde(default = "default_2218")] - pub gate_mode: String, + pub gate: ProcedureEvolveOutputGate, #[serde(default = "default_2219")] - pub gate_llr: f64, + pub gate_mode: String, #[serde(default = "default_2220")] - pub gate_before: std::collections::HashMap, + pub gate_llr: f64, #[serde(default = "default_2221")] - pub gate_after: std::collections::HashMap, + pub gate_before: std::collections::HashMap, #[serde(default = "default_2222")] - pub gate_cost_before: std::collections::HashMap, + pub gate_after: std::collections::HashMap, #[serde(default = "default_2223")] - pub gate_cost_after: std::collections::HashMap, + pub gate_cost_before: std::collections::HashMap, #[serde(default = "default_2224")] - pub gate_reason: String, + pub gate_cost_after: std::collections::HashMap, #[serde(default = "default_2225")] - pub dead_end_steps: Vec, + pub gate_reason: String, #[serde(default = "default_2226")] - pub fail_prone_steps: Vec, + pub dead_end_steps: Vec, #[serde(default = "default_2227")] - pub fail_prone_transitions: Vec, + pub fail_prone_steps: Vec, #[serde(default = "default_2228")] - pub run_stats: std::collections::HashMap, + pub fail_prone_transitions: Vec, #[serde(default = "default_2229")] - pub strikes: Integer, + pub run_stats: std::collections::HashMap, #[serde(default = "default_2230")] - pub quarantined: bool, + pub strikes: Integer, #[serde(default = "default_2231")] + pub quarantined: bool, + #[serde(default = "default_2232")] pub retention: std::collections::HashMap, } @@ -50699,9 +50701,9 @@ pub struct ProcedureForkOutput { pub memory_key: String, pub version: Integer, pub name: String, - #[serde(default = "default_2232")] - pub steps: Vec, #[serde(default = "default_2233")] + pub steps: Vec, + #[serde(default = "default_2234")] pub forked_from: std::collections::HashMap, } @@ -50961,32 +50963,32 @@ pub enum ProcedureLocateOutputStatus { #[non_exhaustive] pub struct ProcedureLocateOutput { pub memory_key: String, - #[serde(default = "default_2234")] - pub name: String, #[serde(default = "default_2235")] + pub name: String, + #[serde(default = "default_2236")] pub status: ProcedureLocateOutputStatus, pub matched: bool, - #[serde(default = "default_2236")] - pub active: Option>, #[serde(default = "default_2237")] - pub hops: Vec>>, + pub active: Option>, #[serde(default = "default_2238")] - pub entry_nodes: Vec, + pub hops: Vec>>, #[serde(default = "default_2239")] - pub dominant_next: Vec, + pub entry_nodes: Vec, #[serde(default = "default_2240")] - pub revisits: std::collections::HashMap, + pub dominant_next: Vec, #[serde(default = "default_2241")] - pub looping: bool, + pub revisits: std::collections::HashMap, #[serde(default = "default_2242")] - pub exits: Vec, + pub looping: bool, #[serde(default = "default_2243")] - pub failure_notes: Vec>, + pub exits: Vec, #[serde(default = "default_2244")] - pub rendered: String, + pub failure_notes: Vec>, #[serde(default = "default_2245")] - pub run_stats: std::collections::HashMap, + pub rendered: String, #[serde(default = "default_2246")] + pub run_stats: std::collections::HashMap, + #[serde(default = "default_2247")] pub for_agent: std::collections::HashMap, } @@ -51141,43 +51143,43 @@ pub struct ProcedureMatch { pub name: String, pub situation: String, pub steps: Vec, - #[serde(default = "default_2247")] - pub tags: Vec, #[serde(default = "default_2248")] + pub tags: Vec, + #[serde(default = "default_2249")] pub metadata: std::collections::HashMap, pub similarity: f64, pub memory_key: String, pub namespace: String, - #[serde(default = "default_2249")] - pub graph: Option>, #[serde(default = "default_2250")] - pub template: bool, + pub graph: Option>, #[serde(default = "default_2251")] - pub run_stats: std::collections::HashMap, + pub template: bool, #[serde(default = "default_2252")] - pub status: ProcedureMatchStatus, + pub run_stats: std::collections::HashMap, #[serde(default = "default_2253")] - pub quarantined: Option>, + pub status: ProcedureMatchStatus, #[serde(default = "default_2254")] - pub fail_prone_steps: Vec, + pub quarantined: Option>, #[serde(default = "default_2255")] - pub revision: Integer, + pub fail_prone_steps: Vec, #[serde(default = "default_2256")] - pub rejected_revisions: Vec>, + pub revision: Integer, #[serde(default = "default_2257")] - pub tool_overlap: f64, + pub rejected_revisions: Vec>, #[serde(default = "default_2258")] - pub score: f64, + pub tool_overlap: f64, #[serde(default = "default_2259")] - pub utility: f64, + pub score: f64, #[serde(default = "default_2260")] - pub goal_similarity: Option, + pub utility: f64, #[serde(default = "default_2261")] - pub for_agent: std::collections::HashMap, + pub goal_similarity: Option, #[serde(default = "default_2262")] + pub for_agent: std::collections::HashMap, + #[serde(default = "default_2263")] pub run_stats_by_agent: std::collections::HashMap>, - #[serde(default = "default_2263")] + #[serde(default = "default_2264")] pub actor: String, } @@ -51185,11 +51187,11 @@ pub struct ProcedureMatch { #[non_exhaustive] pub struct ProcedureMatchOutput { pub matches: Vec, - #[serde(default = "default_2264")] - pub matched: Integer, #[serde(default = "default_2265")] - pub procedure_key: String, + pub matched: Integer, #[serde(default = "default_2266")] + pub procedure_key: String, + #[serde(default = "default_2267")] pub score: f64, } @@ -51570,7 +51572,7 @@ pub struct ProcedureReviseOutput { pub revision: Integer, pub prior_revision: Integer, pub digest: String, - #[serde(default = "default_2267")] + #[serde(default = "default_2268")] pub steps: Vec, } @@ -51682,14 +51684,14 @@ pub struct ProfileActivityEntry { pub agent: String, pub last_activated_at: String, pub event_count: Integer, - #[serde(default = "default_2268")] + #[serde(default = "default_2269")] pub operations: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct ProfileActivityOutput { - #[serde(default = "default_2269")] + #[serde(default = "default_2270")] pub entries: Vec, } @@ -51797,17 +51799,17 @@ impl ProfileActivityInput { #[non_exhaustive] pub struct ProfileMutationOutput { pub version: Integer, - #[serde(default = "default_2270")] - pub memory_id: String, #[serde(default = "default_2271")] - pub content_sha256: String, + pub memory_id: String, #[serde(default = "default_2272")] - pub namespace: String, + pub content_sha256: String, #[serde(default = "default_2273")] - pub label: String, + pub namespace: String, #[serde(default = "default_2274")] - pub char_limit: Option, + pub label: String, #[serde(default = "default_2275")] + pub char_limit: Option, + #[serde(default = "default_2276")] pub value_length: Integer, } @@ -51916,7 +51918,7 @@ pub struct ProfileRenderOutput { pub rendered: String, pub section_count: Integer, pub total_chars: Integer, - #[serde(default = "default_2276")] + #[serde(default = "default_2277")] pub labels: Vec, } @@ -52301,17 +52303,17 @@ pub enum ProfileStructuredOutputStatus { #[non_exhaustive] pub struct ProfileStructuredOutput { pub status: ProfileStructuredOutputStatus, - #[serde(default = "default_2277")] - pub profile: std::collections::HashMap, #[serde(default = "default_2278")] - pub built_at: Option, + pub profile: std::collections::HashMap, #[serde(default = "default_2279")] - pub memory_id: String, + pub built_at: Option, #[serde(default = "default_2280")] - pub version: Integer, + pub memory_id: String, #[serde(default = "default_2281")] - pub version_text: String, + pub version: Integer, #[serde(default = "default_2282")] + pub version_text: String, + #[serde(default = "default_2283")] pub schema_sha256: String, } @@ -52428,13 +52430,13 @@ impl ProfileStructuredInput { #[non_exhaustive] pub struct ProfileSchemaOutput { pub found: bool, - #[serde(default = "default_2283")] - pub json_schema: std::collections::HashMap, #[serde(default = "default_2284")] - pub schema_sha256: String, + pub json_schema: std::collections::HashMap, #[serde(default = "default_2285")] - pub updated_by: String, + pub schema_sha256: String, #[serde(default = "default_2286")] + pub updated_by: String, + #[serde(default = "default_2287")] pub updated_at: Option, } @@ -52587,10 +52589,10 @@ pub enum RunBeginOutputStatus { #[non_exhaustive] pub struct RunBeginOutput { pub run_id: String, - #[serde(default = "default_2287")] + #[serde(default = "default_2288")] pub status: RunBeginOutputStatus, pub started_at: String, - #[serde(default = "default_2288")] + #[serde(default = "default_2289")] pub next: String, } @@ -52798,29 +52800,29 @@ pub struct RunCompleteOutput { pub run_id: String, pub status: RunCompleteOutputStatus, pub duration_ms: Integer, - #[serde(default = "default_2289")] - pub used_applied: Integer, #[serde(default = "default_2290")] - pub evidence_applied: Integer, + pub used_applied: Integer, #[serde(default = "default_2291")] - pub harm_applied: Integer, + pub evidence_applied: Integer, #[serde(default = "default_2292")] - pub memories_written: Vec, + pub harm_applied: Integer, #[serde(default = "default_2293")] - pub recalled: Integer, + pub memories_written: Vec, #[serde(default = "default_2294")] - pub observations: Integer, + pub recalled: Integer, #[serde(default = "default_2295")] - pub procedure_runs_recorded: Integer, + pub observations: Integer, #[serde(default = "default_2296")] - pub reflection_key: String, + pub procedure_runs_recorded: Integer, #[serde(default = "default_2297")] - pub retain: String, + pub reflection_key: String, #[serde(default = "default_2298")] - pub retained: Integer, + pub retain: String, #[serde(default = "default_2299")] - pub demoted: Integer, + pub retained: Integer, #[serde(default = "default_2300")] + pub demoted: Integer, + #[serde(default = "default_2301")] pub expiring: Integer, } @@ -53341,25 +53343,25 @@ pub enum RunGetOutputOverBudgetItem { #[non_exhaustive] pub struct RunGetOutput { pub found: bool, - #[serde(default = "default_2301")] - pub run: Option, #[serde(default = "default_2302")] - pub recalled: Integer, + pub run: Option, #[serde(default = "default_2303")] - pub recalled_keys: Vec, + pub recalled: Integer, #[serde(default = "default_2304")] - pub memories_written: Vec, + pub recalled_keys: Vec, #[serde(default = "default_2305")] - pub observations: Integer, + pub memories_written: Vec, #[serde(default = "default_2306")] - pub turns: Integer, + pub observations: Integer, #[serde(default = "default_2307")] - pub unpriced_turns: Integer, + pub turns: Integer, #[serde(default = "default_2308")] - pub cost_usd: f64, + pub unpriced_turns: Integer, #[serde(default = "default_2309")] - pub elapsed_seconds: Integer, + pub cost_usd: f64, #[serde(default = "default_2310")] + pub elapsed_seconds: Integer, + #[serde(default = "default_2311")] pub over_budget: Vec, } @@ -53426,17 +53428,17 @@ pub struct RunGradeProposal { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct RunGradeOutput { - #[serde(default = "default_2311")] - pub graded: Integer, #[serde(default = "default_2312")] - pub run_ids: Vec, + pub graded: Integer, #[serde(default = "default_2313")] - pub skipped_active: Integer, + pub run_ids: Vec, #[serde(default = "default_2314")] - pub unchanged: Integer, + pub skipped_active: Integer, #[serde(default = "default_2315")] - pub memories_counted: Integer, + pub unchanged: Integer, #[serde(default = "default_2316")] + pub memories_counted: Integer, + #[serde(default = "default_2317")] pub proposals_decided: Vec, } @@ -53551,7 +53553,7 @@ impl RunGradeInput { #[non_exhaustive] pub struct RunListOutput { pub runs: Vec, - #[serde(default = "default_2317")] + #[serde(default = "default_2318")] pub total: Option, } @@ -53828,39 +53830,39 @@ pub struct LiveSearchHit { pub title: String, pub url: String, pub provider: LiveSearchHitProvider, - #[serde(default = "default_2320")] - pub content: String, #[serde(default = "default_2321")] + pub content: String, + #[serde(default = "default_2322")] pub live: LiveSearchHitLive, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct LiveSearchResults { - #[serde(default = "default_2319")] + #[serde(default = "default_2320")] pub live: LiveSearchResultsLive, - #[serde(default = "default_2322")] + #[serde(default = "default_2323")] pub results: Vec, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SearchOutput { - #[serde(default = "default_2318")] + #[serde(default = "default_2319")] pub tracker: Option>, - #[serde(default = "default_2323")] - pub live: Option, #[serde(default = "default_2324")] - pub memory: std::collections::HashMap, + pub live: Option, #[serde(default = "default_2325")] - pub knowledge: std::collections::HashMap, + pub memory: std::collections::HashMap, #[serde(default = "default_2326")] - pub profile: std::collections::HashMap, + pub knowledge: std::collections::HashMap, #[serde(default = "default_2327")] - pub conversations: std::collections::HashMap, + pub profile: std::collections::HashMap, #[serde(default = "default_2328")] - pub withheld: Option>, + pub conversations: std::collections::HashMap, #[serde(default = "default_2329")] + pub withheld: Option>, + #[serde(default = "default_2330")] pub namespaces_skipped: Vec, } @@ -54053,7 +54055,7 @@ impl SearchInput { pub struct SessionBriefDeleteOutput { pub deleted: bool, pub brief_key: String, - #[serde(default = "default_2330")] + #[serde(default = "default_2331")] pub revision: Integer, } @@ -54146,67 +54148,67 @@ impl SessionBriefDeleteInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDecision { - #[serde(default = "default_2339")] - pub what: String, #[serde(default = "default_2340")] + pub what: String, + #[serde(default = "default_2341")] pub why: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDeadEnd { - #[serde(default = "default_2342")] - pub tried: String, #[serde(default = "default_2343")] + pub tried: String, + #[serde(default = "default_2344")] pub why_not: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefDone { - #[serde(default = "default_2345")] + #[serde(default = "default_2346")] pub what: String, - #[serde(rename = "ref", default = "default_2346")] + #[serde(rename = "ref", default = "default_2347")] pub r#ref: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefFile { - #[serde(default = "default_2350")] - pub path: String, #[serde(default = "default_2351")] + pub path: String, + #[serde(default = "default_2352")] pub role: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct BriefSections { - #[serde(default = "default_2336")] - pub goal: String, #[serde(default = "default_2337")] - pub status: String, + pub goal: String, #[serde(default = "default_2338")] + pub status: String, + #[serde(default = "default_2339")] pub verification: String, - #[serde(default = "default_2341")] + #[serde(default = "default_2342")] pub decisions: Vec, - #[serde(default = "default_2344")] + #[serde(default = "default_2345")] pub dead_ends: Vec, - #[serde(default = "default_2347")] - pub done: Vec, #[serde(default = "default_2348")] - pub open_questions: Vec, + pub done: Vec, #[serde(default = "default_2349")] + pub open_questions: Vec, + #[serde(default = "default_2350")] pub next_steps: Vec, - #[serde(default = "default_2352")] - pub files: Vec, #[serde(default = "default_2353")] - pub constraints: Vec, + pub files: Vec, #[serde(default = "default_2354")] - pub pointers: Vec, + pub constraints: Vec, #[serde(default = "default_2355")] - pub client_summary: String, + pub pointers: Vec, #[serde(default = "default_2356")] + pub client_summary: String, + #[serde(default = "default_2357")] pub client_summary_at: String, } @@ -54214,45 +54216,45 @@ pub struct BriefSections { #[non_exhaustive] pub struct SessionBriefGetOutput { pub found: bool, - #[serde(default = "default_2331")] - pub brief_key: String, #[serde(default = "default_2332")] - pub revision: Integer, + pub brief_key: String, #[serde(default = "default_2333")] - pub snapshot_id: String, + pub revision: Integer, #[serde(default = "default_2334")] - pub snapshot_key: String, + pub snapshot_id: String, #[serde(default = "default_2335")] + pub snapshot_key: String, + #[serde(default = "default_2336")] pub rendered: String, - #[serde(default = "default_2357")] - pub sections: Option, #[serde(default = "default_2358")] - pub project: String, + pub sections: Option, #[serde(default = "default_2359")] - pub branch: String, + pub project: String, #[serde(default = "default_2360")] - pub head_sha: String, + pub branch: String, #[serde(default = "default_2361")] - pub author: String, + pub head_sha: String, #[serde(default = "default_2362")] - pub trigger: String, + pub author: String, #[serde(default = "default_2363")] - pub actor: String, + pub trigger: String, #[serde(default = "default_2364")] - pub source_sessions: Vec, + pub actor: String, #[serde(default = "default_2365")] - pub updated_at: Option, + pub source_sessions: Vec, #[serde(default = "default_2366")] - pub age_seconds: Integer, + pub updated_at: Option, #[serde(default = "default_2367")] - pub revisions: Integer, + pub age_seconds: Integer, #[serde(default = "default_2368")] - pub events_total: Integer, + pub revisions: Integer, #[serde(default = "default_2369")] - pub source_chars: Integer, + pub events_total: Integer, #[serde(default = "default_2370")] - pub brief_chars: Integer, + pub source_chars: Integer, #[serde(default = "default_2371")] + pub brief_chars: Integer, + #[serde(default = "default_2372")] pub deleted: bool, } @@ -54427,34 +54429,34 @@ impl SessionBriefGetInput { pub struct SessionBriefSummary { pub brief_key: String, pub revision: Integer, - #[serde(default = "default_2372")] - pub project: String, #[serde(default = "default_2373")] - pub branch: String, + pub project: String, #[serde(default = "default_2374")] - pub agent: String, + pub branch: String, #[serde(default = "default_2375")] - pub goal: String, + pub agent: String, #[serde(default = "default_2376")] - pub status: String, + pub goal: String, #[serde(default = "default_2377")] - pub author: String, + pub status: String, #[serde(default = "default_2378")] - pub actor: String, + pub author: String, #[serde(default = "default_2379")] - pub updated_at: Option, + pub actor: String, #[serde(default = "default_2380")] - pub age_seconds: Integer, + pub updated_at: Option, #[serde(default = "default_2381")] + pub age_seconds: Integer, + #[serde(default = "default_2382")] pub brief_chars: Integer, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefListOutput { - #[serde(default = "default_2382")] - pub briefs: Vec, #[serde(default = "default_2383")] + pub briefs: Vec, + #[serde(default = "default_2384")] pub rendered: String, } @@ -54594,25 +54596,25 @@ impl SessionBriefListInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct SessionBriefStats { - #[serde(default = "default_2387")] - pub events_in: Integer, #[serde(default = "default_2388")] - pub windows: Integer, + pub events_in: Integer, #[serde(default = "default_2389")] - pub events_total: Integer, + pub windows: Integer, #[serde(default = "default_2390")] - pub source_chars: Integer, + pub events_total: Integer, #[serde(default = "default_2391")] - pub brief_chars: Integer, + pub source_chars: Integer, #[serde(default = "default_2392")] - pub compression_ratio: f64, + pub brief_chars: Integer, #[serde(default = "default_2393")] - pub dropped_ungrounded: Integer, + pub compression_ratio: f64, #[serde(default = "default_2394")] - pub tokens_in: Integer, + pub dropped_ungrounded: Integer, #[serde(default = "default_2395")] - pub tokens_out: Integer, + pub tokens_in: Integer, #[serde(default = "default_2396")] + pub tokens_out: Integer, + #[serde(default = "default_2397")] pub llm_model: String, } @@ -54622,13 +54624,13 @@ pub struct SessionBriefSaveOutput { pub brief_key: String, pub revision: Integer, pub changed: bool, - #[serde(default = "default_2384")] - pub author: String, #[serde(default = "default_2385")] - pub reason: String, + pub author: String, #[serde(default = "default_2386")] + pub reason: String, + #[serde(default = "default_2387")] pub rendered: String, - #[serde(default = "default_2397")] + #[serde(default = "default_2398")] pub stats: SessionBriefStats, } @@ -55373,39 +55375,39 @@ pub struct TaskPayload { pub priority: Integer, pub disclosure: TaskPayloadDisclosure, pub status: TaskPayloadStatus, - #[serde(default = "default_2398")] - pub reason: String, #[serde(default = "default_2399")] - pub blocked_on: String, + pub reason: String, #[serde(default = "default_2400")] - pub not_before: Option, + pub blocked_on: String, #[serde(default = "default_2401")] - pub resume_at: Option, + pub not_before: Option, #[serde(default = "default_2402")] - pub deadline: Option, + pub resume_at: Option, #[serde(default = "default_2403")] + pub deadline: Option, + #[serde(default = "default_2404")] pub defer_count: Integer, pub title: String, - #[serde(default = "default_2404")] + #[serde(default = "default_2405")] pub brief: std::collections::HashMap, pub from_agent: String, - #[serde(default = "default_2405")] - pub from_subject: String, #[serde(default = "default_2406")] - pub origin: String, + pub from_subject: String, #[serde(default = "default_2407")] - pub parent_task_id: Option, + pub origin: String, #[serde(default = "default_2408")] - pub owner: String, + pub parent_task_id: Option, #[serde(default = "default_2409")] - pub attempt: Integer, + pub owner: String, #[serde(default = "default_2410")] - pub fence: Integer, + pub attempt: Integer, #[serde(default = "default_2411")] - pub lease_until: Option, + pub fence: Integer, #[serde(default = "default_2412")] - pub outcome: std::collections::HashMap, + pub lease_until: Option, #[serde(default = "default_2413")] + pub outcome: std::collections::HashMap, + #[serde(default = "default_2414")] pub last_actor: String, pub created_at: String, pub updated_at: String, @@ -55416,7 +55418,7 @@ pub struct TaskPayload { #[non_exhaustive] pub struct TaskOutput { pub task: TaskPayload, - #[serde(default = "default_2414")] + #[serde(default = "default_2415")] pub seq: Integer, } @@ -55817,10 +55819,10 @@ impl TaskCompleteInput { pub struct InboxCount { pub inbox: String, pub status: String, - #[serde(default = "default_2415")] + #[serde(default = "default_2416")] pub blocked_on: String, pub n: Integer, - #[serde(default = "default_2416")] + #[serde(default = "default_2417")] pub oldest: Option, } @@ -55907,7 +55909,7 @@ pub struct TaskCreateOutput { pub task: TaskPayload, pub created: bool, pub seq: Integer, - #[serde(default = "default_2417")] + #[serde(default = "default_2418")] pub next: String, } @@ -56246,7 +56248,7 @@ impl TaskFailInput { #[non_exhaustive] pub struct TaskGetOutput { pub found: bool, - #[serde(default = "default_2418")] + #[serde(default = "default_2419")] pub task: Option, } @@ -56380,23 +56382,23 @@ pub struct TaskEventPayload { pub task_id: String, pub inbox: String, pub event: String, - #[serde(default = "default_2419")] - pub from_status: String, #[serde(default = "default_2420")] - pub to_status: String, + pub from_status: String, #[serde(default = "default_2421")] - pub actor: String, + pub to_status: String, #[serde(default = "default_2422")] - pub agent: String, + pub actor: String, #[serde(default = "default_2423")] - pub fence: Integer, + pub agent: String, #[serde(default = "default_2424")] - pub version: Integer, + pub fence: Integer, #[serde(default = "default_2425")] - pub reason: String, + pub version: Integer, #[serde(default = "default_2426")] - pub patch: std::collections::HashMap, + pub reason: String, #[serde(default = "default_2427")] + pub patch: std::collections::HashMap, + #[serde(default = "default_2428")] pub note: String, pub ts: String, } @@ -56736,7 +56738,7 @@ pub struct TaskPullOutput { pub tasks: Vec, pub waited_ms: Integer, pub backend: String, - #[serde(default = "default_2428")] + #[serde(default = "default_2429")] pub note: String, } @@ -57132,7 +57134,7 @@ impl TaskUnblockInput { pub struct TaskUpdateOutput { pub task: TaskPayload, pub seq: Integer, - #[serde(default = "default_2429")] + #[serde(default = "default_2430")] pub conflict: bool, } @@ -57495,19 +57497,19 @@ impl TaskReasonInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerAnswerOutput { - #[serde(default = "default_2430")] - pub intent: String, #[serde(default = "default_2431")] - pub anchors: std::collections::HashMap, + pub intent: String, #[serde(default = "default_2432")] - pub sections: Vec>, + pub anchors: std::collections::HashMap, #[serde(default = "default_2433")] - pub searched: Vec, + pub sections: Vec>, #[serde(default = "default_2434")] - pub lines: Vec, + pub searched: Vec, #[serde(default = "default_2435")] - pub restricted: bool, + pub lines: Vec, #[serde(default = "default_2436")] + pub restricted: bool, + #[serde(default = "default_2437")] pub verdict: String, } @@ -57603,17 +57605,17 @@ impl TrackerAnswerInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerBindingOutput { - #[serde(default = "default_2437")] - pub tracker_namespace: String, #[serde(default = "default_2438")] - pub tracker_namespaces: Vec, + pub tracker_namespace: String, #[serde(default = "default_2439")] - pub restricted: bool, + pub tracker_namespaces: Vec, #[serde(default = "default_2440")] - pub kind: String, + pub restricted: bool, #[serde(default = "default_2441")] - pub authorized: bool, + pub kind: String, #[serde(default = "default_2442")] + pub authorized: bool, + #[serde(default = "default_2443")] pub templates: Vec, } @@ -57666,13 +57668,13 @@ impl TrackerBindingInput { #[non_exhaustive] pub struct TrackerComponentOutput { pub component: String, - #[serde(default = "default_2443")] - pub risk: std::collections::HashMap, #[serde(default = "default_2444")] - pub open_issues: Vec>, + pub risk: std::collections::HashMap, #[serde(default = "default_2445")] - pub known: bool, + pub open_issues: Vec>, #[serde(default = "default_2446")] + pub known: bool, + #[serde(default = "default_2447")] pub tracker_unavailable: bool, } @@ -57733,9 +57735,9 @@ impl TrackerComponentInput { #[non_exhaustive] pub struct TrackerContractOutput { pub database: String, - #[serde(default = "default_2447")] - pub tables: Vec>, #[serde(default = "default_2448")] + pub tables: Vec>, + #[serde(default = "default_2449")] pub templates: std::collections::HashMap, } @@ -57788,66 +57790,66 @@ impl TrackerContractInput { #[non_exhaustive] pub struct TrackerLegStatus { pub name: String, - #[serde(default = "default_2459")] - pub status: String, #[serde(default = "default_2460")] - pub reason: String, + pub status: String, #[serde(default = "default_2461")] - pub message: String, + pub reason: String, #[serde(default = "default_2462")] - pub retried: bool, + pub message: String, #[serde(default = "default_2463")] - pub ms: Integer, + pub retried: bool, #[serde(default = "default_2464")] - pub cause: String, + pub ms: Integer, #[serde(default = "default_2465")] + pub cause: String, + #[serde(default = "default_2466")] pub namespace: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerDuplicateCheckOutput { - #[serde(default = "default_2449")] - pub verdict: String, #[serde(default = "default_2450")] - pub items: Vec>, + pub verdict: String, #[serde(default = "default_2451")] - pub undecided: bool, + pub items: Vec>, #[serde(default = "default_2452")] - pub epistemic: String, + pub undecided: bool, #[serde(default = "default_2453")] - pub thresholds: std::collections::HashMap, + pub epistemic: String, #[serde(default = "default_2454")] - pub judge: std::collections::HashMap, + pub thresholds: std::collections::HashMap, #[serde(default = "default_2455")] - pub fit_at: String, + pub judge: std::collections::HashMap, #[serde(default = "default_2456")] - pub fit: std::collections::HashMap, + pub fit_at: String, #[serde(default = "default_2457")] - pub query: std::collections::HashMap, + pub fit: std::collections::HashMap, #[serde(default = "default_2458")] + pub query: std::collections::HashMap, + #[serde(default = "default_2459")] pub legs: std::collections::HashMap, - #[serde(default = "default_2466")] - pub leg_status: Vec, #[serde(default = "default_2467")] - pub tracker_unavailable: bool, + pub leg_status: Vec, #[serde(default = "default_2468")] - pub namespaces: Vec, + pub tracker_unavailable: bool, #[serde(default = "default_2469")] - pub by_namespace: std::collections::HashMap>, + pub namespaces: Vec, #[serde(default = "default_2470")] - pub closest: Vec>, + pub by_namespace: std::collections::HashMap>, #[serde(default = "default_2471")] - pub needs: Vec>, + pub closest: Vec>, #[serde(default = "default_2472")] - pub closest_note: String, + pub needs: Vec>, #[serde(default = "default_2473")] - pub nearest: Vec>, + pub closest_note: String, #[serde(default = "default_2474")] - pub rerank: std::collections::HashMap, + pub nearest: Vec>, #[serde(default = "default_2475")] - pub answer: String, + pub rerank: std::collections::HashMap, #[serde(default = "default_2476")] + pub answer: String, + #[serde(default = "default_2477")] pub related_prs: Vec>, } @@ -58054,17 +58056,17 @@ impl TrackerDuplicateCheckInput { #[non_exhaustive] pub struct TrackerFlakyOutput { pub test_name: String, - #[serde(default = "default_2477")] - pub known_flaky: bool, #[serde(default = "default_2478")] - pub open_issues: Integer, + pub known_flaky: bool, #[serde(default = "default_2479")] - pub issues: Vec>, + pub open_issues: Integer, #[serde(default = "default_2480")] - pub verdict: String, + pub issues: Vec>, #[serde(default = "default_2481")] - pub tracker_unavailable: bool, + pub verdict: String, #[serde(default = "default_2482")] + pub tracker_unavailable: bool, + #[serde(default = "default_2483")] pub signal: Option>, } @@ -58147,9 +58149,9 @@ impl TrackerFlakyInput { #[non_exhaustive] pub struct TrackerItemOutput { pub items: Vec>, - #[serde(default = "default_2483")] - pub unknown: Vec, #[serde(default = "default_2484")] + pub unknown: Vec, + #[serde(default = "default_2485")] pub tracker_unavailable: bool, } @@ -58198,19 +58200,19 @@ impl TrackerItemInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerLinksOutput { - #[serde(default = "default_2485")] - pub subject: std::collections::HashMap, #[serde(default = "default_2486")] - pub verdict: String, + pub subject: std::collections::HashMap, #[serde(default = "default_2487")] - pub items: Vec>, + pub verdict: String, #[serde(default = "default_2488")] - pub epistemic: String, + pub items: Vec>, #[serde(default = "default_2489")] - pub record: std::collections::HashMap, + pub epistemic: String, #[serde(default = "default_2490")] - pub computed_at: String, + pub record: std::collections::HashMap, #[serde(default = "default_2491")] + pub computed_at: String, + #[serde(default = "default_2492")] pub tracker_unavailable: bool, } @@ -58308,11 +58310,11 @@ impl TrackerLinksInput { pub struct TrackerReleaseOutput { pub version: String, pub blockers: Vec>, - #[serde(default = "default_2492")] - pub active_blockers: Integer, #[serde(default = "default_2493")] - pub health: std::collections::HashMap, + pub active_blockers: Integer, #[serde(default = "default_2494")] + pub health: std::collections::HashMap, + #[serde(default = "default_2495")] pub tracker_unavailable: bool, } @@ -58361,17 +58363,17 @@ impl TrackerReleaseInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSimilarOutput { - #[serde(default = "default_2495")] - pub items: Vec>, #[serde(default = "default_2496")] - pub query: std::collections::HashMap, + pub items: Vec>, #[serde(default = "default_2497")] - pub legs: std::collections::HashMap, + pub query: std::collections::HashMap, #[serde(default = "default_2498")] - pub epistemic: String, + pub legs: std::collections::HashMap, #[serde(default = "default_2499")] - pub tracker_unavailable: bool, + pub epistemic: String, #[serde(default = "default_2500")] + pub tracker_unavailable: bool, + #[serde(default = "default_2501")] pub namespaces: Vec, } @@ -58492,19 +58494,19 @@ pub struct TrackerSourceAddOutput { pub name: String, pub host: String, pub database: String, - #[serde(default = "default_2501")] - pub namespaces: Vec>, #[serde(default = "default_2502")] - pub contract: std::collections::HashMap, + pub namespaces: Vec>, #[serde(default = "default_2503")] - pub roles: Vec, + pub contract: std::collections::HashMap, #[serde(default = "default_2504")] - pub my_role: String, + pub roles: Vec, #[serde(default = "default_2505")] - pub dry_run: bool, + pub my_role: String, #[serde(default = "default_2506")] - pub written: bool, + pub dry_run: bool, #[serde(default = "default_2507")] + pub written: bool, + #[serde(default = "default_2508")] pub view_templates: std::collections::HashMap, } @@ -58667,13 +58669,13 @@ impl TrackerSourceAddInput { #[non_exhaustive] pub struct TrackerSourceCheckOutput { pub name: String, - #[serde(default = "default_2508")] - pub database: String, #[serde(default = "default_2509")] - pub reachable: bool, + pub database: String, #[serde(default = "default_2510")] - pub contract: std::collections::HashMap, + pub reachable: bool, #[serde(default = "default_2511")] + pub contract: std::collections::HashMap, + #[serde(default = "default_2512")] pub view_templates: std::collections::HashMap, } @@ -58713,11 +58715,11 @@ impl TrackerSourceCheckInput { pub struct TrackerSourceInspectOutput { pub host: String, pub database: String, - #[serde(default = "default_2512")] - pub tables: Vec>, #[serde(default = "default_2513")] - pub roles: Vec, + pub tables: Vec>, #[serde(default = "default_2514")] + pub roles: Vec, + #[serde(default = "default_2515")] pub proposal: std::collections::HashMap, } @@ -58846,9 +58848,9 @@ impl TrackerSourceInspectInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct TrackerSourceListOutput { - #[serde(default = "default_2515")] - pub sources: Vec>, #[serde(default = "default_2516")] + pub sources: Vec>, + #[serde(default = "default_2517")] pub self_service: bool, } @@ -58901,9 +58903,9 @@ impl TrackerSourceListInput { #[non_exhaustive] pub struct TrackerSourceRemoveOutput { pub name: String, - #[serde(default = "default_2517")] - pub deactivated: bool, #[serde(default = "default_2518")] + pub deactivated: bool, + #[serde(default = "default_2519")] pub namespaces_retired: Vec, } @@ -58944,9 +58946,9 @@ impl TrackerSourceRemoveInput { #[non_exhaustive] pub struct TrackerSourceRotateOutput { pub name: String, - #[serde(default = "default_2519")] - pub contract: std::collections::HashMap, #[serde(default = "default_2520")] + pub contract: std::collections::HashMap, + #[serde(default = "default_2521")] pub rotated_at: String, } @@ -58993,11 +58995,11 @@ impl TrackerSourceRotateInput { #[non_exhaustive] pub struct TrackerSourceSetMappingOutput { pub name: String, - #[serde(default = "default_2521")] - pub contract: std::collections::HashMap, #[serde(default = "default_2522")] - pub dry_run: bool, + pub contract: std::collections::HashMap, #[serde(default = "default_2523")] + pub dry_run: bool, + #[serde(default = "default_2524")] pub written: bool, } @@ -59064,45 +59066,45 @@ impl TrackerSourceSetMappingInput { #[non_exhaustive] pub struct TrackerTestSignalOutput { pub test_name: String, - #[serde(default = "default_2524")] - pub verdict: String, #[serde(default = "default_2525")] - pub why: Vec, + pub verdict: String, #[serde(default = "default_2526")] - pub lower_bound: f64, + pub why: Vec, #[serde(default = "default_2527")] - pub window_days: Integer, + pub lower_bound: f64, #[serde(default = "default_2528")] - pub since: String, + pub window_days: Integer, #[serde(default = "default_2529")] - pub features: std::collections::HashMap, + pub since: String, #[serde(default = "default_2530")] - pub infra: std::collections::HashMap, + pub features: std::collections::HashMap, #[serde(default = "default_2531")] - pub churn: std::collections::HashMap, + pub infra: std::collections::HashMap, #[serde(default = "default_2532")] - pub thresholds: std::collections::HashMap, + pub churn: std::collections::HashMap, #[serde(default = "default_2533")] - pub source: String, + pub thresholds: std::collections::HashMap, #[serde(default = "default_2534")] - pub timings_ms: std::collections::HashMap, + pub source: String, #[serde(default = "default_2535")] - pub tracker_unavailable: bool, + pub timings_ms: std::collections::HashMap, #[serde(default = "default_2536")] - pub rollup: std::collections::HashMap, + pub tracker_unavailable: bool, #[serde(default = "default_2537")] - pub streak: std::collections::HashMap, + pub rollup: std::collections::HashMap, #[serde(default = "default_2538")] - pub smells: std::collections::HashMap, + pub streak: std::collections::HashMap, #[serde(default = "default_2539")] - pub prior: std::collections::HashMap, + pub smells: std::collections::HashMap, #[serde(default = "default_2540")] - pub unavailable_reason: String, + pub prior: std::collections::HashMap, #[serde(default = "default_2541")] - pub candidates: Vec>, + pub unavailable_reason: String, #[serde(default = "default_2542")] - pub candidate_matches: Integer, + pub candidates: Vec>, #[serde(default = "default_2543")] + pub candidate_matches: Integer, + #[serde(default = "default_2544")] pub resolved_from: String, } @@ -59206,9 +59208,9 @@ impl TrackerTestSignalInput { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct UiVitalsOutput { - #[serde(default = "default_2544")] - pub recorded: bool, #[serde(default = "default_2545")] + pub recorded: bool, + #[serde(default = "default_2546")] pub route: String, } @@ -59392,7 +59394,7 @@ pub struct WebhookDelivery { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookDeliveriesOutput { - #[serde(default = "default_2546")] + #[serde(default = "default_2547")] pub deliveries: Vec, } @@ -59514,14 +59516,14 @@ pub struct WebhookInfo { pub secret_ref: String, pub events: Vec, pub created_at: String, - #[serde(default = "default_2547")] + #[serde(default = "default_2548")] pub secret_present: bool, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct WebhookListOutput { - #[serde(default = "default_2548")] + #[serde(default = "default_2549")] pub webhooks: Vec, } @@ -59703,7 +59705,7 @@ pub struct WorkingMemoryMutationOutput { pub version: Integer, pub char_limit: Integer, pub value_length: Integer, - #[serde(default = "default_2549")] + #[serde(default = "default_2550")] pub fill_ratio: f64, } @@ -59927,15 +59929,15 @@ impl WorkingMemoryDeleteInput { pub struct WorkingMemoryGetOutput { pub found: bool, pub block_key: String, - #[serde(default = "default_2550")] - pub content: String, #[serde(default = "default_2551")] - pub char_limit: Integer, + pub content: String, #[serde(default = "default_2552")] - pub version: Integer, + pub char_limit: Integer, #[serde(default = "default_2553")] - pub updated_at: Option, + pub version: Integer, #[serde(default = "default_2554")] + pub updated_at: Option, + #[serde(default = "default_2555")] pub fill_ratio: f64, } @@ -60046,7 +60048,7 @@ pub struct WorkingMemoryBlock { pub content: String, pub char_limit: Integer, pub version: Integer, - #[serde(default = "default_2555")] + #[serde(default = "default_2556")] pub updated_at: Option, } @@ -60054,7 +60056,7 @@ pub struct WorkingMemoryBlock { #[non_exhaustive] pub struct WorkingMemoryRenderOutput { pub rendered: String, - #[serde(default = "default_2556")] + #[serde(default = "default_2557")] pub blocks: Vec, pub block_count: Integer, pub total_chars: Integer, @@ -63036,44 +63038,44 @@ fn default_869() -> Option { fn default_870() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_871() -> Option> { +fn default_871() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_872() -> Vec { +fn default_872() -> Option> { + serde_json::from_str("null").expect("schema default") +} +fn default_873() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_873() -> String { +fn default_874() -> String { serde_json::from_str("\"conflicts.resolve\"").expect("schema default") } -fn default_874() -> Vec { +fn default_875() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_875() -> String { +fn default_876() -> String { serde_json::from_str("\"No changes were applied.\"").expect("schema default") } -fn default_876() -> Option { +fn default_877() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_877() -> Option { +fn default_878() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_878() -> Option { +fn default_879() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_879() -> Vec { +fn default_880() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_880() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_881() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_882() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_883() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_883() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_884() -> Integer { serde_json::from_str("0").expect("schema default") @@ -63082,86 +63084,86 @@ fn default_885() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_886() -> Integer { - serde_json::from_str("-1").expect("schema default") + serde_json::from_str("0").expect("schema default") } fn default_887() -> Integer { + serde_json::from_str("-1").expect("schema default") +} +fn default_888() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_888() -> Option { +fn default_889() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_889() -> bool { +fn default_890() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_890() -> ConversationAppendOutputReason { +fn default_891() -> ConversationAppendOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_891() -> String { +fn default_892() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_892() -> Integer { +fn default_893() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_893() -> Integer { +fn default_894() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_894() -> String { +fn default_895() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_895() -> String { +fn default_896() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_896() -> std::collections::HashMap { +fn default_897() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_897() -> String { - serde_json::from_str("\"-\"").expect("schema default") -} fn default_898() -> String { serde_json::from_str("\"-\"").expect("schema default") } fn default_899() -> String { + serde_json::from_str("\"-\"").expect("schema default") +} +fn default_900() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_900() -> Option { +fn default_901() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_901() -> Option { +fn default_902() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_902() -> Integer { +fn default_903() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_903() -> String { +fn default_904() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_904() -> Vec { +fn default_905() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_905() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_906() -> Option { serde_json::from_str("null").expect("schema default") } fn default_907() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_908() -> ConversationSaveMessageOutputReason { +fn default_908() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_909() -> ConversationSaveMessageOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_909() -> String { +fn default_910() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_910() -> Vec { +fn default_911() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_911() -> bool { +fn default_912() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_912() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_913() -> Option { serde_json::from_str("null").expect("schema default") } @@ -63183,27 +63185,27 @@ fn default_918() -> Option { fn default_919() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_920() -> Option { +fn default_920() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_921() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_921() -> Option { +fn default_922() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_922() -> Integer { +fn default_923() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_923() -> Vec { +fn default_924() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_924() -> f64 { +fn default_925() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_925() -> Integer { +fn default_926() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_926() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_927() -> Option { serde_json::from_str("null").expect("schema default") } @@ -63231,21 +63233,21 @@ fn default_934() -> Option { fn default_935() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_936() -> Integer { +fn default_936() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_937() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_937() -> f64 { +fn default_938() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_938() -> Integer { +fn default_939() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_939() -> f64 { +fn default_940() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_940() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_941() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -63255,105 +63257,105 @@ fn default_942() -> String { fn default_943() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_944() -> Vec { +fn default_944() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_945() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_945() -> Option { +fn default_946() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_946() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_947() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_948() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_949() -> Option { +fn default_949() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_950() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_950() -> String { +fn default_951() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_951() -> DecisionRowStage { +fn default_952() -> DecisionRowStage { serde_json::from_str("\"decided\"").expect("schema default") } -fn default_952() -> f64 { +fn default_953() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_953() -> Option { +fn default_954() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_954() -> Option { +fn default_955() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_955() -> Integer { +fn default_956() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_956() -> String { +fn default_957() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_957() -> bool { +fn default_958() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_958() -> Integer { +fn default_959() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_959() -> String { +fn default_960() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_960() -> bool { +fn default_961() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_961() -> Option { +fn default_962() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_962() -> String { +fn default_963() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_963() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_964() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_965() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_966() -> Option { +fn default_966() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_967() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_967() -> String { +fn default_968() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_968() -> Option { +fn default_969() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_969() -> Integer { +fn default_970() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_970() -> std::collections::HashMap { +fn default_971() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_971() -> Option { +fn default_972() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_972() -> Option> { +fn default_973() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_973() -> bool { +fn default_974() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_974() -> String { +fn default_975() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_975() -> Vec { +fn default_976() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_976() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_977() -> Option { serde_json::from_str("null").expect("schema default") } @@ -63363,13 +63365,13 @@ fn default_978() -> Option { fn default_979() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_980() -> Option { +fn default_980() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_981() -> Option { +fn default_981() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_982() -> Option { +fn default_982() -> Option { serde_json::from_str("null").expect("schema default") } fn default_983() -> Option { @@ -63378,84 +63380,84 @@ fn default_983() -> Option { fn default_984() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_985() -> Integer { +fn default_985() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_986() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_986() -> std::collections::HashMap { +fn default_987() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_987() -> Option { +fn default_988() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_988() -> Option> { +fn default_989() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_989() -> bool { +fn default_990() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_990() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_991() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_992() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_993() -> Option { +fn default_993() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_994() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_994() -> String { +fn default_995() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_995() -> String { +fn default_996() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_996() -> Option { +fn default_997() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_997() -> Vec { +fn default_998() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_998() -> String { +fn default_999() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_999() -> Vec { +fn default_1000() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1000() -> Vec { +fn default_1001() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1001() -> bool { +fn default_1002() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1002() -> bool { +fn default_1003() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1003() -> String { +fn default_1004() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1004() -> String { +fn default_1005() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1005() -> Option { +fn default_1006() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1006() -> Option { +fn default_1007() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1007() -> Option { +fn default_1008() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1008() -> bool { +fn default_1009() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1009() -> Integer { +fn default_1010() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1010() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1011() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -63468,41 +63470,41 @@ fn default_1013() -> String { fn default_1014() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1015() -> Option { +fn default_1015() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1016() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1016() -> Vec { +fn default_1017() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1017() -> bool { +fn default_1018() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1018() -> Vec { +fn default_1019() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1019() -> Option { +fn default_1020() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1020() -> Option { +fn default_1021() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1021() -> bool { +fn default_1022() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1022() -> String { +fn default_1023() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_1023() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_1024() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1025() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1026() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1026() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_1027() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -63510,35 +63512,35 @@ fn default_1027() -> String { fn default_1028() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1029() -> HelpGetOutputAudience { +fn default_1029() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1030() -> HelpGetOutputAudience { serde_json::from_str("\"user\"").expect("schema default") } -fn default_1030() -> String { +fn default_1031() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1031() -> bool { +fn default_1032() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1032() -> Integer { +fn default_1033() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1033() -> String { +fn default_1034() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1034() -> Vec { +fn default_1035() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1035() -> String { +fn default_1036() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1036() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_1037() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1038() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1038() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1039() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -63546,218 +63548,218 @@ fn default_1039() -> String { fn default_1040() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1041() -> Vec { +fn default_1041() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1042() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1042() -> String { +fn default_1043() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1043() -> bool { +fn default_1044() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1044() -> Vec { +fn default_1045() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1045() -> Vec { +fn default_1046() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1046() -> Option { +fn default_1047() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1047() -> bool { +fn default_1048() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1048() -> bool { +fn default_1049() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1049() -> Vec { +fn default_1050() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1050() -> Vec> { +fn default_1051() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1051() -> Integer { +fn default_1052() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1052() -> bool { +fn default_1053() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1053() -> String { +fn default_1054() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1054() -> String { +fn default_1055() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1055() -> Integer { +fn default_1056() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1056() -> Integer { +fn default_1057() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1057() -> Vec { +fn default_1058() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1058() -> Integer { +fn default_1059() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1059() -> Vec { +fn default_1060() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1060() -> bool { +fn default_1061() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1061() -> String { +fn default_1062() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1062() -> Option { +fn default_1063() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1063() -> Option { +fn default_1064() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1064() -> Vec> { +fn default_1065() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1065() -> Option { +fn default_1066() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1066() -> bool { +fn default_1067() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1067() -> Integer { +fn default_1068() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1068() -> Vec { +fn default_1069() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1069() -> Vec> { +fn default_1070() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1070() -> Vec { +fn default_1071() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1071() -> Vec> { +fn default_1072() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1072() -> Vec { +fn default_1073() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1073() -> String { +fn default_1074() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1074() -> Vec { +fn default_1075() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1075() -> Vec { +fn default_1076() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1076() -> Option { +fn default_1077() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1077() -> Vec { +fn default_1078() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1078() -> Integer { +fn default_1079() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1079() -> Vec { +fn default_1080() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1080() -> String { +fn default_1081() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1081() -> Vec { +fn default_1082() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1082() -> Vec { +fn default_1083() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1083() -> Option { +fn default_1084() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1084() -> Option { +fn default_1085() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1085() -> bool { +fn default_1086() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1086() -> String { +fn default_1087() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1087() -> String { +fn default_1088() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1088() -> bool { +fn default_1089() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1089() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1090() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1091() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1092() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_1093() -> String { +fn default_1092() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1093() -> Integer { + serde_json::from_str("0").expect("schema default") +} fn default_1094() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1095() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1096() -> Option> { +fn default_1096() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1097() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1097() -> Vec { +fn default_1098() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1098() -> Integer { +fn default_1099() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1099() -> Integer { +fn default_1100() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1100() -> Option { +fn default_1101() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1101() -> String { +fn default_1102() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1102() -> String { +fn default_1103() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1103() -> bool { +fn default_1104() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1104() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_1105() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1106() -> Option { +fn default_1106() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1107() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1108() -> Option { +fn default_1108() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1109() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_1109() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_1110() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1111() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1111() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1112() -> Option { serde_json::from_str("null").expect("schema default") @@ -63765,107 +63767,107 @@ fn default_1112() -> Option { fn default_1113() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1114() -> String { - serde_json::from_str("\"\"").expect("schema default") -} -fn default_1115() -> Option { +fn default_1114() -> Option { serde_json::from_str("null").expect("schema default") } +fn default_1115() -> String { + serde_json::from_str("\"\"").expect("schema default") +} fn default_1116() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1117() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1118() -> Vec { +fn default_1118() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1119() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1119() -> Vec { +fn default_1120() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1120() -> Option { +fn default_1121() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1121() -> String { +fn default_1122() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1122() -> Option { +fn default_1123() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1123() -> Vec { +fn default_1124() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1124() -> Option { +fn default_1125() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1125() -> Option { +fn default_1126() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1126() -> Option { +fn default_1127() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1127() -> String { +fn default_1128() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1128() -> Option { +fn default_1129() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1129() -> Option { +fn default_1130() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1130() -> bool { +fn default_1131() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1131() -> bool { +fn default_1132() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1132() -> Option { +fn default_1133() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1133() -> Vec { +fn default_1134() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1134() -> bool { +fn default_1135() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1135() -> Option { +fn default_1136() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1136() -> Option { +fn default_1137() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1137() -> Vec { +fn default_1138() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1138() -> String { +fn default_1139() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1139() -> String { +fn default_1140() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1140() -> Vec { +fn default_1141() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1141() -> Integer { +fn default_1142() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1142() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_1143() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1144() -> Vec { +fn default_1144() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1145() -> Vec { +fn default_1145() -> Vec { serde_json::from_str("[]").expect("schema default") } fn default_1146() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1147() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1147() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1148() -> Option { serde_json::from_str("null").expect("schema default") @@ -63894,204 +63896,204 @@ fn default_1155() -> Option { fn default_1156() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1157() -> Option { +fn default_1157() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1158() -> Option { +fn default_1158() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1159() -> Vec { +fn default_1159() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1160() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1160() -> Option { +fn default_1161() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1161() -> Option { +fn default_1162() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1162() -> Vec { +fn default_1163() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1163() -> Option { +fn default_1164() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1164() -> Option { +fn default_1165() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1165() -> Vec { +fn default_1166() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1166() -> String { +fn default_1167() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1167() -> String { +fn default_1168() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1168() -> Vec { +fn default_1169() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1169() -> Vec { +fn default_1170() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1170() -> Integer { +fn default_1171() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1171() -> Vec { +fn default_1172() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1172() -> Vec { +fn default_1173() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1173() -> Vec { +fn default_1174() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1174() -> Vec { +fn default_1175() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1175() -> Option { +fn default_1176() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1176() -> String { +fn default_1177() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1177() -> bool { +fn default_1178() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1178() -> KnowledgeMoveResultReason { +fn default_1179() -> KnowledgeMoveResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1179() -> Vec { +fn default_1180() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1180() -> String { +fn default_1181() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1181() -> bool { +fn default_1182() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1182() -> Integer { +fn default_1183() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1183() -> Vec { +fn default_1184() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1184() -> Option { +fn default_1185() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1185() -> Vec { +fn default_1186() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1186() -> Vec> { +fn default_1187() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1187() -> bool { +fn default_1188() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1188() -> Vec { +fn default_1189() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1189() -> bool { +fn default_1190() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1190() -> Vec { +fn default_1191() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1191() -> Vec> { +fn default_1192() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1192() -> KnowledgeRestoreOutputReason { +fn default_1193() -> KnowledgeRestoreOutputReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1193() -> String { +fn default_1194() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1194() -> Option { +fn default_1195() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1195() -> Integer { +fn default_1196() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1196() -> KnowledgeRestoreOutputOriginal { +fn default_1197() -> KnowledgeRestoreOutputOriginal { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1197() -> Vec> { +fn default_1198() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1198() -> Vec { +fn default_1199() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1199() -> std::collections::HashMap { +fn default_1200() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1200() -> Integer { +fn default_1201() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1201() -> bool { +fn default_1202() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1202() -> Vec { +fn default_1203() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1203() -> Integer { +fn default_1204() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1204() -> bool { +fn default_1205() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1205() -> KnowledgeSourceProbe { +fn default_1206() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1206() -> bool { +fn default_1207() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1207() -> bool { +fn default_1208() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1208() -> Integer { +fn default_1209() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1209() -> bool { +fn default_1210() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1210() -> Vec { +fn default_1211() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1211() -> Integer { +fn default_1212() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1212() -> bool { +fn default_1213() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1213() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1214() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1215() -> String { - serde_json::from_str("\"shared\"").expect("schema default") + serde_json::from_str("\"\"").expect("schema default") } fn default_1216() -> String { - serde_json::from_str("\"namespace\"").expect("schema default") + serde_json::from_str("\"shared\"").expect("schema default") } fn default_1217() -> String { + serde_json::from_str("\"namespace\"").expect("schema default") +} +fn default_1218() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1218() -> Vec> { +fn default_1219() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1219() -> Vec { +fn default_1220() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1220() -> std::collections::HashMap { +fn default_1221() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1221() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1222() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -64104,8 +64106,8 @@ fn default_1224() -> String { fn default_1225() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1226() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1226() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1227() -> Integer { serde_json::from_str("0").expect("schema default") @@ -64116,104 +64118,104 @@ fn default_1228() -> Integer { fn default_1229() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1230() -> std::collections::HashMap { +fn default_1230() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1231() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1231() -> Integer { +fn default_1232() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1232() -> String { +fn default_1233() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1233() -> Integer { +fn default_1234() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1234() -> String { +fn default_1235() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1235() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1236() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_1237() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1238() -> String { +fn default_1238() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1239() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1239() -> KnowledgeSourceSync { +fn default_1240() -> 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_1240() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1241() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1242() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1243() -> Vec { +fn default_1243() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1244() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1244() -> String { +fn default_1245() -> String { serde_json::from_str("\"shared\"").expect("schema default") } -fn default_1245() -> String { +fn default_1246() -> String { serde_json::from_str("\"namespace\"").expect("schema default") } -fn default_1246() -> String { +fn default_1247() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1247() -> Vec> { +fn default_1248() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1248() -> Vec { +fn default_1249() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1249() -> std::collections::HashMap { +fn default_1250() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1250() -> String { +fn default_1251() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1251() -> String { +fn default_1252() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1252() -> KnowledgeSourceSync { +fn default_1253() -> KnowledgeSourceSync { serde_json::from_str("{\"requested_at\":\"\",\"last_synced_at\":\"\",\"status\":\"\",\"documents_seen\":0,\"changed\":0,\"removed\":0,\"unconverted\":0,\"unconverted_reasons\":{},\"skipped\":0,\"error\":\"\",\"pending_extract\":0,\"last_extracted_at\":\"\",\"extracted\":0,\"flagged_pinned\":0,\"unextracted\":0,\"extract_error\":\"\"}").expect("schema default") } -fn default_1253() -> Vec { +fn default_1254() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1254() -> bool { +fn default_1255() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1255() -> bool { +fn default_1256() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1256() -> String { +fn default_1257() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1257() -> std::collections::HashMap { +fn default_1258() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1258() -> String { +fn default_1259() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1259() -> Vec { +fn default_1260() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1260() -> bool { +fn default_1261() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1261() -> String { - serde_json::from_str("\"disabled\"").expect("schema default") -} fn default_1262() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"disabled\"").expect("schema default") } fn default_1263() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -64230,173 +64232,173 @@ fn default_1266() -> String { fn default_1267() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1268() -> Integer { +fn default_1268() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1269() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1269() -> f64 { +fn default_1270() -> f64 { serde_json::from_str("0").expect("schema default") } -fn default_1270() -> Integer { +fn default_1271() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1271() -> KnowledgeSourceProbe { +fn default_1272() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1272() -> String { +fn default_1273() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1273() -> bool { +fn default_1274() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1274() -> Vec> { +fn default_1275() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1275() -> Vec { +fn default_1276() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1276() -> std::collections::HashMap { +fn default_1277() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1277() -> Vec> { +fn default_1278() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1278() -> Vec> { +fn default_1279() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1279() -> KnowledgeSourceProbe { +fn default_1280() -> KnowledgeSourceProbe { serde_json::from_str( "{\"documents\":0,\"more\":false,\"sample\":[],\"checked\":0,\"sampled\":false}", ) .expect("schema default") } -fn default_1280() -> Vec { +fn default_1281() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1281() -> Integer { +fn default_1282() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1282() -> Option> { +fn default_1283() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_1283() -> Vec { +fn default_1284() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1284() -> Vec { +fn default_1285() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1285() -> bool { +fn default_1286() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1286() -> bool { +fn default_1287() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1287() -> String { +fn default_1288() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1288() -> String { +fn default_1289() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1289() -> Vec> { +fn default_1290() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1290() -> bool { +fn default_1291() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1291() -> Vec { +fn default_1292() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1292() -> Vec { +fn default_1293() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1293() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1294() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1295() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1296() -> Vec { +fn default_1296() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1297() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1297() -> Integer { +fn default_1298() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1298() -> String { +fn default_1299() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1299() -> Integer { +fn default_1300() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1300() -> String { +fn default_1301() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1301() -> String { +fn default_1302() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1302() -> Integer { +fn default_1303() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1303() -> Integer { +fn default_1304() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1304() -> String { +fn default_1305() -> String { serde_json::from_str("\"memory_supporters\"").expect("schema default") } -fn default_1305() -> String { +fn default_1306() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1306() -> String { +fn default_1307() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1307() -> Option { +fn default_1308() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1308() -> String { +fn default_1309() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1309() -> String { +fn default_1310() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1310() -> bool { +fn default_1311() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1311() -> bool { +fn default_1312() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1312() -> String { +fn default_1313() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1313() -> std::collections::HashMap { +fn default_1314() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1314() -> Vec { +fn default_1315() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1315() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1316() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1317() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1318() -> Vec { - serde_json::from_str("[]").expect("schema default") -} -fn default_1319() -> String { +fn default_1318() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1319() -> Vec { + serde_json::from_str("[]").expect("schema default") +} fn default_1320() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1321() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_1321() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_1322() -> Vec { serde_json::from_str("[]").expect("schema default") @@ -64407,33 +64409,33 @@ fn default_1323() -> Vec { fn default_1324() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1325() -> Integer { - serde_json::from_str("0").expect("schema default") -} -fn default_1326() -> Vec { +fn default_1325() -> Vec { serde_json::from_str("[]").expect("schema default") } +fn default_1326() -> Integer { + serde_json::from_str("0").expect("schema default") +} fn default_1327() -> Vec { serde_json::from_str("[]").expect("schema default") } fn default_1328() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1329() -> Integer { +fn default_1329() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_1330() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1330() -> Vec { +fn default_1331() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1331() -> std::collections::HashMap { +fn default_1332() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1332() -> std::collections::HashMap { +fn default_1333() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1333() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1334() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -64449,11 +64451,11 @@ fn default_1337() -> Integer { fn default_1338() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1339() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_1339() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_1340() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1340() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_1341() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -64464,75 +64466,75 @@ fn default_1342() -> String { fn default_1343() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1344() -> Option { +fn default_1344() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1345() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1345() -> String { +fn default_1346() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1346() -> Vec { +fn default_1347() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1347() -> String { +fn default_1348() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1348() -> MemoryAskOutputSource { +fn default_1349() -> MemoryAskOutputSource { serde_json::from_str("\"synthesized\"").expect("schema default") } -fn default_1349() -> bool { +fn default_1350() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1350() -> String { +fn default_1351() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1351() -> Vec { +fn default_1352() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1352() -> Vec { +fn default_1353() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1353() -> Vec { +fn default_1354() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1354() -> String { +fn default_1355() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1355() -> String { +fn default_1356() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1356() -> MemoryAskOutputRouteTier { +fn default_1357() -> MemoryAskOutputRouteTier { serde_json::from_str("\"\"").expect("schema default") } -fn default_1357() -> String { +fn default_1358() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1358() -> Integer { +fn default_1359() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1359() -> Integer { +fn default_1360() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1360() -> bool { +fn default_1361() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1361() -> f64 { +fn default_1362() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1362() -> Option { +fn default_1363() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1363() -> Option { +fn default_1364() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1364() -> bool { +fn default_1365() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1365() -> String { +fn default_1366() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1366() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1367() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -64542,32 +64544,32 @@ fn default_1368() -> Integer { fn default_1369() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1370() -> String { +fn default_1370() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1371() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1371() -> Vec { +fn default_1372() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1372() -> Integer { +fn default_1373() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1373() -> MemoryAskOutputConsistency { +fn default_1374() -> MemoryAskOutputConsistency { serde_json::from_str("\"\"").expect("schema default") } -fn default_1374() -> f64 { +fn default_1375() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1375() -> String { +fn default_1376() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1376() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1377() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1378() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1378() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1379() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -64578,48 +64580,48 @@ fn default_1380() -> String { fn default_1381() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1382() -> MemoryAskOutputDepth { +fn default_1382() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1383() -> bool { +fn default_1383() -> MemoryAskOutputDepth { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1384() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1384() -> Vec { +fn default_1385() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1385() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1386() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_1387() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1388() -> Vec { - serde_json::from_str("[]").expect("schema default") -} -fn default_1389() -> Integer { +fn default_1388() -> Integer { serde_json::from_str("0").expect("schema default") } +fn default_1389() -> Vec { + serde_json::from_str("[]").expect("schema default") +} fn default_1390() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_1391() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1392() -> MemoryAskOutputGrounding { +fn default_1392() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1393() -> MemoryAskOutputGrounding { serde_json::from_str("\"\"").expect("schema default") } -fn default_1393() -> String { +fn default_1394() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1394() -> Vec { +fn default_1395() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1395() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1396() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -64629,18 +64631,18 @@ fn default_1397() -> Integer { fn default_1398() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1399() -> std::collections::HashMap { +fn default_1399() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1400() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1400() -> MemoryAskOutputDeepSelector { +fn default_1401() -> MemoryAskOutputDeepSelector { serde_json::from_str("\"\"").expect("schema default") } -fn default_1401() -> MemoryAskOutputDeepFirst { +fn default_1402() -> MemoryAskOutputDeepFirst { serde_json::from_str("\"\"").expect("schema default") } -fn default_1402() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1403() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -64650,12 +64652,12 @@ fn default_1404() -> Integer { fn default_1405() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1406() -> f64 { - serde_json::from_str("0.0").expect("schema default") -} -fn default_1407() -> Integer { +fn default_1406() -> Integer { serde_json::from_str("0").expect("schema default") } +fn default_1407() -> f64 { + serde_json::from_str("0.0").expect("schema default") +} fn default_1408() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -64668,11 +64670,11 @@ fn default_1410() -> Integer { fn default_1411() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1412() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_1412() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_1413() -> String { - serde_json::from_str("\"-\"").expect("schema default") +fn default_1413() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_1414() -> String { serde_json::from_str("\"-\"").expect("schema default") @@ -64681,7 +64683,7 @@ fn default_1415() -> String { serde_json::from_str("\"-\"").expect("schema default") } fn default_1416() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"-\"").expect("schema default") } fn default_1417() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -64689,120 +64691,120 @@ fn default_1417() -> String { fn default_1418() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1419() -> bool { +fn default_1419() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1420() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1420() -> String { +fn default_1421() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1421() -> Option { +fn default_1422() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1422() -> String { +fn default_1423() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1423() -> String { +fn default_1424() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1424() -> Vec { +fn default_1425() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1425() -> Option { +fn default_1426() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1426() -> bool { +fn default_1427() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1427() -> String { +fn default_1428() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1428() -> String { +fn default_1429() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1429() -> Vec { +fn default_1430() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1430() -> String { +fn default_1431() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1431() -> Vec { +fn default_1432() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1432() -> String { +fn default_1433() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1433() -> String { +fn default_1434() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1434() -> Vec { +fn default_1435() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1435() -> Vec { +fn default_1436() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1436() -> Integer { +fn default_1437() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1437() -> Vec { +fn default_1438() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1438() -> Vec { +fn default_1439() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1439() -> String { +fn default_1440() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1440() -> String { +fn default_1441() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1441() -> bool { +fn default_1442() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1442() -> String { +fn default_1443() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1443() -> String { +fn default_1444() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1444() -> String { +fn default_1445() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1445() -> bool { +fn default_1446() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1446() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1447() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1448() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1449() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_1449() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1450() -> Vec { +fn default_1450() -> Vec { serde_json::from_str("[]").expect("schema default") } fn default_1451() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1452() -> std::collections::HashMap { +fn default_1452() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_1453() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1453() -> Vec { +fn default_1454() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1454() -> Integer { +fn default_1455() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1455() -> Vec { +fn default_1456() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1456() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1457() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -64821,8 +64823,8 @@ fn default_1461() -> Integer { fn default_1462() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1463() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1463() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1464() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -64833,11 +64835,11 @@ fn default_1465() -> String { fn default_1466() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1467() -> bool { - serde_json::from_str("true").expect("schema default") +fn default_1467() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1468() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1468() -> bool { + serde_json::from_str("true").expect("schema default") } fn default_1469() -> Integer { serde_json::from_str("0").expect("schema default") @@ -64851,114 +64853,114 @@ fn default_1471() -> Integer { fn default_1472() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1473() -> bool { +fn default_1473() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1474() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1474() -> Vec { +fn default_1475() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1475() -> String { +fn default_1476() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1476() -> String { +fn default_1477() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1477() -> Option { +fn default_1478() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1478() -> Vec { +fn default_1479() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1479() -> bool { +fn default_1480() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1480() -> bool { +fn default_1481() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1481() -> Vec { +fn default_1482() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1482() -> bool { +fn default_1483() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1483() -> Option { +fn default_1484() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1484() -> Vec { +fn default_1485() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1485() -> Option { +fn default_1486() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1486() -> Option { +fn default_1487() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1487() -> Vec { +fn default_1488() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1488() -> Integer { +fn default_1489() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1489() -> bool { +fn default_1490() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1490() -> String { +fn default_1491() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1491() -> Integer { +fn default_1492() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1492() -> Integer { +fn default_1493() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1493() -> std::collections::HashMap { +fn default_1494() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1494() -> String { +fn default_1495() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1495() -> f64 { +fn default_1496() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1496() -> bool { +fn default_1497() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1497() -> String { +fn default_1498() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1498() -> String { +fn default_1499() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1499() -> Integer { +fn default_1500() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1500() -> Integer { +fn default_1501() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1501() -> Option { +fn default_1502() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1502() -> Vec { +fn default_1503() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1503() -> Vec { +fn default_1504() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1504() -> Option { +fn default_1505() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1505() -> Option { +fn default_1506() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1506() -> Integer { +fn default_1507() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1507() -> bool { +fn default_1508() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1508() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1509() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -64968,30 +64970,30 @@ fn default_1510() -> String { fn default_1511() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1512() -> Option { +fn default_1512() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1513() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1513() -> String { +fn default_1514() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1514() -> Integer { +fn default_1515() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1515() -> Integer { +fn default_1516() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1516() -> String { +fn default_1517() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1517() -> Vec { +fn default_1518() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1518() -> bool { +fn default_1519() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1519() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1520() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -65004,81 +65006,81 @@ fn default_1522() -> Integer { fn default_1523() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1524() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1524() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1525() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1526() -> String { - serde_json::from_str("\"-\"").expect("schema default") + serde_json::from_str("\"\"").expect("schema default") } fn default_1527() -> String { + serde_json::from_str("\"-\"").expect("schema default") +} +fn default_1528() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1528() -> Vec { +fn default_1529() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1529() -> Integer { +fn default_1530() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1530() -> Integer { +fn default_1531() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1531() -> String { +fn default_1532() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1532() -> String { +fn default_1533() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1533() -> Vec { +fn default_1534() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1534() -> String { +fn default_1535() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1535() -> String { +fn default_1536() -> String { serde_json::from_str("\"-\"").expect("schema default") } -fn default_1536() -> Vec { +fn default_1537() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1537() -> Vec { +fn default_1538() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1538() -> String { +fn default_1539() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1539() -> String { +fn default_1540() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1540() -> Vec { +fn default_1541() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1541() -> f64 { +fn default_1542() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1542() -> String { +fn default_1543() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1543() -> String { +fn default_1544() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1544() -> Vec { +fn default_1545() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1545() -> bool { +fn default_1546() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1546() -> String { +fn default_1547() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1547() -> Integer { +fn default_1548() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1548() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_1549() -> Vec { serde_json::from_str("[]").expect("schema default") } @@ -65091,57 +65093,57 @@ fn default_1551() -> Vec { fn default_1552() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1553() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1553() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1554() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1555() -> Vec { +fn default_1555() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1556() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1556() -> Integer { +fn default_1557() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1557() -> Integer { +fn default_1558() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1558() -> Vec { +fn default_1559() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1559() -> Vec { +fn default_1560() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1560() -> Integer { +fn default_1561() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1561() -> Integer { +fn default_1562() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1562() -> bool { +fn default_1563() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1563() -> Vec { +fn default_1564() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1564() -> f64 { +fn default_1565() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1565() -> bool { +fn default_1566() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1566() -> String { +fn default_1567() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1567() -> String { +fn default_1568() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1568() -> Option { +fn default_1569() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1569() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1570() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65151,36 +65153,36 @@ fn default_1571() -> String { fn default_1572() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1573() -> MemoryForFileHitSupersedesKind { +fn default_1573() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1574() -> Vec { +fn default_1574() -> MemoryForFileHitSupersedesKind { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1575() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1575() -> String { +fn default_1576() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1576() -> MemoryForFileHitVerification { +fn default_1577() -> MemoryForFileHitVerification { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1577() -> MemoryForFileHitCodeState { +fn default_1578() -> MemoryForFileHitCodeState { serde_json::from_str("\"\"").expect("schema default") } -fn default_1578() -> Vec { +fn default_1579() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1579() -> String { +fn default_1580() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1580() -> Integer { +fn default_1581() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1581() -> bool { +fn default_1582() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1582() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1583() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65196,19 +65198,19 @@ fn default_1586() -> String { fn default_1587() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1588() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1588() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1589() -> Value { +fn default_1589() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1590() -> Option { +fn default_1590() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1591() -> Option { +fn default_1591() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1592() -> Option { +fn default_1592() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1593() -> Option { @@ -65220,23 +65222,23 @@ fn default_1594() -> Option { fn default_1595() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1596() -> bool { +fn default_1596() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1597() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1597() -> String { +fn default_1598() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1598() -> String { +fn default_1599() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1599() -> Option { +fn default_1600() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1600() -> String { - serde_json::from_str("\"none\"").expect("schema default") -} fn default_1601() -> String { - serde_json::from_str("\"\"").expect("schema default") + serde_json::from_str("\"none\"").expect("schema default") } fn default_1602() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -65250,45 +65252,45 @@ fn default_1604() -> String { fn default_1605() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1606() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_1607() -> String { +fn default_1606() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1607() -> Option { + serde_json::from_str("null").expect("schema default") +} fn default_1608() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1609() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1610() -> Integer { +fn default_1610() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1611() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1611() -> Vec { +fn default_1612() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1612() -> Integer { +fn default_1613() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1613() -> Option { +fn default_1614() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1614() -> Vec { +fn default_1615() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1615() -> std::collections::HashMap { +fn default_1616() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1616() -> Integer { +fn default_1617() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1617() -> f64 { +fn default_1618() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1618() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1619() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -65301,45 +65303,45 @@ fn default_1621() -> Integer { fn default_1622() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1623() -> MemoryHealthStaleness { +fn default_1623() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1624() -> 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_1624() -> Integer { +fn default_1625() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1625() -> Integer { +fn default_1626() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1626() -> f64 { +fn default_1627() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1627() -> MemoryHealthFootprint { +fn default_1628() -> MemoryHealthFootprint { serde_json::from_str("{\"value_chars\":0,\"value_tokens_est\":0,\"tokens_per_row_est\":0.0}") .expect("schema default") } -fn default_1628() -> String { +fn default_1629() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1629() -> Value { +fn default_1630() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1630() -> String { +fn default_1631() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1631() -> bool { +fn default_1632() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1632() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_1633() -> Option { serde_json::from_str("null").expect("schema default") } fn default_1634() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1635() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1635() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_1636() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -65353,24 +65355,24 @@ fn default_1638() -> String { fn default_1639() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1640() -> Option { +fn default_1640() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1641() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1641() -> String { +fn default_1642() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1642() -> Vec { +fn default_1643() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1643() -> Vec { +fn default_1644() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1644() -> Option { +fn default_1645() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1645() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1646() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65380,11 +65382,11 @@ fn default_1647() -> String { fn default_1648() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1649() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1649() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1650() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1650() -> Option { + serde_json::from_str("null").expect("schema default") } fn default_1651() -> Integer { serde_json::from_str("0").expect("schema default") @@ -65395,57 +65397,57 @@ fn default_1652() -> Integer { fn default_1653() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1654() -> MemoryImportResultReason { +fn default_1654() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1655() -> MemoryImportResultReason { serde_json::from_str("\"\"").expect("schema default") } -fn default_1655() -> String { +fn default_1656() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1656() -> MemoryImportResultNote { +fn default_1657() -> MemoryImportResultNote { serde_json::from_str("\"\"").expect("schema default") } -fn default_1657() -> bool { +fn default_1658() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1658() -> String { +fn default_1659() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1659() -> Option { +fn default_1660() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1660() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1661() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_1662() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1663() -> String { +fn default_1663() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1664() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1664() -> Integer { +fn default_1665() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1665() -> Vec { +fn default_1666() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1666() -> Integer { +fn default_1667() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1667() -> Integer { +fn default_1668() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1668() -> Vec { +fn default_1669() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1669() -> Integer { +fn default_1670() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1670() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_1671() -> Vec { serde_json::from_str("[]").expect("schema default") } @@ -65458,241 +65460,241 @@ fn default_1673() -> Vec { fn default_1674() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1675() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1675() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1676() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1677() -> String { +fn default_1677() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1678() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1678() -> Integer { +fn default_1679() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1679() -> String { +fn default_1680() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1680() -> Vec { +fn default_1681() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1681() -> bool { +fn default_1682() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1682() -> Vec { +fn default_1683() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1683() -> Option { +fn default_1684() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1684() -> Option { +fn default_1685() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1685() -> String { +fn default_1686() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1686() -> Integer { +fn default_1687() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1687() -> String { +fn default_1688() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1688() -> Integer { +fn default_1689() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1689() -> Option { +fn default_1690() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1690() -> String { +fn default_1691() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1691() -> String { +fn default_1692() -> 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_1692() -> Vec { +fn default_1693() -> Vec { serde_json::from_str("[\"memory.set_from_messages\",\"extraction_instructions\"]") .expect("schema default") } -fn default_1693() -> Vec { +fn default_1694() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1694() -> bool { +fn default_1695() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1695() -> String { +fn default_1696() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1696() -> String { +fn default_1697() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1697() -> Option { +fn default_1698() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1698() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1699() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1700() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1701() -> MemoryLineageOutputMechanism { +fn default_1701() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1702() -> MemoryLineageOutputMechanism { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_1702() -> Vec { +fn default_1703() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1703() -> String { +fn default_1704() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1704() -> String { +fn default_1705() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1705() -> Option { +fn default_1706() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1706() -> Vec { +fn default_1707() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1707() -> f64 { +fn default_1708() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1708() -> bool { +fn default_1709() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1709() -> bool { +fn default_1710() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1710() -> Integer { +fn default_1711() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1711() -> Integer { +fn default_1712() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1712() -> String { +fn default_1713() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1713() -> bool { +fn default_1714() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1714() -> Integer { +fn default_1715() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1715() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1716() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1717() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1718() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_1719() -> String { +fn default_1718() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1720() -> Option { +fn default_1719() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1721() -> String { +fn default_1720() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1721() -> Option { + serde_json::from_str("null").expect("schema default") +} fn default_1722() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1723() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1724() -> Integer { +fn default_1724() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1725() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1725() -> String { +fn default_1726() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1726() -> Vec { +fn default_1727() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1727() -> bool { +fn default_1728() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1728() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1729() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1730() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1731() -> bool { +fn default_1731() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1732() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1732() -> std::collections::HashMap { +fn default_1733() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1733() -> String { +fn default_1734() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1734() -> String { +fn default_1735() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1735() -> Integer { +fn default_1736() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1736() -> Integer { +fn default_1737() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1737() -> Vec { +fn default_1738() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1738() -> Integer { +fn default_1739() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1739() -> Integer { +fn default_1740() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1740() -> Vec { +fn default_1741() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1741() -> String { +fn default_1742() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1742() -> Integer { +fn default_1743() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1743() -> String { +fn default_1744() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1744() -> Vec { +fn default_1745() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1745() -> Integer { +fn default_1746() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1746() -> Option { +fn default_1747() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1747() -> Vec { +fn default_1748() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1748() -> Integer { +fn default_1749() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1749() -> String { +fn default_1750() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1750() -> String { +fn default_1751() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1751() -> Vec { +fn default_1752() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1752() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1753() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65705,60 +65707,60 @@ fn default_1755() -> String { fn default_1756() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1757() -> Vec { +fn default_1757() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1758() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1758() -> String { +fn default_1759() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1759() -> Integer { +fn default_1760() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1760() -> Integer { +fn default_1761() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1761() -> String { +fn default_1762() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1762() -> Integer { +fn default_1763() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1763() -> Integer { +fn default_1764() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1764() -> MemoryProposalReady { +fn default_1765() -> MemoryProposalReady { serde_json::from_str("\"\"").expect("schema default") } -fn default_1765() -> Vec { +fn default_1766() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1766() -> Vec { +fn default_1767() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1767() -> Integer { +fn default_1768() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1768() -> ProposalPolicyMode { +fn default_1769() -> ProposalPolicyMode { serde_json::from_str("\"manual\"").expect("schema default") } -fn default_1769() -> Integer { +fn default_1770() -> Integer { serde_json::from_str("2").expect("schema default") } -fn default_1770() -> Integer { +fn default_1771() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1771() -> Integer { +fn default_1772() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1772() -> ProposalPolicy { +fn default_1773() -> ProposalPolicy { serde_json::from_str( "{\"mode\":\"manual\",\"min_passes\":2,\"max_fails\":0,\"reject_after_fails\":0}", ) .expect("schema default") } -fn default_1773() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1774() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65774,12 +65776,12 @@ fn default_1777() -> String { fn default_1778() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1779() -> bool { - serde_json::from_str("false").expect("schema default") -} -fn default_1780() -> String { +fn default_1779() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_1780() -> bool { + serde_json::from_str("false").expect("schema default") +} fn default_1781() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65804,24 +65806,24 @@ fn default_1787() -> String { fn default_1788() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1789() -> Vec { +fn default_1789() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1790() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1790() -> f64 { +fn default_1791() -> f64 { serde_json::from_str("1.0").expect("schema default") } -fn default_1791() -> String { +fn default_1792() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1792() -> String { +fn default_1793() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1793() -> Vec { +fn default_1794() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1794() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1795() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -65831,11 +65833,11 @@ fn default_1796() -> String { fn default_1797() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1798() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_1798() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1799() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1799() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_1800() -> Integer { serde_json::from_str("0").expect("schema default") @@ -65843,183 +65845,183 @@ fn default_1800() -> Integer { fn default_1801() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1802() -> bool { +fn default_1802() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1803() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1803() -> String { +fn default_1804() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1804() -> Integer { +fn default_1805() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_1805() -> MemoryRecallOutputOrder { +fn default_1806() -> MemoryRecallOutputOrder { serde_json::from_str("\"recent\"").expect("schema default") } -fn default_1806() -> Vec { +fn default_1807() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1807() -> Integer { +fn default_1808() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1808() -> Value { +fn default_1809() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1809() -> Value { +fn default_1810() -> Value { serde_json::from_str("null").expect("schema default") } -fn default_1810() -> String { +fn default_1811() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1811() -> String { +fn default_1812() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1812() -> Option { +fn default_1813() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1813() -> Option { +fn default_1814() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1814() -> bool { +fn default_1815() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1815() -> String { +fn default_1816() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1816() -> String { +fn default_1817() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1817() -> std::collections::HashMap { +fn default_1818() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1818() -> std::collections::HashMap { +fn default_1819() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1819() -> MemoryRecordRowStatus { +fn default_1820() -> MemoryRecordRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1820() -> Option { +fn default_1821() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1821() -> Option { +fn default_1822() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1822() -> bool { +fn default_1823() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1823() -> String { +fn default_1824() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1824() -> MemoryRecordWriteOutputKeySource { +fn default_1825() -> MemoryRecordWriteOutputKeySource { serde_json::from_str("\"anonymous\"").expect("schema default") } -fn default_1825() -> std::collections::HashMap { +fn default_1826() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1826() -> String { +fn default_1827() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1827() -> Integer { +fn default_1828() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1828() -> bool { +fn default_1829() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1829() -> Option { +fn default_1830() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1830() -> Integer { +fn default_1831() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1831() -> Integer { +fn default_1832() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1832() -> Option { +fn default_1833() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1833() -> String { +fn default_1834() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1834() -> Integer { +fn default_1835() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1835() -> Integer { +fn default_1836() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1836() -> bool { +fn default_1837() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1837() -> Vec { +fn default_1838() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1838() -> Option { +fn default_1839() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1839() -> Option { +fn default_1840() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1840() -> bool { +fn default_1841() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1841() -> bool { +fn default_1842() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1842() -> String { +fn default_1843() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1843() -> f64 { +fn default_1844() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_1844() -> String { +fn default_1845() -> String { serde_json::from_str("\"fact\"").expect("schema default") } -fn default_1845() -> String { +fn default_1846() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1846() -> std::collections::HashMap { +fn default_1847() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1847() -> bool { +fn default_1848() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1848() -> Integer { +fn default_1849() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1849() -> String { +fn default_1850() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1850() -> Vec { +fn default_1851() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1851() -> Vec { +fn default_1852() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1852() -> Integer { +fn default_1853() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1853() -> Integer { +fn default_1854() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1854() -> String { +fn default_1855() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1855() -> String { +fn default_1856() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1856() -> Integer { +fn default_1857() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_1857() -> Integer { +fn default_1858() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1858() -> Integer { +fn default_1859() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1859() -> Vec { +fn default_1860() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1860() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1861() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -66029,65 +66031,65 @@ fn default_1862() -> Integer { fn default_1863() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1864() -> Vec { +fn default_1864() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1865() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1865() -> String { +fn default_1866() -> String { serde_json::from_str("\"whole\"").expect("schema default") } -fn default_1866() -> Integer { +fn default_1867() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1867() -> Vec { +fn default_1868() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1868() -> Vec { +fn default_1869() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1869() -> Integer { +fn default_1870() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1870() -> Vec { +fn default_1871() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1871() -> Integer { +fn default_1872() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1872() -> Vec { +fn default_1873() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1873() -> Vec { +fn default_1874() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1874() -> bool { +fn default_1875() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1875() -> String { +fn default_1876() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1876() -> String { +fn default_1877() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1877() -> std::collections::HashMap { +fn default_1878() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1878() -> String { +fn default_1879() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1879() -> bool { +fn default_1880() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1880() -> Vec { +fn default_1881() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1881() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1882() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1883() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_1883() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1884() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66095,29 +66097,29 @@ fn default_1884() -> String { fn default_1885() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1886() -> bool { +fn default_1886() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1887() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1887() -> Integer { +fn default_1888() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1888() -> Option { +fn default_1889() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1889() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1890() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1891() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1892() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_1892() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_1893() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_1893() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_1894() -> Integer { serde_json::from_str("0").expect("schema default") @@ -66134,54 +66136,54 @@ fn default_1897() -> Integer { fn default_1898() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1899() -> bool { +fn default_1899() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_1900() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1900() -> Vec> { +fn default_1901() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1901() -> Vec { +fn default_1902() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1902() -> Option { +fn default_1903() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1903() -> String { +fn default_1904() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1904() -> Integer { +fn default_1905() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1905() -> Option { +fn default_1906() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1906() -> Option { +fn default_1907() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1907() -> Option { +fn default_1908() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1908() -> Option { +fn default_1909() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1909() -> Vec { +fn default_1910() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1910() -> Integer { +fn default_1911() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1911() -> String { +fn default_1912() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1912() -> String { +fn default_1913() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1913() -> Option { +fn default_1914() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1914() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1915() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66191,21 +66193,21 @@ fn default_1916() -> String { fn default_1917() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1918() -> Option { +fn default_1918() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1919() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1919() -> String { +fn default_1920() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1920() -> String { +fn default_1921() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1921() -> Integer { +fn default_1922() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1922() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1923() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66218,45 +66220,45 @@ fn default_1925() -> String { fn default_1926() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1927() -> Integer { +fn default_1927() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1928() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1928() -> String { +fn default_1929() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1929() -> Vec { +fn default_1930() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1930() -> String { +fn default_1931() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1931() -> Integer { +fn default_1932() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1932() -> String { +fn default_1933() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1933() -> Integer { +fn default_1934() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1934() -> String { +fn default_1935() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1935() -> String { +fn default_1936() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1936() -> Integer { +fn default_1937() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1937() -> String { +fn default_1938() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1938() -> bool { +fn default_1939() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1939() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1940() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66266,105 +66268,105 @@ fn default_1941() -> String { fn default_1942() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1943() -> Option { +fn default_1943() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1944() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1944() -> String { +fn default_1945() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_1945() -> Integer { +fn default_1946() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1946() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_1947() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_1948() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_1949() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_1949() -> bool { +fn default_1950() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1950() -> Vec { +fn default_1951() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1951() -> std::collections::HashMap { +fn default_1952() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1952() -> String { +fn default_1953() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1953() -> Vec { +fn default_1954() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1954() -> std::collections::HashMap { +fn default_1955() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1955() -> Integer { +fn default_1956() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1956() -> Option { +fn default_1957() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1957() -> String { +fn default_1958() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1958() -> bool { +fn default_1959() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1959() -> Vec { +fn default_1960() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1960() -> Vec { +fn default_1961() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1961() -> std::collections::HashMap { +fn default_1962() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_1962() -> Option { +fn default_1963() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1963() -> Vec { +fn default_1964() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1964() -> Integer { +fn default_1965() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1965() -> Integer { +fn default_1966() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1966() -> Vec { +fn default_1967() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1967() -> Option { +fn default_1968() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1968() -> Vec { +fn default_1969() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1969() -> Option { +fn default_1970() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1970() -> Option { +fn default_1971() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1971() -> Vec { +fn default_1972() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1972() -> bool { +fn default_1973() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1973() -> Vec { +fn default_1974() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1974() -> bool { +fn default_1975() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_1975() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_1976() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -66389,12 +66391,12 @@ fn default_1982() -> Integer { fn default_1983() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1984() -> f64 { - serde_json::from_str("0.0").expect("schema default") -} -fn default_1985() -> Integer { +fn default_1984() -> Integer { serde_json::from_str("0").expect("schema default") } +fn default_1985() -> f64 { + serde_json::from_str("0.0").expect("schema default") +} fn default_1986() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -66404,82 +66406,82 @@ fn default_1987() -> Integer { fn default_1988() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1989() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_1989() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_1990() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_1991() -> Vec { +fn default_1991() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_1992() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1992() -> String { +fn default_1993() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1993() -> String { +fn default_1994() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_1994() -> Integer { +fn default_1995() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_1995() -> Vec> { +fn default_1996() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_1996() -> Vec { +fn default_1997() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_1997() -> String { +fn default_1998() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_1998() -> bool { +fn default_1999() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_1999() -> String { +fn default_2000() -> String { serde_json::from_str("\"approval\"").expect("schema default") } -fn default_2000() -> String { +fn default_2001() -> String { serde_json::from_str("\"public\"").expect("schema default") } -fn default_2001() -> BrowseEntryMyStatus { +fn default_2002() -> BrowseEntryMyStatus { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2002() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2003() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_2004() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2005() -> Integer { +fn default_2005() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2006() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2006() -> String { +fn default_2007() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2007() -> Option { +fn default_2008() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2008() -> Option { +fn default_2009() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2009() -> Vec { +fn default_2010() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2010() -> Option { - serde_json::from_str("null").expect("schema default") -} fn default_2011() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2012() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2013() -> Option> { +fn default_2013() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2014() -> Option { +fn default_2014() -> Option> { serde_json::from_str("null").expect("schema default") } fn default_2015() -> Option { @@ -66494,40 +66496,40 @@ fn default_2017() -> Option { fn default_2018() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2019() -> Option { +fn default_2019() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2020() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2021() -> Option { +fn default_2021() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2022() -> Option { +fn default_2022() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2023() -> Option { +fn default_2023() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2024() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2025() -> Option { +fn default_2025() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2026() -> Option { +fn default_2026() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2027() -> Option { +fn default_2027() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2028() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2029() -> Option> { +fn default_2029() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2030() -> Option { +fn default_2030() -> Option> { serde_json::from_str("null").expect("schema default") } fn default_2031() -> Option { @@ -66536,22 +66538,22 @@ fn default_2031() -> Option { fn default_2032() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2033() -> Option { +fn default_2033() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2034() -> Option { +fn default_2034() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2035() -> Option>> { +fn default_2035() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2036() -> Option { +fn default_2036() -> Option>> { serde_json::from_str("null").expect("schema default") } -fn default_2037() -> Option { +fn default_2037() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2038() -> Option { +fn default_2038() -> Option { serde_json::from_str("null").expect("schema default") } fn default_2039() -> Option { @@ -66560,11 +66562,11 @@ fn default_2039() -> Option { fn default_2040() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2041() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2041() -> Option { + serde_json::from_str("null").expect("schema default") } -fn default_2042() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2042() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_2043() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66575,18 +66577,18 @@ fn default_2044() -> String { fn default_2045() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2046() -> Option { +fn default_2046() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2047() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2047() -> bool { +fn default_2048() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2048() -> Integer { +fn default_2049() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2049() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2050() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66596,129 +66598,129 @@ fn default_2051() -> String { fn default_2052() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2053() -> Option { +fn default_2053() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2054() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2054() -> Option { +fn default_2055() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2055() -> String { +fn default_2056() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2056() -> Vec { +fn default_2057() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2057() -> String { +fn default_2058() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2058() -> String { +fn default_2059() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2059() -> Option { +fn default_2060() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2060() -> Vec { +fn default_2061() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2061() -> Option { +fn default_2062() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2062() -> String { +fn default_2063() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2063() -> bool { +fn default_2064() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2064() -> f64 { +fn default_2065() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2065() -> f64 { +fn default_2066() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2066() -> String { +fn default_2067() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2067() -> Option { +fn default_2068() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2068() -> Integer { +fn default_2069() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2069() -> Integer { +fn default_2070() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2070() -> NamespaceEntryVisibility { +fn default_2071() -> NamespaceEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2071() -> String { +fn default_2072() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2072() -> Option { +fn default_2073() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2073() -> Option { +fn default_2074() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2074() -> Vec { +fn default_2075() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2075() -> MineEntryVisibility { +fn default_2076() -> MineEntryVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2076() -> String { +fn default_2077() -> String { serde_json::from_str("\"memory\"").expect("schema default") } -fn default_2077() -> String { +fn default_2078() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2078() -> String { +fn default_2079() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2079() -> Option { +fn default_2080() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2080() -> bool { +fn default_2081() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2081() -> bool { +fn default_2082() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2082() -> String { +fn default_2083() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2083() -> NamespaceRegisterOutputVisibility { +fn default_2084() -> NamespaceRegisterOutputVisibility { serde_json::from_str("\"private\"").expect("schema default") } -fn default_2084() -> bool { +fn default_2085() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2085() -> Integer { +fn default_2086() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2086() -> Integer { +fn default_2087() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2087() -> bool { +fn default_2088() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2088() -> Vec> { +fn default_2089() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2089() -> Option { +fn default_2090() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2090() -> Option { +fn default_2091() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2091() -> Vec { +fn default_2092() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2092() -> Integer { +fn default_2093() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2093() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2094() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66731,23 +66733,23 @@ fn default_2096() -> String { fn default_2097() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2098() -> Option { - serde_json::from_str("null").expect("schema default") -} -fn default_2099() -> String { +fn default_2098() -> String { serde_json::from_str("\"\"").expect("schema default") } +fn default_2099() -> Option { + serde_json::from_str("null").expect("schema default") +} fn default_2100() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_2101() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2102() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_2102() -> String { + serde_json::from_str("\"\"").expect("schema default") } -fn default_2103() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_2103() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_2104() -> Option { serde_json::from_str("null").expect("schema default") @@ -66758,33 +66760,33 @@ fn default_2105() -> Option { fn default_2106() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2107() -> String { +fn default_2107() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_2108() -> String { serde_json::from_str("\"{}\"").expect("schema default") } -fn default_2108() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { +fn default_2109() -> NamespaceSnapshotOutputSnapshotMemoryRowStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2109() -> Option { +fn default_2110() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2110() -> Vec { +fn default_2111() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2111() -> String { +fn default_2112() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2112() -> Integer { +fn default_2113() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2113() -> Integer { +fn default_2114() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2114() -> Option { +fn default_2115() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2115() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2116() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -66794,191 +66796,191 @@ fn default_2117() -> String { fn default_2118() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2119() -> Option { +fn default_2119() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2120() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2120() -> f64 { +fn default_2121() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2121() -> Option { +fn default_2122() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2122() -> Option { +fn default_2123() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2123() -> Integer { +fn default_2124() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2124() -> Option { +fn default_2125() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2125() -> Option { +fn default_2126() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2126() -> String { +fn default_2127() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2127() -> Option { +fn default_2128() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2128() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2129() -> String { serde_json::from_str("\"\"").expect("schema default") } fn default_2130() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2131() -> Option { +fn default_2131() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2132() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2132() -> String { +fn default_2133() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2133() -> Option { +fn default_2134() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2134() -> String { +fn default_2135() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2135() -> String { +fn default_2136() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2136() -> Vec { +fn default_2137() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2137() -> Vec { +fn default_2138() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2138() -> Option { +fn default_2139() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2139() -> Integer { +fn default_2140() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2140() -> String { +fn default_2141() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2141() -> Vec { +fn default_2142() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2142() -> Vec { +fn default_2143() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2143() -> String { +fn default_2144() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2144() -> Option { +fn default_2145() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2145() -> Vec { +fn default_2146() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2146() -> Integer { +fn default_2147() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2147() -> Vec { +fn default_2148() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2148() -> Option { +fn default_2149() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2149() -> Vec { +fn default_2150() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2150() -> Vec { +fn default_2151() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2151() -> Option { +fn default_2152() -> Option { serde_json::from_str("0").expect("schema default") } -fn default_2152() -> TuneProposalEffect { +fn default_2153() -> TuneProposalEffect { serde_json::from_str("\"future\"").expect("schema default") } -fn default_2153() -> TuneApplyVia { +fn default_2154() -> TuneApplyVia { serde_json::from_str("\"op\"").expect("schema default") } -fn default_2154() -> bool { +fn default_2155() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2155() -> Vec { +fn default_2156() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2156() -> Option { +fn default_2157() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2157() -> Option { +fn default_2158() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2158() -> String { +fn default_2159() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2159() -> Vec { +fn default_2160() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2160() -> Vec { +fn default_2161() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2161() -> Option { +fn default_2162() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2162() -> Option { +fn default_2163() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2163() -> Option { +fn default_2164() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2164() -> String { +fn default_2165() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2165() -> Option { +fn default_2166() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2166() -> Option { +fn default_2167() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2167() -> Option { +fn default_2168() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2168() -> Vec { +fn default_2169() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2169() -> bool { +fn default_2170() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2170() -> Option { +fn default_2171() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2171() -> Option { +fn default_2172() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2172() -> Vec { +fn default_2173() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2173() -> String { +fn default_2174() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2174() -> String { +fn default_2175() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2175() -> Vec> { +fn default_2176() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2176() -> std::collections::HashMap { +fn default_2177() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2177() -> Vec { +fn default_2178() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2178() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2179() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2180() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2180() -> Integer { + serde_json::from_str("0").expect("schema default") } fn default_2181() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -66986,27 +66988,27 @@ fn default_2181() -> String { fn default_2182() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2183() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_2183() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2184() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2185() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2185() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_2186() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2187() -> bool { +fn default_2187() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2188() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2188() -> Integer { +fn default_2189() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2189() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2190() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67016,104 +67018,104 @@ fn default_2191() -> String { fn default_2192() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2193() -> Vec { +fn default_2193() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2194() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2194() -> String { +fn default_2195() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2195() -> String { +fn default_2196() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2196() -> std::collections::HashMap { +fn default_2197() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2197() -> String { +fn default_2198() -> String { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2198() -> Option { +fn default_2199() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2199() -> Option { +fn default_2200() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2200() -> bool { +fn default_2201() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2201() -> String { +fn default_2202() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2202() -> String { +fn default_2203() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2203() -> Vec { +fn default_2204() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2204() -> Integer { +fn default_2205() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2205() -> String { +fn default_2206() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2206() -> String { +fn default_2207() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2207() -> Option { +fn default_2208() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2208() -> bool { +fn default_2209() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2209() -> String { +fn default_2210() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2210() -> bool { +fn default_2211() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2211() -> String { +fn default_2212() -> String { serde_json::from_str("\"inherit\"").expect("schema default") } -fn default_2212() -> Option { +fn default_2213() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2213() -> Option { +fn default_2214() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2214() -> bool { +fn default_2215() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2215() -> Vec { +fn default_2216() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2216() -> Integer { +fn default_2217() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2217() -> ProcedureEvolveOutputGate { +fn default_2218() -> ProcedureEvolveOutputGate { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2218() -> String { +fn default_2219() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2219() -> f64 { +fn default_2220() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2220() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") -} fn default_2221() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2222() -> std::collections::HashMap { +fn default_2222() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } fn default_2223() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2224() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2224() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") } -fn default_2225() -> Vec { - serde_json::from_str("[]").expect("schema default") +fn default_2225() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2226() -> Vec { serde_json::from_str("[]").expect("schema default") @@ -67121,134 +67123,134 @@ fn default_2226() -> Vec { fn default_2227() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2228() -> std::collections::HashMap { +fn default_2228() -> Vec { + serde_json::from_str("[]").expect("schema default") +} +fn default_2229() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2229() -> Integer { +fn default_2230() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2230() -> bool { +fn default_2231() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2231() -> std::collections::HashMap { +fn default_2232() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2232() -> Vec { +fn default_2233() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2233() -> std::collections::HashMap { +fn default_2234() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2234() -> String { +fn default_2235() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2235() -> ProcedureLocateOutputStatus { +fn default_2236() -> ProcedureLocateOutputStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2236() -> Option> { +fn default_2237() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2237() -> Vec>> { +fn default_2238() -> Vec>> { serde_json::from_str("[]").expect("schema default") } -fn default_2238() -> Vec { +fn default_2239() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2239() -> Vec { +fn default_2240() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2240() -> std::collections::HashMap { +fn default_2241() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2241() -> bool { +fn default_2242() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2242() -> Vec { +fn default_2243() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2243() -> Vec> { +fn default_2244() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2244() -> String { +fn default_2245() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2245() -> std::collections::HashMap { +fn default_2246() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2246() -> std::collections::HashMap { +fn default_2247() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2247() -> Vec { +fn default_2248() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2248() -> std::collections::HashMap { +fn default_2249() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2249() -> Option> { +fn default_2250() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2250() -> bool { +fn default_2251() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2251() -> std::collections::HashMap { +fn default_2252() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2252() -> ProcedureMatchStatus { +fn default_2253() -> ProcedureMatchStatus { serde_json::from_str("\"authored\"").expect("schema default") } -fn default_2253() -> Option> { +fn default_2254() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2254() -> Vec { +fn default_2255() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2255() -> Integer { +fn default_2256() -> Integer { serde_json::from_str("1").expect("schema default") } -fn default_2256() -> Vec> { +fn default_2257() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2257() -> f64 { - serde_json::from_str("0.0").expect("schema default") -} fn default_2258() -> f64 { serde_json::from_str("0.0").expect("schema default") } fn default_2259() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2260() -> Option { +fn default_2260() -> f64 { + serde_json::from_str("0.0").expect("schema default") +} +fn default_2261() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2261() -> std::collections::HashMap { +fn default_2262() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2262() -> std::collections::HashMap> { +fn default_2263() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2263() -> String { +fn default_2264() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2264() -> Integer { +fn default_2265() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2265() -> String { +fn default_2266() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2266() -> f64 { +fn default_2267() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2267() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_2268() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2269() -> Vec { +fn default_2269() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2270() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2270() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_2271() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -67259,101 +67261,101 @@ fn default_2272() -> String { fn default_2273() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2274() -> Option { +fn default_2274() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2275() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2275() -> Integer { +fn default_2276() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2276() -> Vec { +fn default_2277() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2277() -> std::collections::HashMap { +fn default_2278() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2278() -> Option { +fn default_2279() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2279() -> String { +fn default_2280() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2280() -> Integer { +fn default_2281() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2281() -> String { +fn default_2282() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2282() -> String { +fn default_2283() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2283() -> std::collections::HashMap { +fn default_2284() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2284() -> String { +fn default_2285() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2285() -> String { +fn default_2286() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2286() -> Option { +fn default_2287() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2287() -> RunBeginOutputStatus { +fn default_2288() -> RunBeginOutputStatus { serde_json::from_str("\"active\"").expect("schema default") } -fn default_2288() -> String { +fn default_2289() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2289() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2290() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_2291() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2292() -> Vec { +fn default_2292() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2293() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2293() -> Integer { +fn default_2294() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2294() -> Integer { +fn default_2295() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2295() -> Integer { +fn default_2296() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2296() -> String { +fn default_2297() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2297() -> String { +fn default_2298() -> String { serde_json::from_str("\"keep\"").expect("schema default") } -fn default_2298() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2299() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_2300() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2301() -> Option { +fn default_2301() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2302() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2302() -> Integer { +fn default_2303() -> Integer { serde_json::from_str("-1").expect("schema default") } -fn default_2303() -> Vec { - serde_json::from_str("[]").expect("schema default") -} fn default_2304() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2305() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2305() -> Vec { + serde_json::from_str("[]").expect("schema default") } fn default_2306() -> Integer { serde_json::from_str("0").expect("schema default") @@ -67361,57 +67363,57 @@ fn default_2306() -> Integer { fn default_2307() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2308() -> f64 { +fn default_2308() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2309() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2309() -> Integer { +fn default_2310() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2310() -> Vec { +fn default_2311() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2311() -> Integer { +fn default_2312() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2312() -> Vec { +fn default_2313() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2313() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2314() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_2315() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2316() -> Vec { +fn default_2316() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2317() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2317() -> Option { +fn default_2318() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2318() -> Option> { +fn default_2319() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2319() -> LiveSearchResultsLive { +fn default_2320() -> LiveSearchResultsLive { serde_json::from_str("true").expect("schema default") } -fn default_2320() -> String { +fn default_2321() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2321() -> LiveSearchHitLive { +fn default_2322() -> LiveSearchHitLive { serde_json::from_str("true").expect("schema default") } -fn default_2322() -> Vec { +fn default_2323() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2323() -> Option { +fn default_2324() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2324() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") -} fn default_2325() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } @@ -67421,24 +67423,24 @@ fn default_2326() -> std::collections::HashMap { fn default_2327() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2328() -> Option> { +fn default_2328() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") +} +fn default_2329() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2329() -> Vec { +fn default_2330() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2330() -> Integer { +fn default_2331() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2331() -> String { +fn default_2332() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2332() -> Integer { +fn default_2333() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2333() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2334() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67460,60 +67462,60 @@ fn default_2339() -> String { fn default_2340() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2341() -> Vec { +fn default_2341() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2342() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2342() -> String { +fn default_2343() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2343() -> String { +fn default_2344() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2344() -> Vec { +fn default_2345() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2345() -> String { +fn default_2346() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2346() -> String { +fn default_2347() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2347() -> Vec { +fn default_2348() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2348() -> Vec { +fn default_2349() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2349() -> Vec { +fn default_2350() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2350() -> String { +fn default_2351() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2351() -> String { +fn default_2352() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2352() -> Vec { +fn default_2353() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2353() -> Vec { +fn default_2354() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2354() -> Vec { +fn default_2355() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2355() -> String { +fn default_2356() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2356() -> String { +fn default_2357() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2357() -> Option { +fn default_2358() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2358() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2359() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67529,15 +67531,15 @@ fn default_2362() -> String { fn default_2363() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2364() -> Vec { +fn default_2364() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2365() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2365() -> Option { +fn default_2366() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2366() -> Integer { - serde_json::from_str("0").expect("schema default") -} fn default_2367() -> Integer { serde_json::from_str("0").expect("schema default") } @@ -67550,11 +67552,11 @@ fn default_2369() -> Integer { fn default_2370() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2371() -> bool { - serde_json::from_str("false").expect("schema default") +fn default_2371() -> Integer { + serde_json::from_str("0").expect("schema default") } -fn default_2372() -> String { - serde_json::from_str("\"\"").expect("schema default") +fn default_2372() -> bool { + serde_json::from_str("false").expect("schema default") } fn default_2373() -> String { serde_json::from_str("\"\"").expect("schema default") @@ -67574,21 +67576,21 @@ fn default_2377() -> String { fn default_2378() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2379() -> Option { +fn default_2379() -> String { + serde_json::from_str("\"\"").expect("schema default") +} +fn default_2380() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2380() -> Integer { +fn default_2381() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2381() -> Integer { +fn default_2382() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2382() -> Vec { +fn default_2383() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2383() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2384() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67598,8 +67600,8 @@ fn default_2385() -> String { fn default_2386() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2387() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2387() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2388() -> Integer { serde_json::from_str("0").expect("schema default") @@ -67613,32 +67615,32 @@ fn default_2390() -> Integer { fn default_2391() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2392() -> f64 { - serde_json::from_str("0.0").expect("schema default") -} -fn default_2393() -> Integer { +fn default_2392() -> Integer { serde_json::from_str("0").expect("schema default") } +fn default_2393() -> f64 { + serde_json::from_str("0.0").expect("schema default") +} fn default_2394() -> Integer { serde_json::from_str("0").expect("schema default") } fn default_2395() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2396() -> String { +fn default_2396() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2397() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2397() -> SessionBriefStats { +fn default_2398() -> 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_2398() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2399() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2400() -> Option { - serde_json::from_str("null").expect("schema default") +fn default_2400() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2401() -> Option { serde_json::from_str("null").expect("schema default") @@ -67646,57 +67648,57 @@ fn default_2401() -> Option { fn default_2402() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2403() -> Integer { +fn default_2403() -> Option { + serde_json::from_str("null").expect("schema default") +} +fn default_2404() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2404() -> std::collections::HashMap { +fn default_2405() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2405() -> String { +fn default_2406() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2406() -> String { +fn default_2407() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2407() -> Option { +fn default_2408() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2408() -> String { +fn default_2409() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2409() -> Integer { +fn default_2410() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2410() -> Integer { +fn default_2411() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2411() -> Option { +fn default_2412() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2412() -> std::collections::HashMap { +fn default_2413() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2413() -> String { +fn default_2414() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2414() -> Integer { +fn default_2415() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2415() -> String { +fn default_2416() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2416() -> Option { +fn default_2417() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2417() -> String { +fn default_2418() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2418() -> Option { +fn default_2419() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2419() -> String { - serde_json::from_str("\"\"").expect("schema default") -} fn default_2420() -> String { serde_json::from_str("\"\"").expect("schema default") } @@ -67706,327 +67708,327 @@ fn default_2421() -> String { fn default_2422() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2423() -> Integer { - serde_json::from_str("0").expect("schema default") +fn default_2423() -> String { + serde_json::from_str("\"\"").expect("schema default") } fn default_2424() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2425() -> String { +fn default_2425() -> Integer { + serde_json::from_str("0").expect("schema default") +} +fn default_2426() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2426() -> std::collections::HashMap { +fn default_2427() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2427() -> String { +fn default_2428() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2428() -> String { +fn default_2429() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2429() -> bool { +fn default_2430() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2430() -> String { +fn default_2431() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2431() -> std::collections::HashMap { +fn default_2432() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2432() -> Vec> { +fn default_2433() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2433() -> Vec { +fn default_2434() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2434() -> Vec { +fn default_2435() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2435() -> bool { +fn default_2436() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2436() -> String { +fn default_2437() -> String { serde_json::from_str("\"unknown\"").expect("schema default") } -fn default_2437() -> String { +fn default_2438() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2438() -> Vec { +fn default_2439() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2439() -> bool { +fn default_2440() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2440() -> String { +fn default_2441() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2441() -> bool { +fn default_2442() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2442() -> Vec { +fn default_2443() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2443() -> std::collections::HashMap { +fn default_2444() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2444() -> Vec> { +fn default_2445() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2445() -> bool { +fn default_2446() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2446() -> bool { +fn default_2447() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2447() -> Vec> { +fn default_2448() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2448() -> std::collections::HashMap { +fn default_2449() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2449() -> String { +fn default_2450() -> String { serde_json::from_str("\"none\"").expect("schema default") } -fn default_2450() -> Vec> { +fn default_2451() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2451() -> bool { +fn default_2452() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2452() -> String { +fn default_2453() -> String { serde_json::from_str("\"calibrated\"").expect("schema default") } -fn default_2453() -> std::collections::HashMap { +fn default_2454() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2454() -> std::collections::HashMap { +fn default_2455() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2455() -> String { +fn default_2456() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2456() -> std::collections::HashMap { +fn default_2457() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2457() -> std::collections::HashMap { +fn default_2458() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2458() -> std::collections::HashMap { +fn default_2459() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2459() -> String { +fn default_2460() -> String { serde_json::from_str("\"ok\"").expect("schema default") } -fn default_2460() -> String { +fn default_2461() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2461() -> String { +fn default_2462() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2462() -> bool { +fn default_2463() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2463() -> Integer { +fn default_2464() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2464() -> String { +fn default_2465() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2465() -> String { +fn default_2466() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2466() -> Vec { +fn default_2467() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2467() -> bool { +fn default_2468() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2468() -> Vec { +fn default_2469() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2469() -> std::collections::HashMap> { +fn default_2470() -> std::collections::HashMap> { serde_json::from_str("{}").expect("schema default") } -fn default_2470() -> Vec> { +fn default_2471() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2471() -> Vec> { +fn default_2472() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2472() -> String { +fn default_2473() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2473() -> Vec> { +fn default_2474() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2474() -> std::collections::HashMap { +fn default_2475() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2475() -> String { +fn default_2476() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2476() -> Vec> { +fn default_2477() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2477() -> bool { +fn default_2478() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2478() -> Integer { +fn default_2479() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2479() -> Vec> { +fn default_2480() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2480() -> String { +fn default_2481() -> String { serde_json::from_str("\"no_flaky_signal\"").expect("schema default") } -fn default_2481() -> bool { +fn default_2482() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2482() -> Option> { +fn default_2483() -> Option> { serde_json::from_str("null").expect("schema default") } -fn default_2483() -> Vec { +fn default_2484() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2484() -> bool { +fn default_2485() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2485() -> std::collections::HashMap { +fn default_2486() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2486() -> String { +fn default_2487() -> String { serde_json::from_str("\"not_computed\"").expect("schema default") } -fn default_2487() -> Vec> { +fn default_2488() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2488() -> String { +fn default_2489() -> String { serde_json::from_str("\"candidate\"").expect("schema default") } -fn default_2489() -> std::collections::HashMap { +fn default_2490() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2490() -> String { +fn default_2491() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2491() -> bool { +fn default_2492() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2492() -> Integer { +fn default_2493() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2493() -> std::collections::HashMap { +fn default_2494() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2494() -> bool { +fn default_2495() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2495() -> Vec> { +fn default_2496() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2496() -> std::collections::HashMap { +fn default_2497() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2497() -> std::collections::HashMap { +fn default_2498() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2498() -> String { +fn default_2499() -> String { serde_json::from_str("\"lower_bound\"").expect("schema default") } -fn default_2499() -> bool { +fn default_2500() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2500() -> Vec { +fn default_2501() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2501() -> Vec> { +fn default_2502() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2502() -> std::collections::HashMap { +fn default_2503() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2503() -> Vec { +fn default_2504() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2504() -> String { +fn default_2505() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2505() -> bool { +fn default_2506() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2506() -> bool { +fn default_2507() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2507() -> std::collections::HashMap { +fn default_2508() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2508() -> String { +fn default_2509() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2509() -> bool { +fn default_2510() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2510() -> std::collections::HashMap { +fn default_2511() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2511() -> std::collections::HashMap { +fn default_2512() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2512() -> Vec> { +fn default_2513() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2513() -> Vec { +fn default_2514() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2514() -> std::collections::HashMap { +fn default_2515() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2515() -> Vec> { +fn default_2516() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2516() -> bool { +fn default_2517() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2517() -> bool { +fn default_2518() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2518() -> Vec { +fn default_2519() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2519() -> std::collections::HashMap { +fn default_2520() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2520() -> String { +fn default_2521() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2521() -> std::collections::HashMap { +fn default_2522() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2522() -> bool { +fn default_2523() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2523() -> bool { +fn default_2524() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2524() -> String { +fn default_2525() -> String { serde_json::from_str("\"no_signal\"").expect("schema default") } -fn default_2525() -> Vec { +fn default_2526() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2526() -> f64 { +fn default_2527() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2527() -> Integer { +fn default_2528() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2528() -> String { +fn default_2529() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2529() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") -} fn default_2530() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } @@ -68036,18 +68038,18 @@ fn default_2531() -> std::collections::HashMap { fn default_2532() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2533() -> String { +fn default_2533() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") +} +fn default_2534() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2534() -> std::collections::HashMap { +fn default_2535() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2535() -> bool { +fn default_2536() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2536() -> std::collections::HashMap { - serde_json::from_str("{}").expect("schema default") -} fn default_2537() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } @@ -68057,54 +68059,57 @@ fn default_2538() -> std::collections::HashMap { fn default_2539() -> std::collections::HashMap { serde_json::from_str("{}").expect("schema default") } -fn default_2540() -> String { +fn default_2540() -> std::collections::HashMap { + serde_json::from_str("{}").expect("schema default") +} +fn default_2541() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2541() -> Vec> { +fn default_2542() -> Vec> { serde_json::from_str("[]").expect("schema default") } -fn default_2542() -> Integer { +fn default_2543() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2543() -> String { +fn default_2544() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2544() -> bool { +fn default_2545() -> bool { serde_json::from_str("true").expect("schema default") } -fn default_2545() -> String { +fn default_2546() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2546() -> Vec { +fn default_2547() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2547() -> bool { +fn default_2548() -> bool { serde_json::from_str("false").expect("schema default") } -fn default_2548() -> Vec { +fn default_2549() -> Vec { serde_json::from_str("[]").expect("schema default") } -fn default_2549() -> f64 { +fn default_2550() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2550() -> String { +fn default_2551() -> String { serde_json::from_str("\"\"").expect("schema default") } -fn default_2551() -> Integer { +fn default_2552() -> Integer { serde_json::from_str("4096").expect("schema default") } -fn default_2552() -> Integer { +fn default_2553() -> Integer { serde_json::from_str("0").expect("schema default") } -fn default_2553() -> Option { +fn default_2554() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2554() -> f64 { +fn default_2555() -> f64 { serde_json::from_str("0.0").expect("schema default") } -fn default_2555() -> Option { +fn default_2556() -> Option { serde_json::from_str("null").expect("schema default") } -fn default_2556() -> Vec { +fn default_2557() -> 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 1e83a08a753..dd11411ed89 100644 --- a/sdk/rust/tests/registry_contracts.rs +++ b/sdk/rust/tests/registry_contracts.rs @@ -5414,6 +5414,11 @@ fn conflicts_list() { serde_json::from_str::("null").unwrap(), "conflicts.list:total" ); + assert_eq!( + encoded["proposals"], + serde_json::from_str::("null").unwrap(), + "conflicts.list:proposals" + ); assert_eq!( encoded["keys"], serde_json::from_str::("null").unwrap(), diff --git a/sdk/typescript/src/generated/ops.ts b/sdk/typescript/src/generated/ops.ts index 3fadcd5136c..f89b8c9ecdf 100644 --- a/sdk/typescript/src/generated/ops.ts +++ b/sdk/typescript/src/generated/ops.ts @@ -2194,6 +2194,7 @@ export interface ConflictsListOutput { rows: ConflictRow[]; next_before_version?: number | null; total?: number | null; + proposals?: number | null; keys?: string[] | null; } diff --git a/server/memory/api/models_conflicts.py b/server/memory/api/models_conflicts.py index 98395c54b03..d6ed65eb73a 100644 --- a/server/memory/api/models_conflicts.py +++ b/server/memory/api/models_conflicts.py @@ -27,8 +27,8 @@ class ConflictsListInput(BaseModel): limit: int = Field(default=50, ge=1, le=500) # Keyset cursor — pass previous response's earliest version to paginate. before_version: int | None = None - # A badge needs the number, not the rows. With - # count_only the answer is `total` and no row (no value column read). + # A badge needs the numbers, not the rows. With count_only the answer is `total` and + # `proposals` and no row (no value column read). count_only: bool = False # With count_only, count now instead of reading the minute-long cache; default off. fresh: bool = Field(default=False, json_schema_extra=MCP_HIDDEN) @@ -65,6 +65,8 @@ class ConflictsListOutput(BaseModel): next_before_version: int | None = None # The live conflicted count for the namespace; set on a count_only call. total: int | None = None + # The pending proposals in the same scope, from the same read; set on a count_only call. + proposals: int | None = None # The conflicted memory keys of the namespace; set on a keys_only call. keys: list[str] | None = None diff --git a/server/memory/app/conflicts_ops.py b/server/memory/app/conflicts_ops.py index afb906f4dc3..0c0a8604054 100644 --- a/server/memory/app/conflicts_ops.py +++ b/server/memory/app/conflicts_ops.py @@ -34,7 +34,7 @@ log = logging.getLogger(__name__) -_count_cache: dict[tuple[str, str, ReadFilters], tuple[float, int]] = {} +_count_cache: dict[tuple[str, str, ReadFilters], tuple[float, tuple[int, int]]] = {} def reset_conflicts_count_cache() -> None: @@ -42,20 +42,28 @@ def reset_conflicts_count_cache() -> None: _count_cache.clear() -async def _conflicted_count_cached( +def forget_review_counts(org: str, namespace: str) -> None: + """Drop the namespace's cached badge counts, one per read scope, after a decision.""" + for key in [k for k in _count_cache if k[:2] == (org, namespace)]: + _count_cache.pop(key, None) + + +async def _review_counts_cached( repo: Any, org: str, namespace: str, scope: ReadFilters, *, fresh: bool = False -) -> int: - """The count, from this replica's cache unless `fresh`; a count read fresh refreshes it.""" +) -> tuple[int, int]: + """The conflicted and pending counts, from this replica's cache unless `fresh`; a count + read fresh refreshes it.""" key = (org, namespace, scope) hit = _count_cache.get(key) now = time.monotonic() if not fresh and hit is not None and now - hit[0] < settings.memory_conflicts_count_ttl_s: return hit[1] - n = int(await repo.count_conflicted(org, namespace, scope=scope)) + conflicted, proposed = await repo.count_review(org, namespace, scope=scope) + counts = (int(conflicted), int(proposed)) if len(_count_cache) > 1024: _count_cache.clear() - _count_cache[key] = (now, n) - return n + _count_cache[key] = (now, counts) + return counts async def handle_conflicts_list( @@ -70,13 +78,14 @@ async def handle_conflicts_list( keys = await conflicts_repo.conflicted_keys(input.org, input.namespace, scope=scope) return ConflictsListOutput(rows=[], keys=keys) if input.count_only: - # The sidebar badge wants a number every minute from every open tab. One count per + # The sidebar badge wants its numbers every minute from every open tab. One count per # (org, namespace) per `memory_conflicts_count_ttl_s` serves them all, and the count # reads no value column — reading the rows costs ~33 MB per tick on a large namespace. - total = await _conflicted_count_cached( + # The same read counts the pending proposals, so the Review queue badge is one request. + total, proposals = await _review_counts_cached( conflicts_repo, input.org, input.namespace, scope, fresh=input.fresh ) - return ConflictsListOutput(rows=[], total=total) + return ConflictsListOutput(rows=[], total=total, proposals=proposals) rows = await conflicts_repo.list_conflicted( input.org, input.namespace, @@ -325,13 +334,12 @@ async def handle_conflicts_resolve( if peers: await _allow_pairs(input, peers, now=now, by=by, reason=reason or audit_note) - # The badge's cached counts (one per read scope) are stale now. - for key in [k for k in _count_cache if k[:2] == (input.org, input.namespace)]: - _count_cache.pop(key, None) + # The badge's cached counts are stale now. + forget_review_counts(input.org, input.namespace) total: int | None = None try: with sequential_reads(): # the count must see the writes above - total = await _conflicted_count_cached( + total, _ = await _review_counts_cached( conflicts_repo, input.org, input.namespace, request_scope(), fresh=True ) except Exception as e: # noqa: BLE001 — the count never fails an applied resolve diff --git a/server/memory/app/proposals_ops.py b/server/memory/app/proposals_ops.py index bbe19ee0879..7325ea0ae55 100644 --- a/server/memory/app/proposals_ops.py +++ b/server/memory/app/proposals_ops.py @@ -17,6 +17,7 @@ MemoryProposalsInput, MemoryProposalsOutput, ) +from server.memory.app.conflicts_ops import forget_review_counts from server.settings import settings log = logging.getLogger(__name__) @@ -155,6 +156,8 @@ async def handle_memory_proposal_decide( reason=input.reason, approved_sha256=input.approved_sha256, ) + # The Review queue badge counts the proposals: its cached counts are stale now. + forget_review_counts(input.org, input.namespace) return MemoryProposalDecideOutput( decided=sum(1 for r in results if r.decided), results=[ diff --git a/server/memory/store/conflicts.py b/server/memory/store/conflicts.py index 8541528a664..82cda654ae0 100644 --- a/server/memory/store/conflicts.py +++ b/server/memory/store/conflicts.py @@ -129,29 +129,32 @@ async def _ids_in_scope( return {str(r["mid"]) for r in rows} -async def count_conflicted( +async def count_review( org: str, namespace: str, *, scope: ReadFilters, ch: _CHClient | None = None, -) -> int: - """The badge's number: live conflicted rows in the namespace, under FINAL - like the listing so a resolved pair is not counted from a stale version — - but without the value column, which reads 33 MB per tick on a namespace - of large values.""" +) -> tuple[int, int]: + """The Review queue badge's numbers, live conflicted rows and pending proposals in + the namespace, from one read under FINAL like the listings so a resolved pair or a + decided proposal is not counted from a stale version — but without the value column, + which reads 33 MB per tick on a namespace of large values.""" ch = ch or _default_client() params: dict[str, Any] = {"org": org, "ns": namespace} rows = await ch.query_all( f""" - SELECT count() AS n + SELECT countIf(status = 'conflicted') AS conflicted, + countIf(status = 'proposed') AS proposed FROM loom.memory FINAL WHERE org = {{org:String}} AND namespace = {{ns:String}} - AND status = 'conflicted' AND tombstoned_at IS NULL{scope_and(scope, params)} + AND status IN ('conflicted', 'proposed') + AND tombstoned_at IS NULL{scope_and(scope, params)} """, params=params, ) - return int((rows[0] if rows else {}).get("n") or 0) + row = rows[0] if rows else {} + return int(row.get("conflicted") or 0), int(row.get("proposed") or 0) async def conflicted_keys( diff --git a/tests/analyzer/cases/planes.py b/tests/analyzer/cases/planes.py index 8a3e811275f..9b1bfaabda6 100644 --- a/tests/analyzer/cases/planes.py +++ b/tests/analyzer/cases/planes.py @@ -649,6 +649,7 @@ async def _ledgers(ch: RecordingCH, c: dict[str, Any]) -> None: await C.allowlist_list(ORG, NS, ch=ch) await C.allowlist_remove(ORG, NS, "k1", "k2", "note", _DT, ch=ch) await C.list_conflicted(ORG, NS, before_version=5 if f else None, ch=ch, scope=WHOLE_NAMESPACE) + await C.count_review(ORG, NS, scope=WHOLE_NAMESPACE, ch=ch) await C.lookup_keys_for_ids(ORG, [_UUID], ch=ch, namespace=NS) await C.lookup_target(ORG, NS, _UUID, ch=ch) await C.mark_active_by_ids(ORG, [_UUID], ch=ch, namespace=NS) diff --git a/tests/analyzer/shapes.txt b/tests/analyzer/shapes.txt index f6744e4dbfe..000eae8166a 100644 --- a/tests/analyzer/shapes.txt +++ b/tests/analyzer/shapes.txt @@ -1359,6 +1359,7 @@ 9bdea6b87eff SELECT actor AS name, count() AS n, count() OVER () AS total FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND tombstoned_at IS NULL AND status IN (?, ?) AND actor != ? G 9c400d8b7c0c ALTER TABLE loom.oauth_signin_state UPDATE value = {v:String}, expires_at = {e:UInt32} WHERE claim_key = {k:String} AND value = {old:String} SETTINGS keeper_map_strict_mode = ?, max_execution_time = ? 9c438a0de758 SELECT thread_id, argMax((agent, toString(role), substringUTF8(content, ?, {listed:UInt32})), (ts, msg_id)) AS last_turn FROM loom.conversations WHERE org = {org:String} AND namespace = {ns:String} AN +9c4f1355a57a SELECT countIf(status = ?) AS conflicted, countIf(status = ?) AS proposed FROM loom.memory FINAL WHERE org = {org:String} AND namespace = {ns:String} AND status IN (?, ?) AND tombstoned_at IS NULL 9c5dd41a6bc3 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, -- Multi-vector axis: min(value_dist, key_dist). CH?t g 9c748a412c4b SELECT chunk_id, path, scope, kind, start_line, end_line, content, symbol_ids, context_description, arraySum(arrayMap((tok, idf) -> idf * countSubstrings(concat(?, lexemes, ?), concat(?, tok, ?)), {to 9c9c041df913 SELECT count() AS n FROM loom.conversations WHERE org = {org:String} AND tombstoned_at IS NULL AND namespace IN {ns:Array(String)} diff --git a/tests/unit/test_badge_reads.py b/tests/unit/test_badge_reads.py index 0b98038bb2e..9fb3571c6aa 100644 --- a/tests/unit/test_badge_reads.py +++ b/tests/unit/test_badge_reads.py @@ -1,8 +1,9 @@ """The two sidebar badge reads do not scan. -A badge needs a number, not rows: `conflicts.list(count_only)` answers it -from one FINAL count with no value column, cached 60 s per namespace and -dropped by a resolve. `agents.connected` looks back 30 days for +A badge needs numbers, not rows: `conflicts.list(count_only)` answers the +conflicted and pending proposal counts from one FINAL read with no value +column, cached 60 s per namespace and dropped by a resolve or a proposal +decision. `agents.connected` looks back 30 days for `first_seen` instead of scanning the org's whole event history.""" from __future__ import annotations @@ -20,9 +21,9 @@ def __init__(self) -> None: self.counts = 0 self.lists = 0 - async def count_conflicted(self, org: str, namespace: str, scope: Any = None) -> int: + async def count_review(self, org: str, namespace: str, scope: Any = None) -> tuple[int, int]: self.counts += 1 - return 4 + return 4, 2 async def list_conflicted(self, org: str, namespace: str, **_: Any) -> list[dict[str, Any]]: self.lists += 1 @@ -46,7 +47,7 @@ async def test_count_only_answers_the_number_from_one_cached_count( from server.memory.store import conflicts as conflicts_repo fake = _FakeConflictsRepo() - monkeypatch.setattr(conflicts_repo, "count_conflicted", fake.count_conflicted) + monkeypatch.setattr(conflicts_repo, "count_review", fake.count_review) monkeypatch.setattr(conflicts_repo, "list_conflicted", fake.list_conflicted) out1 = await conflicts_mod.handle_conflicts_list( @@ -55,19 +56,17 @@ async def test_count_only_answers_the_number_from_one_cached_count( out2 = await conflicts_mod.handle_conflicts_list( ConflictsListInput(org="acme", namespace="team", count_only=True) ) - assert ( - (out1.total, out2.total) == (4, 4) and out1.rows == [] and out1.next_before_version is None - ) + assert (out1.total, out1.proposals) == (out2.total, out2.proposals) == (4, 2) + assert out1.rows == [] and out1.next_before_version is None assert fake.counts == 1, "one count per namespace per minute serves every badge tick" assert fake.lists == 0, "no row (and no value column) is read for a number" - # another namespace is its own count; a resolve drops the cached one + # another namespace is its own count; a decision drops the cached one await conflicts_mod.handle_conflicts_list( ConflictsListInput(org="acme", namespace="other", count_only=True) ) assert fake.counts == 2 - for key in [k for k in conflicts_mod._count_cache if k[:2] == ("acme", "team")]: - conflicts_mod._count_cache.pop(key) + conflicts_mod.forget_review_counts("acme", "team") await conflicts_mod.handle_conflicts_list( ConflictsListInput(org="acme", namespace="team", count_only=True) ) @@ -82,7 +81,7 @@ async def test_a_fresh_count_skips_the_cache_and_refills_it( from server.memory.store import conflicts as conflicts_repo fake = _FakeConflictsRepo() - monkeypatch.setattr(conflicts_repo, "count_conflicted", fake.count_conflicted) + monkeypatch.setattr(conflicts_repo, "count_review", fake.count_review) cached = ConflictsListInput(org="acme", namespace="team", count_only=True) fresh = ConflictsListInput(org="acme", namespace="team", count_only=True, fresh=True) await conflicts_mod.handle_conflicts_list(cached) @@ -102,21 +101,57 @@ async def test_the_listing_path_is_unchanged_without_count_only( from server.memory.store import conflicts as conflicts_repo fake = _FakeConflictsRepo() - monkeypatch.setattr(conflicts_repo, "count_conflicted", fake.count_conflicted) + monkeypatch.setattr(conflicts_repo, "count_review", fake.count_review) monkeypatch.setattr(conflicts_repo, "list_conflicted", fake.list_conflicted) out = await conflicts_mod.handle_conflicts_list( ConflictsListInput(org="acme", namespace="team") ) - assert out.rows == [] and out.total is None and fake.lists == 1 and fake.counts == 0 + assert out.rows == [] and out.total is None and out.proposals is None + assert fake.lists == 1 and fake.counts == 0 + + +@pytest.mark.asyncio +async def test_a_proposal_decision_drops_the_namespaces_cached_counts( + monkeypatch: pytest.MonkeyPatch, +) -> None: + from server.memory.api.models_conflicts import ConflictsListInput + from server.memory.api.models_proposals import MemoryProposalDecideInput + from server.memory.app import proposals as proposals_mod + from server.memory.app import proposals_ops + from server.memory.store import conflicts as conflicts_repo + + fake = _FakeConflictsRepo() + monkeypatch.setattr(conflicts_repo, "count_review", fake.count_review) + + async def _decide(*_: Any, **__: Any) -> list[Any]: + return [] + + monkeypatch.setattr(proposals_mod, "decide", _decide) + count = ConflictsListInput(org="acme", namespace="team", count_only=True) + await conflicts_mod.handle_conflicts_list(count) + await conflicts_mod.handle_conflicts_list( + ConflictsListInput(org="acme", namespace="other", count_only=True) + ) + await proposals_ops.handle_memory_proposal_decide( + MemoryProposalDecideInput( + org="acme", namespace="team", memory_keys=["k"], decision="reject" + ) + ) + await conflicts_mod.handle_conflicts_list(count) + assert fake.counts == 3, "the decided namespace counts again" + await conflicts_mod.handle_conflicts_list( + ConflictsListInput(org="acme", namespace="other", count_only=True) + ) + assert fake.counts == 3, "another namespace keeps its cached counts" -def test_count_conflicted_reads_no_value_column() -> None: +def test_count_review_reads_no_value_column() -> None: import inspect from server.memory.store import conflicts as conflicts_repo - src = inspect.getsource(conflicts_repo.count_conflicted) - assert "count()" in src and "FINAL" in src + src = inspect.getsource(conflicts_repo.count_review) + assert "countIf(" in src and "FINAL" in src assert "value" not in src.split('"""')[3], "the count statement selects no value column" diff --git a/tests/unit/test_conflicts_resolve_scope.py b/tests/unit/test_conflicts_resolve_scope.py index 5b35f7510de..715a77f7d4c 100644 --- a/tests/unit/test_conflicts_resolve_scope.py +++ b/tests/unit/test_conflicts_resolve_scope.py @@ -88,10 +88,11 @@ async def _activate(org: str, ids: list[str], *, namespace: str, **_: Any) -> No async def _keys(org: str, ids: list[str], *, namespace: str, **_: Any) -> dict[str, str]: return {i: t.rows[i]["key"] for i in _in(namespace, ids)} - async def _count(org: str, namespace: str, **_: Any) -> int: + async def _count(org: str, namespace: str, **_: Any) -> tuple[int, int]: t.count_reads_consistent.append(sequential_reads_active()) decided = {*t.tombstoned, *t.activated} - return sum(1 for i, r in t.rows.items() if r["namespace"] == namespace and i not in decided) + n = sum(1 for i, r in t.rows.items() if r["namespace"] == namespace and i not in decided) + return n, 0 async def _allow(rows: list[dict[str, Any]], **_: Any) -> None: t.allowlisted.extend(rows) @@ -108,7 +109,7 @@ async def _get_by_id(memory_id: str, *, namespace: str | None = None, **_: Any) monkeypatch.setattr(repo, "mark_active_by_ids", _activate) monkeypatch.setattr(repo, "lookup_keys_for_ids", _keys) monkeypatch.setattr(repo, "allowlist_insert", _allow) - monkeypatch.setattr(repo, "count_conflicted", _count) + monkeypatch.setattr(repo, "count_review", _count) h.reset_conflicts_count_cache() return t @@ -251,10 +252,10 @@ async def test_a_count_that_fails_after_the_writes_still_answers_the_applied_res ) -> None: from server.memory.store import conflicts as repo - async def _count_fails(*_: Any, **__: Any) -> int: + async def _count_fails(*_: Any, **__: Any) -> tuple[int, int]: raise RuntimeError("ClickHouse unavailable") - monkeypatch.setattr(repo, "count_conflicted", _count_fails) + monkeypatch.setattr(repo, "count_review", _count_fails) out = await _resolve(T_OWN, "revise") assert out.resolved is True and out.total is None assert table.tombstoned == [P_OWN, P_OWN2] and table.activated == [T_OWN] diff --git a/tests/unit/test_read_scope_admission.py b/tests/unit/test_read_scope_admission.py index fec2803bc07..a479b59a946 100644 --- a/tests/unit/test_read_scope_admission.py +++ b/tests/unit/test_read_scope_admission.py @@ -354,7 +354,7 @@ def _readers() -> list[Any]: reads.count_by_namespace, history.list_history, conflicts.list_conflicted, - conflicts.count_conflicted, + conflicts.count_review, conflicts.conflicted_keys, session_briefs.current, session_briefs.by_revision, @@ -442,7 +442,7 @@ async def test_history_conflicts_and_briefs_carry_the_scope() -> None: ch = _CH() await history.list_history(_WILD, "k", scope=U1, ch=ch) await conflicts.list_conflicted("o", "n", scope=U1, ch=ch) - await conflicts.count_conflicted("o", "n", scope=U1, ch=ch) + await conflicts.count_review("o", "n", scope=U1, ch=ch) await conflicts.conflicted_keys("o", "n", scope=U1, ch=ch) await session_briefs.current(ch, "o", "n", "b", scope=U1) await session_briefs.by_revision(ch, "o", "n", "b", 2, scope=U1) @@ -562,19 +562,19 @@ def shape(**kw: Any) -> str: assert shape() == shape(user_id="-") -async def test_the_conflict_badge_count_is_cached_per_scope() -> None: +async def test_the_review_badge_counts_are_cached_per_scope() -> None: from server.memory.app import conflicts_ops conflicts_ops.reset_conflicts_count_cache() seen: list[ReadFilters] = [] - async def count_conflicted(org: str, namespace: str, *, scope: ReadFilters) -> int: + async def count_review(org: str, namespace: str, *, scope: ReadFilters) -> tuple[int, int]: seen.append(scope) - return 7 if scope is WHOLE_NAMESPACE else 1 + return (7, 2) if scope is WHOLE_NAMESPACE else (1, 0) - repo = SimpleNamespace(count_conflicted=count_conflicted) - assert await conflicts_ops._conflicted_count_cached(repo, "o", "n", WHOLE_NAMESPACE) == 7 - assert await conflicts_ops._conflicted_count_cached(repo, "o", "n", U1) == 1 + repo = SimpleNamespace(count_review=count_review) + assert await conflicts_ops._review_counts_cached(repo, "o", "n", WHOLE_NAMESPACE) == (7, 2) + assert await conflicts_ops._review_counts_cached(repo, "o", "n", U1) == (1, 0) assert seen == [WHOLE_NAMESPACE, U1] conflicts_ops.reset_conflicts_count_cache() From ca67706f3da104bc44862f3d9a6c6b8cc5fb451d Mon Sep 17 00:00:00 2001 From: Vanshaj Poonia Date: Sun, 29 Nov 2026 06:36:37 +0530 Subject: [PATCH 06/15] The Review queue badge takes both counts from one read and reads them again after a decision Signed-off-by: Vanshaj Poonia --- docs/features/dashboard.md | 14 +- frontend/src/App.boot.test.tsx | 10 +- frontend/src/api.ts | 25 ++- frontend/src/callBudget.test.tsx | 2 - frontend/src/layout/MobileMore.tsx | 12 +- frontend/src/layout/Sidebar.test.tsx | 145 +++++++++++------- frontend/src/layout/Sidebar.tsx | 83 ++++------ frontend/src/lib/state.ts | 11 +- frontend/src/views/admin/Proposals.test.tsx | 11 +- frontend/src/views/admin/Proposals.tsx | 11 +- frontend/src/views/admin/ReviewQueue.test.tsx | 113 +++++++------- frontend/src/views/admin/ReviewQueue.tsx | 39 ++--- 12 files changed, 232 insertions(+), 244 deletions(-) diff --git a/docs/features/dashboard.md b/docs/features/dashboard.md index c200acb0403..ee94ac805f8 100644 --- a/docs/features/dashboard.md +++ b/docs/features/dashboard.md @@ -458,13 +458,13 @@ entry that would answer 403. | Access | **Users** | `/admin/users` | Org and platform admins only: every subject, their grants (namespaces, collections and repositories) and roles, last activity, and releasing a namespace whose owner lost their password. | The Admin button shows the Review queue's count while its drawer is closed. That count is the -review items waiting: open conflicts plus pending proposals (`memory.proposals` with -`count_only`, every proposal past the listing's scan cap). The entry's accessible name gives -each kind, or says a kind could not be counted, and with proposals waiting and no open conflict -the queue opens on Proposals. Usage warns when the namespace is over its 24-hour cap, Agents -counts clients new in the last 24 hours. The header carries a task -bell (triage and blocked-on-person items) and a pending-approvals bell (grant requests the -person can decide). The phone's More sheet lists the same admin entries with the same badges; a +review items waiting: open conflicts plus pending proposals, both from the one +`conflicts.list` count the badge reads (`count_only` answers `total` and `proposals`). A +decision in the Proposals tab reads the count again at once. When the queue's own count finds +proposals waiting and no open conflict, the queue opens on Proposals. Usage warns when the +namespace is over its 24-hour cap, Agents counts clients new in the last 24 hours. The header +carries a task bell (triage and blocked-on-person items) and a pending-approvals bell (grant +requests the person can decide). The phone's More sheet lists the same admin entries with the same badges; a badge whose read fails is hidden. ## Operations the dashboard uses diff --git a/frontend/src/App.boot.test.tsx b/frontend/src/App.boot.test.tsx index bcc49c11fbf..51294a7a538 100644 --- a/frontend/src/App.boot.test.tsx +++ b/frontend/src/App.boot.test.tsx @@ -596,10 +596,7 @@ describe("a link's namespace", () => { expect(calls.some((c) => c.body?.namespace === "group-b-shared")).toBe(false); expect( calls.filter((c) => c.path.startsWith("memory.")).map((c) => ({ path: c.path, namespace: c.body?.namespace })), - ).toEqual([ - { path: "memory.proposals", namespace: NS }, - { path: "memory.auto_retirements", namespace: NS }, - ]); + ).toEqual([{ path: "memory.auto_retirements", namespace: NS }]); expect(localStorage.getItem("loom_namespace_v1")).toBe(NS); expect(savedDefault()).toBe(false); // Continue: the page the link asked for, on the namespace the picker shows. @@ -645,10 +642,7 @@ describe("a link's namespace", () => { expect(calls.some((c) => c.body?.namespace === "joined")).toBe(false); expect( calls.filter((c) => c.path.startsWith("memory.")).map((c) => ({ path: c.path, namespace: c.body?.namespace })), - ).toEqual([ - { path: "memory.proposals", namespace: NS }, - { path: "memory.auto_retirements", namespace: NS }, - ]); + ).toEqual([{ path: "memory.auto_retirements", namespace: NS }]); }); it("when the membership read fails, a reload still opens the saved pick: the server answers its reads", async () => { diff --git a/frontend/src/api.ts b/frontend/src/api.ts index 58fa4ea2aec..4a651a021d5 100644 --- a/frontend/src/api.ts +++ b/frontend/src/api.ts @@ -1037,29 +1037,24 @@ export async function listConflicts( return post("/v1/conflicts.list", body, opts.signal); } -/** The namespace's conflicted count. `fresh` counts now instead of answering from the - * replica's minute-long cache (the review queue; the sidebar badge takes the cache). */ -export async function countConflicts( +/** The namespace's Review queue counts from one read: `total` conflicted and `proposals` + * pending (absent from a server that does not count them). `fresh` counts now instead of + * answering from the replica's minute-long cache (the review queue; the sidebar badge takes + * the cache). */ +export function countReview( id: Pick, opts: RequestOpts & { fresh?: boolean } = {}, -): Promise { - const r = await post<{ total?: number | null }>( +): Promise { + return post( "/v1/conflicts.list", { org: id.org, namespace: id.namespace, count_only: true, ...(opts.fresh ? { fresh: true } : {}) }, opts.signal, ); - return r.total ?? 0; } -/** How many proposals wait in a namespace: `memory.proposals` with `count_only`, one count - * over every pending proposal the caller may read, with no row or value. */ -export async function countProposals(id: Pick, opts: RequestOpts = {}): Promise { - const r = await post<{ total?: number | null }>( - "/v1/memory.proposals", - { org: id.org, namespace: id.namespace, count_only: true }, - opts.signal, - ); - return r.total ?? 0; +export interface ReviewCounts { + total?: number | null; + proposals?: number | null; } /** The conflicted memory keys of a namespace, for the cards' chips diff --git a/frontend/src/callBudget.test.tsx b/frontend/src/callBudget.test.tsx index 9726ecc3201..aa163f413af 100644 --- a/frontend/src/callBudget.test.tsx +++ b/frontend/src/callBudget.test.tsx @@ -188,8 +188,6 @@ const BUDGET: Record JSX.Element; view: View; allow: Rec // The task inbox bell asks for counts once per two minutes. allow: { "/v1/conflicts.list": 1, - // The Review queue's count of pending proposals, beside the open conflicts. - "/v1/memory.proposals": 1, // Fifty retirement records: whether the Review queue's Auto-resolved tab has anything. "/v1/memory.auto_retirements": 1, "/v1/cost.budget_status": 1, diff --git a/frontend/src/layout/MobileMore.tsx b/frontend/src/layout/MobileMore.tsx index 9ee9d01a53a..c16819a5cad 100644 --- a/frontend/src/layout/MobileMore.tsx +++ b/frontend/src/layout/MobileMore.tsx @@ -6,16 +6,7 @@ import { canWrite, needsRole, useNamespaceRole } from "../lib/namespaceRole"; import { openNewDialog } from "../lib/newDialogs"; import type { MyNamespaceEntry, WhoAmI } from "../api"; import { useStore, viewHref, type AdminBadges } from "../lib/state"; -import { - adminItems, - groupAdminItems, - linkName, - NavBadge, - RAIL_GROUPS, - SETTINGS_ITEM, - DOCS_ITEM, - type NavItem, -} from "./Sidebar"; +import { adminItems, groupAdminItems, NavBadge, RAIL_GROUPS, SETTINGS_ITEM, DOCS_ITEM, type NavItem } from "./Sidebar"; import { ACTIVE, PRIMARY_IDS } from "./mobileTabs"; // The sheet is generated from the sidebar's own nav arrays rather than a second hand-written @@ -118,7 +109,6 @@ export default function MoreSheet({ onClose }: { onClose: () => void }) { onClose(); }} aria-current={active ? "page" : undefined} - aria-label={m.badgeLabel ? linkName(m) : undefined} className={`flex min-h-11 items-center gap-2 border border-border p-2.5 rounded-sm transition-colors no-underline hover:no-underline text-text ${ active ? `${ACTIVE} font-medium` : "bg-surface-2 hover:bg-surface-3" }`} diff --git a/frontend/src/layout/Sidebar.test.tsx b/frontend/src/layout/Sidebar.test.tsx index 08afdfa40a6..1a631fd2ad2 100644 --- a/frontend/src/layout/Sidebar.test.tsx +++ b/frontend/src/layout/Sidebar.test.tsx @@ -9,7 +9,7 @@ async function painted(): Promise { }); } import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import type { MyNamespaceEntry, WhoAmI } from "../api"; +import type { MyNamespaceEntry, ReviewCounts, WhoAmI } from "../api"; import { useStore, viewHref } from "../lib/state"; import { Sidebar } from "./Sidebar"; import { MobileNav } from "./MobileNav"; @@ -23,8 +23,7 @@ vi.mock("../api", async (importOriginal) => { const actual = await importOriginal(); return { ...actual, - countConflicts: vi.fn(async () => 0), - countProposals: vi.fn(async () => 0), + countReview: vi.fn(async () => ({ total: 0, proposals: 0 })), getBudgetStatus: vi.fn(async () => ({ over_cap: false })), countNewAgents: vi.fn(async () => 0), // The badge asks for a number }; @@ -34,7 +33,7 @@ vi.mock("../api/audit", async (importOriginal) => ({ ...(await importOriginal()), hasAutoResolved: vi.fn(async () => false), })); -import { getBudgetStatus, countConflicts, countNewAgents, countProposals } from "../api"; +import { getBudgetStatus, countNewAgents, countReview } from "../api"; import { hasAutoResolved } from "../api/audit"; const row = (namespace: string, role: MyNamespaceEntry["role"]): MyNamespaceEntry => ({ @@ -84,8 +83,7 @@ describe("Sidebar admin drawer", () => { expect(screen.queryByRole("button", { name: /Admin/ })).not.toBeInTheDocument(); // Let any effect that would have polled run. await painted(); - expect(countConflicts).not.toHaveBeenCalled(); - expect(countProposals).not.toHaveBeenCalled(); + expect(countReview).not.toHaveBeenCalled(); expect(getBudgetStatus).not.toHaveBeenCalled(); expect(countNewAgents).not.toHaveBeenCalled(); expect(hasAutoResolved).not.toHaveBeenCalled(); @@ -96,7 +94,7 @@ describe("Sidebar admin drawer", () => { render(); expect(screen.getByRole("button", { name: /Admin/ })).toBeInTheDocument(); await painted(); - expect(countConflicts).toHaveBeenCalledTimes(1); + expect(countReview).toHaveBeenCalledTimes(1); expect(getBudgetStatus).toHaveBeenCalledTimes(1); }); @@ -114,7 +112,7 @@ describe("Sidebar admin drawer", () => { seed(viewer, []); render(); await painted(); - expect(countConflicts).not.toHaveBeenCalled(); + expect(countReview).not.toHaveBeenCalled(); expect(getBudgetStatus).not.toHaveBeenCalled(); expect(countNewAgents).not.toHaveBeenCalled(); }); @@ -123,7 +121,7 @@ describe("Sidebar admin drawer", () => { seed(viewer, null); render(); await painted(); - expect(countConflicts).not.toHaveBeenCalled(); + expect(countReview).not.toHaveBeenCalled(); expect(getBudgetStatus).not.toHaveBeenCalled(); expect(countNewAgents).not.toHaveBeenCalled(); }); @@ -132,7 +130,7 @@ describe("Sidebar admin drawer", () => { seed({ ...viewer, roles: ["ADMIN"] }, null); render(); await painted(); - expect(countConflicts).toHaveBeenCalledTimes(1); + expect(countReview).toHaveBeenCalledTimes(1); expect(getBudgetStatus).toHaveBeenCalledTimes(1); expect(countNewAgents).toHaveBeenCalledTimes(1); }); @@ -165,7 +163,7 @@ describe("Sidebar admin drawer", () => { it("a switch to a namespace that is not polled clears the previous namespace's badges", async () => { sessionStorage.clear(); - vi.mocked(countConflicts).mockResolvedValueOnce(4); + vi.mocked(countReview).mockResolvedValueOnce({ total: 4, proposals: 0 }); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); useStore.setState({ view: "admin:health" }); render(); @@ -179,7 +177,7 @@ describe("Sidebar admin drawer", () => { await painted(); expect(screen.getByRole("button", { name: /Admin/ })).toBeInTheDocument(); expect(screen.getByRole("link", { name: /Review queue/ })).not.toHaveTextContent(/\d/); - expect(countConflicts).toHaveBeenCalledTimes(1); + expect(countReview).toHaveBeenCalledTimes(1); }); // With no open conflict, the queue's Auto-resolved tab still has something to show: @@ -203,47 +201,94 @@ describe("Sidebar admin drawer", () => { render(); await painted(); expect(hasAutoResolved).toHaveBeenCalledTimes(1); - const review = screen.getByRole("link", { name: "Review queue, 0 conflicts, 0 proposals" }); - expect(review).not.toHaveTextContent(/\d/); + expect(screen.getByRole("link", { name: "Review queue" })).not.toHaveTextContent(/\d/); }); - // The count is the review items waiting: open conflicts plus pending proposals. - it("counts pending proposals with the open conflicts and names each kind", async () => { + // The count is the review items waiting, open conflicts plus pending proposals, from one read. + it("counts pending proposals with the open conflicts", async () => { sessionStorage.clear(); - vi.mocked(countConflicts).mockResolvedValueOnce(2); - vi.mocked(countProposals).mockResolvedValueOnce(3); + vi.mocked(countReview).mockResolvedValueOnce({ total: 2, proposals: 3 }); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); useStore.setState({ view: "admin:health" }); render(); await painted(); - expect(countProposals).toHaveBeenCalledWith({ org: "dev", namespace: "team-a" }); - const review = screen.getByRole("link", { name: "Review queue, 2 conflicts, 3 proposals" }); - expect(review).toHaveTextContent("5"); + expect(countReview).toHaveBeenCalledTimes(1); + expect(countReview).toHaveBeenCalledWith({ org: "dev", namespace: "team-a" }); + expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("5"); }); it("shows proposals waiting alone, with no open conflict", async () => { sessionStorage.clear(); - vi.mocked(countProposals).mockResolvedValueOnce(1); + vi.mocked(countReview).mockResolvedValueOnce({ total: 0, proposals: 1 }); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); useStore.setState({ view: "admin:health" }); render(); await painted(); - expect(screen.getByRole("link", { name: "Review queue, 0 conflicts, 1 proposal" })).toHaveTextContent("1"); + expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("1"); }); - // A count that failed is unknown, never 0: the number covers what was counted and the - // name says which kind is missing. - it("says which kind went uncounted when the proposals count fails", async () => { + // A server that does not count proposals answers the conflicts alone. + it("counts the open conflicts when the answer has no proposals count", async () => { sessionStorage.clear(); - vi.mocked(countConflicts).mockResolvedValueOnce(2); - vi.mocked(countProposals).mockRejectedValueOnce(new Error("offline")); + vi.mocked(countReview).mockResolvedValueOnce({ total: 2 }); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); useStore.setState({ view: "admin:health" }); render(); await painted(); - expect(screen.getByRole("link", { name: "Review queue, 2 conflicts, proposals not counted" })).toHaveTextContent( - "2", - ); + expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("2"); + }); + + // A decision reads the counts again for the namespace shown, and an answer read before + // the decision is dropped even when it lands after the new one. + it("reads the counts again after a Review queue decision and drops the earlier answer", async () => { + sessionStorage.clear(); + let before: (r: ReviewCounts) => void = () => {}; + vi.mocked(countReview) + .mockReturnValueOnce(new Promise((r) => (before = r))) + .mockResolvedValueOnce({ total: 0, proposals: 1 }); + seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); + useStore.setState({ view: "admin:health" }); + render(); + await painted(); + act(() => useStore.setState((s) => ({ reviewDecisions: s.reviewDecisions + 1 }))); + await painted(); + expect(countReview).toHaveBeenCalledTimes(2); + expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("1"); + await act(async () => before({ total: 0, proposals: 2 })); + expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("1"); + }); + + // A decision made in team-a that lands after a switch to team-b reads team-b's counts + // again and leaves them as read, with nothing taken off. + it("reads the namespace shown again after a decision made in another one", async () => { + sessionStorage.clear(); + vi.mocked(countReview) + .mockResolvedValueOnce({ total: 0, proposals: 3 }) + .mockResolvedValueOnce({ total: 1, proposals: 1 }) + .mockResolvedValueOnce({ total: 1, proposals: 1 }); + seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin"), row("team-b", "admin")]); + useStore.setState({ view: "admin:health" }); + render(); + await painted(); + expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("3"); + act(() => useStore.setState({ identity: { org: "dev", namespace: "team-b", agent: "loom-ui" } })); + await painted(); + expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("2"); + act(() => useStore.setState((s) => ({ reviewDecisions: s.reviewDecisions + 1 }))); + await painted(); + expect(countReview).toHaveBeenCalledTimes(3); + expect(countReview).toHaveBeenLastCalledWith({ org: "dev", namespace: "team-b" }); + expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("2"); + }); + + // Closed, the Admin button carries the queue's count and says what it counts. + it("names the review count on the closed Admin button", async () => { + sessionStorage.clear(); + vi.mocked(countReview).mockResolvedValueOnce({ total: 0, proposals: 2 }); + seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); + render(); + await painted(); + expect(screen.getByRole("button", { name: "Admin, 2 to review" })).toBeInTheDocument(); }); it("is shown for a platform admin regardless of grants, with the Users entry", async () => { @@ -274,7 +319,7 @@ describe("the admin list on every width", () => { }); it("is the same on the phone's More sheet: the drawer's entries in its order, Review queue and its count included", async () => { - vi.mocked(countConflicts).mockResolvedValueOnce(3); + vi.mocked(countReview).mockResolvedValueOnce({ total: 3, proposals: 0 }); seed({ ...viewer, roles: ["PLATFORM_ADMIN"] }, [row("team-a", "admin")]); useStore.setState({ view: "admin:health" }); render(); @@ -296,7 +341,7 @@ describe("the admin list on every width", () => { }); it("keeps the sheet's Review queue past the badge cache's minute: the sheet reads the store", async () => { - vi.mocked(countConflicts).mockResolvedValueOnce(3); + vi.mocked(countReview).mockResolvedValueOnce({ total: 3, proposals: 0 }); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); render(); await painted(); @@ -311,24 +356,18 @@ describe("the admin list on every width", () => { it("redraws the open sheet when a new badge answer lands", async () => { seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); - useStore.setState({ - adminBadges: { conflicts: 3, proposals: 0, autoResolved: false, overCap: false, newAgents: 0 }, - }); + useStore.setState({ adminBadges: { conflicts: 3, autoResolved: false, overCap: false, newAgents: 0 } }); render(); await userEvent.setup().click(screen.getByRole("button", { name: "More" })); const sheet = await screen.findByRole("dialog", { name: "More" }); const review = () => within(sheet).getByRole("link", { name: /Review queue/ }); expect(review()).toHaveTextContent("3"); - act(() => - useStore.setState({ - adminBadges: { conflicts: 5, proposals: 0, autoResolved: false, overCap: false, newAgents: 0 }, - }), - ); + act(() => useStore.setState({ adminBadges: { conflicts: 5, autoResolved: false, overCap: false, newAgents: 0 } })); expect(review()).toHaveTextContent("5"); }); it("drops the previous namespace's Review queue from the open sheet on a namespace switch", async () => { - vi.mocked(countConflicts).mockResolvedValueOnce(3); + vi.mocked(countReview).mockResolvedValueOnce({ total: 3, proposals: 0 }); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin"), row("team-b", "admin")]); render(); await painted(); @@ -344,7 +383,7 @@ describe("the admin list on every width", () => { }); it("shows no badge from the other org after an org switch", async () => { - vi.mocked(countConflicts).mockResolvedValueOnce(3); + vi.mocked(countReview).mockResolvedValueOnce({ total: 3, proposals: 0 }); seed({ ...viewer, roles: ["PLATFORM_ADMIN"] }, null); useStore.setState({ view: "admin:health" }); render(); @@ -353,15 +392,13 @@ describe("the admin list on every width", () => { act(() => useStore.setState({ identity: { org: "other", namespace: "team-a", agent: "loom-ui" } })); expect(screen.getByRole("link", { name: /Review queue/ })).not.toHaveTextContent("3"); await painted(); - expect(countConflicts).toHaveBeenLastCalledWith({ org: "other", namespace: "team-a" }); + expect(countReview).toHaveBeenLastCalledWith({ org: "other", namespace: "team-a" }); expect(screen.getByRole("link", { name: /Review queue/ })).not.toHaveTextContent("3"); }); it("draws Usage's warning dot and the Agents count on the More sheet", async () => { seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); - useStore.setState({ - adminBadges: { conflicts: null, proposals: null, autoResolved: false, overCap: true, newAgents: 2 }, - }); + useStore.setState({ adminBadges: { conflicts: null, autoResolved: false, overCap: true, newAgents: 2 } }); render(); await userEvent.setup().click(screen.getByRole("button", { name: "More" })); const sheet = await screen.findByRole("dialog", { name: "More" }); @@ -372,14 +409,14 @@ describe("the admin list on every width", () => { }); it("writes nothing once unmounted while a read is out", async () => { - let settle: (n: number) => void = () => {}; - vi.mocked(countConflicts).mockReturnValueOnce(new Promise((r) => (settle = r))); + let settle: (r: ReviewCounts) => void = () => {}; + vi.mocked(countReview).mockReturnValueOnce(new Promise((r) => (settle = r))); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); const { unmount } = render(); await painted(); - expect(countConflicts).toHaveBeenCalledTimes(1); + expect(countReview).toHaveBeenCalledTimes(1); unmount(); - await act(async () => settle(3)); + await act(async () => settle({ total: 3, proposals: 0 })); expect(useStore.getState().adminBadges).toBeNull(); expect(sessionStorage.getItem("loom_badge_v1:badges:dev/team-a")).toBeNull(); }); @@ -389,19 +426,19 @@ describe("the admin list on every width", () => { "loom_badge_v1:badges:dev/team-a", JSON.stringify({ at: Date.now(), v: { conflicts: 3, autoResolved: false, overCap: false, newAgents: 0 } }), ); - vi.mocked(countConflicts).mockRejectedValueOnce(new Error("offline")); + vi.mocked(countReview).mockRejectedValueOnce(new Error("offline")); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); useStore.setState({ view: "admin:health" }); render(); expect(screen.getByRole("link", { name: /Review queue/ })).toHaveTextContent("3"); await painted(); - expect(screen.getByRole("link", { name: /conflicts not counted/ })).not.toHaveTextContent(/\d/); + expect(screen.getByRole("link", { name: "Review queue" })).not.toHaveTextContent(/\d/); }); it("shows the reads' answers together, once the slowest settles", async () => { let settle: (n: number) => void = () => {}; vi.mocked(countNewAgents).mockReturnValueOnce(new Promise((r) => (settle = r))); - vi.mocked(countConflicts).mockResolvedValueOnce(3); + vi.mocked(countReview).mockResolvedValueOnce({ total: 3, proposals: 0 }); seed({ ...viewer, roles: ["WRITER"] }, [row("team-a", "admin")]); useStore.setState({ view: "admin:health" }); render(); diff --git a/frontend/src/layout/Sidebar.tsx b/frontend/src/layout/Sidebar.tsx index 4cf25f4c906..fd69a256264 100644 --- a/frontend/src/layout/Sidebar.tsx +++ b/frontend/src/layout/Sidebar.tsx @@ -4,7 +4,7 @@ import { Icon, type IconName } from "@clickhouse/click-ui/Icon"; import { IconButton } from "../components/IconButton"; import { Tip } from "../components/ui/Tooltip"; import { useStore, viewHref, type AdminBadges, type View } from "../lib/state"; -import { countConflicts, countNewAgents, countProposals, type MyNamespaceEntry, type WhoAmI } from "../api"; +import { countNewAgents, countReview, type MyNamespaceEntry, type WhoAmI } from "../api"; import { readSession, useAfterPaint, writeSession } from "../lib/afterPaint"; import { sharedBudgetStatus, sharedHasAutoResolved } from "../lib/sharedReads"; import { hasOrgAdminClaim, hasPlatformAdminClaim, isNamespaceAdmin } from "../lib/role"; @@ -34,8 +34,6 @@ export interface NavItem { // differently from a neutral count (review queue). Number >= 999 // collapses to a dot rather than a numeric label. badgeTone?: "default" | "warn" | "accent"; - /** What the badge counts, read out with the entry's name (the number alone says less). */ - badgeLabel?: string; } // The phone's More dialog uses the same destinations so route labels stay in sync. @@ -183,35 +181,19 @@ export function adminItems( return [reviewItem(badges), ...items]; } -/** The Review queue entry. Its count is the review items waiting, open conflicts plus - * pending proposals, and its name says each kind or that a kind went uncounted. */ +/** The Review queue entry. Its count is the review items waiting: open conflicts plus + * pending proposals. */ function reviewItem(badges: AdminBadges | null): NavItem { - const conflicts = badges?.conflicts ?? null; - const proposals = badges?.proposals ?? null; - const pending = (conflicts ?? 0) + (proposals ?? 0); - // The icon follows what waits: conflicts warn, proposals ask, recent auto-resolutions - // alone use the Auto-resolved tab's icon. - const icon: IconName = conflicts - ? "warning" - : proposals - ? "question" - : badges?.autoResolved - ? "flash" - : "check-in-circle"; + const conflicts = badges?.conflicts; return { id: "admin:review_queue", label: "Review queue", - icon, - badge: pending || undefined, - badgeLabel: badges ? `${countOf(conflicts, "conflict")}, ${countOf(proposals, "proposal")}` : undefined, + // Open conflicts warn; otherwise the entry shows the Auto-resolved tab's icon. + icon: conflicts ? "warning" : "flash", + badge: (conflicts ?? 0) + (badges?.proposals ?? 0) || undefined, }; } -function countOf(n: number | null, kind: string): string { - if (n === null) return `${kind}s not counted`; - return `${n} ${n === 1 ? kind : `${kind}s`}`; -} - export function Sidebar() { const view = useStore((s) => s.view); const setView = useStore((s) => s.setView); @@ -226,6 +208,9 @@ export function Sidebar() { // Lean notification surface: badge admin items that have actionable state right now. The // answer is kept in the store, where the phone's More sheet reads it too. const badges = useStore((s) => s.adminBadges); + // A Review queue decision reads the badges again for the namespace shown now, and drops + // an answer still in flight from before it. + const decisions = useStore((s) => s.reviewDecisions); const agentsTick = useRef(0); const whoami = useStore((s) => s.whoami); @@ -243,10 +228,10 @@ export function Sidebar() { const pollsBadges = roleHere === "admin" && isMemoryNamespace(identity?.namespace ?? "", myNamespaces); const visibleAdmin = adminItems(whoami, myNamespaces, identity?.namespace ?? "", badges); - const review = visibleAdmin.find((item) => item.id === "admin:review_queue"); + const pending = visibleAdmin.find((item) => item.id === "admin:review_queue")?.badge; - // Fetch conflict and proposal counts + recent auto-resolutions + budget + agents activity on - // identity change and refresh every 60s. All five are fail-quiet — a missing + // Fetch the conflict and proposal counts + recent auto-resolutions + budget + agents activity + // on identity change and refresh every 60s. All four are fail-quiet — a missing // backend op just leaves its badge hidden. Only for a known admin of this // namespace: otherwise a viewer-only token draws AUTH_INSUFFICIENT 403s on every page // load, and a token-only principal through the fail-open gate. Each call also passes @@ -268,32 +253,21 @@ export function Sidebar() { let cancelled = false; const fetch_ = async () => { const tasks: Promise[] = []; - const next: AdminBadges = { conflicts: null, proposals: null, autoResolved: false, overCap: false, newAgents: 0 }; + const next: AdminBadges = { conflicts: null, autoResolved: false, overCap: false, newAgents: 0 }; if (canCall("conflicts.list", roleHere, whoami)) { tasks.push( - // The badge asks for the number, not 100 rows with their values (33 MB per tick - // on a large namespace). - countConflicts({ org: identity.org, namespace: identity.namespace }) - .then((n) => { - next.conflicts = n; + // The badge asks for the numbers, not 100 rows with their values (33 MB per tick + // on a large namespace). The same read counts the pending proposals. + countReview({ org: identity.org, namespace: identity.namespace }) + .then((r) => { + next.conflicts = r.total ?? 0; + next.proposals = r.proposals; }) .catch(() => { /* hide */ }), ); } - if (canCall("memory.proposals", roleHere, whoami)) { - tasks.push( - // One count over every pending proposal in scope, past the listing's scan cap. - countProposals({ org: identity.org, namespace: identity.namespace }) - .then((n) => { - next.proposals = n; - }) - .catch(() => { - /* unknown: the entry says so */ - }), - ); - } // The Review queue shows the Auto-resolved tab only to a role that reaches both. if (canCall("memory.auto_retirements", roleHere, whoami) && canCall("audit.list", roleHere, whoami)) { tasks.push( @@ -367,7 +341,7 @@ export function Sidebar() { clearInterval(id); document.removeEventListener("visibilitychange", onVisible); }; - }, [identity, pollsBadges, roleHere, whoami, badgeKey]); + }, [identity, pollsBadges, roleHere, whoami, badgeKey, decisions]); return (