docs(spec): adopt RFC-LANG-0002 unified language semantics

Replace the Strong/Emph/List/Quote mapping in place with the single
@exec/@knowledge heading-mode model, unified payload carriers and keyword
control flow.

- add the authoritative RFC, ADR-0052 and a historical ADR index
- rewrite spec/mapping.md and spec/expression.ebnf as the normative
  mapping/statement grammar; update evaluation, references, math,
  foreign, package-format, plugin-abi, security and schema notes
- rewrite README, AGENTS, COMPATIBILITY and CHANGELOG for the breaking
  language change; update the architecture index/overview and active docs
- mark superseded planning docs, compute RFCs, evidence and syntax-role
  ADRs as historical/superseded without rewriting their decisions
- add migration guide, per-file inventory and dev-only audit scripts

The frontend/stdlib migration is completed in the following commits; this
commit contains documentation only.
This commit is contained in:
cflmy committed 2026-11-21 12:24:19 +08:00
1 parent 0d8ed44010
commit 49835424ee
47 files changed
+4941 -603

No files matched your search

+9
View File
@@ -48,6 +48,15 @@ On a host that cannot create the namespaces the same block is
for the Linux construction, L1 scope and non-goals; ADR-0019 still governs
every other platform.
### 1.1 `@exec` is not a grant
The `@exec` heading mode introduced by RFC-LANG-0002 is a **compile-time
projection**, not an authorization. A payload in `@exec` still passes the same
`CapabilityHost` checks, budgets and sandbox rules; a payload in `@knowledge`
produces no IR and therefore cannot cause a host effect at all. No heading
annotation, keyword or Markdown container can grant a file/network/process
capability, and permission flags never change the AST→IR result.
## 2. Capability grants
`Capabilities` (`crates/marqdo-host/src/capability.rs`) is the effective grant