Skip to content

Add a local label filter for presence silence and no-cue intent - #382

Draft
tylerreckart wants to merge 1 commit into
mainfrom
cursor/decision-filter-4d79
Draft

tylerreckart wants to merge 1 commit into
mainfrom
cursor/decision-filter-4d79

Conversation

@tylerreckart

Copy link
Copy Markdown
Owner

Summary

A local Ollama model can score a closed set of single-letter labels and skip two completions Arbiter already makes. The filter ships dark: it runs only when ARBITER_DECISION_MODEL is an ollama/… id and the matching margin is greater than 0. A skip also requires a renormalized peak of at least 0.9.

  • Presence. Before run_presence_review, score the first line of the task plus tool names. An extreme silent skips the review and emits presence with detail=filter plus filter_peak, filter_margin, and filter_label. A peaked context still runs the review. The filter cannot inject a note.
  • Intent. Only when the heuristic kind is unknown. An extreme real kind that maps to a roster agent routes with source=decision and the canned brief, and the advisor completion does not run. Multi-cue text, a confident cue, unknown, a flat distribution, and a missing label fall through to the existing tagged completion, which is still the only writer of seeds.

Missing letters in top_logprobs are not filled with zero. Hosted models are not called. The advisor gate is unchanged.

Tests

  • unit_label_score: renormalize, missing-label fail-open, OpenAI logprob body, margin parse
  • unit_intent: peaked no-cue route skips the LLM; flat, unknown, multi-cue, confident cue, zero margin, and heuristic mode do not
  • unit_presence: the filter snapshot keeps tool names and drops result bodies; only an extreme silent skips
  • unit_api_client: the Ollama body gains logprobs only when the filter asks

orchestrator.cpp and api_server.cpp were syntax-checked. The full arbiter binary was not linked here (OpenTUI).

Open in Web Open in Cursor 

An ollama model can score single-letter labels and skip a presence
review on an extreme silent, or route a no-cue utterance without the
advisor completion. Both margins default to off, and the filter cannot
write a note, seeds, or a halt.

Co-authored-by: Tyler Reckart <tylerreckart@users.noreply.github.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.

2 participants