cli: add safe owning numeric-key maps

Register std.map with bounded U64Map<V>, exact key equality and explicit
allocation/growth. Preserve returned ownership, old slots on reserve failure
and original-authority refunds; support Copy values, owners and resources.

Cover collision/tombstone/wrap behavior, independent dictionary traces,
quota/cleanup/borrow/task rules, source/AIR parity and hosted/package CLI.
Publish the API, roadmap and measured documentation cost. General key
hashing/equality remains Q-037; numeric maps do not satisfy that gate.
This commit is contained in:
dev committed 2026-10-07 08:36:23 +03:00
1 parent fc23f1b23a
commit 57603860df
46 files changed
+2430 -15

No files matched your search

+2
View File
@@ -20,6 +20,8 @@ TESTS = os.path.join(ROOT, "tests", "conformance", "source")
# (area, construct, regex, needs a reject test)
CHECKLIST = [
("map", "bounded exact-key owning insert/lookup", r"std\.map\.(insert|get|contains)", True),
("map", "explicit growth, removal and drain", r"std\.map\.(reserve|remove|pop|free)", True),
("failure", "explicit built-in error value", r"(?:return|=) (alloc_error|io_error|cap_error)::", True),
("hash", "pure FNV/CRC byte hashing", r"std\.hash\.(fnv1a64|crc32c)\(", True),
("hash", "continuation from explicit state", r"std\.hash\.(fnv1a64_extend|crc32c_extend)\(", True),