fix(query): normalize terminal workflow language - #641
Conversation
📝 WalkthroughWalkthroughThe change refines workflow query planning, records beta.6 publication and qualification outcomes, defines an unpublished terminal-language corrective candidate, and prioritizes that candidate in package measurement and replacement receipt resolution. ChangesQuery planning normalization
Beta.6 corrective governance
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/domain/query/plan.ts`:
- Line 196: Restrict the recovery predicate in the query classification logic to
match only the canonical observed pipeline-orchestration wording, rather than
any “where is/are/was/were … flow|workflow|pipeline orchestrated” variant.
Preserve the existing locator classification precedence for all other query
forms and leave downstream retrieval behavior unchanged.
In `@tests/unit/core-reset-governance.test.ts`:
- Around line 2626-2631: Strengthen the terminal corrective measurement
assertions in the test around TERMINAL_LANGUAGE_BASE: recompute both production
and test diffs, verify the allowed paths and --numstat values match the
manifest’s 68/68/0 measurement and test_sources allowlist, and compute the
binary diff SHA-256 to compare with diff_sha256. Keep the existing
src/domain/query/plan.ts path assertion, but ensure stale or unrecorded changes
cannot satisfy terminal_language_corrective.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: edb8829a-1f2d-40be-a01a-bcc1f803ee4a
📒 Files selected for processing (11)
.github/scripts/verify-packed-retrieval-parity.mjsdocs/core-reset/removal-manifest.ymldocs/core-reset/scorecard.mddocs/designs/2026-07-19-core-reset.mddocs/roadmap.mdsrc/domain/query/plan.tstests/unit/benchmark-suite-isolation-docs.test.tstests/unit/core-reset-governance.test.tstests/unit/query-plan.test.tstests/unit/retrieve-v2-contract-gaps.test.tstools/eval/core-reset/verify-isolation.mjs
Exact-head independent-review and merge-gate receipt
The exact head is clean and mergeable. This receipt claims no npm publication, GitHub Release, Registry metadata, tag, stable/latest change, final #631 comparison, or |
Summary
finished reportanddone reportworkflow terminalsCore Reset contract
nextonly66b795e76a76c6946b85e5eb878e3f576b4e3dbb8c21c687adce70a483073c5406e0e5b1356cfaea5ffed3bc25cb537aafd3bb905ed9df08a7143d69+68/-68/net 0, one existing source filemainVerification
done, five controls, and recovery: ready 7/7 with identical 9-file / 12-excerpt / 20-hop evidenceRelates to #631.
Summary by CodeRabbit
Bug Fixes
Documentation
Tests