Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/reference/contracts/interface-budget-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions examples/control_plane/hot-path-interface-budget-smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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,
},
Expand Down