rfc: 0014 accepted (revision 2) and integrated into the spec

Owner review: D1-D4, D7-D9 accepted; D5 frozen.release, no thaw; D6
arc.from_frozen (island -> frozen -> arc, one graph identity), ArcSafe
(not Share alone; no arc<mutex>, no nested arc); D7 island Send, not
Share; D10 islands -> heap, arc -> islands; added: never-reused graph
identity, IslandSafe, the quota lifecycle, iref equality.

Integrated: spec 02 §6 (IslandSafe, ArcSafe), 03 §12-§14 and new
§22-§24 (instruction contracts, quota), 04 §13/§35/§38.1, 07a (features
islands, arc), 15 §8 (layer 9 syntax, explicit container borrows),
error codes (T0010, registered in src/diag.zig), type-properties. Phase 4
plan: P4-0, P4-1 done.
This commit is contained in:
dev committed 2026-10-05 21:57:08 +03:00
1 parent 7d8f147d1d
commit ca84ab4348
10 files changed
+346 -224

No files matched your search

+14
View File
@@ -35,3 +35,17 @@ External resources that remain operational/mutable may prevent `Freeze`.
A `Local` value is tied to its current execution context and prevents migration/transfer.
Examples may include thread-local handles, event-loop-local registrations or platform UI objects.
## IslandSafe
An `IslandSafe` value may be stored in an island graph (spec 03 §22). Derived structurally:
- **IslandSafe:** integers, `bool`, built-in enums, `iref<U>`, and arrays, structs and enums of `IslandSafe` values.
- **Not IslandSafe:** borrows, owners, regions, graph owners (`island`, `frozen`, `arc`), resources, endpoints, `task`, `scope`, `shield`, `guard`, `mutex`, `cap<K>`.
Because of it, a graph never holds outside authority or a mutable ownership edge, so freeze, conversion and transfer are O(1).
## ArcSafe
An `ArcSafe` value may be held by an `arc` (spec 03 §24): the last release destroys it by freeing memory only, with no user or resource action. In format 0 it is exactly `IslandSafe`. `Share` alone is not enough; for example, a `mutex<T>` is `Share` but not `ArcSafe`.