Commit Graph
3 Commits
Author SHA1 Message Date
dev fb4338cea6 spec: accept RFC 0006 and integrate effects and capabilities
- spec 05 §9-§12: flat effects, checking rule, capability model,
  instantiation by parameter name, lifetime, fallible narrowing,
  intrinsic calls, runtime
- spec 07 §8.9, 07a (cap.narrow, intrinsic, run result), 08 stage
  order, 11 not_instantiated outcome
- new reference/effects.md and reference/capabilities.md (kinds,
  scopes, built-in cap_error)
- features effects and capabilities published
- Q-011, Q-012 resolved
2026-10-04 13:36:46 +03:00
dev 3fd1513c86 rfc: 0006 revision 2 per owner review
1. capabilities are unforgeable references to one shared authority
   object; authority-bearing types are transitively non-serializable
2. effect -> authority registry; not every effect needs a capability
3. flat effects kept; effect sets must be part of future fn pointer types
4. grants bound by @main parameter name; missing, mismatched, unknown
   and invalid grants are not_instantiated reasons (exit 6)
5. cap.narrow is a fallible terminator (ok -> cap<K>, err -> cap_error);
   no empty capabilities
6. cap.narrow is the only authority transformation; no combine
7. startup data deferred and separate from authority; environment via
   cap<process.env>
8. capabilities live for one execution instance
2026-10-04 13:35:55 +03:00
dev 56728a534c rfc: 0006 effects and capabilities (Proposed)
Resolves Q-011 (flat effects, no discharge in format 0) and Q-012
(opaque copyable capabilities, origin only as @main parameters granted
by the host, explicit narrowing without widening, not_instantiated
environment outcome, intrinsic call mechanism).
2026-10-04 13:31:32 +03:00