Skip to content

Answer hits from stored provider records - #173

Open
Snowpile wants to merge 2 commits into
mainfrom
snowpile/api-154-stored-provider-answers
Open

Snowpile wants to merge 2 commits into
mainfrom
snowpile/api-154-stored-provider-answers

Conversation

@Snowpile

Copy link
Copy Markdown
Contributor

Closes #154. Stored answers sit behind a go/service port, as #152 decided.

Where it departs from #151's design:

  • Request standard amended: a list may carry singular fields about the whole answer (HitList.searched) beside items; TestListResponsesWrapItems holds it.
  • Go API: Searcher splits into Search (ids) and Fetch (records), so only unheld records are fetched; Resolver and Searcher gain Name; pubmed.Cache goes. No service wires either yet.
  • TS: listHits returns the HitList, not its items.

Not covered: a backend that survives a restart or spans replicas; MemoryAnswers is the only one.

🤖 Generated with Claude Code

@Snowpile
Snowpile requested a review from ptmo516 November 18, 2026 21:16
Snowpile and others added 2 commits November 22, 2026 23:18
HitList gains searched (#151), so a list may carry singular fields
about the whole answer beside items.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Erik Forsman <erik.r.forsman@gmail.com>
Each hit answers from its stored Publication, else a fresh record held
in service.Answers, else the provider; a fresh term asks it nothing.
Answers is a go/service port, not store.Store (#152): an entry is
unsigned, expiring and overwritten. Replaces pubmed.Cache.

Closes #154

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Erik Forsman <erik.r.forsman@gmail.com>
@Snowpile
Snowpile force-pushed the snowpile/api-154-stored-provider-answers branch from e85c7f3 to 8e4010e Compare November 24, 2026 01:28
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.

Answer hits from stored provider records before the provider

1 participant