Repository navigation
Fix: skill node properties bypass namespace normalization, preventing max_iterations updates via MCP - #1095
Merged
malibio merged 3 commits intoApr 11, 2026
Conversation
…at values (#1080) - Flip get_prop() lookup order: check namespaced key first, flat fallback second so MCP updates (which normalize to namespace) aren't shadowed by pre-normalization flat values stored in older databases - Update SkillNodeBehavior::validate() to use get_namespaced_prop() so validation runs against the actual stored value (namespaced after create_node normalization) - Add get_namespaced_prop() helper in behaviors/mod.rs with namespace-first order - Fix 3 stale agent tool tests left broken by #1091: tool count 12→13, create_node required field title→content, create_node_missing_required test Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Adds get_prop_namespace_overrides_stale_flat test that directly documents
the failure mode: flat {"max_iterations": 2} coexisting with namespaced
{"skill": {"max_iterations": 4}} after an MCP update, ensuring namespace wins.
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Collaborator
Author
Review addressed✅ Addressed: Added regression test ⏭️ Skipped (with reasoning):
|
malibio
added a commit
that referenced
this pull request
Jun 22, 2026
… max_iterations updates via MCP (#1095) * Fix: namespace-first property lookup so MCP updates override stale flat values (#1080) - Flip get_prop() lookup order: check namespaced key first, flat fallback second so MCP updates (which normalize to namespace) aren't shadowed by pre-normalization flat values stored in older databases - Update SkillNodeBehavior::validate() to use get_namespaced_prop() so validation runs against the actual stored value (namespaced after create_node normalization) - Add get_namespaced_prop() helper in behaviors/mod.rs with namespace-first order - Fix 3 stale agent tool tests left broken by #1091: tool count 12→13, create_node required field title→content, create_node_missing_required test Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * Fix linting and formatting * Address review: add regression test for #1080 bug scenario Adds get_prop_namespace_overrides_stale_flat test that directly documents the failure mode: flat {"max_iterations": 2} coexisting with namespaced {"skill": {"max_iterations": 4}} after an MCP update, ensuring namespace wins. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Michael Libio <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]>
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.
Closes #1080