fix: address codex review round 3

Record the freshness token observed AFTER the read (re-stat post-read, falling
back to the routing stat if the file vanished) so the version returned/recorded
matches the bytes returned — a writer racing between the routing stat and the
read can no longer make a follow-up edit spuriously stale. Stream reads when the
backend reports no size, so a size-less backend never buffers a large file
whole. Update the cordis-catalog link map to the current filesystem API symbols
(FileContextExec/FileReadRequest/FileReadOutcome/FsInfo/FsWriteExpectation).
This commit is contained in:
Dudu-0223
2026-06-26 18:14:30 +08:00
parent b802912067
commit d612ebaef1
4 changed files with 66 additions and 12 deletions

View File

@@ -77,13 +77,14 @@ const LINK_MAP: Record<string, string> = {
BashTaskRead: 'bash.md',
FsEditOutcome: 'filesystem.md',
FsEditRequest: 'filesystem.md',
FsExecContext: 'filesystem.md',
FsExpectation: 'filesystem.md',
FsReadOutcome: 'filesystem.md',
FsReadRequest: 'filesystem.md',
FsInfo: 'filesystem.md',
FsTarget: 'filesystem.md',
FsVersion: 'filesystem.md',
FsWriteExpectation: 'filesystem.md',
FsWriteOutcome: 'filesystem.md',
FileContextExec: 'filesystem.md',
FileReadRequest: 'filesystem.md',
FileReadOutcome: 'filesystem.md',
}
/** One harness event, extracted from an `interface Events` block. */