Skip to content

Fix: unify search_semantic params - wire all fields through local agent tool (#1086) - #1104

Merged
malibio merged 2 commits into
mainfrom
feature/issue-1086-search-semantic-param-unification
Apr 17, 2026
Merged

malibio merged 2 commits into
mainfrom
feature/issue-1086-search-semantic-param-unification

Conversation

@malibio

@malibio malibio commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Wires all SearchSemanticParams fields through exec_search_semantic (no hardcoded None or constant overrides)
  • Expands def_search_semantic() tool schema with all LLM-controllable params (threshold, scope, include_archived, node_types, exclude_collections, property_filters, rerank, include_edges, graph_boost)
  • Excludes collection_id from tool schema (internal ID — LLM should use human-readable collection path)
  • Updates prompt assembler Tool Strategy Guide with new parameter guidance
  • Adds parity test asserting all SearchSemanticParams fields are represented in schema or documented as excluded
  • Fixes stale comment about property_filters

Supersedes PR #1099 (rebased to include #1085 graph enhancements).

🤖 Generated with Claude Code

malibio and others added 2 commits April 14, 2026 22:34
…ram alignment (closes #1086)

Most of #1086's acceptance criteria were already addressed by #1085 (search_semantic
graph-aware enhancements). This commit completes the remaining items:

- Fix stale code comment that said property_filters was "intentionally omitted from
  the tool schema" — it is now exposed; update comment to reflect current state
- Add include_edges, graph_boost, exclude_collections, and property_filters to the
  Tool Strategy Guide in prompt_assembler.rs
- Add include_edges, graph_boost, and property_filters guidance to the Research &
  Search skill in skill_pipeline.rs

All SearchSemanticParams fields are now:
1. Wired through exec_search_semantic (done in #1085)
2. Exposed in def_search_semantic() tool schema (done in #1085)
3. Documented in prompt guidance and skill definitions (this commit)
4. Covered by parity test (done in #1085)

Co-Authored-By: Claude <[email protected]>
- Remove collection_id from def_search_semantic() tool schema: internal ID
  form should not be exposed to the LLM; the human-readable collection path
  is the correct interface. Still wired through exec_search_semantic for
  MCP clients.
- Move collection_id back to excluded_fields in parity test with justification.
- Apply rustfmt formatting to touched files.

Co-Authored-By: Claude <[email protected]>
@malibio

malibio commented Apr 17, 2026

Copy link
Copy Markdown
Collaborator Author

placeholder

@malibio

malibio commented Apr 17, 2026

Copy link
Copy Markdown
Collaborator Author

Code Review — Initial Review

Review Type: Initial Review

Requirements Check (#1086)

  • ✅ collection_id correctly excluded from tool schema — internal ID form; LLM uses human-readable collection path. Exclusion documented with justification in parity test.
  • ✅ property_filters exposed in schema with updated comment explaining the design decision
  • ✅ Prompt assembler updated with include_edges, graph_boost, exclude_collections guidance
  • ✅ Research & Search skill updated with same guidance
  • ✅ Parity test excluded_fields updated to document collection_id exclusion with rationale

Code Review Findings

No issues found. All substantive changes are correct and well-documented. Remaining diff is rustfmt formatting.

Recommendation: APPROVE ✅

@malibio
malibio merged commit 1360b4f into main Apr 17, 2026
@malibio
malibio deleted the feature/issue-1086-search-semantic-param-unification branch April 17, 2026 13:13
malibio added a commit that referenced this pull request Apr 17, 2026
- Add additionalProperties hint to property_filters schema in def_search_semantic (guides LLM to generate string-valued objects)
- Add reverse parity check to search_semantic_schema_parity_with_params test (bidirectional guard against drift)
- Add doc comments to tmpl_* helper functions in agent_e2e.rs explaining they are adapters for NodeTemplate API change in #1096

Co-Authored-By: Claude <[email protected]>
malibio added a commit that referenced this pull request Apr 17, 2026
- Add additionalProperties hint to property_filters schema in def_search_semantic (guides LLM to generate string-valued objects)
- Add reverse parity check to search_semantic_schema_parity_with_params test (bidirectional guard against drift)
- Add doc comments to tmpl_* helper functions in agent_e2e.rs explaining they are adapters for NodeTemplate API change in #1096

Co-authored-by: Claude <[email protected]>
malibio added a commit that referenced this pull request Jun 22, 2026
…nt tool (#1086) (#1104)

* Unify search_semantic: update prompts, fix stale comment, complete param alignment (closes #1086)

Most of #1086's acceptance criteria were already addressed by #1085 (search_semantic
graph-aware enhancements). This commit completes the remaining items:

- Fix stale code comment that said property_filters was "intentionally omitted from
  the tool schema" — it is now exposed; update comment to reflect current state
- Add include_edges, graph_boost, exclude_collections, and property_filters to the
  Tool Strategy Guide in prompt_assembler.rs
- Add include_edges, graph_boost, and property_filters guidance to the Research &
  Search skill in skill_pipeline.rs

All SearchSemanticParams fields are now:
1. Wired through exec_search_semantic (done in #1085)
2. Exposed in def_search_semantic() tool schema (done in #1085)
3. Documented in prompt guidance and skill definitions (this commit)
4. Covered by parity test (done in #1085)

Co-Authored-By: Claude <[email protected]>

* Address review: remove collection_id from tool schema, fix parity test

- Remove collection_id from def_search_semantic() tool schema: internal ID
  form should not be exposed to the LLM; the human-readable collection path
  is the correct interface. Still wired through exec_search_semantic for
  MCP clients.
- Move collection_id back to excluded_fields in parity test with justification.
- Apply rustfmt formatting to touched files.

Co-Authored-By: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
malibio added a commit that referenced this pull request Jun 22, 2026
- Add additionalProperties hint to property_filters schema in def_search_semantic (guides LLM to generate string-valued objects)
- Add reverse parity check to search_semantic_schema_parity_with_params test (bidirectional guard against drift)
- Add doc comments to tmpl_* helper functions in agent_e2e.rs explaining they are adapters for NodeTemplate API change in #1096

Co-authored-by: Claude <[email protected]>
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