Repository navigation
Responses: one level of namespace tools, flattened for the engine, name+namespace restored on call items - #3610
Conversation
|
Thanks @devopsfortunato. This follows the shape we set out on #3266, and the work shows in the details. A flat name maps back to its child's To land, these need changing:
We added one commit on top with the CHANGELOG line under No device run is needed: this is request and response translation only, so tokens can't change.
|
|
All three review asks are addressed on the new head
The WebSocket fixture sets |
89ab9d2 to
9e379ff
Compare
|
Follow-up: the branch is now rebased on main ( |
|
Thanks @devopsfortunato. All three asks from our last review are resolved on this head:
I also checked that a request without namespace tools gets the same chat body and the same reply items as on main, so its prompt and tokens can't change. What remains:
No device run is needed: this is still request and response translation only.
|
9e379ff to
8b16b90
Compare
Refuse a child whose own name starts with its namespace prefix before a call can map back to another child. Refuse empty input namespaces consistently and test both raw and stored-message conversion. Write call name fields through the existing translation module so responses.zig stays at600lines; remove the unused allocator and fix the requested comments and documentation wrapping. Preserve main's generated corpus and add the namespace cases on their isolated step.
|
Thanks @devopsfortunato. We rebased while keeping main’s golden cases, refused ambiguous group-prefixed child names, and made empty namespaces consistently refuse. The source-size and small review notes are fixed; all 60 namespace tests pass, and restoring the old behaviors makes exactly the two new regressions fail. Full HTTP goldens remain unverified because this environment denies listener creation.
|
|
Verified the maintainer follow-up on the actual current head The listener-dependent validation gap is now covered on an isolated Linux aarch64 CPU runner with Zig 0.17.0:
Result: 23/23 steps succeeded; 1,671 passed, 8 skipped, 0 failed. Real-socket HTTP goldens: 324/337 and 55/55 equal, 0 unexpected differences (13 existing qualified differences). Namespace whole/streamed cases are included. The per-command umask avoids an unrelated config-fixture failure on group-writable temporary files; no security checks or shared settings were changed. Fresh same-checker lean comparison against rebased main Exact-head CI is also green: 9 successful checks, 2 nightly checks skipped. The actual Actions step results confirm both full Linux host shards, HTTP goldens, security, serving contracts and fuzz gates: https://github.com/ashhart/TensorFold/actions/runs/44434934713 . I refreshed the stale PR description so its head, stack and receipts now match this commit. Device/checkpoint runs were not performed, as requested for this translation-only change. |
|
Thanks @devopsfortunato. The source fixes are kept, and your same-head listener, golden and CI results close the earlier validation gap. No further namespace change or device run is needed. The one open point was ours: the 600-line limit covers source files, not the API documentation or the changelog, so nothing is left. It is ready to land.
|
8b16b90 to
2c452ae
Compare
Refuse a child whose own name starts with its namespace prefix before a call can map back to another child. Refuse empty input namespaces consistently and test both raw and stored-message conversion. Write call name fields through the existing translation module so responses.zig stays at600lines; remove the unused allocator and fix the requested comments and documentation wrapping. Preserve main's generated corpus and add the namespace cases on their isolated step.
Refuse a child whose own name starts with its namespace prefix before a call can map back to another child. Refuse empty input namespaces consistently and test both raw and stored-message conversion. Write call name fields through the existing translation module so responses.zig stays at600lines; remove the unused allocator and fix the requested comments and documentation wrapping. Preserve main's generated corpus and add the namespace cases on their isolated step.
2c452ae to
3c295e8
Compare
…amespace>__<tool>, and call items carry the child's name plus its namespace (ashhart#3266)
…paces refuse by name, and the namespace contract gains prompt-parity, WebSocket and golden tests (ashhart#3266)
Refuse a child whose own name starts with its namespace prefix before a call can map back to another child. Refuse empty input namespaces consistently and test both raw and stored-message conversion. Write call name fields through the existing translation module so responses.zig stays at600lines; remove the unused allocator and fix the requested comments and documentation wrapping. Preserve main's generated corpus and add the namespace cases on their isolated step.
Main's e35b78e binds stored Responses to the creating key (Reply.owner, store.History.owner and Store.put's owner, all ?[32]u8); the test's literals and its put take null, a request with no key identity.
3c295e8 to
955b622
Compare
Refuse a child whose own name starts with its namespace prefix before a call can map back to another child. Refuse empty input namespaces consistently and test both raw and stored-message conversion. Write call name fields through the existing translation module so responses.zig stays at600lines; remove the unused allocator and fix the requested comments and documentation wrapping. Preserve main's generated corpus and add the namespace cases on their isolated step.
|
Thank you @devopsfortunato. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
What this changes
Responses accepts one level of namespace function tools. The engine sees
<namespace>__<tool>; function-call items restore the child's name and namespace. Flat-only requests retain main's behavior. Children whose own names already start with their group's prefix are refused before an ambiguous history round trip, and empty input namespaces consistently refuse.namespacetools (Codex CLI sends its MCP and multi-agent tools as namespaces) #3266f5765b51254d7ec7ef1295e23cb500f328165600. The maintainer's rebase and follow-up commit8b16b9089177bf9573f19787cc86915deb6cdbc7are preserved; no duplicate source patch was pushed.atc overlap --json: checked 2026-11-19 15:20 UTC againstf5765b51254d7ec7ef1295e23cb500f328165600. Coverage remains incomplete (otherPullRequestsLimit,pullFilesUnavailable,timeLimit); it reports single-file conflicts with qwen27: serve the 27B pair, refuse what a pair cannot keep, and die with the peer #1434, idol: the octree and Gaussian decoders on CUDA (stacked on #1773, #1767; not yet run on a GPU) #1858, idol: BiRefNet background removal and preprocessing on Metal, so tf-idol-generate takes a raw photo (stacked on #1780) #1787, idol: tf-idol-generate, one picture to a 3DGS PLY end to end on Metal (stacked on #1773, #1774, #1775) #1780 and idol: the DINOv3 ViT-H+/16 image encoder on Metal (stacked on #1766) #1775, plus local-worktree conflicts. These predate this verification-only follow-up: its source tree is exactly the already-published maintainer head, with no additional source delta. This is not repository-wide conflict clearance. The issue-specific ownership check was complete and reported our existing claim with no competing PR.Checks on this head
8b16b9089177bf9573f19787cc86915deb6cdbc7.python3 tools/zig/lean_check.py, on fresh archived basef5765b51254d7ec7ef1295e23cb500f328165600and this head: 221 / 221 inherited problems, 0 new, verified withlean_new.py. responses.zig is exactly 600 lines, with a net-zero line delta against the rebased base; responses_translate.zig is 591 lines.umask 022; zig build test-server-cpu test-golden test-server-security test-pull-security -j2 --test-timeout 10m --summary all, Zig 0.17.0, task-local cache, no GPU execution: 23/23 steps succeeded; 1,671 passed, 8 skipped, 0 failed (1,679 total). The server CPU test artifacts account for 1,621 passes and 8 skips. HTTP goldens use a real local listener: 324/337 and 55/55 equal, 0 unexpected differences; the other 13 corpus differences are the existing recorded qualifications. Both whole and streamed namespace cases are included.zig fmt --check build.zig zigandgit diff --checkpass on this head.test-host-a,test-golden, kernel contract, serving contracts, security and fuzz gates; zig-b confirms successfultest-host-b. Windows, macOS developer tools, pytest, release paths and both benchmark-client checks also passed.Review requests addressed
defer_loadingand name-lessallowed_toolsentries. Namespace/flat twins retain chat-body and rendered-prompt equivalence coverage.<group>__is refused before output can round-trip to another tool; an ordinary flat function with that spelling remains valid. Empty namespaces refuse in both raw translation and the message converter.The maintainer's follow-up records 60 namespace tests passing and exactly the two new regressions failing when the old behaviors are restored. The current-head real-listener run above closes the HTTP-golden validation gap described there.
Receipt
f5765b51254d7ec7ef1295e23cb500f328165600, head8b16b9089177bf9573f19787cc86915deb6cdbc7; Zig 0.17.0; Linux aarch64 CPU-only validation,-j2, isolated cache. No checkpoint, model revision or GPU/backend toolchain was involved.Checklist