mirror of
https://github.com/Hmbown/DeepSeek-TUI.git
synced 2026-09-03 06:50:13 +08:00
The pinned session prefix (c15558458) added the <context_update> sentence to
BASE_PROMPT, so the representative base stage grew 5848 -> 6084 bytes and
every stage digest changed; the host-side Workflow/Goal verbs and the honest
child posture grew the tool catalog (active 16531 -> 16602 bytes, full
71473 -> 72371). Both are deliberate v0.9.8 lane changes, so re-measure the
budget from the release train (scripts/measure-runtime-contract.py) and
record the raise in the _comment, as the previous two v0.9.8 raises did.
Identity name sets are unchanged.
309 lines
9.0 KiB
JSON
309 lines
9.0 KiB
JSON
{
|
|
"_comment": "One-way numeric ceilings and exact structural identities for the provider-free runtime contract. Decreases pass; increases or identity changes fail. Lock in decreases with: python3 scripts/check-runtime-contract-budget.py --update The v0.9.8 child-receipt restore grew every production tool surface by 1496 schema bytes / 374 estimated tokens (agent tool). The v0.9.8 workshop read/tool-result byte fields then grew every production tool surface by 371 schema bytes / 93 estimated tokens. Both raises are explicit maintainer decisions; identities stay on the pre-raise digests only if the name set is unchanged \u2014 re-measure on Linux CI if Lint reports identity drift. The v0.9.8 pinned session prefix added the <context_update> sentence to the base prompt (5848 -> 6084 bytes, every representative stage re-hashed), and the host-side Workflow/Goal verbs plus honest child posture grew the tool catalog (active 16531 -> 16602 bytes, full 71473 -> 72371); both are explicit v0.9.8 maintainer decisions measured from the release train.",
|
|
"document_kind": "codewhale.runtime_contract_budget",
|
|
"representative_context": {
|
|
"fixture_id": "representative-v1",
|
|
"stages": {
|
|
"base": {
|
|
"bytes": 6084,
|
|
"identity_sha256": "e1bbb7a700c2ed6eea8d2aad15e60c86d0ac386f0583afc659cfc2527db8ce58"
|
|
},
|
|
"goal": {
|
|
"bytes": 8205,
|
|
"delta_bytes": 81,
|
|
"identity_sha256": "68629ca6acf75c3396461dd61fd3aa1199f598960e8112bd18b0156425349c4f"
|
|
},
|
|
"handoff": {
|
|
"bytes": 8593,
|
|
"delta_bytes": 388,
|
|
"identity_sha256": "4d11618f03f84a572dda8e0c69d3a31af1d7ff0362c9bae4075bf453db859d05"
|
|
},
|
|
"instructions": {
|
|
"bytes": 6494,
|
|
"delta_bytes": 131,
|
|
"identity_sha256": "c95787a13b38144fb13c9c94c1eb2cf8a3804fbee532f2db42ec5cac705f1b9f"
|
|
},
|
|
"memory": {
|
|
"bytes": 8124,
|
|
"delta_bytes": 963,
|
|
"identity_sha256": "5b59a51104e9a98d81a1baa54393b63efee0c8cf42cf273830d42388b0ca87b8"
|
|
},
|
|
"project": {
|
|
"bytes": 6363,
|
|
"delta_bytes": 279,
|
|
"identity_sha256": "60f8bb0c4387f88917a915fb617a178ccc2d611f4963003a91742a1319d2db74"
|
|
},
|
|
"skill": {
|
|
"bytes": 7161,
|
|
"delta_bytes": 667,
|
|
"identity_sha256": "65cad0ba231a1c6bb1d74d0dea6c7cb33154c7efc4506ab7998d542dff8dd1aa"
|
|
}
|
|
},
|
|
"system_prompt_blocks": 6,
|
|
"total_bytes": 8593,
|
|
"total_tokens_est": 2149
|
|
},
|
|
"schema_version": 1,
|
|
"skill_discovery": {
|
|
"first_delta": {
|
|
"directories_visited": 1,
|
|
"root_discovery_calls": 1,
|
|
"skill_md_read_attempts": 1
|
|
},
|
|
"second_delta": {
|
|
"directories_visited": 0,
|
|
"root_discovery_calls": 0,
|
|
"skill_md_read_attempts": 0
|
|
}
|
|
},
|
|
"system_prompt": {
|
|
"modes": {
|
|
"act": {
|
|
"mode_instructions_bytes": 0,
|
|
"mode_instructions_tokens_est": 0,
|
|
"system_prompt_blocks": 4,
|
|
"system_prompt_bytes": 6084,
|
|
"system_prompt_tokens_est": 1521
|
|
},
|
|
"operate": {
|
|
"mode_instructions_bytes": 0,
|
|
"mode_instructions_tokens_est": 0,
|
|
"system_prompt_blocks": 4,
|
|
"system_prompt_bytes": 6084,
|
|
"system_prompt_tokens_est": 1521
|
|
},
|
|
"plan": {
|
|
"mode_instructions_bytes": 0,
|
|
"mode_instructions_tokens_est": 0,
|
|
"system_prompt_blocks": 4,
|
|
"system_prompt_bytes": 6084,
|
|
"system_prompt_tokens_est": 1521
|
|
}
|
|
}
|
|
},
|
|
"tool_catalog": {
|
|
"modes": {
|
|
"act": {
|
|
"active": {
|
|
"bytes": 16602,
|
|
"identity_sha256": "8411bddfc0d7fce72ec53dfeef341f28e6a3cfe37b98a721dc05b17d53b0a13e",
|
|
"tokens_est": 4151,
|
|
"tool_names": [
|
|
"agent",
|
|
"bash",
|
|
"edit",
|
|
"read",
|
|
"todo_write",
|
|
"tool_search",
|
|
"write"
|
|
],
|
|
"tools": 7
|
|
},
|
|
"full": {
|
|
"bytes": 72371,
|
|
"identity_sha256": "8f3b51d6221804baac42de911d89f772b89c38a1320da7ebb6d3bdc96c4efb79",
|
|
"tokens_est": 18093,
|
|
"tool_names": [
|
|
"Git",
|
|
"Run",
|
|
"Web",
|
|
"agent",
|
|
"agents/coordinate",
|
|
"agents/followup",
|
|
"agents/interrupt",
|
|
"agents/list",
|
|
"agents/message",
|
|
"agents/wait",
|
|
"apply_patch",
|
|
"automation",
|
|
"bash",
|
|
"create_goal",
|
|
"diagnostics",
|
|
"edit",
|
|
"file_search",
|
|
"fim_edit",
|
|
"finance",
|
|
"get_goal",
|
|
"github",
|
|
"grep_files",
|
|
"handle_read",
|
|
"harness",
|
|
"list_dir",
|
|
"load_skill",
|
|
"lsp",
|
|
"note",
|
|
"notify",
|
|
"project_map",
|
|
"read",
|
|
"request_user_input",
|
|
"retrieve_tool_result",
|
|
"revert_turn",
|
|
"review",
|
|
"send_later",
|
|
"speech",
|
|
"task_shell_start",
|
|
"task_shell_wait",
|
|
"tasks",
|
|
"terminal/cancel",
|
|
"terminal/reset",
|
|
"terminal/run",
|
|
"terminal/send",
|
|
"terminal/wait",
|
|
"todo_write",
|
|
"tool_search",
|
|
"tts",
|
|
"tui_help",
|
|
"update_goal",
|
|
"validate_data",
|
|
"verify",
|
|
"web.run",
|
|
"workflow",
|
|
"write"
|
|
],
|
|
"tools": 55
|
|
}
|
|
},
|
|
"operate": {
|
|
"active": {
|
|
"bytes": 16602,
|
|
"identity_sha256": "8411bddfc0d7fce72ec53dfeef341f28e6a3cfe37b98a721dc05b17d53b0a13e",
|
|
"tokens_est": 4151,
|
|
"tool_names": [
|
|
"agent",
|
|
"bash",
|
|
"edit",
|
|
"read",
|
|
"todo_write",
|
|
"tool_search",
|
|
"write"
|
|
],
|
|
"tools": 7
|
|
},
|
|
"full": {
|
|
"bytes": 72371,
|
|
"identity_sha256": "8f3b51d6221804baac42de911d89f772b89c38a1320da7ebb6d3bdc96c4efb79",
|
|
"tokens_est": 18093,
|
|
"tool_names": [
|
|
"Git",
|
|
"Run",
|
|
"Web",
|
|
"agent",
|
|
"agents/coordinate",
|
|
"agents/followup",
|
|
"agents/interrupt",
|
|
"agents/list",
|
|
"agents/message",
|
|
"agents/wait",
|
|
"apply_patch",
|
|
"automation",
|
|
"bash",
|
|
"create_goal",
|
|
"diagnostics",
|
|
"edit",
|
|
"file_search",
|
|
"fim_edit",
|
|
"finance",
|
|
"get_goal",
|
|
"github",
|
|
"grep_files",
|
|
"handle_read",
|
|
"harness",
|
|
"list_dir",
|
|
"load_skill",
|
|
"lsp",
|
|
"note",
|
|
"notify",
|
|
"project_map",
|
|
"read",
|
|
"request_user_input",
|
|
"retrieve_tool_result",
|
|
"revert_turn",
|
|
"review",
|
|
"send_later",
|
|
"speech",
|
|
"task_shell_start",
|
|
"task_shell_wait",
|
|
"tasks",
|
|
"terminal/cancel",
|
|
"terminal/reset",
|
|
"terminal/run",
|
|
"terminal/send",
|
|
"terminal/wait",
|
|
"todo_write",
|
|
"tool_search",
|
|
"tts",
|
|
"tui_help",
|
|
"update_goal",
|
|
"validate_data",
|
|
"verify",
|
|
"web.run",
|
|
"workflow",
|
|
"write"
|
|
],
|
|
"tools": 55
|
|
}
|
|
},
|
|
"plan": {
|
|
"active": {
|
|
"bytes": 16602,
|
|
"identity_sha256": "8411bddfc0d7fce72ec53dfeef341f28e6a3cfe37b98a721dc05b17d53b0a13e",
|
|
"tokens_est": 4151,
|
|
"tool_names": [
|
|
"agent",
|
|
"bash",
|
|
"edit",
|
|
"read",
|
|
"todo_write",
|
|
"tool_search",
|
|
"write"
|
|
],
|
|
"tools": 7
|
|
},
|
|
"full": {
|
|
"bytes": 45365,
|
|
"identity_sha256": "2cf3e5b6810e7840ee2d2df2b6dd81a24058e3e916acdb1199aff3abae916a41",
|
|
"tokens_est": 11342,
|
|
"tool_names": [
|
|
"Git",
|
|
"Web",
|
|
"agent",
|
|
"agents/coordinate",
|
|
"agents/followup",
|
|
"agents/interrupt",
|
|
"agents/list",
|
|
"agents/message",
|
|
"agents/wait",
|
|
"automation",
|
|
"bash",
|
|
"create_goal",
|
|
"diagnostics",
|
|
"edit",
|
|
"file_search",
|
|
"get_goal",
|
|
"github",
|
|
"grep_files",
|
|
"handle_read",
|
|
"list_dir",
|
|
"load_skill",
|
|
"notify",
|
|
"read",
|
|
"request_user_input",
|
|
"review",
|
|
"send_later",
|
|
"tasks",
|
|
"todo_write",
|
|
"tool_search",
|
|
"update_goal",
|
|
"validate_data",
|
|
"web.run",
|
|
"workflow",
|
|
"write"
|
|
],
|
|
"tools": 34
|
|
}
|
|
}
|
|
},
|
|
"surface_profile": "production-default-builtins-no-mcp-no-host-interpreters-v1"
|
|
}
|
|
}
|