CC-1/M0: optional recipient meta on StateNode - #1
Merged
Merged
Conversation
Add optional recipient_id, recipient_version, and route_decision_id to PersistentAgentHandle.step so they land in StateNode.meta and round-trip through StateStore lineage reload. Absent fields keep 0.2.0 meta behavior. Update state-node.v1 schema and add store/handle tests.
Owner
Author
M1 / CC-2..CC-5 landed on this branchHop safety prerequisites for model switching (Track B milestone M1). Continues M0/CC-1 on Changes
Proof
Commits
Still out of scope on this PRCC-6..CC-10, HOOK_CONTRACT advisory (CC-9), bundle export (CC-8). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements CC-1 / M0 for comPASS Track B on engine 0.2.0.
recipient_id,recipient_version,route_decision_idtoPersistentAgentHandle.stepso they persist onStateNode.metaStateStoresave/load/lineage (already JSON-backedmeta_json; documentedRECIPIENT_META_KEYS)engine/schema/state-node.v1.jsonmeta propertiesOut of scope: CC-2..CC-10 (not included).
Acceptance criteria
StateStore; assert equalitytool_status+tokenizer_idonly fromstep)/Users/rosariopaths inengine/sourcetests/test_store.py+tests/test_handle.py— 5 passedFiles changed
engine/src/chat_compressor/handle.pyengine/src/chat_compressor/store.pyengine/schema/state-node.v1.jsonengine/tests/test_handle.pyengine/tests/test_store.pyTest plan
cd engine && python -m pytest tests/test_store.py tests/test_handle.py -v(5 passed)rg -n '/Users/rosario' engine/→ no hitsContract: comPASS
docs/schema/statenode-meta.v1.md