Skip to content

fix(context): preserve complete query date ranges and clarification filters - #37

Merged
xiaour merged 2 commits into
xiaour:mainfrom
BigDataDZ:codex/query-acceptance-context
Oct 19, 2026
Merged

xiaour merged 2 commits into
xiaour:mainfrom
BigDataDZ:codex/query-acceptance-context

Conversation

@BigDataDZ

@BigDataDZ BigDataDZ commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Current main CI fails the live PostgreSQL Agent HTTP test because the new conversation context extracts a complete date range as two month prefixes. The extra incomplete context conditions are then rejected by the query contract's semantic coverage gate.

Recognize complete Chinese and ISO dates/ranges before year/month prefixes so followups retain day precision. Keep distinct ranges separate. Prevent an ISO date supplied as a clarification from also becoming a filter that replaces the inherited region. The compiler and permission checks are unchanged.

Add a no-network authenticated streaming regression using real platform metadata, context routing, compiler, SQL generation and audit, replacing only the model/tool harness and business database I/O. Assert both date boundaries and enforced row-policy bindings. Retain every permission assertion in the original live PostgreSQL test and make its stream-error diagnostic concise.

Validation: date extraction and HTTP regression failed before the fix; the ISO clarification regression also reproduced before correction. Fresh verification is listed below. No external business database or live model was used locally; PR CI verifies actual PostgreSQL and Chromium acceptance.

Fresh verification: npm test 574 tests (562 passed, 12 optional integration skips, 0 failures); npm run lint 0 errors / 7 existing warnings; npm run eval 14/14 fixtures with 2 L3 judgments pending. Independent review approved commit 2d3ec8a and reran 13 focused tests.

PR CI passed: standard tests/architecture/eval, real PostgreSQL integration and Chromium acceptance, plus both default and optional-PG Docker builds.

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.

2 participants