Recall: no stemming, one phrasing per call, and the failure records are outside the corpus #244
Labels
No labels
already-shipped
bug
documentation
duplicate
enhancement
external-review
good first issue
help wanted
in progress
invalid
needs-decision
proposal
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: crenshawdev/cadence-archived#244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Recall ranks well over the corpus it sees, but three cheap wins in how it reads and ranks are still open. A fourth item in the original assessment - the corpus dying at every milestone close - shipped:
.planning/ARCHIVE.mdnow receives each pruned phase's residue before the delete, andmilestone-prunereportsresidue_rows.1. No stemming
cadence-core/bin/lib/bm25.mjs:20states it outright: "No stemming -recallandrecallingare distinct terms." Soseammissesseams,closemissescloses.A ~30-line suffix fold (
s/es/ing/ed) applied identically at index time and query time. Deterministic, zero-dep, one file.2. One phrasing per call
recallaccepts a single query string, so a caller gets one lexical shot at the corpus. The natural fix is to accept N queries and union by max score inside the seam, in one subprocess, rather than making every caller issue several calls and merge them by hand.3. The failure records are not in the corpus
The corpus walk covers SUMMARY deviations and open items, CAPTURE, UAT and CONTEXT. It skips the two artifacts that record what actually went wrong:
reports/plan-<k>.md, the executor deviationsREVIEW-*.md, the adjudicated findingsBoth are exactly the prior art a planner should be handed, and neither is reachable today.
Ordering
Item 3 changes what recall can know; items 1 and 2 change how well it ranks what it already sees.
Moved to GitHub: https://github.com/crenshawdev/cadence/issues/93
This project's tracker is now GitHub; this repository remains the public archive. Closed here as migrated, not as resolved.