Skip to content

fix(docscout): expose scoped missing causes per field - #78

Merged
wolfy-j merged 5 commits into
mainfrom
fix/docscout-section-missing-cause
Nov 11, 2026
Merged

wolfy-j merged 5 commits into
mainfrom
fix/docscout-section-missing-cause

Conversation

@wolfy-j

@wolfy-j wolfy-j commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

A field that searches selected sections can return no value while other sections or pages contain it. Extraction exposes the optional per-field codes array, including missing_in_sections, through public, agent-tool, Block and stored results.

The code is informational: it adds no reason and preserves verification, summary counts (including unchecked when verification is disabled), statuses and trace messages for callers that ignore field codes. The result schemas and README define absence within the selected sections of the searched pages. Current and reopened result views show “Not in the selected sections,” adding “of the searched pages” for a page range. Fields without the code keep their existing labels.

Validation on Wippy v0.3.59a with fresh dependencies:

  • Regressions reproduce the verification, unchecked-summary and UI-label failures before the fixes and pass afterward.
  • Complete Docscout suites pass 286 tests on SQLite and PostgreSQL. Lint checks 171 entries without issues. UI checks pass 130 tests and TypeScript.
  • The page-range regression covers a section spanning pages 1–2 with its answer on page 2 while searching only page 1.
  • The module make target rebuilds the static bundle. The browser guard covers current results and reopened stored results on both engines.
  • Coverage checks, scenario-map consistency and the UI guard audit pass in companion guard PR https://github.com/kicksideai/kickside-internal/pull/313.

Compatibility: codes remain optional on older stored results. No endpoint, registry identity, stored shape or migration changes. No new calls, settings or row-producing operations.

KickSide added 5 commits November 11, 2026 00:52
…ir own cause

A field that searches only its selected sections reads passages from those
sections alone. When the model finds no value there, the value carried the
same `missing` cause as a field that read the whole document, so callers
could not tell a value absent from the document from one absent from the
sections routed to the field.

Such a value now records cause `missing_in_sections` with the reason "Not
stated in its selected sections". It stays `missing: true`, so consumers
reading `missing` see no change.
@wolfy-j
wolfy-j merged commit 97fbc67 into main Nov 11, 2026
16 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 11, 2026
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