Crates move from a flat crates/ folder into four folders by what they reach:
foundation (core, http, features, native, media), api (hosted services
that take a key), local (ComfyUI, SAM 3 and the built-in engines) and app
(client, widgets, agents, MCP gateway).
Package names are unchanged, so consumers pinned to a git revision are not
affected. Path dependencies need the new folder.
Every path that named a crate folder is rewritten: workspace members and
dependencies, relative paths inside crates (manifests, #[path] test
support, include_str!), docs, consumer-smoke and the mutation tools. The
TLS scan in ai-http now walks every group. docs/LAYOUT.md describes the
folders and where a new crate goes.
* test(ai-native): read access lists in-process in the Windows tests
The owner-only tests read each file's access list back with PowerShell's
Get-Acl. That call failed for every test on the windows-latest CI runner
after #184 merged, while the library code itself was not involved. The
tests now read the owner and list with GetNamedSecurityInfoW, through a
test-only helper in the named unsafe module, and the owner parser no
longer assumes a group section.
* test(ai-native): accept the LA alias for the built-in Administrator
CI runners use the machine's built-in Administrator account (RID 500),
which SDDL writes as LA instead of its full SID. The owner-only tests
compared against the full SID and failed on windows-latest; the files
themselves were correct.
* fix: bound what a provider reply costs once parsed, not only its bytes
A byte cap did not bound memory: a reply of many tiny objects costs about a
hundred times its size as a serde_json Value. craft_ai_http::json::parse
builds the same Value but charges an estimate of each allocation against a
budget and refuses the reply once it runs out.
The OpenAI, Gemini, Vertex, declarative and ComfyUI readers now parse
through it. OpenAI also gets a byte cap per kind of reply (model list
8 MiB, chat 32 MiB, images 128 MiB), a budget per stream line, and the
structured-output re-read keeps the chat budget. Deliberate-bug cases are
in tools/mutation/mutation_reply_parse.py (group rp).