* docs(formats): classify single-app formats and add ASAR/AXML/ARSC boundary tests (storytold/craft-libs#778)
* fix(formats): accept Truncated or Malformed for short ARSC header
* test(formats): use < 8 byte header in arsc short header test
* Cut over MCP line and JSON-RPC envelope framing to craft-libs (#778)
* mcp: clone request id before worker thread spawn
* chore: update Cargo.lock for craft-jsonrpc
* mcp: add deterministic stdio transcript parity and framing bounds tests
* chore: repin craft-jsonrpc and craft-mcp-server to craft-libs main
* Claim R1.5: mcp-http-cleartext-guard
* Validate MCP HTTP URLs and refuse cleartext or loopback redirects (R1.5)
- Parse `url_allowed` inputs with `ureq::http::Uri`, reject userinfo (`@`), validate `https://` hosts/IPv6 brackets and `u16` ports, and delegate `http://` loopback checks to `craft_anything_platform::standin_server::host_is_loopback` so malformed or spoofed authorities (`http://[::1].evil.example.com`, `http://evil.example.com\@127.0.0.1`, `https:///...`) cannot pass.
- Trim `ServerUrl::url` in `Http::new` to match `url_allowed`.
- Enforce `.https_only(true)` on `https://` MCP requests (reporting `RequireHttpsOnly` without echoing the redirect target URI) and `.max_redirects(0)` on loopback `http://` requests so plugin headers and payloads never follow redirects off loopback or across cleartext HTTP.
* Reject mid-host brackets and signed ports, and drain POST bodies in tests (R1.5)
- Reject mid-host square brackets (`!host.contains(['[', ']'])`) and leading `+` signs on ports across `https://` and loopback `http://` authorities in `url_allowed`.
- Drain incoming HTTP `POST` headers and `Content-Length` bodies (and clear inherited socket non-blocking mode) before sending `302` replies in the redirect regression fixtures.
* Follow loopback MCP HTTP redirects that stay on this computer (R1.5)
* Keep MCP redirect hops in one deadline, cancellable, and without configured headers off the configured origin (R1.5)
* Lengthen the per-hop delay in the MCP redirect deadline test and update STATUS (R1.5)
* Keep MCP redirect hops within the caller's deadline and the configured origin (R1.5)
Pass the caller's deadline into post without a one-second minimum, compare origins by scheme, host and effective port, refuse a session started by another origin, keep the path for query-only redirects, give the cancellation notice 2 s, and report a late answer body as a timeout.
* fix(engines): keep malformed MCP redirect targets out of errors and send cancel notices only for sent calls (R1.5)
* Discard the cached MCP client after a send-side protocol error (R1.5)
---------
Co-authored-by: Tanish Manku <tmanku.dev@gmail.com>
* Check both comparison backends before building either (R2.9)
* Keep the API refusal test independent of provider keys (R2.9)
---------
Co-authored-by: Tanish Manku <tmanku.dev@gmail.com>
* Check which list lookups run at the summary cap (R5.7)
* Record the list lookup boundary regression (R5.7)
* Use the workspace minimum Rust API for the lookup test (R5.7)
---------
Co-authored-by: Tanish Manku <tmanku.dev@gmail.com>
* Claim R2.2 Codex asset tool approval (#1464)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Let a Codex builder call the paid asset tools within the project's budget (#1464)
codex exec can't ask for approval, so it refused assets_image_generate and
assets_model_generate before our server saw the call. Approve them on Codex's
side too, like rebuild_start: our own limits still apply (the project's
generated-assets switch, its budget, and the question before going over it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Tanish Manku <tmanku.dev@gmail.com>
* Find a build only Cargo places by reading files, starting no process
The file lookup (the Project screen's Play and "Pin this build", a saved Live
pin) now also reads CARGO_BUILD_TARGET_DIR, build.target-dir in Cargo's home
config, and the closest workspace's target/. Every folder outside the app still
gives only a program whose build record names the app's sources.
* Say which of Cargo's rules the file lookup approximates; read a Cargo.toml only when it is a file under 1 MiB
A relative CARGO_HOME means no home config is read (not ~/.cargo).
* Bound the read of Cargo's config too; a decoy for CARGO_BUILD_TARGET_DIR; STATUS says what a Live pin asks and which rules aren't followed
* Test that Play looks in the folder Cargo names; say exactly which settings files are capped and what asks Cargo
---------
Co-authored-by: Tanish Manku <tmanku.dev@gmail.com>
* Claim the live Go project checks (R2.7)
* Exercise rebuild checks with a real Go project (R2.7)
* Record live Go project check evidence (R2.7)
---------
Co-authored-by: Tanish Manku <tmanku.dev@gmail.com>
Every job that changes an AI hands back a snapshot of the AI list and its options, and the app showed whichever finished last. A snapshot read before a save but finished after it put the old values back on screen until the next refresh, which is also why claude_codes_account_folder_is_set_in_settings failed about one CI run in ten. Snapshots are now numbered as they're read, and one older than the snapshot already shown is dropped.
Co-authored-by: Tanish Manku <tmanku.dev@gmail.com>
* Claim unreadable folder entry names (R3.11)
* Report unreadable entry names without merging file identities (R3.11)
* Format unreadable entry regression iterator
* Keep invalid filename fixtures off Apple targets
APFS rejects the raw filename bytes used by the two disk-backed regressions.
Keep the iterator-only limit coverage enabled on Unix and record the fixture
constraint in the contributor pitfalls.
Signed-off-by: Afloat <ShuffleMonkey@163.com>
---------
Signed-off-by: Afloat <ShuffleMonkey@163.com>
* Claim R2.9: start a new Claude Code conversation when the saved one is too long (#2042)
* Start a new Claude Code conversation when the saved one has grown too long (R2.9)
A conversation past what the model accepts made Claude Code refuse every later turn with "Prompt is too long", and Try again resumed the same conversation, so the project was stuck (#2042). That refusal is now read like a saved conversation that isn't on this computer: the saved session is dropped and the next message starts a new one from what the project already has.
---------
Co-authored-by: Tanish Manku <tmanku.dev@gmail.com>
* Correct what Arch's Ghidra package installs, and what a Ghidra file setting accepts
Arch's extra repository ships ghidra (12.2), with /usr/bin/ghidra and
/usr/bin/ghidra-analyzeHeadless as links into /opt/ghidra; the earlier
text said it had no package and described a start script that was
written for the test. That real layout is found with each setting.
A Ghidra file setting is kept when it is a short text file naming the
launcher, which is not checked to run it; the wording said it was.
* Say that any file in a Ghidra folder gives its launcher, and that only Arch's own package was tried
A note added while an API-backend builder worked waited for its whole turn to end, which can be
hundreds of steps. After each tool step the loop now claims the waiting notes and adds them
after that step's results, in the wording the coding-agent hook uses. Claimed notes are marked
read, so the build shows them in the feed and doesn't send them again after the turn.
An API backend with requests_per_minute set held each request back without a word, so a paced
build looked stuck. A wait of two seconds or more now puts a line in the feed saying how long
it waits and why (#668).
The schema listing dropped its b-tree walk's incomplete flag and notes, so a schema with an
unreadable child page or row was listed as the whole schema, with complete coverage. The
overview now marks such a schema truncated and carries the walk's first notes, and
db_sqlite_show adds a schema_incomplete limitation, partial coverage, and an unknown-table
error that says only the listed part was searched.
The walk listed a folder's files before opening any of its subfolders, so when the file limit stopped it, a file inside an earlier folder was dropped for later ones and the inventory's sort couldn't bring it back. It now opens a subfolder where its name sorts in its parent, and results are sorted folder by folder (`path_order`), so a limit cuts the tree where a listing of it would end. Only the listings of the folders on the current path are held, within the same entry limit. When the entry limit runs out early, fewer entries are reported than before: the honest prefix.
i18n::trf filled {name} placeholders with one replace per argument, so a value that looked like
a later placeholder was filled in turn. It now fills them in one pass over the translated
template: inserted values stay literal, and unknown names and stray braces are kept as written.
The saved-builder replacement notice uses it instead of its own split.
Picking game A, then B, then A again while the first look at A was still running could show the older result, because the screen matched an answer to the folder's path. Each look and each archive listing is now matched to the job that started it, so a repeated pick ignores the older answer, and a job that fails settles only its own request: one a newer pick replaced is logged and says nothing. A folder whose name isn't valid text used to be sent under a changed name and left the screen loading forever; picking one now says its name can't be read and asks for another folder. A failed save of a picture or asset also says so.
Review follow-up: folder_picked now refuses a folder whose name isn't text before dispatching either tool, with a message, and sends the exact UTF-8 path. Game files keeps one map of in-flight jobs with their kind and whether the screen still waits for them, instead of a looks list and a listing id. A worker failure is always logged; a current folder scan or listing clears only its own spinner and says so, a failed triage holds neither, and a superseded job says nothing. Export save errors say so without stopping the archive listing, even when the archive path matches a reopened listing.
The same-folder regression now starts both looks through folder_picked and feeds results through CraftApp dispatch; new regressions cover the non-text refusal, a failed triage keeping the scan running, a superseded failure staying quiet, and an export error not clearing loading.
Picking game A, B and A again while the first A look ran could still apply the older A result, because the screen compared the shown folder's path. Worse, a folder whose name has bytes that aren't text was sent as a lossy display string, so every completion failed the same path check and the screen loaded forever. act now returns its job id; GameFiles records the folder looks and the archive listing still expected, and tool_done applies only those. A repeated pick ignores the older answer, and a non-text folder's current answer finishes with its error.
Regressions: a stale same-folder look is ignored and the newer one fills the list; a non-text folder's current error clears looking and is shown. The three existing wrong-folder/archive guards still pass.
A folder walk says which folders it couldn't list and why, but five tools that walk a folder (two for Apple bundles, the app source import and comparison, the managed source check and the JavaScript source restore) read only "cut short". A folder that couldn't be opened was reported as a limit, with neither its name nor the reason, and some results still said they were complete.
- Each of those tools now names the folders and their reasons, and marks its result partial when a walk was cut or a folder couldn't be listed.
- When nothing is found and a folder couldn't be listed, the error says so ("no .cs files under …; 1 folder(s) couldn't be listed…") with what to do, since what was looked for may be in it.
- Two inputs with the same folder name are told apart in the notes ("dist (input 2)").
Codex now shows the model it uses ("Codex default" until one is chosen) with Change…, like Claude Code (#2109). The choices are its default (no model is passed, so its own settings decide) and the models `codex debug models` lists, in its order, leaving out the ones it hides; over SSH the remote Codex is asked. `ai model Codex` lists and sets them the same way. Until now the model could only be set by adding `cli_model` to config.toml by hand.
Follow-up to #2124. The pseudo-C could still show an argument's load in the call line after an instruction that overwrote the bytes it read, for writes the decompiler measured wrongly: 64-bit ARM pair and exclusive stores (both registers count, and non-temporal pairs are stores too), x86 bit writes through a register index, `movdir64b`, and a store that overwrites part of a Windows stack argument. Those are measured now. A register is treated as the stack frame only while the function really keeps its stack there, so a stack pointer loaded from elsewhere is no longer assumed clear of global data. 64-bit ARM loads also show the size they read (`*(uint8_t*)…`), and a pair store shows as two typed writes.
Measured on two real programs before and after (every function, default limits): an x86-64 `grep` folds 3,021 register arguments where it folded 3,023, the two lost being loads from a global with a store through a data pointer in between; an AArch64 `ls` folds 1,813 either way.