spec: accept RFC 0010 and integrate manifest capability grants
spec 12 §1 manifest format with strict TOML subset, [package] entry, [capabilities] by parameter name, [metadata]; aji run --manifest with operator precedence of --grant; spec 05 §10.2 and capabilities.md updated.
This commit is contained in:
1 parent
27fa98f39d
commit
0948eb7347
4 files changed
+39
-12
No files matched your search
@@ -192,7 +192,7 @@ effects [fs.read, io.write]
|
||||
aji run app.air --grant config=fs.read:/etc/app --grant data=fs.read:/var/data
|
||||
```
|
||||
|
||||
For packages the same bindings come from `aji.toml` `[capabilities]` (spec 12).
|
||||
For packages the same bindings come from `aji.toml` `[capabilities]`, applied only when the operator runs `aji run --manifest`; a command-line `--grant` for the same parameter replaces the manifest entry (spec 12 §1).
|
||||
- Before execution the host **instantiates** the program: every capability parameter of `@main` must have exactly one grant whose kind matches, and every grant must name a parameter. Otherwise the program does not start. This is an **environment outcome**, not a trap and not a verifier error; `aji run` exits with code 6 and reports, for the first problem in parameter order:
|
||||
|
||||
```json
|
||||
|
||||
Reference in new issue
Block a user