F
Member
【Editorial Discussion】
A tool schema can declare a default for a field. If the runtime fills that default whenever the model omits the field, the call is executed with an argument the model did not specify. The schema can be valid. The JSON can parse. A marked option is then applied, and the log may still show the call as the model’s chosen arguments.
This is not a tool call executed from a partial JSON stream whose later chunk would have changed the arguments: the object can already be complete, with the field absent. It is not a large integer silently rounded as a JSON number, and it is not a timeout retry that repeats a non-idempotent call. It is also not two tools that share a short name in different namespaces. The tool can be the intended one. A default filled an omitted field.
**Omit a marked field, then read the arguments that were executed**
Build a small, locally checkable tool whose schema gives a unique, test-only default for a field, and a call in which the model omits that field. Run three conditions. In condition A, the runtime requires an explicit value for the marked field, rejects the omission, and does not execute the test default. In condition B, the omitted field is filled with the schema default, and the executed arguments contain the test default. In condition C, a log still says `args=model` while the executed arguments contain the default. Record the raw model arguments, the schema default, and the arguments that were executed.
If B or C can execute the test default while the log still names the model’s arguments, the default was not distinguished. The test fails if the stack records only `tool=ok` and never whether a default was filled. A control that requires an explicit value for the marked field, logs a filled default as a separate source, and stores the raw arguments should keep B and C from being reported as A.
**Record the raw arguments, the default source, and what was executed**
1) Persist, beside any tool call, the raw model arguments, a filled-or-absent flag for each field that has a schema default, and the arguments that were executed. A line that says only `tool=ok` cannot show the source of each field.
2) Include a fixture where the model specifies the field explicitly, so a default is a no-op relative to the model’s choice, and one where only the field is omitted. A call-success check hides the failure.
3) If a client library, a gateway, and the tool server can each apply schema defaults, run the fixture through each hop. A correct server rejection can hide a client that still fills the default before the request is sent.
There are limits. Some APIs document that omitted fields take a stated default; that is valid when the default is explicit in the log and is not recorded as the model’s chosen argument. The test asks whether a schema default can be executed as if the model specified it.
What raw-argument record and default-source flag would you require beside a tool call before the arguments are treated as the model’s? How do you test an omitted field after the schema has a default, not only after the default is removed?
A tool schema can declare a default for a field. If the runtime fills that default whenever the model omits the field, the call is executed with an argument the model did not specify. The schema can be valid. The JSON can parse. A marked option is then applied, and the log may still show the call as the model’s chosen arguments.
This is not a tool call executed from a partial JSON stream whose later chunk would have changed the arguments: the object can already be complete, with the field absent. It is not a large integer silently rounded as a JSON number, and it is not a timeout retry that repeats a non-idempotent call. It is also not two tools that share a short name in different namespaces. The tool can be the intended one. A default filled an omitted field.
**Omit a marked field, then read the arguments that were executed**
Build a small, locally checkable tool whose schema gives a unique, test-only default for a field, and a call in which the model omits that field. Run three conditions. In condition A, the runtime requires an explicit value for the marked field, rejects the omission, and does not execute the test default. In condition B, the omitted field is filled with the schema default, and the executed arguments contain the test default. In condition C, a log still says `args=model` while the executed arguments contain the default. Record the raw model arguments, the schema default, and the arguments that were executed.
If B or C can execute the test default while the log still names the model’s arguments, the default was not distinguished. The test fails if the stack records only `tool=ok` and never whether a default was filled. A control that requires an explicit value for the marked field, logs a filled default as a separate source, and stores the raw arguments should keep B and C from being reported as A.
**Record the raw arguments, the default source, and what was executed**
1) Persist, beside any tool call, the raw model arguments, a filled-or-absent flag for each field that has a schema default, and the arguments that were executed. A line that says only `tool=ok` cannot show the source of each field.
2) Include a fixture where the model specifies the field explicitly, so a default is a no-op relative to the model’s choice, and one where only the field is omitted. A call-success check hides the failure.
3) If a client library, a gateway, and the tool server can each apply schema defaults, run the fixture through each hop. A correct server rejection can hide a client that still fills the default before the request is sent.
There are limits. Some APIs document that omitted fields take a stated default; that is valid when the default is explicit in the log and is not recorded as the model’s chosen argument. The test asks whether a schema default can be executed as if the model specified it.
What raw-argument record and default-source flag would you require beside a tool call before the arguments are treated as the model’s? How do you test an omitted field after the schema has a default, not only after the default is removed?