Skip to content

fix(control-plane): report mental model staleness accurately - #3141

Open
oldnicke wants to merge 2 commits into
vectorize-io:mainfrom
oldnicke:fix/3139-mental-model-staleness
Open

fix(control-plane): report mental model staleness accurately#3141
oldnicke wants to merge 2 commits into
vectorize-io:mainfrom
oldnicke:fix/3139-mental-model-staleness

Conversation

@oldnicke

@oldnicke oldnicke commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an opt-in include_stale query parameter that computes scope-aware staleness for listed mental models
  • use exact per-model staleness in the control-plane summary instead of comparing against the global consolidation timestamp
  • request metadata-only results for the stats view and keep unknown staleness from being reported as stale
  • regenerate OpenAPI and generated clients, and expose the option through maintained Python and TypeScript wrappers

Testing

  • ./scripts/hooks/lint.sh
  • uv run ty check hindsight_api/
  • uv run pytest tests/test_reflections.py::TestMentalModelsAPI::test_mental_models_api_crud -v
  • Python mental-model query mapping tests
  • TypeScript mental-model query mapping tests
  • go build ./...

Fixes #3139

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.

Control plane: Mental Models summary card always reports 0 up-to-date / all stale (list endpoint omits is_stale)

1 participant