Skip to content

fix(ci): align config field count and CLI consolidation call with #1746#1757

Merged
nicoloboschi merged 1 commit into
mainfrom
fix/ci-from-1746
May 26, 2026
Merged

fix(ci): align config field count and CLI consolidation call with #1746#1757
nicoloboschi merged 1 commit into
mainfrom
fix/ci-from-1746

Conversation

@nicoloboschi
Copy link
Copy Markdown
Collaborator

Summary

  • PR feat(api): add targeted consolidation by observation scopes #1746 (feat(api): add targeted consolidation by observation scopes) added enable_auto_consolidation to _CONFIGURABLE_FIELDS but didn't update test_hierarchical_fields_categorization (still asserted 35 — now passes with 36 + an explicit assertion for the new field).
  • Same PR also added a ConsolidationRequest body to POST /v1/default/banks/{bank_id}/consolidate but didn't update the CLI wrapper at hindsight-cli/src/api.rs:956, which still called the generated client with two args. The third positional arg is now &ConsolidationRequest::default(), which has observation_scopes: None and keeps the no-scope CLI invocation processing all unconsolidated memories (the documented behavior when the body is omitted).
  • These breakages are visible on any post-feat(api): add targeted consolidation by observation scopes #1746 PR — e.g. https://github.com/vectorize-io/hindsight/actions/runs/26446337993 fails test-api, test-rust-cli, test-embed-windows, and test-doc-examples (cli) for exactly these two reasons.

Test plan

  • uv run pytest tests/test_hierarchical_config.py::test_hierarchical_fields_categorization — passes locally
  • cargo build in hindsight-cli/ — clean
  • ./scripts/hooks/lint.sh — clean
  • CI on this PR turns green for test-api, test-rust-cli, test-embed-windows, test-doc-examples (cli) (waiting for the active GitHub Actions incident at https://stspg.io/6gzfzr1dx684 to clear)

PR #1746 added enable_auto_consolidation to _CONFIGURABLE_FIELDS and
introduced a ConsolidationRequest body on the /consolidate endpoint, but
didn't update test_hierarchical_fields_categorization (still expects 35
fields) or the CLI's trigger_consolidation wrapper (still calls the
generated client with 2 args), so CI on this branch breaks on test-api,
test-rust-cli, test-embed-windows, and test-doc-examples (cli).

Bump the expected count to 36, add enable_auto_consolidation to the
explicit assertions, and pass a default ConsolidationRequest to the
generated client so the no-scope CLI invocation keeps consolidating all
unconsolidated memories.
@nicoloboschi nicoloboschi merged commit 28ec22c into main May 26, 2026
71 checks passed
@nicoloboschi nicoloboschi deleted the fix/ci-from-1746 branch May 26, 2026 13:12
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