Repository navigation
Hold the first field add to an unread built-in type and return its schema - #4389
Merged
Merged
Conversation
Contributor
Author
|
Addressed: the hold now carries a code and is exempt from the failed_tools reply replacement and the refusal notice's others list; node-URI reads count. A second update_schema on the same type in the same round still goes through unheld (known limit). The declined-work hold has the same exposure (is_declined_work_hold is not exempted in either filter); not changed here. 🤖 Generated with Claude Code |
… not read, and return the schema The add-a-field procedure starts with reading the schema, but it is pinned only in a type-bound chat, and in an unbound chat the model added the field without reading. The first update_schema add_fields call on a built-in type the turn has not read via get_node is held once per type per turn; the result carries the type's fields and custom_fields and asks for the built-in and every-node statement. The retry goes through. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A model that stops after the hold to ask the user is doing what the hold asked, so the hold carries a code and is exempt from the unsurfaced-failure reply replacement and the refusal notice's failure list. A get_node read by nodespace:// URI counts as the read. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
mstomar125
force-pushed
the
issue-4341-read-schema-first
branch
from
November 26, 2026 12:07
8805cae to
9986f48
Compare
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.
The read-the-schema half of the add-a-field procedure (the every-node sentence was already added after the turn). In an unbound chat the procedure skill is not pinned, and the model called
update_schemawithadd_fieldson a built-in type without reading it.schema_to_read_before_adding_a_fieldholds the first such call per built-in type per turn: the call is not run, and the error result carries the type'sfieldsandcustom_fields(read throughget_node) and tells the model to say the type is built in and the field will exist on every node of the type in this database, then repeat the call. Aget_nodeof the type earlier in the turn counts as the read; user-made types and otherupdate_schemachanges are not held. The refused call is released from the duplicate-call set so the retry is not read as a loop.packages/agent lane: signed off by the owner for this batch. Not security-sensitive.
Tests (agent_loop::tests, 432 pass): 4 new, each mutation-checked on its own, each failing under its mutation:
Six existing field-added tests now script the read first.
bun run quality:fixandbun run test:changedpass.Not verified: the live 4B model (CPU/GPU) following the hold.
Closes #4341
🤖 Generated with Claude Code