cli: add explicit owning buffered file adapters

Add pinned std.io.reader and std.io.writer using safe source, explicit fixed
allocation and file transfer. Finish/discard return complete resources;
writer failures preserve pending data and prohibit unsound partial retries.

Specify cursor, acceptance, failure and cleanup contracts in spec 16,
RFC 0034, the API reference and source bundle. Add standalone conformance,
independent byte oracles, task/GC stress, CLI/package/profile checks and
hosted partial-write tests with a raised child quota to detect retries.

Validation: 1061 conformance cases; 34 buffered cases with per-step GC and
12 schedule seeds; unit/Quick Reference, formatting, hosted smoke,
89 CLI checks, 115 source coverage constructs and reference generation.
This commit is contained in:
dev committed 2026-10-07 12:38:55 +03:00
1 parent 3e1c0f34e8
commit 8d8bef8f3e
51 files changed
+1916 -8

No files matched your search

+4
View File
@@ -27,6 +27,10 @@ CHECKLIST = [
("heap", "explicit order and bounded owning push", r"std\.heap\.push::<", True),
("heap", "Copy peek and moving pop", r"std\.heap\.(peek|pop)::<", True),
("heap", "explicit heap growth and drain", r"std\.heap\.(reserve|free)::<", True),
("buffered io", "owned reader construction and explicit termination", r"std\.io\.reader\.(new|finish|discard)\(", True),
("buffered io", "borrowed cached reads and exact prefixes", r"std\.io\.reader\.(read|read_exact)\(", True),
("buffered io", "owned writer construction and explicit termination", r"std\.io\.writer\.(new|finish|discard)\(", True),
("buffered io", "borrowed writes and explicit flush", r"std\.io\.writer\.(write|flush)\(", True),
("io", "exact reads with explicit effects and borrowed destinations", r"std\.io\.read_exact_(stdin|file|stream)\(", True),
("io", "bounded file read/copy and explicit progress", r"std\.io\.(read_to_end_file|copy_file|copy_file_append)\(", True),
("static functions", "explicit callable contract", r"[A-Z]\w*: fn\(", True),