Skip to content

Return an unavailable document ID to the planner and a cumulative order date finding to its author (0.261.481) - #1977

Merged
Paul Lizer (paullizer) merged 1 commit into
Developmentfrom
claude/plan-document-correction-and-cumulative-order
Nov 22, 2026
Merged

Paul Lizer (paullizer) merged 1 commit into
Developmentfrom
claude/plan-document-correction-and-cumulative-order

Conversation

@paullizer

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1975, from the 0.261.478 run: 66 prompts reached the harness; 50 completed, 9 were partial, 2 failed and 5 were refused at planning. Version 0.261.481.

Planning

  • A document ID outside the request's readable set is returned to the planner. Five follow-up prompts were refused with source_unavailable / document_authorization_required on the first proposal, with two corrections unused, because that refusal was not among the codes the planner is asked to correct. It now is. The correction states the rule and names the IDs the planner wrote (model-only feedback, never logged).
  • What does not change: the set of documents a plan may name. The corrected plan is validated against the same set, a plan naming the ID again is refused when the corrections are used, and the executor authorizes every source again before reading it. The correction does not say whether a document exists or who may read it.

Calculations

  • A cell that is not a date in the column a cumulative sum is ordered by is returned to the author (relational_date_invalid, check cumulative_order). One calculation ended on it with two of three authoring calls unused. The effective-date column's finding was already returned; an invalid cumulative value still is not.
  • The record of a returned finding says where it is and whether it repeats. "Calculation program returned to its author" gains the step index, operation, role and indices, and correction_repeated. Closed tokens and counts only.

Not in this change

  • Two runs failed when a background resume had no signed-in session (external_identity_session_unavailable). The cause is known; which side should resume such a run is a design decision and is not made here.
  • A calculation told numeric_value_is_invalid three times is not fixed; the new record will say whether it was one place or three.
  • completeness_incomplete on one compose step and two partial document analyses are not traced.

Testing

  • New and updated: test_orchestration_document_planning_recovery.py, test_orchestration_planner_contract_recovery.py, test_orchestration_relational_results.py.
  • Two existing tests asserted that planning ends when a plan names an unselected document. They now assert that such a plan is never accepted and that a planner naming it again is refused.
  • 232 orchestration and relational test files run on this change and on the commit before it: the same results, apart from the tests above. One file failed once under parallel load and passes alone (723 tests).
  • scripts/check_cosmos_response_boundaries.py: 0 review gaps.
  • Not run against a deployed application.

Details: docs/explanation/fixes/PLAN_DOCUMENT_UNAVAILABLE_CORRECTION_FIX.md, docs/explanation/fixes/DIAGNOSTIC_RULE_FIELDS_TELEMETRY_FIX.md.

🤖 Generated with Claude Code

…er date finding to its author (0.261.481)

A plan naming a document outside the request's readable set ended planning on
the first proposal with corrections unused. It is now returned to the planner
with the IDs it named; the set a plan may name is unchanged and a plan naming
one again is refused.

A cell that is not a date in the column a cumulative sum is ordered by is
returned to the calculation's author, like the effective-date column. The
record of a returned finding gains its location and whether it repeats the
finding the author already held.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@paullizer
Paul Lizer (paullizer) merged commit e555487 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