Skip to content

promote: RefMet live-api-fallback toggle + candidate_limit (fork #71 + #72) - #93

Merged
trentleslie merged 1 commit into
devfrom
promote/refmet-fallback-candidate-limit
Sep 9, 2026
Merged

trentleslie merged 1 commit into
devfrom
promote/refmet-fallback-candidate-limit

Conversation

@trentleslie

Copy link
Copy Markdown
Collaborator

Bundles two fork PRs (both Greptile 5/5 + CI green on trentleslie/biomapper2) into one org promotion. Org dev was current through fork #70 (org #92); this brings #71 + #72.

Included

Scope

Ports the 11 differing src/ files (org src/ becomes identical to fork src/) + .env.example + the 5 src-coupled test files. studies/ and studies-coupled tests stay fork-only.

Safety / verification

  • Both features are opt-in and default-off/None → no behavior change unless REFMET_LIVE_API_FALLBACK is set or candidate_limit is passed.
  • Offline gate green in the promotion worktree: 829 passed, 0 failed; ruff + pyright clean.

To enable the fallback on dev-biomapper after deploy: add REFMET_LIVE_API_FALLBACK=1 to /home/ubuntu/biomapper2-dev/.env.

🤖 Generated with Claude Code

…71 + #72)

Bundles two fork PRs (both Greptile 5/5, CI green) into one org promotion; org dev was current
through fork #70 (org #92). Ports the 11 differing src files (org src == fork src) + .env.example +
the 5 src-coupled test files. Studies-coupled tests + studies/ stay fork-only.

- fork #71: REFMET_LIVE_API_FALLBACK env toggle -- a freeze MISS falls through to live /match
  (source=live_api) instead of a deterministic not_in_snapshot no-vote; applied to BOTH the registered
  RefMet annotator and Goslin's internal binder. Documented both REFMET_* vars in .env.example.
- fork #72: optional candidate_limit (1-100) in the API payload / MappingOptions sets the Kestrel
  search window per request (explicit value wins over the 20/else-1; threaded like prefer_canonical;
  Query-bounded on the dataset endpoints too).

Offline gate green (829 passed); ruff + pyright clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@trentleslie
trentleslie merged commit fdfbbac into dev Sep 9, 2026
3 checks passed
@trentleslie
trentleslie deleted the promote/refmet-fallback-candidate-limit branch September 9, 2026 08:44
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