docs(status): record the merged master series and follow-up fixes
ci/woodpecker/push/woodpecker Pipeline was successful
CI / fmt + clippy + test (Linux x86_64) (push) Canceled after 0s
CI / schema instance validation + consumers (push) Canceled after 0s
CI / runtime contract (macos-latest) (push) Canceled after 0s
CI / runtime contract (windows-latest) (push) Canceled after 0s
CI / release candidate artifact (macos-latest) (push) Canceled after 0s
CI / release candidate artifact (ubuntu-latest) (push) Canceled after 0s

Master now contains the fast-forwarded RFC-LANG-0002 series; the former
semantics-v2-refactor branch was deleted, so only master remains.

- STATUS lists the full linear series (docs, implementation, expression
  grammar, status, seven follow-up fixes) and the verification at 9c1723d:
  fmt/clippy clean, 507 passed / 0 failed / 2 ignored, stdlib digest verified
- counts updated to 49 compile-negative fixtures and 507 workspace tests
  across README, COMPATIBILITY, CHANGELOG, CURRENT and the migration guide
- green evidence pins code commit 9c1723d and lists the follow-up fixes;
  CHANGELOG gains the follow-up correctness section
- migration inventory regenerated: 1019 classified files, 0 pending
- CURRENT.md baseline is the 40-hex 9c1723d commit required by the docs gate

Verified: docs_consistency 4/4, fmt, clippy -D warnings and the full
workspace suite green; python3 tools/pack-stdlib.py PASS.
This commit is contained in:
cflmy committed 2026-11-21 16:01:19 +08:00
1 parent 9c1723d44f
commit 32d8fe1f7a
8 files changed
+93 -42

No files matched your search

+19 -4
View File
@@ -35,15 +35,30 @@ summarized normatively in [`spec/mapping.md`](spec/mapping.md) and
fallback mapper; `marqdo_semantics`/syntax-selection front matter is rejected. fallback mapper; `marqdo_semantics`/syntax-selection front matter is rejected.
**Implementation status: landed** in the `semantics-v2-refactor` history **Implementation status: landed** in the `semantics-v2-refactor` history
(`4983542` docs/spec, `e029853` frontend/runtime/stdlib/corpus, `ffd1cc9` (docs/spec `4983542`, frontend/runtime/stdlib/corpus `e029853`, expression-owned
expression-owned statement grammar and extra coverage). At `ffd1cc9`, statement grammar `ffd1cc9`, then the follow-up fixes through `9c1723d`). At
`cargo test --workspace --locked` is green (501 passed, 0 failed, 2 ignored), `9c1723d`,
`cargo test --workspace --locked` is green (507 passed, 0 failed, 2 ignored),
`cargo clippy --workspace --all-targets -- -D warnings` is clean and the `cargo clippy --workspace --all-targets -- -D warnings` is clean and the
stdlib digest is regenerated. See stdlib digest is regenerated. See
[`docs/STATUS.md`](docs/STATUS.md) and [`docs/STATUS.md`](docs/STATUS.md) and
[`docs/evidence/2026-11-21-semantics-v2-green.md`](docs/evidence/2026-11-21-semantics-v2-green.md). [`docs/evidence/2026-11-21-semantics-v2-green.md`](docs/evidence/2026-11-21-semantics-v2-green.md).
Platform CI and the disposable-VM strict lane were not re-run at this SHA. Platform CI and the disposable-VM strict lane were not re-run at this SHA.
**Follow-up correctness fixes in the same series:**
- `params(...)` is enforced as the first function-wide direct Exec H2 payload, so
a later `### @exec` segment cannot add a signature after earlier statements;
- a `params(...)` code span in a `@knowledge` section is inert documentation and
never becomes a signature (`inspect --signature` now reports `inferred`);
- a stray `end` diagnostic points at the `end` payload instead of the previous
statement;
- Setext headings inherit but never declare a mode, as `spec/mapping.md` states;
- diagnostics are emitted in the documented stable order (source position, then
code);
- the unreachable `Stmt::Call`/`CallSite`/`CallTarget` IR left over from the
removed link-form block-quote call was deleted.
**Required migration actions for consumers and the repository:** **Required migration actions for consumers and the repository:**
1. Rewrite every active `.mq.md` source by AST role (not by a global regex): 1. Rewrite every active `.mq.md` source by AST role (not by a global regex):
@@ -99,7 +114,7 @@ Platform CI and the disposable-VM strict lane were not re-run at this SHA.
exponents, Strong+CodeSpan payloads, branch/loop conditions, inert prose and exponents, Strong+CodeSpan payloads, branch/loop conditions, inert prose and
code fences, and source spans inside one/two-backtick code spans. (The code fences, and source spans inside one/two-backtick code spans. (The
fixtures were migrated to the unified payload/keyword syntax and are green at fixtures were migrated to the unified payload/keyword syntax and are green at
`ffd1cc9`.) `9c1723d`.)
- Independent Tool Protocol v1 consumers `sample-view`, `sample-knowledge` and - Independent Tool Protocol v1 consumers `sample-view`, `sample-knowledge` and
`sample-proof` (analysis/trace readers) with install, dispatch and remove `sample-proof` (analysis/trace readers) with install, dispatch and remove
tests; none is a hard-coded CLI command. tests; none is a hard-coded CLI command.
+3 -3
View File
@@ -1,6 +1,6 @@
# Compatibility and support matrix # Compatibility and support matrix
Snapshot: workspace version **0.1.0**, language SHA **`ffd1cc9`**, security SHA Snapshot: workspace version **0.1.0**, language SHA **`9c1723d`**, security SHA
**`8af7262`**, no release tag cut. This file records what was actually verified and separates it **`8af7262`**, no release tag cut. This file records what was actually verified and separates it
from what is only implemented. Executed status is in from what is only implemented. Executed status is in
[`docs/STATUS.md`](docs/STATUS.md). [`docs/STATUS.md`](docs/STATUS.md).
@@ -35,8 +35,8 @@ Consequences for compatibility:
mapping changed. Rendering of otherwise-ordinary Markdown is unaffected. mapping changed. Rendering of otherwise-ordinary Markdown is unaffected.
- **Implementation state:** RFC-LANG-0002 is implemented by the frontend, - **Implementation state:** RFC-LANG-0002 is implemented by the frontend,
expression parser, IR lowering, runtime and bundled stdlib. At expression parser, IR lowering, runtime and bundled stdlib. At
`ffd1cc9862f7fe6002b42f1210010c1f78671a95` the workspace gate is `9c1723d` the workspace gate is
`cargo test --workspace --locked`: 501 passed, 0 failed, 2 ignored, and the `cargo test --workspace --locked`: 507 passed, 0 failed, 2 ignored, and the
stdlib digest is regenerated and verified. See stdlib digest is regenerated and verified. See
[`docs/STATUS.md`](docs/STATUS.md) and [`docs/STATUS.md`](docs/STATUS.md) and
[`docs/evidence/2026-11-21-semantics-v2-green.md`](docs/evidence/2026-11-21-semantics-v2-green.md). [`docs/evidence/2026-11-21-semantics-v2-green.md`](docs/evidence/2026-11-21-semantics-v2-green.md).
+3 -3
View File
@@ -18,8 +18,8 @@ plugin ABI v2 are not claimed to work here.
> normative summaries in [`spec/mapping.md`](spec/mapping.md) and > normative summaries in [`spec/mapping.md`](spec/mapping.md) and
> [`spec/expression.ebnf`](spec/expression.ebnf). The frontend, expression > [`spec/expression.ebnf`](spec/expression.ebnf). The frontend, expression
> parser, stdlib, examples and test corpus all implement it: > parser, stdlib, examples and test corpus all implement it:
> `cargo test --workspace --locked` is green (501 passed, 0 failed, 2 ignored > `cargo test --workspace --locked` is green (507 passed, 0 failed, 2 ignored
> at `ffd1cc9`). Old syntax (`**strong**` = execute, `*emph*` = return, > at `9c1723d`). Old syntax (`**strong**` = execute, `*emph*` = return,
> `1.` = branch, `-` = loop, `>` = call) is **not** an active language and > `1.` = branch, `-` = loop, `>` = call) is **not** an active language and
> `marqdo_semantics`/`--legacy` selectors do not exist. See > `marqdo_semantics`/`--legacy` selectors do not exist. See
> [`docs/STATUS.md`](docs/STATUS.md) and > [`docs/STATUS.md`](docs/STATUS.md) and
@@ -129,7 +129,7 @@ rules are [`RFC-LANG-0002`](docs/architecture/RFC-LANG-0002-unified-semantics.md
* **P0 contracts** — frozen `marqdo.md.v1` profile, RFC-LANG-0002 AST → program * **P0 contracts** — frozen `marqdo.md.v1` profile, RFC-LANG-0002 AST → program
mapping, the v2 statement grammar and evaluation semantics; 160 AST goldens, mapping, the v2 statement grammar and evaluation semantics; 160 AST goldens,
73 semantic fixtures, 47 compile-error fixtures, 2 warning fixtures and 21 73 semantic fixtures, 49 compile-error fixtures, 2 warning fixtures and 21
runtime-error fixtures, all green (`tests/`). runtime-error fixtures, all green (`tests/`).
* **P1 interpreter** — native Rust tree-walk interpreter: values, scopes, * **P1 interpreter** — native Rust tree-walk interpreter: values, scopes,
functions, static parameter inference, assignments, branches, loops, functions, static parameter inference, assignments, branches, loops,
+23 -12
View File
@@ -27,13 +27,23 @@ The repository now has **one** language contract, implemented end to end:
normative summary in [`../spec/mapping.md`](../spec/mapping.md) and normative summary in [`../spec/mapping.md`](../spec/mapping.md) and
[`../spec/expression.ebnf`](../spec/expression.ebnf). [`../spec/expression.ebnf`](../spec/expression.ebnf).
Landed in three commits on `semantics-v2-refactor`: Landed on `master` as one linear series (the former `semantics-v2-refactor`
branch was fast-forwarded and deleted; only `master` remains):
| Step | Commit | Content | | Step | Commit | Content |
|---|---|---| |---|---|---|
| 1 | `4983542` | docs/spec/ADR/READMEs, historical banners, migration guide and inventory | | 1 | `4983542` | docs/spec/ADR/READMEs, historical banners, migration guide and inventory |
| 2 | `e029853` | frontend/IR/runtime implementation, `sem.*` diagnostics, migrated stdlib + digest, examples, fixtures and Rust-embedded sources | | 2 | `e029853` | frontend/IR/runtime implementation, `sem.*` diagnostics, migrated stdlib + digest, examples, fixtures and Rust-embedded sources |
| 3 | `ffd1cc9` | expression-owned payload statement grammar, extra negative/CLI coverage | | 3 | `ffd1cc9` | expression-owned payload statement grammar, extra negative/CLI coverage |
| 4 | `bbeb1de` | status/compatibility/README/migration docs flipped to the implemented state + green evidence |
| 5 | `b38b769` | function-wide `params(...)` position (across heading segments) + two negatives |
| 6 | `361a6cc` | removed the dead `Stmt::Call`/`CallSite`/`CallTarget` IR |
| 7 | `d5002ac` | stale pre-RFC role docs and review-aid fixes |
| 8 | `9fb97bc` | signatures recognized only from Exec payloads (Knowledge sections inert) |
| 9 | `a3f9770` | unmatched `end` diagnostics point at the `end` payload |
| 10 | `0bbe0f6` | Setext headings never declare a mode; dead helper removed |
| 11 | `b3429cb` | diagnostics sorted by source position then code |
| 12 | `9c1723d` | coverage for the removed syntax-selector front-matter probe |
The breaking behaviour is: The breaking behaviour is:
@@ -47,20 +57,21 @@ The breaking behaviour is:
the existing `Branch`/`Loop`/`Return`/`Assign`/`Eval` IR; lists, block quotes the existing `Branch`/`Loop`/`Return`/`Assign`/`Eval` IR; lists, block quotes
and paragraphs are presentation containers; and paragraphs are presentation containers;
* control frames cannot cross a heading segment; * control frames cannot cross a heading segment;
* `params(...)` is legal only as the first direct Exec H2 payload; without it the * `params(...)` is legal only as the first direct Exec H2 payload across the
existing free-variable inference applies and inferred signatures keep the whole function (a later `### @exec` segment cannot add a signature after
named-arguments-only rule; earlier code ran); without it the existing free-variable inference applies and
inferred signatures keep the named-arguments-only rule;
* old syntax (`Strong` execute / `Emph` return / list branch/loop / quote call) * old syntax (`Strong` execute / `Emph` return / list branch/loop / quote call)
is **not** executable, and `marqdo_semantics`/`syntax` front-matter selectors is **not** executable, and `marqdo_semantics`/`syntax` front-matter selectors
are rejected with `sem.unsupported_version_directive`. are rejected with `sem.unsupported_version_directive`.
### Verification at `ffd1cc9` (Linux x86_64, Rust 1.100.0) ### Verification at `9c1723d` (Linux x86_64, Rust 1.100.0)
```text ```text
cargo fmt --all -- --check PASS cargo fmt --all -- --check PASS
cargo clippy --workspace --all-targets -- -D warnings PASS cargo clippy --workspace --all-targets -- -D warnings PASS
cargo test --workspace --locked --no-fail-fast PASS cargo test --workspace --locked --no-fail-fast PASS
501 passed, 0 failed, 2 ignored (62 green test targets) 507 passed, 0 failed, 2 ignored (62 green test targets)
python3 tools/pack-stdlib.py PASS (digest verified) python3 tools/pack-stdlib.py PASS (digest verified)
``` ```
@@ -77,8 +88,8 @@ single remote SHA.
## 1. Remote baseline and current evidence ## 1. Remote baseline and current evidence
The local language baseline for this snapshot is The local language baseline for this snapshot is `9c1723d` (2026-11-21,
`ffd1cc9862f7fe6002b42f1210010c1f78671a95` (2026-11-21, semantics v2 implementation). The later semantics v2 implementation plus follow-up fixes). The later
documentation and test migration is recorded by its own commits; re-run the gate documentation and test migration is recorded by its own commits; re-run the gate
before making a release claim. before making a release claim.
@@ -147,7 +158,7 @@ This is still a **local VM lane**, not a self-hosted GitHub Actions security URL
> **Historical table note.** Most rows in this section record work executed > **Historical table note.** Most rows in this section record work executed
> before the RFC-LANG-0002 syntax migration. Language-source rows (fixtures, > before the RFC-LANG-0002 syntax migration. Language-source rows (fixtures,
> control mapping, semantic goldens) were re-verified after the rewrite at > control mapping, semantic goldens) were re-verified after the rewrite at
> `ffd1cc9` (§0); platform/security rows keep their original evidence dates and > `9c1723d` (§0); platform/security rows keep their original evidence dates and
> are not refreshed by the language migration. > are not refreshed by the language migration.
| # | Work package | State | Evidence | | # | Work package | State | Evidence |
@@ -157,7 +168,7 @@ This is still a **local VM lane**, not a self-hosted GitHub Actions security URL
| 2 | Cross-platform strict `cfg` | **Fixed locally; native CI UNVERIFIED** | `#[cfg]` dispatch + non-Linux regression test | | 2 | Cross-platform strict `cfg` | **Fixed locally; native CI UNVERIFIED** | `#[cfg]` dispatch + non-Linux regression test |
| 3 | Strict probe→launch race | **Fixed locally; GitHub Linux CI UNVERIFIED** | fail-closed CLI contract + probe-OK/launch-EAGAIN seam test | | 3 | Strict probe→launch race | **Fixed locally; GitHub Linux CI UNVERIFIED** | fail-closed CLI contract + probe-OK/launch-EAGAIN seam test |
| 4 | Parallel security matrix isolation | **Fixed** | unique paths + helper `OnceLock`; 7/7 in parallel workspace run | | 4 | Parallel security matrix isolation | **Fixed** | unique paths + helper `OnceLock`; 7/7 in parallel workspace run |
| 5 | Markdown/power/control-flow corpus | **Green on semantics v2** | 160 AST + 73 semantic + 47 compile-negative + 2 warning + 21 runtime-negative fixtures; `conformance_ast`/`semantics`/`negative` pass | | 5 | Markdown/power/control-flow corpus | **Green on semantics v2** | 160 AST + 73 semantic + 49 compile-negative + 2 warning + 21 runtime-negative fixtures; `conformance_ast`/`semantics`/`negative` pass |
| 6 | Payload/control source spans | **Green on semantics v2** | UTF-8 spans, control-expression offsets and heading boundaries covered by fixtures and CLI tests; old condition headers were removed | | 6 | Payload/control source spans | **Green on semantics v2** | UTF-8 spans, control-expression offsets and heading boundaries covered by fixtures and CLI tests; old condition headers were removed |
| 7 | Independent Tool consumers | **Done locally** | `sample-view`/`sample-knowledge`/`sample-proof` E2E test | | 7 | Independent Tool consumers | **Done locally** | `sample-view`/`sample-knowledge`/`sample-proof` E2E test |
| 8 | lock v3 reproducibility | **Implemented; tamper test added** | `package_env` PASS | | 8 | lock v3 reproducibility | **Implemented; tamper test added** | `package_env` PASS |
@@ -173,8 +184,8 @@ This is still a **local VM lane**, not a self-hosted GitHub Actions security URL
- Frozen Markdown profile `marqdo.md.v1` with 160 AST goldens and explicit - Frozen Markdown profile `marqdo.md.v1` with 160 AST goldens and explicit
CRLF byte semantics (unchanged by the semantic rewrite). CRLF byte semantics (unchanged by the semantic rewrite).
- Native Rust interpreter with the unified semantics: 73 semantic fixtures, - Native Rust interpreter with the unified semantics: 73 semantic fixtures,
47 compile-error fixtures, 2 warning fixtures and 21 runtime-error fixtures 49 compile-error fixtures, 2 warning fixtures and 21 runtime-error fixtures
all green at `ffd1cc9`; AST profile unchanged (160 goldens). all green at `9c1723d`; AST profile unchanged (160 goldens).
- Native `**` power is pinned end-to-end: right associativity, unary-minus - Native `**` power is pinned end-to-end: right associativity, unary-minus
precedence, parentheses, float negative exponents, branch/loop conditions, precedence, parentheses, float negative exponents, branch/loop conditions,
Strong+CodeSpan payloads, and inert prose/code fences. Strong+CodeSpan payloads, and inert prose/code fences.
+4 -4
View File
@@ -4,7 +4,7 @@ Status: **current architecture overview**. This file summarises the tree as it
is today. It is not a release promise, does not reopen a frozen ADR, and does not is today. It is not a release promise, does not reopen a frozen ADR, and does not
replace `spec/` or a recorded test log. replace `spec/` or a recorded test log.
- Baseline: [`ffd1cc9862f7fe6002b42f1210010c1f78671a95`](https://github.com/cflmy/marqdo-cli/commit/ffd1cc9862f7fe6002b42f1210010c1f78671a95) (2026-11-21, RFC-LANG-0002 implementation). - Baseline: [`9c1723d44f403d6b742136f7881515083b413cc2`](https://github.com/cflmy/marqdo-cli/commit/9c1723d44f403d6b742136f7881515083b413cc2) (2026-11-21, RFC-LANG-0002 implementation and follow-up fixes; language code baseline).
- Normative behavior: `spec/`; frozen decisions: `docs/adr/`; executed evidence: `docs/STATUS.md` and `docs/evidence/`. - Normative behavior: `spec/`; frozen decisions: `docs/adr/`; executed evidence: `docs/STATUS.md` and `docs/evidence/`.
- This is the **single current overview**. Do not add a second running "current state" file; - This is the **single current overview**. Do not add a second running "current state" file;
update this file, `docs/STATUS.md` and an evidence file together. update this file, `docs/STATUS.md` and an evidence file together.
@@ -12,7 +12,7 @@ replace `spec/` or a recorded test log.
> **Language contract and implementation.** The language contract is > **Language contract and implementation.** The language contract is
> [RFC-LANG-0002](RFC-LANG-0002-unified-semantics.md) (adopted by ADR-0052) and > [RFC-LANG-0002](RFC-LANG-0002-unified-semantics.md) (adopted by ADR-0052) and
> `spec/mapping.md`. The frontend, `marqdo-expression`, IR lowering, runtime and > `spec/mapping.md`. The frontend, `marqdo-expression`, IR lowering, runtime and
> bundled `stdlib/` implement it. The workspace gate is green at `ffd1cc9`; > bundled `stdlib/` implement it. The workspace gate is green at `9c1723d`;
> rollout evidence and historical banners are indexed in > rollout evidence and historical banners are indexed in
> [`../migration/README.md`](../migration/README.md). > [`../migration/README.md`](../migration/README.md).
@@ -25,7 +25,7 @@ platform".
| Dimension | Current state | Source | | Dimension | Current state | Source |
|---|---|---| |---|---|---|
| Implemented | Rust workspace `0.1.0`: RFC-LANG-0002 Markdown/frontend/IR, v2 statement parser, tree-walk runtime, `Memory`, capability host, Tool/Analysis/Trace, Plugin ABI, Foreign kernels, migrated bundled stdlib, CLI composition root | `Cargo.toml`, `crates/`, `stdlib/` | | Implemented | Rust workspace `0.1.0`: RFC-LANG-0002 Markdown/frontend/IR, v2 statement parser, tree-walk runtime, `Memory`, capability host, Tool/Analysis/Trace, Plugin ABI, Foreign kernels, migrated bundled stdlib, CLI composition root | `Cargo.toml`, `crates/`, `stdlib/` |
| Tested locally | `cargo test --workspace --locked`: **501 passed, 0 failed, 2 ignored** on Linux x86_64 at the baseline; fmt and clippy clean | `docs/STATUS.md` §0, `docs/evidence/2026-11-21-semantics-v2-green.md` | | Tested locally | `cargo test --workspace --locked`: **507 passed, 0 failed, 2 ignored** on Linux x86_64 at the baseline; fmt and clippy clean | `docs/STATUS.md` §0, `docs/evidence/2026-11-21-semantics-v2-green.md` |
| Bundled stdlib released | In-repo bundle `marqdo-stdlib@0.1.0`, SHA-256 digest verified before loading; it is **not** an external registry package | `stdlib/stdlib.json`, `stdlib/README.md` | | Bundled stdlib released | In-repo bundle `marqdo-stdlib@0.1.0`, SHA-256 digest verified before loading; it is **not** an external registry package | `stdlib/stdlib.json`, `stdlib/README.md` |
| Multi-platform verified | Linux local gate is the only executed lane here; Windows/macOS native lanes are **UNVERIFIED**, and the GitHub security lane remains a **VM-only** gate | `docs/STATUS.md` §1, §4 | | Multi-platform verified | Linux local gate is the only executed lane here; Windows/macOS native lanes are **UNVERIFIED**, and the GitHub security lane remains a **VM-only** gate | `docs/STATUS.md` §1, §4 |
@@ -134,7 +134,7 @@ that a phase is complete.
| Priority | Gap | State | | Priority | Gap | State |
|---|---|---| |---|---|---|
| P0 | **Language syntax migration**: RFC-LANG-0002 single contract | **closed at `ffd1cc9`**; implementation, stdlib digest, examples and fixtures green; platform/strict evidence remains separate | | P0 | **Language syntax migration**: RFC-LANG-0002 single contract | **closed at `9c1723d`**; implementation, stdlib digest, examples and fixtures green; platform/strict evidence remains separate |
| P0 | Stdlib release is a bundle in this repo; extraction is deferred (ADR-0039) | accepted, keep in repo | | P0 | Stdlib release is a bundle in this repo; extraction is deferred (ADR-0039) | accepted, keep in repo |
| P0 | Documentation drift between `STATUS.md`, the architecture index and the evidence | being fixed by this migration and the docs gate | | P0 | Documentation drift between `STATUS.md`, the architecture index and the evidence | being fixed by this migration and the docs gate |
| P1 | `std:fs/file` read/write/copy, metadata/directory, append/read_at/walk are implemented; watch and binary offset reads remain open | open | | P1 | `std:fs/file` read/write/copy, metadata/directory, append/read_at/walk are implemented; watch and binary offset reads remain open | open |
+28 -7
View File
@@ -1,12 +1,17 @@
# 2026-11-21 — RFC-LANG-0002 implementation gate # 2026-11-21 — RFC-LANG-0002 implementation gate
Status: **green for the implementation commit `ffd1cc9` on Linux x86_64**. Status: **green for code commit `9c1723d` on Linux x86_64**.
This supersedes the intermediate "text migrated, implementation pending" state This supersedes the intermediate "text migrated, implementation pending" state
recorded in [`2026-11-21-semantic-docs-migration.md`](2026-11-21-semantic-docs-migration.md). recorded in [`2026-11-21-semantic-docs-migration.md`](2026-11-21-semantic-docs-migration.md).
- Repository: `cflmy/marqdo-cli`, branch `semantics-v2-refactor` - Repository: `cflmy/marqdo-cli`, branch `master` (the former
- Code commit: `ffd1cc9862f7fe6002b42f1210010c1f78671a95` `semantics-v2-refactor` branch was fast-forwarded to `master` and deleted)
- Previous steps: `4983542` (docs/spec), `e029853` (breaking implementation) - Code commit: `9c1723d` (the documentation-sync commit that contains this file
is docs-only and directly follows it)
- Series: `4983542` docs/spec, `e029853` breaking implementation, `ffd1cc9`
expression statement grammar, `bbeb1de` status/evidence, then follow-up fixes
`b38b769`, `361a6cc`, `d5002ac`, `9fb97bc`, `a3f9770`, `0bbe0f6`, `b3429cb`,
`9c1723d`
- Toolchain: Rust 1.100.0, Linux x86_64 - Toolchain: Rust 1.100.0, Linux x86_64
- Authority: [`../architecture/RFC-LANG-0002-unified-semantics.md`](../architecture/RFC-LANG-0002-unified-semantics.md), - Authority: [`../architecture/RFC-LANG-0002-unified-semantics.md`](../architecture/RFC-LANG-0002-unified-semantics.md),
[`../adr/0052-unified-markdown-semantics.md`](../adr/0052-unified-markdown-semantics.md) [`../adr/0052-unified-markdown-semantics.md`](../adr/0052-unified-markdown-semantics.md)
@@ -21,7 +26,7 @@ cargo clippy --workspace --all-targets -- -D warnings
PASS PASS
cargo test --workspace --locked --no-fail-fast cargo test --workspace --locked --no-fail-fast
PASS: 501 passed, 0 failed, 2 ignored PASS: 507 passed, 0 failed, 2 ignored
(62 test binaries/doctest targets all `ok`) (62 test binaries/doctest targets all `ok`)
python3 tools/pack-stdlib.py python3 tools/pack-stdlib.py
@@ -56,15 +61,31 @@ docs_consistency 4 passed
- `sem.*` diagnostics including mode marker, unit name/duplicate, exec without - `sem.*` diagnostics including mode marker, unit name/duplicate, exec without
function, payload nesting/empty, syntax, unmatched/duplicate else/end, function, payload nesting/empty, syntax, unmatched/duplicate else/end,
unclosed control, signature position, unsupported version directive, unclosed control, signature position, unsupported version directive,
inferred-signature lint and `run`'s no-entry-function error; inferred-signature lint and `run`'s no-entry-function error; emitted in the
documented stable order (source position, then code);
- migrated `stdlib/**/*.mq.md` with a regenerated `stdlib/stdlib.json` digest; - migrated `stdlib/**/*.mq.md` with a regenerated `stdlib/stdlib.json` digest;
- migrated examples, semantics/negative/runtime corpus and Rust-embedded - migrated examples, semantics/negative/runtime corpus and Rust-embedded
fixtures. fixtures.
## Follow-up fixes included in the green commit
After the first green gate, the concurrency leftovers were reviewed and fixed:
* `params(...)` position is function-wide: a later `### @exec` segment can no
longer add a signature after earlier statements (negatives 48–49);
* signatures come only from Exec payloads — a `params(...)` code span in a
Knowledge section is inert and no longer becomes `inspect --signature` output;
* a stray `end` diagnostic points at the `end` payload, not the previous
statement;
* Setext headings inherit but never declare a mode, as the spec requires;
* diagnostics are sorted by `(span.start, code)` for stable IDE/CI output;
* the dead `Stmt::Call`/`CallSite`/`CallTarget` IR representation and the
`normalized_heading_name` helper from the removed link-form call are gone.
## Not claimed by this evidence ## Not claimed by this evidence
- Windows and macOS native test lanes were **not** run from this checkout - Windows and macOS native test lanes were **not** run from this checkout
(`UNVERIFIED`); no remote CI URL exists for `ffd1cc9`. (`UNVERIFIED`); no remote CI URL exists for `9c1723d`.
- The disposable-VM strict security lane was **not** re-run at this SHA. The - The disposable-VM strict security lane was **not** re-run at this SHA. The
in-tree `marqdo-sandbox` security tests and the workspace suite pass, but in-tree `marqdo-sandbox` security tests and the workspace suite pass, but
that is not the same evidence. that is not the same evidence.
+3 -3
View File
@@ -15,14 +15,14 @@ use the single new syntax. Old syntax is not an active language.
- **Complete.** Specs, active docs, examples, all test/fixture `.mq.md` files, - **Complete.** Specs, active docs, examples, all test/fixture `.mq.md` files,
the security-lane embedded fixtures, Rust-embedded literals and the bundled the security-lane embedded fixtures, Rust-embedded literals and the bundled
`stdlib/**/*.mq.md` sources use the single syntax. 1015 present tracked+new `stdlib/**/*.mq.md` sources use the single syntax. 1019 present tracked+new
files are classified in the inventory: 0 `pending`, 0 files are classified in the inventory: 0 `pending`, 0
`pending-implementation`. `pending-implementation`.
- **Implementation:** frontend heading modes and segments, the unified payload - **Implementation:** frontend heading modes and segments, the unified payload
mapper, the `marqdo-expression` statement grammar, control-stack lowering, mapper, the `marqdo-expression` statement grammar, control-stack lowering,
`params(...)`/inference and the `sem.*` diagnostics are implemented. `params(...)`/inference and the `sem.*` diagnostics are implemented.
- **Verification at `ffd1cc9`:** `cargo fmt --check`, `cargo clippy -D warnings` - **Verification at `9c1723d`:** `cargo fmt --check`, `cargo clippy -D warnings`
and `cargo test --workspace --locked` (501 passed, 0 failed, 2 ignored) all and `cargo test --workspace --locked` (507 passed, 0 failed, 2 ignored) all
pass; `python3 tools/pack-stdlib.py` verifies the regenerated digest. pass; `python3 tools/pack-stdlib.py` verifies the regenerated digest.
Evidence: [`../evidence/2026-11-21-semantics-v2-green.md`](../evidence/2026-11-21-semantics-v2-green.md). Evidence: [`../evidence/2026-11-21-semantics-v2-green.md`](../evidence/2026-11-21-semantics-v2-green.md).
The earlier intermediate record is kept at The earlier intermediate record is kept at
+10 -6
View File
@@ -219,8 +219,8 @@ docs/architecture/CURRENT.md architecture yes status/index update to RFC-LANG-00
docs/architecture/Marqdo_CLI_Latest_Architecture_Audit_and_Refactor_RFC.md architecture no review input historical banner docs review historical docs/architecture/Marqdo_CLI_Latest_Architecture_Audit_and_Refactor_RFC.md architecture no review input historical banner docs review historical
docs/architecture/README.md architecture yes status/index update to RFC-LANG-0002 docs docs_consistency migrated docs/architecture/README.md architecture yes status/index update to RFC-LANG-0002 docs docs_consistency migrated
docs/architecture/RFC-LANG-0002-unified-semantics.md architecture yes old mapping adopt as sole authority docs review migrated docs/architecture/RFC-LANG-0002-unified-semantics.md architecture yes old mapping adopt as sole authority docs review migrated
docs/ci.md tutorial yes old mapping rewrite + historical banner where needed docs docs_consistency migrated docs/ci.md tutorial yes none reviewed docs review reviewed
docs/contributor-guide.md tutorial yes old mapping rewrite + historical banner where needed docs docs_consistency migrated docs/contributor-guide.md tutorial yes none reviewed docs review reviewed
docs/development-credentials.md tutorial yes none reviewed docs review reviewed docs/development-credentials.md tutorial yes none reviewed docs review reviewed
docs/evidence/2026-11-20-bundled-stdlib-cm-a10.md historical no archived banner only docs review historical docs/evidence/2026-11-20-bundled-stdlib-cm-a10.md historical no archived banner only docs review historical
docs/evidence/2026-11-20-c-provider.md historical no archived banner only docs review historical docs/evidence/2026-11-20-c-provider.md historical no archived banner only docs review historical
@@ -282,9 +282,9 @@ docs/history/README.md historical no archived banner only docs review historical
docs/history/STATUS-M0.5-snapshot.md historical no archived banner only docs review historical docs/history/STATUS-M0.5-snapshot.md historical no archived banner only docs review historical
docs/migration/README.md migration yes n/a maintain inventory/guide docs review migrated docs/migration/README.md migration yes n/a maintain inventory/guide docs review migrated
docs/migration/semantic-rewrite-inventory.tsv migration yes n/a maintain inventory/guide docs review migrated docs/migration/semantic-rewrite-inventory.tsv migration yes n/a maintain inventory/guide docs review migrated
docs/releasing.md tutorial yes old mapping rewrite + historical banner where needed docs docs_consistency migrated docs/releasing.md tutorial yes none reviewed docs review reviewed
docs/security-gate.md tutorial yes old mapping rewrite + historical banner where needed docs docs_consistency migrated docs/security-gate.md tutorial yes none reviewed docs review reviewed
docs/security-vm.md tutorial yes old mapping rewrite + historical banner where needed docs docs_consistency migrated docs/security-vm.md tutorial yes none reviewed docs review reviewed
examples/factorial.mq.md example yes old syntax migrate source examples examples_r6 / run migrated examples/factorial.mq.md example yes old syntax migrate source examples examples_r6 / run migrated
examples/hello.mq.md example yes old syntax migrate source examples examples_r6 / run migrated examples/hello.mq.md example yes old syntax migrate source examples examples_r6 / run migrated
examples/kernel-mock/README.md example yes old syntax review examples run reviewed examples/kernel-mock/README.md example yes old syntax review examples run reviewed
@@ -394,7 +394,7 @@ stdlib/tests/text.mq.md stdlib yes old syntax migrate with frontend + digest std
stdlib/tests/utf8.mq.md stdlib yes old syntax migrate with frontend + digest stdlib stdlib_product migrated stdlib/tests/utf8.mq.md stdlib yes old syntax migrate with frontend + digest stdlib stdlib_product migrated
stdlib/text.mq.md stdlib yes old syntax migrate with frontend + digest stdlib stdlib_product migrated stdlib/text.mq.md stdlib yes old syntax migrate with frontend + digest stdlib stdlib_product migrated
stdlib/text/utf8.mq.md stdlib yes old syntax migrate with frontend + digest stdlib stdlib_product migrated stdlib/text/utf8.mq.md stdlib yes old syntax migrate with frontend + digest stdlib stdlib_product migrated
tests/README.md test yes old syntax migrate source/expectations tests negative/properties migrated tests/README.md test yes harness review tests review reviewed
tests/abi/capability_plugin.c test yes harness review tests review reviewed tests/abi/capability_plugin.c test yes harness review tests review reviewed
tests/architecture/README.md test yes harness review tests review reviewed tests/architecture/README.md test yes harness review tests review reviewed
tests/conformance/ast/001-atx-h1.ast.json test yes harness review tests review reviewed tests/conformance/ast/001-atx-h1.ast.json test yes harness review tests review reviewed
@@ -962,6 +962,10 @@ tests/negative/46-else-under-while.expected.json test yes harness review tests r
tests/negative/46-else-under-while.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated tests/negative/46-else-under-while.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
tests/negative/47-signature-position-in-quote.expected.json test yes harness review tests review reviewed tests/negative/47-signature-position-in-quote.expected.json test yes harness review tests review reviewed
tests/negative/47-signature-position-in-quote.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated tests/negative/47-signature-position-in-quote.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
tests/negative/48-signature-after-earlier-segment.expected.json test yes harness review tests review reviewed
tests/negative/48-signature-after-earlier-segment.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
tests/negative/49-duplicate-signature-across-segments.expected.json test yes harness review tests review reviewed
tests/negative/49-duplicate-signature-across-segments.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
tests/negative/runtime/01-division-by-zero.expected.json test yes harness review tests review reviewed tests/negative/runtime/01-division-by-zero.expected.json test yes harness review tests review reviewed
tests/negative/runtime/01-division-by-zero.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated tests/negative/runtime/01-division-by-zero.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
tests/negative/runtime/02-type-error.expected.json test yes harness review tests review reviewed tests/negative/runtime/02-type-error.expected.json test yes harness review tests review reviewed
1 path category active old_semantics action owner verification status
219 docs/architecture/Marqdo_CLI_Latest_Architecture_Audit_and_Refactor_RFC.md architecture no review input historical banner docs review historical
220 docs/architecture/README.md architecture yes status/index update to RFC-LANG-0002 docs docs_consistency migrated
221 docs/architecture/RFC-LANG-0002-unified-semantics.md architecture yes old mapping adopt as sole authority docs review migrated
222 docs/ci.md tutorial yes old mapping none rewrite + historical banner where needed reviewed docs docs_consistency review migrated reviewed
223 docs/contributor-guide.md tutorial yes old mapping none rewrite + historical banner where needed reviewed docs docs_consistency review migrated reviewed
224 docs/development-credentials.md tutorial yes none reviewed docs review reviewed
225 docs/evidence/2026-11-20-bundled-stdlib-cm-a10.md historical no archived banner only docs review historical
226 docs/evidence/2026-11-20-c-provider.md historical no archived banner only docs review historical
282 docs/history/STATUS-M0.5-snapshot.md historical no archived banner only docs review historical
283 docs/migration/README.md migration yes n/a maintain inventory/guide docs review migrated
284 docs/migration/semantic-rewrite-inventory.tsv migration yes n/a maintain inventory/guide docs review migrated
285 docs/releasing.md tutorial yes old mapping none rewrite + historical banner where needed reviewed docs docs_consistency review migrated reviewed
286 docs/security-gate.md tutorial yes old mapping none rewrite + historical banner where needed reviewed docs docs_consistency review migrated reviewed
287 docs/security-vm.md tutorial yes old mapping none rewrite + historical banner where needed reviewed docs docs_consistency review migrated reviewed
288 examples/factorial.mq.md example yes old syntax migrate source examples examples_r6 / run migrated
289 examples/hello.mq.md example yes old syntax migrate source examples examples_r6 / run migrated
290 examples/kernel-mock/README.md example yes old syntax review examples run reviewed
394 stdlib/tests/utf8.mq.md stdlib yes old syntax migrate with frontend + digest stdlib stdlib_product migrated
395 stdlib/text.mq.md stdlib yes old syntax migrate with frontend + digest stdlib stdlib_product migrated
396 stdlib/text/utf8.mq.md stdlib yes old syntax migrate with frontend + digest stdlib stdlib_product migrated
397 tests/README.md test yes old syntax harness migrate source/expectations review tests negative/properties review migrated reviewed
398 tests/abi/capability_plugin.c test yes harness review tests review reviewed
399 tests/architecture/README.md test yes harness review tests review reviewed
400 tests/conformance/ast/001-atx-h1.ast.json test yes harness review tests review reviewed
962 tests/negative/46-else-under-while.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
963 tests/negative/47-signature-position-in-quote.expected.json test yes harness review tests review reviewed
964 tests/negative/47-signature-position-in-quote.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
965 tests/negative/48-signature-after-earlier-segment.expected.json test yes harness review tests review reviewed
966 tests/negative/48-signature-after-earlier-segment.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
967 tests/negative/49-duplicate-signature-across-segments.expected.json test yes harness review tests review reviewed
968 tests/negative/49-duplicate-signature-across-segments.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
969 tests/negative/runtime/01-division-by-zero.expected.json test yes harness review tests review reviewed
970 tests/negative/runtime/01-division-by-zero.mq.md test yes old negative shape rebuild for sem.* diagnostics tests negative migrated
971 tests/negative/runtime/02-type-error.expected.json test yes harness review tests review reviewed