Skip to content

Unify search_semantic params: complete prompt/skill guidance (closes #1086) - #1102

Merged
malibio merged 1 commit into
mainfrom
feature/issue-1086-search-semantic-param-unification
Apr 14, 2026
Merged

malibio merged 1 commit into
mainfrom
feature/issue-1086-search-semantic-param-unification

Conversation

@malibio

@malibio malibio commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix stale code comment claiming property_filters was "intentionally omitted from tool schema" — it is now exposed
  • Add include_edges, graph_boost, exclude_collections, and property_filters to the Tool Strategy Guide prompt
  • Add include_edges, graph_boost, and property_filters guidance to the Research & Search skill definition

Most of #1086's acceptance criteria were already addressed by #1085 (PR #1101). This PR completes the remaining prompt/skill documentation items.

Acceptance Criteria Status (from #1086)

Test plan

  • cargo build -p nodespace-agent clean
  • cargo clippy clean with -D warnings -D clippy::unused-async
  • 290 agent lib tests pass
  • Pre-commit quality hook passes

Closes #1086

Co-Authored-By: Claude [email protected]

…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]>
@malibio

malibio commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator Author

Pragmatic Code Review: PR #1102

Review Type: Initial Review
Reviewer: Principal Engineer AI Reviewer
Commit: 6fff0b9


Requirements Check (Issue #1086)

Most acceptance criteria were already met by PR #1101 (#1085). This PR addresses the remaining items:

All 7/7 acceptance criteria met.


Code Review Findings

🟢 Suggestion: Prompt line length

📁 `packages/agent/src/prompt_assembler.rs:325`

The search_semantic parameters line is getting quite long after adding the three new params. The 8B model processes this as a single bullet point, so it's functional, but readability for human maintainers could benefit from splitting into two lines (core params + advanced params). Not blocking — the current form works and matches the existing pattern.

🟢 Note: Rustfmt reformatting included

📁 `packages/agent/src/prompt_assembler.rs:425-470`, `packages/agent/src/skill_pipeline.rs:555-575`

The PR includes rustfmt reformatting of existing test code (line wrapping of assert macros, removal of trailing blank lines). This is correct behavior — the pre-commit hook ran `cargo fmt` and these are legitimate formatting fixes. No concerns.


Summary

Category Status
Requirements 7/7 acceptance criteria met
Code Quality Clean — follows project patterns
Security No issues (prompt/documentation changes only)
Performance N/A (no runtime changes)
Testing 290 tests pass, no new tests needed for documentation changes
Architecture Correctly layered — prompts updated to match schema changes from #1085

Recommendation: APPROVE

This is a clean, focused PR that completes the documentation side of the search_semantic unification. All acceptance criteria are met. The changes are low-risk (prompt text and code comments only) with no logic changes.

@malibio malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation: APPROVE. Clean documentation-only PR completing #1086 acceptance criteria. No findings requiring changes.

@malibio
malibio merged commit 055cb9c into main Apr 14, 2026
@malibio
malibio deleted the feature/issue-1086-search-semantic-param-unification branch April 14, 2026 20:35
malibio added a commit that referenced this pull request Jun 22, 2026
…ram alignment (closes #1086) (#1102)

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]>
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.

Unify search_semantic: wire all params through local agent, align tool schema, update prompts

1 participant