fleet-memory/skills/hindsight-docs/references/developer
Nicolò Boschi a9e6d9f731
test: add unit tests for pg_trgm auto-detection and ValidationResult.accept_with() enrichment (#650)
* test: add unit tests for pg_trgm auto-detection and ValidationResult.accept_with() enrichment

Two recent PRs landed without dedicated tests:
- #626/#649 (pg_trgm fallback in EntityResolver): add 5 mocked unit tests
  covering the trigram→full fallback, single-check guarantee, and sticky
  downgrade behaviour.
- #639 (accept_with() enrichment): add 7 pure unit tests for the factory
  method plus 5 integration tests verifying the engine applies enriched
  contents (retain) and tags/tag_groups (recall) returned by validators.
  Also verifies RecallContext carries tag filter state.

* fix: remove 504 from reflect OpenAPI spec to fix progenitor Rust client build

progenitor-impl-0.11.2 panics with `assertion failed: response_types.len() <= 1`
when an endpoint declares more than one response type. PR #643 added
`responses={504: ...}` to the reflect decorator, which injected a second
response type into the generated OpenAPI spec and broke the Rust client build.

Remove the `responses=` kwarg — the 504 is still raised at runtime via
JSONResponse(status_code=504), it just won't appear in the OpenAPI schema.
Regenerate openapi.json accordingly.

* chore: sync generated files and ruff formatting (lint + docs skill)
2026-03-23 10:33:09 +01:00
..
api doc: add langgraph and nemoclaw (#633) 2026-03-20 16:18:05 +01:00
admin-cli.md Fix run-db-migration for all-tenant upgrades (#530) 2026-03-10 10:10:03 +01:00
configuration.md test: add unit tests for pg_trgm auto-detection and ValidationResult.accept_with() enrichment (#650) 2026-03-23 10:33:09 +01:00
development.md feat: add docs skill (#335) 2026-02-10 14:41:51 +01:00
extensions.md feat: introduce hindsight-api-slim and hindsight-all-slim packages (#560) 2026-03-13 13:50:03 +01:00
index.md doc: add langgraph and nemoclaw (#633) 2026-03-20 16:18:05 +01:00
installation.md Release v0.4.18 2026-03-13 15:21:03 +01:00
mcp-server.md fix: doc build 2026-02-26 18:01:56 +01:00
models.md feat(skill): validate links, strip images, include openapi.json and changelog (#614) 2026-03-19 12:32:33 +01:00
monitoring.md Release v0.4.11 2026-02-13 10:52:14 +01:00
multilingual.md feat: add docs skill (#335) 2026-02-10 14:41:51 +01:00
observations.md feat(skill): validate links, strip images, include openapi.json and changelog (#614) 2026-03-19 12:32:33 +01:00
performance.md Release v0.4.13 2026-02-19 18:46:07 +01:00
rag-vs-hindsight.md feat: add docs skill (#335) 2026-02-10 14:41:51 +01:00
reflect.md feat(skill): validate links, strip images, include openapi.json and changelog (#614) 2026-03-19 12:32:33 +01:00
retain.md feat(skill): validate links, strip images, include openapi.json and changelog (#614) 2026-03-19 12:32:33 +01:00
retrieval.md feat: add docs skill (#335) 2026-02-10 14:41:51 +01:00
services.md feat: add docs skill (#335) 2026-02-10 14:41:51 +01:00
storage.md feat: add docs skill (#335) 2026-02-10 14:41:51 +01:00