Skip to content

fix: remove agentic internal fields from empty query contract test - #59

Merged
EricNGOntos merged 1 commit into
stagingfrom
fix/wuchengke/retrieval-contract-test
May 13, 2026
Merged

EricNGOntos merged 1 commit into
stagingfrom
fix/wuchengke/retrieval-contract-test

Conversation

@EricNGOntos

Copy link
Copy Markdown
Contributor

This PR fixes a failing contract test (test_should_return_empty_results_for_an_empty_query) by removing internal agentic retrieval fields (plan, steps, wallet_snapshot, etc.) from the expected response JSON. These fields were intentionally removed from the API response to clean up the API schema and hide internal implementation details from clients. The test now correctly asserts against the updated API schema.

@EricNGOntos EricNGOntos added the bug Something isn't working label May 13, 2026
@EricNGOntos EricNGOntos self-assigned this May 13, 2026
@EricNGOntos
EricNGOntos merged commit 2ee8532 into staging May 13, 2026
9 checks passed
EricNGOntos added a commit that referenced this pull request May 13, 2026
* feat: implement decomposed retrieval workflow system with query planning, synthesis, and execution budget management.

* fix(agentic): resolve asset reconciliation and navigation orchestrator bugs

* test: update retrieval contract test to assert new agentic response fields

* feat: enable agentic retrieval by default and sync env configs (#54)

* chore: remove stale SDK scaffolds from monorepo (#56)

The real SDKs live in standalone repos:
- Python: Ontos-AI/knowhere-python-sdk
- Node: Ontos-AI/knowhere-node-sdk

Deleted:
- packages/sdk-python/ (only contained build artifacts)
- packages/sdk-typescript/ (only contained dist/node_modules)
- packages/openapi-specs/ (empty, only node_modules)

Updated AGENTS.md project structure accordingly.

* feat: add per-request use_agentic toggle and slim retrieval API contract (#57)

- Add use_agentic (bool|null) request parameter: true=force agentic,
  false=force legacy, null=server default (RETRIEVAL_AGENTIC_ENABLED).
- Remove deprecated enable_decomposition parameter (was ignored).
- Strip debug-only response fields (plan, steps, wallet_snapshot,
  planner_snapshot, final_strategy_used, evidence_text).
- Keep core response: namespace, query, router_used, answer_text,
  referenced_chunks, results.

* docs: concisely update AGENTS.md for WorkflowOrchestrator and use_agentic (#58)

* fix: remove agentic internal fields from empty query contract test (#59)
@EricNGOntos
EricNGOntos deleted the fix/wuchengke/retrieval-contract-test branch August 13, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant