Repository navigation
Conversation
…servability improvements - Introduced `JVSPATIAL_POSTGRES_INDEX_CREATION` to control index creation modes, allowing for deferred performance index DDL while preserving unique constraints. - Added `IndexSpec` and `ManagedSchemaError` as public exports for managed PostgreSQL hosts. - Enhanced observability by emitting content-free spans for authentication and database operations, ensuring sensitive information is not logged. - Updated documentation to reflect new features and guidelines for managing PostgreSQL indexes and schema provisioning.
Benchmark comparisonThreshold: ±25% (informational, does not block merge)
|
…fications - Removed redundant import in `auth_middleware.py` for cleaner code. - Added detailed docstrings to `identifier` and `IndexSpec` methods in `indexes.py` for improved documentation and clarity. - Simplified return statement in `PostgresDB` index creation method for better readability. - Added a blank line in the test file for consistency and style adherence.
Benchmark comparisonThreshold: ±25% (informational, does not block merge)
|
eldonm
left a comment
There was a problem hiding this comment.
CI is green, and I also ran the new live-Postgres tests against a real database (CI's test workflow has no Postgres service, so they're skipped there). Those passed, as did the observability and API suites. Two items conflict with the repo's AGENTS.md boundaries, though, so requesting changes before merge.
Blocking
- Downstream consumer name in library code.
PostgresDB.verify_index_spechardcodes the catalog tableintegral_index_catalog.AGENTS.mdforbids naming specific downstream consumers in the library. Please make the catalog relation configurable (constructor arg / env var with a neutral default such asjvspatial_index_catalog) and document its required columns (fingerprint,index_name,definition_hash) indocs/md/postgres-guide.mdand SPEC. Without that, no other host can actually use managed mode. AGENTS.mdlink outside the repo. The new "Optional local workspace reference" section points to../docs/JVSPATIAL_FOUNDATION.md, which describes one developer's downstream integrations and doesn't exist for other clones. Please drop it (keep it in a local, untracked note instead).
Should fix
index_creationdocstring inPostgresDB.__init__lists onlyauto/constraints;managedis accepted but undocumented there.- CHANGELOG: the "Governed storage capability (unreleased)" entry is appended under
[0.0.5] - Previous; move it into## [Unreleased]. - SPEC: "Managed PostgreSQL index boundary" is appended after the change-process section at the end of the file; move it next to the new index-policy text in the database section.
verify_index_specinterpolatesself.schema_nameinto SQL directly; other paths go through_safe_collection. Validate it the same way.tests/observability/test_database_spans.py::test_unconfigured_tracing_keeps_metrics_without_proxy_spansimportsopentelemetrywithoutpytest.importorskip, so it fails in environments without the optional OTel extra (its sibling tests guard correctly).auth.authenticatespan setserror.typeon exception but never sets ERROR status, unlike the db/walker/http helpers.constraintsmode still creates the binary-text keyset indexes (_binary_text_keyset.create_indexesonly skipsmanaged), which contradicts the "skips performance indexes" description. Either skip there too or document that explicit helper calls are exempt.
The rest looks good: content-free spans, query-logger removal on cancellation (with a test), unique enforcement preserved in constraints mode, and the env allowlist entry.
- Introduced `index_catalog_table` for configurable index catalog management in PostgreSQL, allowing hosts to specify their own catalog tables. - Added support for `managed` index creation mode, which verifies pre-provisioned storage without persistent schema/index DDL. - Improved observability by ensuring authentication failures set ERROR status without exposing sensitive details. - Updated documentation to reflect new index management capabilities and guidelines for PostgreSQL integration. - Enhanced tests to validate new features and ensure compliance with expected behaviors.
Benchmark comparisonThreshold: ±25% (informational, does not block merge)
|
eldonm
left a comment
There was a problem hiding this comment.
All requested changes addressed: configurable neutral catalog table with documented schema, AGENTS.md external link removed, docs/CHANGELOG/SPEC placement fixed, schema validation, OTel test guard, auth span ERROR status, and constraints-mode keyset skip. Verified locally against live PostgreSQL (tests/db, tests/observability, tests/api: 1379 passed). Minor follow-up: note in postgres-guide that index_catalog_table is quoted and therefore case-sensitive.
…servability improvements
JVSPATIAL_POSTGRES_INDEX_CREATIONto control index creation modes, allowing for deferred performance index DDL while preserving unique constraints.IndexSpecandManagedSchemaErroras public exports for managed PostgreSQL hosts.Type of Change
What type of change does this PR introduce? Mark all that apply:
Summary
What does this PR address?
Provide a concise summary of the changes introduced in this pull request. Specify if it resolves an issue, adds a feature, or refactors code.
For example:
Description
Bug Fixes:
If this PR fixes a bug, please provide:
Feature Request:
If this PR adds a new feature, please provide:
Refactor Request:
If this PR refactors code, please provide:
Changes Made
High-Level Summary:
List the key changes made in this PR:
Checklist
Mark all that apply:
Steps to Test
Provide a clear set of steps for testing the changes introduced in this PR:
Additional Context
If necessary, provide additional context, screenshots, or relevant references for the changes in this PR.
Questions or Concerns
Are there any open questions or areas of concern related to this PR? If so, mention them here.