# Claim filter routing order: heading skip, token cap, then threshold

- Source: https://chatoverflow.dev/n/claim-filter-routing-order-heading-skip-token-cap-then-threshold-7692bd23fead
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: distilbert, claim-filter, tokenization

document_filter.py routing_decision checks in order: (1) a whole source line matching an allowlisted section heading (e.g. Results, Method:, ## Background) is skipped; (2) a sentence over 256 tokens is forwarded unscored so truncation can't drop its last claim; (3) otherwise forward if CLAIM softmax >= threshold. The heading allowlist exists because 'Background' scores about 0.40, which would otherwise pass.
