Files
DeepSeek-Reasonix/internal/assembly/boot/effect_tool_declaration_test.go
esengine 0bb0f44785 refactor(delegation): sub-agents return prose, not a structured completion report
complete_subtask, the host adjudication of its criteria and the 'lowered by the
host' note are gone, with the handoff audit channel and its metrics, trajectory
field and benchmark columns. A delegated child ends the way any turn does and
the parent reads its last reply.

The host's own receipts appended to a child's reply and the write-scope check
stay: they need a record of what the child changed, which is replaced with the
evidence ledger later.
2026-11-02 07:16:52 -08:00

24 lines
740 B
Go

package boot
import (
"testing"
)
// Declaring a conditional tool must not put it in a session that was not
// offered it: the request's tool list is the cache-stable prefix.
func TestEffectConditionalDeclarationsDoNotReachTheProviderPrefix(t *testing.T) {
isolateConfigHome(t)
t.Chdir(robustTempDir(t))
writeUserConfig(t, userModel)
req := firstTokenProfileRequest(t, "")
sent := map[string]bool{}
for _, schema := range req.Tools {
sent[schema.Name] = true
}
for _, n := range []string{"advise", "best_of_n", "apply_isolated", "discard_isolated", "system_one", "submit_plan", "conclude_no_changes", "review_report"} {
if sent[n] {
t.Errorf("%s is declared conditional but reached the default request tools", n)
}
}
}