Skip to content

Compact Program edit MCP context#862

Merged
edwin-zvs merged 1 commit into
mainfrom
compact-program-edit-context
Jul 15, 2026
Merged

Compact Program edit MCP context#862
edwin-zvs merged 1 commit into
mainfrom
compact-program-edit-context

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Summary

  • replace padded Program block ids with compact program-scoped refs (b0:0) and migrate persisted padded ids on access
  • replace the MCP edit shimmer array with compact pending, settled, and settle_others inputs; allow status-only calls with no fake text edit
  • return a compact MCP acknowledgement containing only new/changed block refs and a small run rollup instead of echoing the full document, full block projection, and active-run internals
  • shorten the tool description and update autonomous Run instructions and normative specs

This intentionally breaks the previous construct_program_edit MCP argument/result shape. Rich daemon IPC results remain unchanged for TUI/web clients.

Verification

  • cargo test -p construct-daemon program_ --lib (100 passed)
  • cargo test -p construct-mcp --lib (13 passed)
  • focused autonomous Run prompt/context tests
  • cargo build
  • git diff --check

No recording: this is an MCP/protocol context optimization with no user-visible TUI rendering change.

@edwin-zvs edwin-zvs merged commit dfecf5e into main Jul 15, 2026
1 check passed
@edwin-zvs edwin-zvs deleted the compact-program-edit-context branch July 15, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant