Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
cdf43d3
feat: the kernel headers are the kernel-abi layer's, platform keys ho…
Sunrisepeak Nov 22, 2026
54ae9ef
feat: riscv64-linux-musl is a preview row built by the musl cross pay…
Sunrisepeak Nov 22, 2026
533fbe6
feat: the iOS simulator rows state simctl-run as their runner, enable…
Sunrisepeak Nov 22, 2026
1fb1c76
feat: a build holds the store's payloads it uses as roots; mcpp cache…
Sunrisepeak Nov 22, 2026
10ceab4
feat: emit build-database states S1 0.4.0, which defines ide.generate…
Sunrisepeak Nov 22, 2026
739f28c
fix: a platform-defined row takes its provider's linkage, a path plat…
Sunrisepeak Nov 22, 2026
ec6f8bf
fix: the provider's collection is asked of an xlings that keeps roots…
Sunrisepeak Nov 22, 2026
ff99e86
design record §10: the collection asked of a provider that reads root…
Sunrisepeak Nov 22, 2026
9e555f7
fix: a bare-metal row a platform defines is compiled and verified for…
Sunrisepeak Nov 22, 2026
811348b
e2e 1157: a bare-metal row a platform defines is compiled for its cla…
Sunrisepeak Nov 22, 2026
5ab858d
openkal-platform 0.32.0 is the default platform of the openkal rows
Sunrisepeak Nov 23, 2026
d1234d6
ci: every xlings pin is 2026.11.23.1, the provider the handshake requ…
Sunrisepeak Nov 23, 2026
1e515b5
2026.11.23.1: the kernel headers are the kernel-abi layer's, platform…
Sunrisepeak Nov 23, 2026
a27ab1d
test: a planned row answers a pattern whose rows are all planned, i68…
Sunrisepeak Nov 23, 2026
12bf326
test: the bases fixture copies the kernel headers' content, which the…
Sunrisepeak Nov 23, 2026
59c4f5e
fix: a present root is exchanged, not renamed over (refused on Window…
Sunrisepeak Nov 23, 2026
93df062
fix: the held refusal of a target this host cannot serve is released …
Sunrisepeak Nov 23, 2026
4a8762f
fix: a compiler-run generation is renamed out of use before it is rem…
Sunrisepeak Nov 23, 2026
e14244e
ci: the release's full run (ci:full, ci:canaries)
Sunrisepeak Nov 23, 2026
d7d7337
ci: the upgrade lane spells 2026.11.23.1, the matrix declares the mea…
Sunrisepeak Nov 23, 2026
7d2c6ff
fix: a compiler's registration is answered on the one connection whil…
Sunrisepeak Nov 23, 2026
277e0a8
fix: mcpp test over several legs names a leg that did not build, in i…
Sunrisepeak Nov 23, 2026
d6ab311
openkal-platform 0.32.1 is the default: riscv64-linux-musl in its hos…
Sunrisepeak Nov 23, 2026
89621bd
docs: riscv64-linux-musl's conformance suite under qemu-user, and the…
Sunrisepeak Nov 23, 2026
dd6a4ca
matrix: riscv64-linux-musl with llvm is served by openkal-platform 0.…
Sunrisepeak Nov 23, 2026
68d0878
test: the registration cases wait for events, not for a time
Sunrisepeak Nov 23, 2026
b31e1da
fix: what the build deploys beside the program is a root of the pack'…
Sunrisepeak Nov 23, 2026
cff1845
fix: the program's own trace comes before the preloaded one
Sunrisepeak Nov 23, 2026
ace5e03
test: the target-rows snapshot records openkal-platform 0.32.1, the d…
Sunrisepeak Nov 23, 2026
8b23684
test: the Windows matrix cell of riscv64-linux-musl with msvc is the …
Sunrisepeak Nov 23, 2026
6c457bb
ci: every e2e shard divides the suite by the history and coverage map…
Sunrisepeak Nov 23, 2026
b18ec60
test: the surface ledger waives no use of target.<sel>.carrier, which…
Sunrisepeak Nov 23, 2026
c088fdd
ci: the stores' name pattern ends in a wildcard, so that a shard read…
Sunrisepeak Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .agents/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ superseded_by: 2026-09-07-....md # when status is superseded
---
```

372 records.
373 records.

## By subject

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

### design

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

- [测试与 CI 一轮的收尾:平台列未命中的刷新条件(mcpp#996)、`i686-windows-msvc` 行、工作区索引与引号键的迁移、索引的全量验证](2026-11-22-test-round-wrap-up-plan.md) — active
- [生态级方案:内核接口的供给与能力,派生状态的核对,存储的引用](2026-11-22-kernel-interface-and-derived-state-ecosystem-design.md) — active
- [包的特性作为机器可读的回答:一个目录项,两种来源,三种状态(mcpp#992)](2026-11-21-package-features-query-design.md) — active
- [离线、宿主输入与工具链的缺省:按内容取归档的来源、项目的取齐、宿主输入的声明、工具链的解析与锁、缺省版本的规则(mcpp#988、#989、#990)](2026-11-21-offline-host-inputs-and-toolchain-defaults-design.md) — active
- [构建程序的输入由观测给出:编译读到的文件、三道闸门的同一份记录、头文件的用法提示、提示的统一机制、契约中名字的歧义(mcpp#991、#852)](2026-11-21-build-program-observed-inputs-design.md) — active
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/bootstrap-mcpp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ inputs:
# `package.name`, so one of the two was simply unreachable — and which one
# depended on the machine, which is why CI failed on `compat:lua` on
# Windows and `mcpplibs.capi:lua` on Linux. Never pin below that.
default: '2026.11.21.1'
default: '2026.11.23.1'

outputs:
sandbox-key:
Expand Down
61 changes: 51 additions & 10 deletions .github/actions/e2e-mtest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,44 @@ description: >
`--shard` divides the suite by measured time and a run orders its tests
longest first. Exports E2E_MTEST for run_all.sh. A run with no store of main
divides by count, and its own store becomes the next run's history.
Every shard computes its own part, so the parts cover the suite only when
every shard reads the same history and the same coverage map: ci.yml's plan
resolves both runs once (outputs `history`, `coverage`) and passes them to
each shard, and a run that kept them but cannot be read fails the step
rather than dividing by other data (CI, 2026-11-23: one macOS shard divided
by count, three by history, and test 1033 fell in no part).

inputs:
host:
description: >
the host's name in the stores' artifact names (linux, macos, windows), or
`*` for every host's (the plan of ci.yml)
required: true
history:
description: >
the run whose stores are the history (the plan's `history` output);
`none` when main has no such run; empty to resolve it here
required: false
default: ''
coverage:
description: >
the run whose coverage map selects the `pr` set (the plan's `coverage`
output); `none` when there is no map; empty to resolve it here
required: false
default: ''
token:
description: a token that reads this repository's actions
required: false
default: ${{ github.token }}

outputs:
history:
description: the run whose stores were read, or `none`
value: ${{ steps.history.outputs.run }}
coverage:
description: the run whose coverage map was read, or `none`
value: ${{ steps.coverage.outputs.run }}

runs:
using: composite
steps:
Expand All @@ -35,36 +61,51 @@ runs:
git fetch --no-tags --depth=1 origin "+refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}" || true
git fetch --no-tags --deepen=1 origin || true
- name: The stores of main's last CI run
id: history
shell: bash
env:
GH_TOKEN: ${{ inputs.token }}
HOST: ${{ inputs.host }}
RUN: ${{ inputs.history }}
run: |
set -euo pipefail
run=$(bash .github/tools/main_run.sh) # main's, or the run it registered (design 2026-11-20 §5.22)
if [ -z "$run" ]; then echo "no successful run of main: the suite is divided by count"; exit 0; fi
# main's, or the run it registered (design 2026-11-20 §5.22)
[ -n "$RUN" ] || RUN=$(bash .github/tools/main_run.sh)
[ -n "$RUN" ] || RUN=none
echo "run=$RUN" >> "$GITHUB_OUTPUT"
if [ "$RUN" = none ]; then echo "no successful run of main: the suite is divided by count"; exit 0; fi
rm -rf "$RUNNER_TEMP/e2e-stores"
if ! gh run download "$run" -R "$GITHUB_REPOSITORY" -p "e2e-store-$HOST-*" -D "$RUNNER_TEMP/e2e-stores" 2>/dev/null; then
echo "main's run $run kept no store for $HOST: the suite is divided by count"; exit 0
bash .github/tools/run_artifacts.sh "$RUN" "e2e-store-$HOST-*" "$RUNNER_TEMP/e2e-stores"
if [ ! -d "$RUNNER_TEMP/e2e-stores" ]; then
echo "main's run $RUN kept no store for $HOST: the suite is divided by count"; exit 0
fi
for store in "$RUNNER_TEMP"/e2e-stores/*/; do
(cd tests/e2e && "$E2E_MTEST" store import --from "$store")
done
echo "history of main's run $run: $(ls "$RUNNER_TEMP/e2e-stores" | wc -l) store(s)"
echo "history of main's run $RUN: $(ls "$RUNNER_TEMP/e2e-stores" | wc -l) store(s)"
# The coverage map of the last nightly measurement (e2e-coverage.yml), on
# the host it was measured on: the sources each test's run executed there.
# Another host's own sources (src/native/windows/...) run on no Linux test,
# so its suite has no map and every test of it is affected.
- name: The coverage map
id: coverage
if: inputs.host == 'linux' || inputs.host == '*'
shell: bash
env:
GH_TOKEN: ${{ inputs.token }}
RUN: ${{ inputs.coverage }}
run: |
set -euo pipefail
run=$(gh run list -R "$GITHUB_REPOSITORY" --workflow e2e-coverage.yml --status success --limit 1 \
--json databaseId -q '.[0].databaseId' 2>/dev/null || true)
if [ -z "$run" ]; then echo "no coverage map: every test is affected"; exit 0; fi
if [ -z "$RUN" ]; then
RUN=$(gh run list -R "$GITHUB_REPOSITORY" --workflow e2e-coverage.yml --status success --limit 1 \
--json databaseId -q '.[0].databaseId')
[ -n "$RUN" ] || RUN=none
fi
echo "run=$RUN" >> "$GITHUB_OUTPUT"
if [ "$RUN" = none ]; then echo "no coverage map: every test is affected"; exit 0; fi
rm -rf "$RUNNER_TEMP/e2e-coverage"
gh run download "$run" -R "$GITHUB_REPOSITORY" -n e2e-coverage-linux -D "$RUNNER_TEMP/e2e-coverage" || exit 0
(cd tests/e2e && "$E2E_MTEST" coverage import --from "$RUNNER_TEMP/e2e-coverage/coverage.json")
bash .github/tools/run_artifacts.sh "$RUN" "e2e-coverage-linux" "$RUNNER_TEMP/e2e-coverage"
if [ ! -d "$RUNNER_TEMP/e2e-coverage" ]; then
echo "the coverage run $RUN kept no map: every test is affected"; exit 0
fi
(cd tests/e2e && "$E2E_MTEST" coverage import --from "$RUNNER_TEMP"/e2e-coverage/*/coverage.json)
2 changes: 1 addition & 1 deletion .github/actions/setup-macos-llvm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
# Floor imposed by the index, not a routine bump — see
# .github/actions/bootstrap-mcpp/action.yml for why 0.4.69 is required
# (two packages named `lua` in one repo need openxlings/xlings#381).
default: '2026.11.21.1'
default: '2026.11.23.1'
image:
description: >
The runner label the job runs on (macos-15, xcode-27). It is part of the
Expand Down
43 changes: 43 additions & 0 deletions .github/tools/run_artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env bash
# run_artifacts.sh <run> <glob> <dir> -- download the artifacts of a workflow run
# whose names match <glob>, one directory each below <dir>. A run that kept no
# such artifact leaves <dir> absent and exits 0; a run that kept one that cannot
# be read after three attempts exits 1. The caller tells "nothing to read" from
# "could not read" by that difference, never by a silenced failure: the e2e
# shards each divide the suite by what they read, and a shard that read less
# than the others divided it differently (CI, 2026-11-23). Reads
# GITHUB_REPOSITORY and GH_TOKEN.
set -uo pipefail
run="${1:?run_artifacts.sh: no run}"
glob="${2:?run_artifacts.sh: no name pattern}"
dir="${3:?run_artifacts.sh: no directory}"
repo="${GITHUB_REPOSITORY:?run_artifacts.sh: GITHUB_REPOSITORY is not set}"

names=""
for attempt in 1 2 3; do
if names=$(gh api --paginate "repos/$repo/actions/runs/$run/artifacts?per_page=100" \
-q '.artifacts[] | select(.expired | not) | .name'); then
break
fi
names=""
[ "$attempt" = 3 ] && { echo "::error::the artifacts of run $run cannot be listed"; exit 1; }
sleep 15
done

matched=0
while read -r name; do
# shellcheck disable=SC2053 # the pattern is a glob by intent
[[ -n "$name" && "$name" == $glob ]] && matched=1
done <<<"$names"
[ "$matched" = 1 ] || exit 0

for attempt in 1 2 3; do
rm -rf "$dir"
if gh run download "$run" -R "$repo" -p "$glob" -D "$dir"; then
exit 0
fi
sleep 15
done
rm -rf "$dir"
echo "::error::run $run keeps artifacts matching '$glob', and they cannot be downloaded"
exit 1
2 changes: 1 addition & 1 deletion .github/tools/system-names.baseline
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# One number per word: its occurrences in the engine's sources
# (.github/tools/check_system_names.py). The numbers only fall.
linux 62
linux 58
macos 49
windows 70
freebsd 1
Expand Down
10 changes: 6 additions & 4 deletions .github/tools/upgrade_lane.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,12 @@ if [ "$VARIANT" = modules ]; then
# A BMI of another spelling is not read: the dependency is rebuilt once (its
# cache key carries the spelling), then served from the cache. The spelling
# moved in 2026.10.26.2 (the module map's `$root`), in 2026.11.19.1 (a
# package instance's directory, mcpp#953) and in 2026.11.21.1 (an instance
# is its configuration's, mcpp#986); a previous release from the last move
# on spells as this one, and its entry is served at once.
spelled_since=2026.11.21.1
# package instance's directory, mcpp#953), in 2026.11.21.1 (an instance
# is its configuration's, mcpp#986) and in 2026.11.23.1 (a Linux compile
# names the kernel headers it was decided to use, design 2026-11-22 §3.1); a
# previous release from the last move on spells as this one, and its entry
# is served at once.
spelled_since=2026.11.23.1
# The directory a served BMI is staged into: `<namespace>.<name>/` before
# 2026.11.21.1, `<namespace>_<name>/<instance>/` from it (mcpp#986). Either
# is the dependency's; the staging, not the directory's name, is asserted.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bootstrap-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# Dormant (workflow_dispatch only), but kept in step with the rest —
# check_version_pins.sh holds it there. Floor: 0.4.69, below which the
# index cannot resolve two packages that share a short name.
XLINGS_VERSION: '2026.11.21.1'
XLINGS_VERSION: '2026.11.23.1'
steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
os: [ubuntu-24.04, macos-15, windows-2025]
env:
XLINGS_NON_INTERACTIVE: '1'
XLINGS_VERSION: '2026.11.21.1'
XLINGS_VERSION: '2026.11.23.1'
steps:
- uses: actions/checkout@v4

Expand All @@ -50,7 +50,7 @@ jobs:
shell: bash
run: |
set -euo pipefail
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.21.1
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.23.1
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
echo "$HOME/.xlings/bin" >> "$GITHUB_PATH"

Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
shell: bash
run: |
set -euo pipefail
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.21.1
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.23.1
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"

- name: Install the newest release and build the tree with it (mcpp build --strict)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-fresh-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
env:
XLINGS_NON_INTERACTIVE: '1'
run: |
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.21.1
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.23.1
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"

- name: Install mcpp and config mirror
Expand Down Expand Up @@ -311,7 +311,7 @@ jobs:

- name: Install xlings + mcpp
run: |
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.21.1
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.23.1
# Deliberately NOT writing to $GITHUB_PATH here. On container
# images that declare no PATH in their config (opensuse/
# tumbleweed), appending a single dir to GITHUB_PATH makes the
Expand Down Expand Up @@ -460,7 +460,7 @@ jobs:
# (older ones carry minos=15 and refuse to start).
# v0.4.51+: in-process sha256 — this image has no sha256sum
# binary, so pinned fetches failed before it.
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.21.1
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.23.1
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"

- name: Install mcpp and config mirror
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/ci-linux-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ on:
description: whether the set gives this host any case
type: boolean
default: true
history:
description: the run whose stores the plan divided by (`none` for none); empty to resolve it
type: string
default: ''
coverage:
description: the run whose coverage map the plan read (`none` for none); empty to resolve it
type: string
default: ''

jobs:
e2e:
Expand Down Expand Up @@ -105,6 +113,8 @@ jobs:
- uses: ./.github/actions/e2e-mtest
with:
host: linux
history: ${{ inputs.history }}
coverage: ${{ inputs.coverage }}

- name: E2E suite
# About twice the shard's budget of ten minutes (R4): reached only by a
Expand Down Expand Up @@ -469,7 +479,7 @@ jobs:

- name: Bootstrap xlings + released mcpp
run: |
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.21.1
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s v2026.11.23.1
export PATH="$HOME/.xlings/subos/current/bin:$PATH"
xlings update
xlings install mcpp -y -g
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ci-macos-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ on:
description: whether the set gives this host any case
type: boolean
default: true
history:
description: the run whose stores the plan divided by (`none` for none); empty to resolve it
type: string
default: ''
coverage:
description: the run whose coverage map the plan read (`none` for none); empty to resolve it
type: string
default: ''

jobs:
e2e:
Expand Down Expand Up @@ -74,6 +82,8 @@ jobs:
- uses: ./.github/actions/e2e-mtest
with:
host: ${{ matrix.image == 'macos-15' && 'macos' || matrix.image }}
history: ${{ inputs.history }}
coverage: ${{ inputs.coverage }}

- name: E2E suite
# Twice a shard's budget of about nine minutes (R4); the per-test 600 s
Expand Down
Loading
Loading