Skip to content

feat: add compression context recovery hints#72

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
codex/stack-05-compression-context-hints
Jun 21, 2026
Merged

feat: add compression context recovery hints#72
ScriptedAlchemy merged 1 commit into
masterfrom
codex/stack-05-compression-context-hints

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • add a structured LCM context_recovery_hint when compression creates summary nodes
  • surface that hint through the MCP compression response and preserve it through the Hermes bridge
  • inject the model-visible recovery hint from Codex/Cursor sessionStart hooks when a session starts from compacted context
  • document the behavior in the Codex and Cursor plugin READMEs

Validation

  • CARGO_TARGET_DIR=/tmp/tracedecay-cargo-target-pr72 cargo fmt --all -- --check && git diff --check
  • CARGO_TARGET_DIR=/tmp/tracedecay-cargo-target-pr72 cargo test compact_session_start
  • CARGO_TARGET_DIR=/tmp/tracedecay-cargo-target-pr72 cargo test --test hooks_test
  • CARGO_TARGET_DIR=/tmp/tracedecay-cargo-target-pr72 cargo test --test session_lcm_compression_test compress_in_transaction_baseline_decision_fixture_preserves_contract
  • CARGO_TARGET_DIR=/tmp/tracedecay-cargo-target-pr72 cargo test --test mcp_handler_test lcm_compress_handler_honors_incremental_max_depth_override
  • CARGO_TARGET_DIR=/tmp/tracedecay-cargo-target-pr72 cargo test --test hermes_lcm_bridge_test
  • CARGO_TARGET_DIR=/tmp/tracedecay-cargo-target-pr72 cargo test --test agent_test test_codex_global_install_bundles_hooks_in_plugin

@changeset-bot

changeset-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 64d7c6b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/stack-05-compression-context-hints branch 3 times, most recently from 0cd46ef to 8d3dadd Compare June 21, 2026 06:09
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/stack-04-ci-docs-rebrand-cleanup branch from 209dbe5 to 030d649 Compare June 21, 2026 06:34
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/stack-05-compression-context-hints branch from 8d3dadd to 64f5f9c Compare June 21, 2026 06:34
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/stack-05-compression-context-hints branch from 64f5f9c to 64d7c6b Compare June 21, 2026 06:51
@ScriptedAlchemy ScriptedAlchemy changed the base branch from codex/stack-04-ci-docs-rebrand-cleanup to master June 21, 2026 07:10
@ScriptedAlchemy ScriptedAlchemy merged commit 5c8fc8a into master Jun 21, 2026
7 checks passed
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