From cfdccfef25221b625f78304af4a9270b818f9066 Mon Sep 17 00:00:00 2001 From: huangruiteng Date: Thu, 10 Sep 2026 22:53:47 +0800 Subject: [PATCH] test(control-plane): refresh hot-path envelope budgets Signed-off-by: huangruiteng --- docs/reference/contracts/interface-budget-contract.md | 4 ++-- examples/control_plane/hot-path-interface-budget-smoke.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/contracts/interface-budget-contract.md b/docs/reference/contracts/interface-budget-contract.md index b4e2b7575b..790e1ea979 100644 --- a/docs/reference/contracts/interface-budget-contract.md +++ b/docs/reference/contracts/interface-budget-contract.md @@ -8,10 +8,10 @@ and size/count budgets. | Surface | Owner | Consumer Action | Cold Path | Size Budget | Nested Budget | Count Budget | | --- | --- | --- | --- | --- | --- | --- | -| `heartbeat_prompt_json` | heartbeat automation | wake and route one bounded turn | `quota should-run`, `status`, or `review-packet --handoff-only` | `json_chars <= 3500` plus `interface_budget.within_budget=true` | `nested_keys <= 40` | `top_level_keys <= 30` | +| `heartbeat_prompt_json` | heartbeat automation | wake and route one bounded turn | `quota should-run`, `status`, or `review-packet --handoff-only` | `json_chars <= 3600` plus `interface_budget.within_budget=true` | `nested_keys <= 40` | `top_level_keys <= 30` | | `review_packet_handoff_only_json` | project-agent handoff | forward the smallest sufficient task packet | full `review-packet` or run-history artifact | `json_chars <= 3000` plus `handoff_interface_budget.within_budget=true` | `nested_keys <= 40` | `top_level_keys <= 18` | | `quota_should_run_json` | quota guard | decide whether the selected goal may spend compute | `status`, `history`, or active state | `json_chars <= 13000` | `nested_keys <= 330` | `top_level_keys <= 52` | -| `dashboard_status_json` | operator dashboard | render first-screen operator state | `history`, run artifacts, or project-local adapter output | `json_chars <= 18215` | `nested_keys <= 260` | `top_level_keys <= 25` | +| `dashboard_status_json` | operator dashboard | render first-screen operator state | `history`, run artifacts, or project-local adapter output | `json_chars <= 18500` | `nested_keys <= 260` | `top_level_keys <= 25` | These four budgets measure compact in-memory machine payloads. They do not measure the exact text written to stdout: JSON indentation, compatibility diff --git a/examples/control_plane/hot-path-interface-budget-smoke.py b/examples/control_plane/hot-path-interface-budget-smoke.py index 2c9b289016..0151fa42b7 100644 --- a/examples/control_plane/hot-path-interface-budget-smoke.py +++ b/examples/control_plane/hot-path-interface-budget-smoke.py @@ -45,7 +45,7 @@ "owner": "heartbeat automation", "consumer": "wake and route one bounded turn", "cold_path": "quota should-run, status, or review-packet --handoff-only", - "max_json_chars": 3_500, + "max_json_chars": 3_600, "max_nested_keys": 40, "max_top_level_keys": 30, "budget_field": "interface_budget", @@ -71,7 +71,7 @@ "owner": "operator dashboard", "consumer": "render first-screen operator state", "cold_path": "history, run artifacts, or project-local adapter output", - "max_json_chars": 18_215, + "max_json_chars": 18_500, "max_nested_keys": 260, "max_top_level_keys": 25, },