Skip to content

fix: retarget query DSL planning and restore quick gate - #2007

Merged
Sinity merged 2 commits into
masterfrom
feature/docs/query-dsl-ownership-2006
Jun 16, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/docs/query-dsl-ownership-2006

Conversation

@Sinity

@Sinity Sinity commented Jun 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Retargets stale query-DSL planning references from the deleted/stale #1879 owner to #2006, and fixes the narrow mypy type regressions that blocked the required quick gate during push.

Problem

The issue set now has a detailed owner for the full query DSL substrate, but repo planning docs still pointed agents at #1879. That made the query ceiling look orphaned and encouraged agents to treat the old flat compiler as the whole DSL.

The enforced pre-push quick gate also exposed current mypy failures in parser dispatch typing, benchmark generator unions, and a stale ignore.

Solution

Verification

  • nix develop --command devtools verify-doc-commands -> verify-doc-commands: 100 doc files scanned, no stale commands
  • nix develop --command mypy polylogue tests devtools -> Success: no issues found in 1639 source files
  • nix develop --command devtools verify --quick -> exit_code: 0

Ref #2006

Summary by CodeRabbit

Release Notes

  • Chores
    • Internal code cleanup and type annotation improvements for schema verification and payload handling
    • Benchmark test refactoring with enhanced type safety for multi-provider corpus generation
    • Documentation updates to planning and design documents

@coderabbitai

coderabbitai Bot commented Jun 16, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 6975edbb-7e33-46b5-ae40-358e5758b5d4

📥 Commits

Reviewing files that changed from the base of the PR and between 81aa730 and c9cecc2.

📒 Files selected for processing (6)
  • devtools/verify_schema_roundtrip.py
  • docs/plans/current-issue-execution-control-plane.md
  • docs/plans/final-cli-command-floor.md
  • docs/plans/query-pipeline-substrate.md
  • polylogue/sources/dispatch.py
  • tests/benchmarks/test_daemon_convergence_multi_provider.py

📝 Walkthrough

Walkthrough

The PR introduces explicit TypeAlias definitions and validated generator helper functions for JSONL/JSON corpus generation in the multi-provider benchmark, simplifying test logic. Two minor local type annotations are tightened in dispatch.py and a type: ignore comment is removed in verify_schema_roundtrip.py. Three planning documents are updated to replace issue reference #1879 with #2006 for the query-DSL ceiling work.

Changes

Benchmark corpus generation typing refactor and annotation cleanups

Layer / File(s) Summary
Inline type annotation fixes
devtools/verify_schema_roundtrip.py, polylogue/sources/dispatch.py
Removes a redundant type: ignore comment on the import-guard conditional; adds explicit PayloadSequence and JSONDocument local annotations to grouped_payload and payload in dispatch.py.
TypeAlias definitions, typed registry, and generator helpers
tests/benchmarks/test_daemon_convergence_multi_provider.py
Adds JsonRecordList, JsonRecord, JsonlGenerator, JsonGenerator, and ProviderGenerator type aliases. Updates _PROVIDER_GENERATORS to the typed form. Introduces _jsonl_generator and _json_generator helpers with format validation, refactors _generate_corpus to use them, and simplifies test_convergence_single_file_per_provider to always produce JSONL.

Planning docs: replace #1879 with #2006

Layer / File(s) Summary
Issue number renumber and ownership header
docs/plans/current-issue-execution-control-plane.md, docs/plans/final-cli-command-floor.md, docs/plans/query-pipeline-substrate.md
Updates critical-path entries, issue-notes, and command-floor acceptance references from #1879 to #2006; adds an owning-issue line to query-pipeline-substrate.md; reaffirms the review-discipline requirement in the control-plane document.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

type:refactor, area:parser, area:qa

Poem

🐇 A hop through the types, a tweak to the plan,
The corpus now knows just which format to scan.
#1879 is gone, #2006 takes the stage,
A PayloadSequence typed on the right page.
Small fixes, clean paths — the warren feels right,
This rabbit says: ship it into the night! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main changes: retargeting query DSL planning references and fixing mypy type regressions that blocked the quick gate.
Description check ✅ Passed The PR description covers all required template sections with clear explanations of the problem, solution, verification steps, and references the owning issue.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/docs/query-dsl-ownership-2006

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

github-actions Bot pushed a commit that referenced this pull request Jun 16, 2026
@Sinity
Sinity merged commit 123c84e into master Jun 16, 2026
14 checks passed
@Sinity
Sinity deleted the feature/docs/query-dsl-ownership-2006 branch June 16, 2026 23:42
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