Skip to content

Commit 1a64a71

Browse files
authored
2026.11.23.1: the kernel interface as the kernel-abi layer, derived state, platform keys on every row, the pack's runtime closure over deployed objects, riscv64 rows (mcpp#1004, #1005, #1007, #1009, #1011) (#1006)
1 parent 53b80e1 commit 1a64a71

137 files changed

Lines changed: 4239 additions & 482 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/docs/2026-11-22-kernel-interface-and-derived-state-ecosystem-design.md‎

Lines changed: 774 additions & 0 deletions
Large diffs are not rendered by default.

‎.agents/docs/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ superseded_by: 2026-09-07-....md # when status is superseded
1818
---
1919
```
2020

21-
372 records.
21+
373 records.
2222

2323
## By subject
2424

@@ -60,6 +60,7 @@ Records that declare one. Everything else is listed by date below.
6060

6161
### design
6262

63+
- [生态级方案:内核接口的供给与能力,派生状态的核对,存储的引用](2026-11-22-kernel-interface-and-derived-state-ecosystem-design.md) — active
6364
- [程序起点模型:启动者、两层入口与 `main` 的三种陈述(mcpp#845、mcpp#981)](2026-11-20-program-start-model.md) — landed
6465
- [升级的连续性:打包修订不在使用路径上替换载荷、替换失败不拆掉可用状态、home 中的悬空记录自愈、真实的升级 lane](2026-10-17-upgrade-continuity-design.md) — active
6566
- [一处来源,一种含义:工作空间的传递语义、生成输出、模块角色与首次运行(#786、#785、#778、#790)](2026-10-10-one-source-one-meaning-design.md) — landed
@@ -215,6 +216,7 @@ Records that declare one. Everything else is listed by date below.
215216
### 2026-11
216217

217218
- [测试与 CI 一轮的收尾:平台列未命中的刷新条件(mcpp#996)、`i686-windows-msvc` 行、工作区索引与引号键的迁移、索引的全量验证](2026-11-22-test-round-wrap-up-plan.md) — active
219+
- [生态级方案:内核接口的供给与能力,派生状态的核对,存储的引用](2026-11-22-kernel-interface-and-derived-state-ecosystem-design.md) — active
218220
- [包的特性作为机器可读的回答:一个目录项,两种来源,三种状态(mcpp#992)](2026-11-21-package-features-query-design.md) — active
219221
- [离线、宿主输入与工具链的缺省:按内容取归档的来源、项目的取齐、宿主输入的声明、工具链的解析与锁、缺省版本的规则(mcpp#988、#989、#990)](2026-11-21-offline-host-inputs-and-toolchain-defaults-design.md) — active
220222
- [构建程序的输入由观测给出:编译读到的文件、三道闸门的同一份记录、头文件的用法提示、提示的统一机制、契约中名字的歧义(mcpp#991、#852)](2026-11-21-build-program-observed-inputs-design.md) — active

‎.github/actions/bootstrap-mcpp/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ inputs:
3333
# `package.name`, so one of the two was simply unreachable — and which one
3434
# depended on the machine, which is why CI failed on `compat:lua` on
3535
# Windows and `mcpplibs.capi:lua` on Linux. Never pin below that.
36-
default: '2026.11.21.1'
36+
default: '2026.11.23.1'
3737

3838
outputs:
3939
sandbox-key:

‎.github/actions/e2e-mtest/action.yml‎

Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,44 @@ description: >
66
`--shard` divides the suite by measured time and a run orders its tests
77
longest first. Exports E2E_MTEST for run_all.sh. A run with no store of main
88
divides by count, and its own store becomes the next run's history.
9+
Every shard computes its own part, so the parts cover the suite only when
10+
every shard reads the same history and the same coverage map: ci.yml's plan
11+
resolves both runs once (outputs `history`, `coverage`) and passes them to
12+
each shard, and a run that kept them but cannot be read fails the step
13+
rather than dividing by other data (CI, 2026-11-23: one macOS shard divided
14+
by count, three by history, and test 1033 fell in no part).
915
1016
inputs:
1117
host:
1218
description: >
1319
the host's name in the stores' artifact names (linux, macos, windows), or
1420
`*` for every host's (the plan of ci.yml)
1521
required: true
22+
history:
23+
description: >
24+
the run whose stores are the history (the plan's `history` output);
25+
`none` when main has no such run; empty to resolve it here
26+
required: false
27+
default: ''
28+
coverage:
29+
description: >
30+
the run whose coverage map selects the `pr` set (the plan's `coverage`
31+
output); `none` when there is no map; empty to resolve it here
32+
required: false
33+
default: ''
1634
token:
1735
description: a token that reads this repository's actions
1836
required: false
1937
default: ${{ github.token }}
2038

39+
outputs:
40+
history:
41+
description: the run whose stores were read, or `none`
42+
value: ${{ steps.history.outputs.run }}
43+
coverage:
44+
description: the run whose coverage map was read, or `none`
45+
value: ${{ steps.coverage.outputs.run }}
46+
2147
runs:
2248
using: composite
2349
steps:
@@ -35,36 +61,51 @@ runs:
3561
git fetch --no-tags --depth=1 origin "+refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}" || true
3662
git fetch --no-tags --deepen=1 origin || true
3763
- name: The stores of main's last CI run
64+
id: history
3865
shell: bash
3966
env:
4067
GH_TOKEN: ${{ inputs.token }}
4168
HOST: ${{ inputs.host }}
69+
RUN: ${{ inputs.history }}
4270
run: |
4371
set -euo pipefail
44-
run=$(bash .github/tools/main_run.sh) # main's, or the run it registered (design 2026-11-20 §5.22)
45-
if [ -z "$run" ]; then echo "no successful run of main: the suite is divided by count"; exit 0; fi
72+
# main's, or the run it registered (design 2026-11-20 §5.22)
73+
[ -n "$RUN" ] || RUN=$(bash .github/tools/main_run.sh)
74+
[ -n "$RUN" ] || RUN=none
75+
echo "run=$RUN" >> "$GITHUB_OUTPUT"
76+
if [ "$RUN" = none ]; then echo "no successful run of main: the suite is divided by count"; exit 0; fi
4677
rm -rf "$RUNNER_TEMP/e2e-stores"
47-
if ! gh run download "$run" -R "$GITHUB_REPOSITORY" -p "e2e-store-$HOST-*" -D "$RUNNER_TEMP/e2e-stores" 2>/dev/null; then
48-
echo "main's run $run kept no store for $HOST: the suite is divided by count"; exit 0
78+
bash .github/tools/run_artifacts.sh "$RUN" "e2e-store-$HOST-*" "$RUNNER_TEMP/e2e-stores"
79+
if [ ! -d "$RUNNER_TEMP/e2e-stores" ]; then
80+
echo "main's run $RUN kept no store for $HOST: the suite is divided by count"; exit 0
4981
fi
5082
for store in "$RUNNER_TEMP"/e2e-stores/*/; do
5183
(cd tests/e2e && "$E2E_MTEST" store import --from "$store")
5284
done
53-
echo "history of main's run $run: $(ls "$RUNNER_TEMP/e2e-stores" | wc -l) store(s)"
85+
echo "history of main's run $RUN: $(ls "$RUNNER_TEMP/e2e-stores" | wc -l) store(s)"
5486
# The coverage map of the last nightly measurement (e2e-coverage.yml), on
5587
# the host it was measured on: the sources each test's run executed there.
5688
# Another host's own sources (src/native/windows/...) run on no Linux test,
5789
# so its suite has no map and every test of it is affected.
5890
- name: The coverage map
91+
id: coverage
5992
if: inputs.host == 'linux' || inputs.host == '*'
6093
shell: bash
6194
env:
6295
GH_TOKEN: ${{ inputs.token }}
96+
RUN: ${{ inputs.coverage }}
6397
run: |
6498
set -euo pipefail
65-
run=$(gh run list -R "$GITHUB_REPOSITORY" --workflow e2e-coverage.yml --status success --limit 1 \
66-
--json databaseId -q '.[0].databaseId' 2>/dev/null || true)
67-
if [ -z "$run" ]; then echo "no coverage map: every test is affected"; exit 0; fi
99+
if [ -z "$RUN" ]; then
100+
RUN=$(gh run list -R "$GITHUB_REPOSITORY" --workflow e2e-coverage.yml --status success --limit 1 \
101+
--json databaseId -q '.[0].databaseId')
102+
[ -n "$RUN" ] || RUN=none
103+
fi
104+
echo "run=$RUN" >> "$GITHUB_OUTPUT"
105+
if [ "$RUN" = none ]; then echo "no coverage map: every test is affected"; exit 0; fi
68106
rm -rf "$RUNNER_TEMP/e2e-coverage"
69-
gh run download "$run" -R "$GITHUB_REPOSITORY" -n e2e-coverage-linux -D "$RUNNER_TEMP/e2e-coverage" || exit 0
70-
(cd tests/e2e && "$E2E_MTEST" coverage import --from "$RUNNER_TEMP/e2e-coverage/coverage.json")
107+
bash .github/tools/run_artifacts.sh "$RUN" "e2e-coverage-linux" "$RUNNER_TEMP/e2e-coverage"
108+
if [ ! -d "$RUNNER_TEMP/e2e-coverage" ]; then
109+
echo "the coverage run $RUN kept no map: every test is affected"; exit 0
110+
fi
111+
(cd tests/e2e && "$E2E_MTEST" coverage import --from "$RUNNER_TEMP"/e2e-coverage/*/coverage.json)

‎.github/actions/setup-macos-llvm/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inputs:
1515
# Floor imposed by the index, not a routine bump — see
1616
# .github/actions/bootstrap-mcpp/action.yml for why 0.4.69 is required
1717
# (two packages named `lua` in one repo need openxlings/xlings#381).
18-
default: '2026.11.21.1'
18+
default: '2026.11.23.1'
1919
image:
2020
description: >
2121
The runner label the job runs on (macos-15, xcode-27). It is part of the

‎.github/tools/run_artifacts.sh‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/usr/bin/env bash
2+
# run_artifacts.sh <run> <glob> <dir> -- download the artifacts of a workflow run
3+
# whose names match <glob>, one directory each below <dir>. A run that kept no
4+
# such artifact leaves <dir> absent and exits 0; a run that kept one that cannot
5+
# be read after three attempts exits 1. The caller tells "nothing to read" from
6+
# "could not read" by that difference, never by a silenced failure: the e2e
7+
# shards each divide the suite by what they read, and a shard that read less
8+
# than the others divided it differently (CI, 2026-11-23). Reads
9+
# GITHUB_REPOSITORY and GH_TOKEN.
10+
set -uo pipefail
11+
run="${1:?run_artifacts.sh: no run}"
12+
glob="${2:?run_artifacts.sh: no name pattern}"
13+
dir="${3:?run_artifacts.sh: no directory}"
14+
repo="${GITHUB_REPOSITORY:?run_artifacts.sh: GITHUB_REPOSITORY is not set}"
15+
16+
names=""
17+
for attempt in 1 2 3; do
18+
if names=$(gh api --paginate "repos/$repo/actions/runs/$run/artifacts?per_page=100" \
19+
-q '.artifacts[] | select(.expired | not) | .name'); then
20+
break
21+
fi
22+
names=""
23+
[ "$attempt" = 3 ] && { echo "::error::the artifacts of run $run cannot be listed"; exit 1; }
24+
sleep 15
25+
done
26+
27+
matched=0
28+
while read -r name; do
29+
# shellcheck disable=SC2053 # the pattern is a glob by intent
30+
[[ -n "$name" && "$name" == $glob ]] && matched=1
31+
done <<<"$names"
32+
[ "$matched" = 1 ] || exit 0
33+
34+
for attempt in 1 2 3; do
35+
rm -rf "$dir"
36+
if gh run download "$run" -R "$repo" -p "$glob" -D "$dir"; then
37+
exit 0
38+
fi
39+
sleep 15
40+
done
41+
rm -rf "$dir"
42+
echo "::error::run $run keeps artifacts matching '$glob', and they cannot be downloaded"
43+
exit 1

‎.github/tools/system-names.baseline‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# One number per word: its occurrences in the engine's sources
22
# (.github/tools/check_system_names.py). The numbers only fall.
3-
linux 62
3+
linux 58
44
macos 49
55
windows 70
66
freebsd 1

‎.github/tools/upgrade_lane.sh‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,12 @@ if [ "$VARIANT" = modules ]; then
263263
# A BMI of another spelling is not read: the dependency is rebuilt once (its
264264
# cache key carries the spelling), then served from the cache. The spelling
265265
# moved in 2026.10.26.2 (the module map's `$root`), in 2026.11.19.1 (a
266-
# package instance's directory, mcpp#953) and in 2026.11.21.1 (an instance
267-
# is its configuration's, mcpp#986); a previous release from the last move
268-
# on spells as this one, and its entry is served at once.
269-
spelled_since=2026.11.21.1
266+
# package instance's directory, mcpp#953), in 2026.11.21.1 (an instance
267+
# is its configuration's, mcpp#986) and in 2026.11.23.1 (a Linux compile
268+
# names the kernel headers it was decided to use, design 2026-11-22 §3.1); a
269+
# previous release from the last move on spells as this one, and its entry
270+
# is served at once.
271+
spelled_since=2026.11.23.1
270272
# The directory a served BMI is staged into: `<namespace>.<name>/` before
271273
# 2026.11.21.1, `<namespace>_<name>/<instance>/` from it (mcpp#986). Either
272274
# is the dependency's; the staging, not the directory's name, is asserted.

‎.github/workflows/bootstrap-macos.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# Dormant (workflow_dispatch only), but kept in step with the rest —
1818
# check_version_pins.sh holds it there. Floor: 0.4.69, below which the
1919
# index cannot resolve two packages that share a short name.
20-
XLINGS_VERSION: '2026.11.21.1'
20+
XLINGS_VERSION: '2026.11.23.1'
2121
steps:
2222
- uses: actions/checkout@v4
2323

‎.github/workflows/ci-bootstrap.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
os: [ubuntu-24.04, macos-15, windows-2025]
4242
env:
4343
XLINGS_NON_INTERACTIVE: '1'
44-
XLINGS_VERSION: '2026.11.21.1'
44+
XLINGS_VERSION: '2026.11.23.1'
4545
steps:
4646
- uses: actions/checkout@v4
4747

@@ -50,7 +50,7 @@ jobs:
5050
shell: bash
5151
run: |
5252
set -euo pipefail
53-
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.21.1
53+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.23.1
5454
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
5555
echo "$HOME/.xlings/bin" >> "$GITHUB_PATH"
5656
@@ -124,7 +124,7 @@ jobs:
124124
shell: bash
125125
run: |
126126
set -euo pipefail
127-
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.21.1
127+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.23.1
128128
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
129129
130130
- name: Install the newest release and build the tree with it (mcpp build --strict)

0 commit comments

Comments
 (0)