Back to notes
The Tesseract MemoryTechnical note

Letting an enabled detector survive an overlapping match

A disabled high-priority detector could win an overlap before being removed. Moving the group filter earlier keeps the enabled fallback available.

Topics

Selection order changed the result

More than one detector can recognize the same sensitive span. A provider-specific pattern may compete with a more general credential pattern, and the overlap resolver selects a winner using the candidate score.

If disabled groups are filtered only after that competition, a disabled high-priority candidate can discard the enabled fallback. Removing the winner afterward leaves neither candidate available to replace the value. The failure comes from operation order, not from both detectors missing the text.

Apply eligibility before competition

Redactor now removes candidates from disabled groups before overlap resolution. Only eligible candidates compete, so a broader enabled detector can still select the span when the provider-specific group is switched off.

Confidence filtering follows overlap selection. Manual phrases are handled explicitly: they remain eligible even when automatic groups are disabled and bypass the ordinary confidence threshold. The focused test definitions cover the disabled-group collision and manual-redaction behavior.

Preserve the rest of the replacement contract

The correction changes which candidate reaches replacement, not how the document is rebuilt. Placeholders are still allocated per call, repeated values remain consistent within the result, and accepted UTF-16 spans are replaced from right to left.

The dated July audit records the correction and 57 passing core tests. That is historical evidence, not a fresh run or a detection benchmark. It supports this specific ordering fix without establishing that every credential format will be recognized.

Group policy precedes overlap resolution

An ineligible provider candidate is removed before it can suppress the enabled key/value fallback.

Direct callResponse / returnBlocked / denied
Overlapping candidates
Group eligibility
Selection and result

Scroll or drag the background to move. Use the zoom buttons to resize.Arrow keys move between components. Enter selects.

Choose a component to explore

Select a numbered component on the map or use the component menu. Its details and connections will appear here.

No component selected.

All connections (6)
  1. 01 · Provider-pattern candidate04 · Filter disabled groupsProvider candidate · Direct call
  2. 02 · Key/value candidate04 · Filter disabled groupsKey/value candidate · Direct call
  3. 03 · Enabled detector groups04 · Filter disabled groupsGroup policy · Direct call
  4. 04 · Filter disabled groups05 · Disabled provider matchProvider group disabled · Blocked / denied
  5. 04 · Filter disabled groups06 · Resolve remaining overlapsEnabled fallback · Direct call
  6. 06 · Resolve remaining overlaps07 · Password finding and replacementSurvives selection and threshold · Response / return