After an independent review of the spec 3.11.0 work.
- acp/files.ts: a write judged its path, waited for the base hash, then
opened and renamed by name - a move in between could swap a link in and
send the write out of remote.roots. Changes now run one at a time for
every link of the process, a path is judged again after each wait and
must be the same place, the part file is proved to lie in the target's
own directory before the rename, and hashes and reads go through an open
descriptor. A part file is never removed by a name that may lead
elsewhere. Copy, delete and the listing of names for a search no longer
block; uploads are capped in all; a listing is cut before its entries
are looked at; names are kept for four folders; part files are hidden,
journalled and swept at start.
- remote.files_that_run_code (off by default; lembas remote
files-that-run-code on|off): off, _lembas/fs write, mkdir, move, copy
and delete refuse git's own directory, a project's agent configuration
and the user's start-up files with the reason runs_code. Said in the
limits.
- tool/buffers.ts: a file read through the editor is never read or written
from the disk behind it; previews record nothing; a write the client
never answered is not repeated. The client's fs capabilities are read on
stdio only.
- Rewrites are tracked from the start, capped at four, stopped with the
client; the id is read one way. show's handle is an open descriptor.
- A typed message beginning like the editor's block is shown; a closing
tag in a diagnostic or a selection cannot end the block.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>