Skip to content

Ask a calculation's author again after an incomplete reply, carry the last program forward, and log remaining failure causes (0.261.478) - #1973

Merged
Paul Lizer (paullizer) merged 1 commit into
Developmentfrom
claude/calculation-next-attempt-and-diagnostics
Nov 22, 2026
Merged

Paul Lizer (paullizer) merged 1 commit into
Developmentfrom
claude/calculation-next-attempt-and-diagnostics

Conversation

@paullizer

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1972, from the 0.261.477 run of 28 scenarios: 51 of 62 prompts completed, and seven of the eight partial prompts were tabular calculations. Version 0.261.478.

Calculations

  • A cut-off reply is asked again. The authoring loop had a branch for a reply that ends before the program is complete, but it read exc.rule; the harness error keeps its rule in validation_rule, so the branch never ran and the step failed on the first such reply. It now runs, covers an empty reply as well, and keeps a finding the author already holds across such a reply.
  • An empty output value no longer fails a finished result. An output field that does not declare nullable could evaluate to empty while its result column was declared non-nullable, so the result was refused when retained (result_schema_invalid) with nothing returned to the author. The column now says what the records hold. Reproduced offline.
  • A next attempt starts from the last program and its finding. Read-only, from the previous attempt of the same user, conversation and turn. The program is model input only and is never run.
  • An invalid key cell is returned to the author (event_key, detail_key, cumulative_partition).

Document actions

  • A paged PDF or PowerPoint read no longer fails when the document record is written between two pages. The cursor is bound to the document, its uploaded version and its bytes, not the record's storage revision. Different bytes, another version or another document still refuse the cursor. Two existing tests asserted the earlier rule and are updated.

Diagnostics (closed codes and counts only, no content)

  • Every model_failed names what came back (request_failed, reply_empty, reply_refused, generation_incomplete).
  • An unavailable completeness check logs the input-budget numbers and where the limit came from.
  • A stopped action names the check that stopped it (failure_rule).
  • A refused table selection in the chat tabular plugin logs its rule, function and choice count.
  • A complete document analysis logs how many gaps it stated, per scope.

Not in this change

  • The completion budget is unchanged. If replies are cut off because the program does not fit, asking again will fail the same way; the new rule in telemetry will show it.
  • The completeness check whose input exceeds the model's input budget, context_unavailable after a background resume, and the planning refusals are explained or logged but not fixed.

Testing

  • New and updated functional tests in test_orchestration_relational_results.py, test_orchestration_harness_execution.py, test_tabular_relational_calculations.py, test_native_inspection_request_contract.py, test_native_document_fidelity_pipeline.py, test_task_completeness_engine.py, test_orchestration_document_action_binding.py, test_orchestration_server_continuation.py.
  • 42 related test files run: 10 have failures, with the same counts on the commit before this change.
  • scripts/check_cosmos_response_boundaries.py: 0 review gaps (one new read-only owner reviewed, 20 renewed for module-only changes).
  • Not run against a deployed application.

Details: docs/explanation/fixes/TABULAR_CALCULATION_NEXT_ATTEMPT_FIX.md, docs/explanation/fixes/NATIVE_INSPECTION_CURSOR_REVISION_FIX.md.

🤖 Generated with Claude Code

… last program into the next attempt, and log why the remaining failures happen (0.261.478)

From the 0.261.477 run of 28 scenarios: 51 of 62 prompts completed, and seven of
the eight partial prompts were tabular calculations.

Calculations
- The authoring loop's branch for a cut-off reply read `exc.rule`; the harness
  error keeps its rule in `validation_rule`, so the branch never ran. It now
  runs, covers an empty reply as well, and keeps a finding the author already
  holds across such a reply.
- An output field that does not declare `nullable` could evaluate to empty while
  its result column was declared non-nullable, so a finished result was refused
  when retained. The column now says what the records hold.
- A next attempt is given the previous attempt's last program and its finding on
  its first call. Read-only, same user, conversation and turn; never run.
- An empty or untyped key cell (event_key, detail_key, cumulative_partition) is
  returned to the author.

Document actions
- A paged PDF or PowerPoint read no longer fails when the document record is
  written between two pages: the cursor is bound to the document, its uploaded
  version and its bytes, not the record's storage revision.

Diagnostics (closed codes and counts only)
- Every model failure names what came back.
- An unavailable completeness check logs the input-budget numbers.
- A stopped action names the check that stopped it.
- A refused table selection in chat logs its rule and function.
- A complete document analysis logs how many gaps it stated.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@paullizer
Paul Lizer (paullizer) merged commit 7f0e025 into Development Nov 22, 2026
14 checks passed
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