Skip to content

perf(context)!: make filesystem LLM scoring opt-in - #76

Open
LukasParke wants to merge 1 commit into
mattapperson:mainfrom
LukasParke:lukeparke/openrouter-filesystem-scoring
Open

perf(context)!: make filesystem LLM scoring opt-in#76
LukasParke wants to merge 1 commit into
mattapperson:mainfrom
LukasParke:lukeparke/openrouter-filesystem-scoring

Conversation

@LukasParke

Copy link
Copy Markdown
Collaborator

What

  • default filesystem() relevance scoring to the local path heuristic
  • call an LLM only when scoringModel is explicitly configured
  • normalize blank model strings to the heuristic path
  • use a shorter append timeout when no model scoring is configured

Why

The previous default silently issued a Haiku request for each new #file reference inside the append pipeline. File relevance scoring should not create hidden model cost and latency. The deterministic path heuristic is sufficient as the safe default; applications that need semantic scoring can opt in.

This semantically ports the filesystem portion of fork/port/openrouter-fixes commit fb22ac35 onto current filesystem() names.

Test plan

  • 28 focused filesystem tests pass
  • context/core typechecks
  • root lint
  • sentrux check .
  • source worker package/context tests and structural gate pass
  • clean-context Pi review; blank-string opt-in fixed

Breaking change

scoringModel no longer defaults to Haiku. Callers relying on semantic relevance must configure a model explicitly. The default now performs no model call.

Port the filesystem scoring-default portion of fork/port/openrouter-fixes commit fb22ac3. Heuristic relevance is now the default; an explicit scoringModel enables LLM scoring.

Signed-off-by: Luke Parke <5702154+LukasParke@users.noreply.github.com>
@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

@LukasParke is attempting to deploy a commit to the Matt Apperson's projects Team on Vercel.

A member of the Team first needs to authorize it.

@LukasParke

Copy link
Copy Markdown
Collaborator Author

Agent: The code CI, DCO, and structural gate passed. Remaining red checks are external configuration: compat received an empty OPENROUTER_API_KEY, and Vercel requires upstream deployment authorization. I cannot remediate or rerun those checks without upstream repository access/secrets.

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