Skip to content

fix(search)+test: FTS bare-asterisk bug, #1737 docs cleanup, stale pins - #1767

Merged
Sinity merged 3 commits into
masterfrom
feature/fix/inherited-failures-tail
May 31, 2026
Merged

Sinity merged 3 commits into
masterfrom
feature/fix/inherited-failures-tail

Conversation

@Sinity

@Sinity Sinity commented May 31, 2026

Copy link
Copy Markdown
Owner

Summary

Continues clearing the inherited test failures (after #1765). Fixes one real search bug, one real #1737 docs-cleanup gap, and three stale surface pins.

Problem & Solution

Failures that accumulated while CI was off (#1766):

  1. escape_fts5_query bug (fts_escape_in_insights): bare-asterisk queries like * * * passed through unquoted and SQLite rejected them (unknown special query: *). The prefix logic treated any *-at-word-boundary as valid word* syntax. Now only word-suffixed * is preserved; bare asterisks are quoted (safe literal). Updated the test* security case to the preserved-prefix form (still MATCH-compiles).
  2. Dangling verification docs (render_docs_surface): refactor(verifiability): delete ceremonial verification infrastructure #1737 deleted docs/verification-catalog.md and docs/verification-lab.md but left their entries in devtools/docs_surface.py; the renderer skipped the missing files so the README dropped them and the pin failed. Removed the dead entries + test assertion; regenerated the docs README.
  3. Stale surface pins: perf_rescue_1314 (v22 moved per-role counts to conversation_stats, eliminating the messages scan — dropped the stale assertion); click_app (registered 6 new commands); message_render_envelope (added paste_boundary_state, feat(insights): durable boundary-state schema for paste evidence (exact/projected/whole_message_fallback/hash_only) #1655).

Verification

pytest tests/unit/storage/test_fts_escape_in_insights.py tests/unit/storage/test_query_security.py  # 46 passed
pytest <perf_rescue, click_app, envelope, render_docs_surface>  # all pass
devtools verify --quick  # push gate green

Remaining (tracked for follow-up)

Still-open inherited failures, triaged in #1765's body — needing per-case judgment: the ASSURANCE_REGISTRY real gap (6 new commands need output contracts), exercise_catalog/config source_roots (ambiguous), and the slower real candidates test_source_laws (zip "not seekable" — likely a real regression), test_resilience (source_name), test_acquisition_encoding (BOM).

Sinity added 3 commits May 31, 2026 11:10
… prefixes

escape_fts5_query treated any *-at-word-boundary as a valid prefix, so bare
asterisks like '* * *' passed through unquoted and SQLite rejected them
('unknown special query: *'). Only strip * when it suffixes a word token; bare
asterisks are now quoted (safe literal). Updated the 'test*' security case to the
preserved-prefix form (still MATCH-compiles).
#1737 deleted docs/verification-catalog.md and docs/verification-lab.md but left
their DocsEntry/title entries in devtools/docs_surface.py, so the rendered docs
README silently dropped them (renderer skips missing files) and the pin test
failed. Remove the dead entries, the test assertion, and regenerate.
…k_app commands, envelope paste_boundary_state)

Features that landed while CI was off, not reflected in the pins:
- perf_rescue_1314: v22 moved per-role counts to conversation_stats, eliminating
  the messages scan — drop the stale 'still queries messages' assertion.
- click_app: register 6 new top-level commands (blackboard/commands/context/
  correlate/paths/recent).
- message_render_envelope: add paste_boundary_state (#1655) to _ENVELOPE_FIELDS.
@Sinity
Sinity merged commit ee3a759 into master May 31, 2026
1 check passed
@Sinity
Sinity deleted the feature/fix/inherited-failures-tail branch May 31, 2026 09:15
@coderabbitai

coderabbitai Bot commented May 31, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 23 minutes and 9 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8a7c559e-0c1c-4aad-853f-81708f754a70

📥 Commits

Reviewing files that changed from the base of the PR and between b605465 and e3dec98.

📒 Files selected for processing (8)
  • README.md
  • devtools/docs_surface.py
  • polylogue/storage/search/query_support.py
  • tests/infra/adversarial_cases.py
  • tests/unit/cli/test_click_app.py
  • tests/unit/devtools/test_render_docs_surface.py
  • tests/unit/storage/test_perf_rescue_1314.py
  • tests/unit/surfaces/test_message_render_envelope.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/inherited-failures-tail

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 May 31, 2026
Sinity added a commit that referenced this pull request May 31, 2026
## Summary

Three more inherited-failure fixes (continuing #1765/#1767/#1768).

## Changes

- **`blackboard list --limit`**: used `-n`, violating the repo-wide
`-l/--limit` convention enforced by `test_flag_aliases_consistent`.
Aligned to `-l` (small CLI fix).
- **`exercise_catalog`**: dropped the `insights analytics` nested path
from the pin — that command path no longer exists.
- **`config source_roots`**: the TOML serializer now renders arrays
multi-line (`roots = [\n "/a",\n "/b",\n]`); the test pinned the old
single-line spelling. Assert the array shape + members robustly.
(Confirmed the cli-override is correctly applied — it was purely a
formatting-style drift.)

## Verification

```
pytest <theme_aliases, exercise_catalog, config source_roots, help/terminal snapshots>  # all pass
```

## Deferred (intentionally not touched)

The remaining inherited failures cluster on the **in-flux
`provider`/`source_name` vocabulary** (#1743 is actively redesigning
this) and a product decision — editing them blind risks encoding the
wrong interpretation:
- `resilience` (4), `ingestion_chaos`, `parsing_service`,
`pipeline_probe` (2), `parsers_local_agent` — all turn on parsed
`source_name` being the source-config name (`'test'`) vs the detected
origin (`'claude-code'`/`'codex'`). Likely a real regression in the
origin-vs-source conflation, but it belongs to the #1743 redesign or an
explicit operator call.
- `ASSURANCE_REGISTRY` — the 6 new commands need declared output
contracts (#1272), a per-command product decision.
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