Repository navigation
refactor(retrieval-eval): extract reproducible repository baseline - #2849
legreffier[bot] wants to merge 8 commits into
Conversation
139223d to
3035d15
Compare
3035d15 to
6e56660
Compare
✅ CLI go.mod matches internal Go module releases
|
✅ Override hygiene — every entry is justified11 of 21 |
🚨 Dependency Audit — Vulnerabilities foundFull report |
|
Adaptive review: incomplete coverageClassifier-selected investigations. Head
Classifier scores (0–3): code complexity 2.3; review effort 2.0. These describe screening, not review findings. Findings: 3 (0 posted as new review threads, 3 linked to open threads from earlier runs). Assess each finding; fix confirmed problems or explain why no change is needed. Current findings referencing earlier threads are also shown below for comparison. Investigated concerns:
Complexity assessmentRubric assessment, not counted as actionable findings. Previous open findingsAssessments for this head, based on threads open when review started. These are reviewer conclusions; GitHub threads are not automatically resolved. Still present: 3 · Fixed: 0 · Earlier finding was wrong: 1 · Not checked / uncertain: 0
Not fully assessed:
Advisory review. Agent workflow spendEstimated USD at standard catalog rates, including failed attempts and retries; not provider invoices or off-peak charges.
Pricing coverage: 14/14 fully priced tasks; 0 with missing telemetry. “≥” marks a known lower bound. Model rows can share a task and its attempts; the Tasks and Attempts totals count each task and attempt once. |
There was a problem hiding this comment.
Verdict: Needs work; approach validated
The purpose is sound: establish a reproducible fixture baseline around the existing production repository search before changing retrieval behavior. A dedicated private evaluation library is an appropriate boundary. It reuses production migrations, embedding preparation and repository search rather than implementing a parallel ranking system. No production search defaults change.
The twelve-entry fixture is a development regression baseline, not evidence of general retrieval quality. Keeping the versioned datasets and annotation workflow in #2927/#2848 preserves that distinction. Human relevance labels remain pending.
The main public review risks are incomplete historical labels being interpreted as irrelevant, stale embedding cache identity, and incomplete production-source provenance. Strengths include isolated PostgreSQL fixtures, recorded rankings, explicit time policies and repeatability checks.
Prior threads: the dependency-placement rebuttal was verified against the executable Nx configuration; its thread remains open. The existing binary scoring policy/grade derivation and verifiedNoMatch=true test requests remain unaddressed. The contributor on #2821 reports prepared tests, but no patch or public test branch was available; this review does not duplicate them.
Validation at 9543420: baseline lint/typecheck/secret scanning and 25 unit tests passed; the real model/PostgreSQL integration completed 144 searches with matching repeats. Across the rebased stack: middle layer 44 unit tests; tip 49 TypeScript tests and 19 Python tests; scoped checks passed independently. A fresh public-corpus run completed 56 searches with zero repeat differences. These checks establish execution and repeatability, not retrieval quality. Hosted CI after the rebase was not verified.
Coverage: 26 files, +1487/-0 lines. All nine specialist passes ran: Correctness, Security, Performance, DRY, Design/API/BackCompat, Tests, Operability, Readability and Simplicity. Design pre-flight: PROCEED. Size gate approved by the operator. DRY, Design/API, Readability and Simplicity returned clean. Findings with restricted disclosure requirements are retained privately under repository policy; this public review is not the complete private findings inventory.
Require nonnegative safe integer revisions before preparing evaluation runs. Keep revision zero valid for unlabelled datasets. MoltNet-Diary: 59abd009-cb6f-4c00-b993-d9d7d17e37de Task-Group: retrieval-revision-validation Task-Family: bugfix Task-Completes: true
Exercise historical and relative policies, positive relevance grades, verified no-match, and valid-input rescore incompatibility. MoltNet-Diary: ee4bfe1a-4d83-4dfb-a1fe-7c51b266a7ca Task-Group: retrieval-reviewed-metrics Task-Family: bugfix Task-Completes: true
Include nested production sources and the dependency lockfile in run and embedding preparation fingerprints. Close the embedding service after vector preparation and use the recognized server platform tag. MoltNet-Diary: 3a196e31-bbc8-4820-9380-ff8d9efea133 Task-Group: retrieval-runtime-provenance Task-Family: bugfix Task-Completes: true
Document available CLI options, local model setup, retained run artifacts, metric withholding and ranking reuse limits. MoltNet-Diary: d6bdaf37-1717-4830-bc6b-a6faada3bd4c Task-Group: retrieval-baseline-documentation Task-Family: docs Task-Completes: true
|
Addressed the review findings in e4df5f8, 380b5a0 and f6cb908:
Validation: baseline 47 unit tests, lint, typecheck and secret scanning pass. The actual model/PostgreSQL fixture integration completes all 144 searches with matching repeats. The independently checked dataset and combined layers pass 66 and 71 TypeScript tests respectively; 19 Python tests pass. A fresh public-corpus run completes 56 searches with zero repeat differences. This establishes execution and repeatability, not retrieval quality; real human labels remain pending. All existing unresolved threads were checked against the implementation and tests. #2927 and #2848 remain drafts; #2848 still needs attached visual evidence. No merge was performed. Hosted CI after this push has not been verified. |
Move the retrieval experiment into private
@moltnet/retrieval-evalso it can be run and validated independently of diary-service. This adapts Dennys (@antunishdPursuit)'s fixture baseline from #2821, preserving the twelve-entry, six-query fixture and 144-search protocol.The runner separates dataset contracts, embedding preparation, disposable PostgreSQL fixtures, production repository search, binary metrics and provenance reports. Access metadata resets are batched between trials. The project follows the repository's composite TypeScript and Nx conventions; normal tests do not start Docker or load models. The README documents portable commands and baseline limitations.
Validation: the isolated baseline stage was tested before the UI commit; after rebasing the combined stack onto
origin/main(2953d497d), all 144 fixture searches and repeatability checks passed, together with lint, typecheck, unit tests and secret scanning. No production search defaults change.Stack:
main.The annotation and dataset layers remain drafts; this baseline retains its existing review status. This incorporates #2821's work; it does not include a real diary corpus or retrieval tuning.
The current update migrates the executable tests to
*.spec.ts, includes Vitest configs in composite typechecking, and passes scoped lint, typecheck, unit tests and secret scanning independently. Frozen fixture provenance paths remain pinned to their original source revision.