tests(ingestion): replace source-grep with executable behavioral coverage for worker and indexing agent - #1475
Conversation
Updates to Preview Branch (codex/replace-source-grep-tests-with-coverage) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in:34 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
Comment |
Uh oh!
There was an error while loading. Please reload this page.
Summary
worker/behavior.tsand consume them fromworker/main.ts.agentFailureDecisionto the indexing-v3 behavior module and consume it from the edge-function entrypoint.RAG impact: no retrieval behaviour change — this extracts existing ingestion failure and repair decisions byte-for-byte at their call sites; retrieval, ranking, search ordering, prompts, and answer generation are unchanged.
Verification
npm test -- --run tests/worker-behavior.test.ts tests/indexing-v3-agent.test.ts tests/worker-visual-capture.test.ts— 3 files, 27 tests passed.npm run typecheck— passed.npm run check:installed-lock-parity— passed on Node 24/npm 11 lock state.npm run check:outstanding-issuesandnpm run check:branch-review-ledger— passed.git diff --check— passed.Not run: provider-backed ingestion, Supabase, OpenAI, or live-corpus workflows; this PR is verified with offline/static tests only. Hosted clean-install CI is the final exact-head gate.
Risk and rollback
Risk is low-to-moderate because production entrypoints now delegate existing decisions to importable pure helpers. The focused tests pin retry exhaustion, partial-write recovery, atomic-reindex status preservation, optional-artifact repair, and agent terminal failure. Roll back by reverting the squash commit; no migration or provider configuration changes are included.
Clinical Governance Preflight
Clinical KB Database(sjrfecxgysukkwxsowpy)