Skip to content

Report what sources do not settle as a stated gap, and let a calculation try again (0.261.477) - #1972

Merged
Paul Lizer (paullizer) merged 3 commits into
Developmentfrom
claude/analysis-stated-gaps-and-calculation-retry
Nov 21, 2026
Merged

Paul Lizer (paullizer) merged 3 commits into
Developmentfrom
claude/analysis-stated-gaps-and-calculation-retry

Conversation

@paullizer

Copy link
Copy Markdown
Contributor

Why

In a rerun of the orchestration scenarios on 0.261.476, 22 of 38 runs ended partial. Three causes accounted for most of them. This changes all three.

Document analysis: a stated gap is a result, not unfinished work

The analysis model is asked to say what it could not conclude from a slice. The validator made the whole analysis partial for any such statement, even when every source had been read. A partial analysis has no records output and its consumers refuse it, so the run ended partial.

  • When coverage is complete and the only issues are ones the model stated, the analysis is now valid.
  • A finding the model supports, with one thing it could not settle, is kept as a record with open_issues. Before, the whole finding was dropped.
  • A finding the model marks unresolved is still not a record.
  • The statements are saved with the result (stated_gaps, stated_gap_count) and shown in the report.
  • In orchestration, each statement is a limitation of every output of the analysis step, so a step that reads findings or records is given what was not settled. At most 8 are listed, each at most 1024 bytes.
  • Still partial: unread sources or slices, findings with missing or unlocated evidence, invalid status, identity, values or caveats, and source windows that disagree.

This is the shared validator, so it also applies to document analysis in chat and workflows.

Tabular calculation

  • A join whose matches contradict its declared cardinality is returned to the calculation's author with the step and the side that repeats. Overlapping effective intervals are still refused.
  • An attempt that used its authoring calls on findings that are returned to the author may have a next attempt, within the existing round limit and stall check.

Composition

  • A composed result inherits the limitations of its inputs, and a result holds at most 32. More than that was refused; the list is now cut at 31 with a line saying the rest are on the inputs.

Not guarded

  • A calculation over record values is not stopped by an open issue on a record.
  • The next calculation attempt does not carry the last program or its finding forward.

Testing

  • New tests for each change; 15 existing tests updated (8 asserted the old analysis rule, 7 used a stated gap only to produce a partial analysis and now use a refused finding).
  • 133 functional test files touching the changed modules were run. 101 pass fully. The other 32 have failures that are the same on the base commit (19 compared by test name, 13 by count).
  • Not run against a deployed application.

Docs: docs/explanation/fixes/DOCUMENT_ANALYSIS_STATED_GAP_FIX.md, docs/explanation/fixes/TABULAR_CALCULATION_DATA_FIT_FIX.md, and the open-items list in docs/explanation/features/ORCHESTRATION_REACTIVE_LOOP_PROPOSAL.md.

🤖 Generated with Claude Code

…ion try again (0.261.477)

Document analysis: when every source was read, a gap the analysis model
states is a result of the analysis, not unfinished work. It no longer makes
the analysis partial. A finding the model supports with one unsettled point
is kept with that point on it. The statements are saved with the result and
given, as limitations, to every step that reads it. Unread sources and
findings the validator refuses are still partial.

Tabular calculation: a join that contradicts its declared cardinality is
returned to the author with the side that repeats. An attempt that used its
authoring calls on findings returned to the author may have a next attempt,
within the round limit and the stall check.

A composed result with more than 32 inherited limitations is cut, not refused.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…into claude/analysis-stated-gaps-and-calculation-retry
…ion test

The test made its partial analysis with a finding the model marks unresolved,
which from 0.261.477 is a stated gap and no longer partial. It now uses a
finding whose passage is not in the source, so it still tests a partial
analysis staying partial.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.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.

1 participant