Repository navigation
Build the final event for a scoped model and return four more findings to their authors (0.261.495) - #1986
Open
Paul Lizer (paullizer) wants to merge 8 commits into
Open
Build the final event for a scoped model and return four more findings to their authors (0.261.495)#1986Paul Lizer (paullizer) wants to merge 8 commits into
Paul Lizer (paullizer) wants to merge 8 commits into
Conversation
…gs to their authors (0.261.493) From the run on 0.261.490. No prompt, tool description or instruction text is changed; where a model is told more, it is in the typed finding it already receives. - Every run ended with a TypeError after its answer was saved: the answer model's metadata gained model_scope_type and model_scope_id, which are spread into build_run_done_event, and the event did not take them. The client was sent "failed, message not saved" for a run recorded as completed. The event takes and carries both fields. - A calculation program that failed its schema was returned as "schema, step 0". Each departure is now located with the planner's schema_error_location and up to eight go back to the author: keyword, path, the operation the step names and what the schema allows. - An action whose model started no function call ended its step (action_results_missing). That reply is returned to the action's model once, as data, with the functions it was offered; a second ends the step. - Requests for a model the installed tokenizer library does not know were sized in UTF-8 bytes against a limit in tokens. The model catalog declares the tokenizer of 33 OpenAI text models, with evidence from OpenAI's tiktoken model table (v0.14.0), and the budget reads it. The schema field is optional and schemaVersion stays 4. - An aggregate that meets a value it cannot read reports the value's kind and how many of the measure's values are unreadable. - Records that lacked their cause now carry it: a file step that fails before any render attempt, a request refused at planning (earlier attempts and where it was raised), a completeness report with a rejected answer quote, and a refused question to the user (its rule; outside the harness). Docs: RUN_ENDING_EVENT_AND_RUN_490_FINDINGS_FIX.md, logging-tags.md, MODEL_CAPABILITY_CATALOG.md, and the open items of ORCHESTRATION_REACTIVE_LOOP_PROPOSAL.md updated from the 0.261.490 run. One storage owner in functions_user_input.py is re-reviewed in cosmos_response_boundaries.json; its body is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Development took 0.261.492 for the V2 upload queue while this branch was being written, so this change is 0.261.493. The only conflict is the VERSION line in config.py. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Development took 0.261.493 for the request intent check and 0.261.494 for the full functional suite in CI while this branch was open. The version is renamed in the files this change added or edited: the fix document, the logging and catalog references, the proposal's open items, test headers and names, and one Cosmos registry note. No code changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Development took 0.261.493 for the request intent check and 0.261.494 for the full functional suite in CI. The only conflict is the VERSION line in config.py; the planner and the Cosmos registry merged without one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Five entries under Bug Fixes: the run-ending event, schema findings for calculation programs, the action reply without a function call, the declared tokenizer in the model catalog, and the failures that now record their cause. The split release notes pages are regenerated with scripts/build_release_notes_pages.py. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…1.495) A refused question names the rule that refused it, which says which state was missing but not how the run came to be without it. Finding the cause would have taken a second deploy and run. - The refusal record also carries how the run stood: whether it had an agent execution and a continuation, the continuation's mode, whether it was resumed, whether the continuation and the request each allow a question, and the agent's depth. - Three more records with the same fields: the question function offered to an agent (with whether the kernel already held it), a question opened (with whether this call saved it), and an answer returned to the agent. Before these, a question that opened left no record. Flags, counts and closed codes only. No prompt or instruction text changed, and a refusal still ends the agent's answer. One Cosmos registry owner in functions_user_input.py is re-reviewed; its body is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…now uses The planner's refusal records name where a refusal was raised, through exception_log_fields. The offline loader in test_support runs the planner's definitions with only the dependencies it lists, and that one was not listed, so every refused plan in test_orchestration_research_selection.py raised a NameError (17 failures). The evaluation script that shares the loader was affected the same way. The loader now loads the real helper from functions_appinsights.py, as it already does workflow_log_context. The file passes again with the counts it has on Development: 19 passed, 24 expected failures, 51 subtests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…261.495) Every refusal from the ask-the-user function ended the agent's answer, including one its author could correct: a specification that is not JSON, a requested schema outside the flat-object restriction, or a choice hint its field does not allow. The model was never told. - A fault in the specification is now the function's result, a finding with the code, the rule, where, and that no question was opened. The model can call again with a corrected specification. One invocation's model is told up to twice; the next faulty specification is refused as before. - What counts as a fault in the specification is typed on the refusal (UserInputError.in_specification), not inferred from its code. - To say where, the validators report typed problems. The schema restriction has one implementation (elicitation_schema_problems), and validate_elicitation_schema renders the same sentences from it. normalize_choice_hint raised one of three sentences for sixteen conditions; each now raises ChoiceHintError with its rule and position. The sentences and what is accepted are unchanged. - A faulty choice hint was refused as input_unavailable. It is now a specification fault. - Positions are indexes. A field's name, the type it asked for and a choice's text are never repeated, in the finding or in the log. Refusals that are not about the specification still end the answer. No prompt, tool description or instruction text changed. specification_not_text_or_too_large is split into specification_not_text and specification_too_large. One Cosmos registry owner in functions_user_input.py is re-reviewed; its body is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ten changes from the run on 0.261.490: one error that affected every run, four findings that now go back to the model that can correct them, a tokenizer declaration in the model catalog, and five failures that now record their cause. Version 0.261.495 (renamed from 0.261.493 after
Developmenttook 0.261.493 and 0.261.494).No prompt, tool description or instruction text is changed. Where a model is told more, it is in a typed finding: one it already receives, or the result of the function it called.
Changes
1. Every run ended with an error after its answer was saved
Headless message publication was not confirmedwith aTypeError. The answer was saved and the outcome recorded as completed; the client that started the run was then sent an error and a final event saying the run failed and its message was not saved.build_run_done_event. It gainedmodel_scope_typeandmodel_scope_id, which the event did not take.2. A calculation program that failed its schema was told only "schema"
schema_error_location, which the planner already uses. Up to eight go back to the author: keyword, path, the operation the step names and what the schema allows. A property the author invented is counted, never named.3. An action whose model called no function ended its step
action_function_call_missing), with the functions it was offered. A second such reply ends the step as before. One more model call per occurrence.4. Request size was counted in bytes for models the tokenizer library did not know
gpt-5andgpt-5-*, notgpt-5.4orgpt-5.6-sol.model_capabilities.json: 33 OpenAI text records declaretokenizer, each with verified evidence from OpenAI's tiktoken model table as published for v0.14.0.model_capabilities.schema.json: the field is optional andschemaVersionstays 4. A declaration needs verified evidence on the record; a hosting profile cannot carry one. The previous catalog is still valid under the new schema.gpt-chat-latestor any non-OpenAI model; those keep the byte bound.5 to 9. Failures that did not record their cause
10. A faulty question specification ended the agent's answer
Every refusal from the ask-the-user function ended the agent's answer, including one the model that wrote the question could correct.
{"finding": {...}}: the code, the rule, where, and that no question was opened. The model can call again with a corrected specification.SPECIFICATION_FINDING_LIMIT). The next faulty specification is refused as before.in_specification), not inferred: the text is not a string, is too large, is not JSON or is not an object; the requested schema is outside the flat-object restriction; a choice hint is one its field does not allow.elicitation_schema_problemsis now the one implementation of the schema restriction.validate_elicitation_schemarenders the same sentences from it, so the planner's path is unchanged.normalize_choice_hintraised one of three sentences for sixteen conditions. Each now raisesChoiceHintErrorwith its rule and position. The sentences, and what is accepted, are unchanged.input_unavailable, as if the store had failed. It is now a specification fault.Ask-the-user records
The rule on a refusal says which state was missing, not how the run came to be without it. Five
[USER_INPUT]records now carry how the run stood: whether it had an agent execution and a continuation, the continuation's mode, whether it was resumed, whether the continuation and the request each allow a question, and the agent's depth.The question function was offered to an agent.: one per agent invocation that may ask, with whether the kernel already held the function. Each such invocation builds its own kernel, so a kernel that already holds it has outlived its invocation.An agent's question to the user was opened., with whether this call saved the question or found it saved.An agent received the answer to its question.A question's specification was returned to its author., with the rule, the position and the finding count.Before these, a question that opened left no record. Flags, counts and closed codes only: no part of a question or an answer, and no raw identifier.
Documentation
docs/explanation/fixes/RUN_ENDING_EVENT_AND_RUN_490_FINDINGS_FIX.mddocs/reference/logging-tags.md: the new fields and records.docs/explanation/features/MODEL_CAPABILITY_CATALOG.md: the declared tokenizer.docs/explanation/features/ORCHESTRATION_REACTIVE_LOOP_PROPOSAL.md: open items updated from the 0.261.490 run.docs/explanation/release_notes.md: the 0.261.495 section, with the split pages regenerated.Testing
scripts/run_tests.py functional(every Python functional test file, each in its own process) on the merged tree with the release notes: 1,971 of 2,021 files passed, 6 skipped as known failures, 50 failed. Accounting for the 50:test_orchestration_research_selection.pyfailed 17 tests because the planner's refusal records callexception_log_fields, which the offline loader intest_support/orchestration_research.pydid not supply. The loader now loads the real helper. The file has the same counts as onDevelopment(19 passed, 24 expected failures, 51 subtests), and the 32 test files that share the loader pass.node_modules(25) and thedocxcomposeorredis_entraidpackage (6). CI installs these.Developmentwhen run alone on the same machine.test_orchestration_harness_execution.py(727 passed) andtest_orchestration_document_loader_reliability.py(28 passed), both of which this PR changes.test_v2_elicitation_answers.pyfails one test the same way onDevelopment(it needsnode_modules).scripts/check_cosmos_response_boundaries.py: 0 review gaps. One owner infunctions_user_input.pyis re-reviewed; its body is unchanged.node_modules.Not verified
_finishstill reports the run to its client as failed. That is what made one missing argument a failure for every run; it is recorded as an open item.tokenizerneedsminimumAppVersion0.261.495.🤖 Generated with Claude Code