Skip to content

fix: keep test builds and versions in sync#8

Open
123kaze wants to merge 1 commit into
Goldentrii:mainfrom
123kaze:fix/test-version-consistency
Open

fix: keep test builds and versions in sync#8
123kaze wants to merge 1 commit into
Goldentrii:mainfrom
123kaze:fix/test-version-consistency

Conversation

@123kaze

@123kaze 123kaze commented May 31, 2026

Copy link
Copy Markdown

背景

当前仓库在干净 checkout 后直接运行测试会失败,因为测试文件会从 dist/ 目录加载构建产物,但测试脚本本身不会先执行构建。此外,部分 workspace 的版本信息存在漂移:包版本已是 3.4.19,但 core 的 VERSION 常量、内部依赖和 lockfile 仍停留在旧版本。

变更内容

  • 让各 workspace 的 npm test 在运行测试前自动执行必要的 build。
  • agent-recall-core 的内部依赖统一更新到 3.4.19
  • packages/core/src/types.ts 中导出的 VERSION 对齐到 3.4.19
  • 同步更新 package-lock.json 中的 workspace 版本信息。

价值

这能保证新环境或 CI 中直接运行测试时不会因为缺少 dist/ 构建产物而失败,同时避免版本漂移导致一致性测试失败或发布信息不准确。

验证

已通过:

  • npm test
  • npm run lint

Goldentrii added a commit that referenced this pull request Jun 20, 2026
…early prior

Unify recall confidence onto a single 0..1 axis, drill into the lossless
archive when the model tier is unsure, and push a correction-derived prior
before the agent reasons.

- confidence.ts: calibratedConfidence(score, scale) + CONFIDENCE_FLOOR
  (high .66 / medium .4 / low .2). Deletes the 3 divergent private scoreLabel
  fns (smart-recall, supabase recall-backend, local-vector-backend) and routes
  every call site through it with its TRUE native scale (cosine | rrf-local |
  rrf-supabase). calibrated:number now set at scoring time on every item.
- drill-down.ts: fetchVerbatim(project, key) — local-only, journal (date-regex
  validated) + palace (sanitizeSlug + path-escape assert), capped 1200 chars,
  never throws into recall.
- smart-recall.ts: stamp verbatimKey on journal/palace items; add drilldown
  kill-switch + bridged[] result. Bridge gate reads the STORED calibrated
  (scoring time), NOT the hot-window/feedback-boosted final score (Risk #8);
  caps <=2 items; skips high-confidence and graph-walk items.
- prior-builder.ts: buildPriors(prompt, corrections, blindSpots) — pure,
  exported, reuses check-action tokenize/overlap (now exported), >=2 overlap
  gate, caps 2. hook-ambient emits priors ABOVE the fact list, best-effort.
- memory-query: when the high/medium filter empties, attach the bridged
  verbatim under `fallback` with a verify-before-relying caution instead of a
  bare "nothing found"; MCP recall.ts + memory-query.ts render it.

Tests: confidence, drill-down, prior-builder, memory-query (.test.mjs,
node:test, import from dist). Full suite green (378 tests, 0 fail).
Local-only: no version bump, no publish, no push.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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