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

@@ -1,6 +1,14 @@
# ADR-0002: Executable nodes execute only inside level-2 function bodies
Status: **Accepted**
> **Historical / superseded in part.** The execution-scope decision (payloads
> only inside an owning H2 function, never at module top level) remains, but
> the carrier/role rules in this ADR (`Strong` executes, `Emph` returns, lists
> and quotes are instructions) were replaced by
> [ADR-0052](0052-unified-markdown-semantics.md) and
> [`spec/mapping.md`](../../spec/mapping.md). The syntax examples below are the
> syntax at the time of the decision, not current syntax.
Status: **Accepted (historical mapping superseded by ADR-0052)**
Date: 2026-11-20
## Context