Skip to content

Correct a Word comment request before any read and log the sizes of a request that did not fit (0.261.483) - #1982

Open
Paul Lizer (paullizer) wants to merge 1 commit into
microsoft:Developmentfrom
paullizer:claude/known-cause-fixes-483
Open

Paul Lizer (paullizer) wants to merge 1 commit into
microsoft:Developmentfrom
paullizer:claude/known-cause-fixes-483

Conversation

@paullizer

@paullizer Paul Lizer (paullizer) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Three faults with a known cause from the 0.261.482 test run, and the written record of the redesign that follows them. Version 0.261.483.

Changes

1. A Word comment request with a paging argument ended its step

  • The accessibility report refused a request for a Word file's comments that also set native_section, native_cursor, sheet_name or cell_range, with a plain ValueError. The action runner ends a step on any error returned by a bound document read (document_action_read_failed).
  • The refusal is now a typed NativeInspectionRequestError (native_word_comments_arguments_unsupported) raised by the shared validator, renamed validate_native_report_request.
  • The action runner checks it before any read and returns it to the action's model once, naming the refused arguments. A second refused request ends the step as before, and a refused request reads nothing.
  • No prompt or tool description changed. The request is refused, not silently narrowed.

2. The sizes of a request that did not fit were not in telemetry

  • From 0.261.478 the sizes were logged under the budget audit's own names (input_tokens, input_budget_tokens, ...). The telemetry filter replaces the value of any key containing token with a present flag, so three runs reported that a check's input did not fit without saying by how much.
  • context_budget_log_fields carries the counts and closed codes under names telemetry keeps (input_size, input_budget, output_reserve, budget_decision, size_estimator, ...).
  • It is used for an unavailable completeness check and for an answer step whose own input does not fit, which logged no sizes before.
  • The filter's treatment of keys containing token is unchanged. Three code keys are added to its allow-list.

3. A background structured export failed on start

  • Its processor passed semantic_checkpoint_run to _generate_and_checkpoint_batch_window_entries, which takes the run as its first argument and has no such parameter. The keyword is removed.
  • New functional_tests/test_module_call_signatures.py reads every call an application module makes to one of its own top-level functions and fails on an argument the function does not take. It reports this call on the previous version and nothing on this one.

Documentation

  • docs/explanation/fixes/WORD_COMMENT_REQUEST_AND_BUDGET_SIZE_TELEMETRY_FIX.md
  • docs/reference/logging-tags.md: the new size fields and validation code.
  • docs/explanation/features/ORCHESTRATION_REACTIVE_LOOP_PROPOSAL.md: open items updated from the 0.261.482 run; new section 6 records the following work (a completeness check that judges each claim, corrections that work from findings, an answer step that writes from evidence in as many calls as it needs). Section 6 is design only; none of it is built here.

Testing

  • The new and changed tests pass: the action runner with the real Document Search function, the service-level typed refusal, the budget audit through the real telemetry filter, the completeness diagnostic, and the call-signature check.
  • functional_tests/test_orchestration_*.py (one file known to stall left out), run on this branch and on unchanged Development: 8,265 tests here and 8,257 there. The same 390 tests fail on both; none is new, and the 8 tests added to that set pass. Those 390 were not investigated, and the files were split across parallel processes for both runs.
  • scripts/check_cosmos_response_boundaries.py: 0 review gaps. Nine owners in the two changed modules are re-reviewed; their bodies are unchanged.

Not verified

  • Not run against a deployed application.
  • The export fix is verified by reading the call, not by running a background export. The one existing test of that generator fails before and after this change for unrelated reasons and was not repaired.
  • Not changed: PDF and PowerPoint inspection still refuses a worksheet filter with a plain error (not observed), and the export's other branch does not pass the run its generator's parameter was added for.

🤖 Generated with Claude Code

… request that did not fit (0.261.483)

Three faults with a known cause from the 0.261.482 run, and the record of the
redesign that follows them.

- A request for a Word file's comments that also set a paging or filter
  argument (native_section, native_cursor, sheet_name, cell_range) was refused
  with a plain ValueError, which ended the action step
  (document_action_read_failed). The refusal is now a typed
  NativeInspectionRequestError from the shared request validator. The action
  runner checks it before any read and returns it to the action's model once,
  naming the refused arguments. No prompt or tool description changed.
- The sizes of a request that did not fit the model's input budget were logged
  under names containing "token", which the telemetry filter replaces with a
  present flag. context_budget_log_fields carries them under names telemetry
  keeps, with the estimator that counted them, for an unavailable completeness
  check and for an answer step whose own input does not fit.
- A background structured export passed semantic_checkpoint_run to
  _generate_and_checkpoint_batch_window_entries, which takes the run as its
  first argument and has no such parameter (TypeError on start). The keyword
  is removed. test_module_call_signatures.py reads every call an application
  module makes to its own top-level functions and fails on an argument the
  function does not take.

ORCHESTRATION_REACTIVE_LOOP_PROPOSAL.md: the open items are updated from the
0.261.482 run, and section 6 records the following work: a completeness check
that judges each claim, corrections that work from findings, and an answer
step that writes from evidence in as many calls as it needs.

Nine storage owners in the two changed modules are re-reviewed in
cosmos_response_boundaries.json; their bodies are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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