Repository navigation
Design chain land holds nothing
A bootstrap chain land holds no other push: merge the chain at the tip, cross-build re-prove, retract by pinned tag
STATUS: LANDED 180264e4b8d5 (2026-11-17) REV: 1 BASE: 3168004b7a37, tree clean, 2026-11-17
The issue: maxon-lang/maxon#230. The ruling it implements: maxon-lang/maxon#223, "A chain land holds nothing" and "The job that holds the push credential never runs a compiler built from the branch". The ordinary door it builds on: Design-one-landing-door (#229).
A chain land requires main to stand still from its plan to its push, about 27 minutes: the plan refuses a chain whose base is not main's tip, and chain, prove, publish, land and every chain-walk step re-check require_base_unmoved. /land §7 and §9 make every other author wait on scripts/land.sh in-flight --wait meanwhile, so one chain holds every land.
| Program (a branch pushed, or dispatched) | Actual | Expected |
|---|---|---|
a bootstrap chain whose base is behind main's tip, touching files main did not |
plan fails: "lands only on origin/main's tip — rebase onto it and push again" | freeze, prove and publish run on the chain as pushed; S (on the chain's merge-base) is merged onto the tip as S', the pin is written on S'
|
main moves while a chain runs |
the next guarded step fails "moved past … — nothing published"; the author rebases and runs the 27 minutes again | the run carries on; the land step merges at the tip it finds |
| any other land while a chain runs |
/land waits on land.sh in-flight --wait
|
lands at once |
| a chain whose merge onto the tip changed a seed input | (unreachable) | the merged tree is built with the new seed for every native target, cross-built on one runner; a refusal retracts the seed and bounces |
retract after a chain land |
keeps the seed only when main holds this run's pin commit |
keeps it when main pins the tag, whatever commit carries the pin |
Paths relative to the repository root, at BASE.
-
scripts/land.sh(1282 lines).- The hold:
require_base_unmoved:807-813(comparesls-remote mainwithLAND_BASE),fail_base_moved:803-805; called bywalk_chainper step throughWalkGuarded(:290-294),command_freeze:758,command_prove:776,command_publish:819,land_chain:963(whose push is a plain non-force push,:967).command_chainwalksWalkUnguarded(:735). -
in-flight:command_in_flight:1081-1104,landing_chain_runs:1063-1079,run_is_landing_chain:1047-1061; constantsRunStatusesInFlight,JobChain,JobCredential,InFlightPollSeconds,InFlightNone:53-59.JobPlanandrun_jobsare also used byawait(newest_planned_run:1106,run_annotations:1127) and stay. - Chain plan
:674-686: refuses aScale-Note:;require_no_stand_ins(rehearsaltip/movedrefused for a chain);[ "$base" = "$tip" ] || fail …(:677);S = commit_from(head, chain, head^{tree}, base); tagseed-<date>-<S12>;require_tag_free;pin = make_pin(S, tag). -
make_pin:377-385: one commit onlandedsettingscripts/seed-tag, message "The tree is built with , frozen from ".recreate_landed/recreate_pin:388-402recomputeSand the pin from the plan's outputs (deterministic: bot committer atLAND_COMMITTED). - The ordinary machinery this change reuses:
merge_onto <tip> <base> <commit>:479-492(overlap check lessmerge=union,git --attr-source=<tip> merge-tree --write-tree,commit_fromonto the tip);seed_inputs_differ:417-427overSeedInputs:128-140;standing_tip <mode> <moment>:597-629(plan moment:tip> main; push moment:moved> plan's tip > main; main mode refuses stand-ins);redispatch/dispatch_land:855-883(bounded byattempt,MaxLandAttempts=3); the compare-and-swap push loop inland_ordinary:919-960(MaxPushAttempts=3);record_landedannotations read byawait. -
commit_from <source> <chain> <tree> <parent>:356-363→landed_message:312-344stripsLand:and appends oneBootstrap-Chain:trailer per chain commit. -
command_retract:1020-1040: keeps the seed whenLAND_PINis an ancestor oforigin/main; otherwise deletes the release (after checking the tag is onLAND_LANDED), the tag and the-chainref, each checked against this run's commits.
- The hold:
-
.github/workflows/land.yml(276 lines). Jobsplan→credential(main mode) /chain(freeze) →prove(native matrix, checks out the head) →publish(contents: write) →land(App token; runs for a chain only inmainmode,:205) →retract(if: … chain && (rehearsal || land != success),:247-249) →consume. Plan outputs includepin;*plan-envpassesLAND_PINto every chain job. Inputsmode,head,tip,moved,attempt. -
scripts/freeze-seed.shalready cross-builds on one Linux runner:maxon run build --target=<t> --output=…for every target in$MaxonTargets.provebuilds with the seed alone:<seed> build maxon-bin --output=…(land.sh:783).fetch-seed.sh <tag> <lane>fetches a published seed and checksSHA256SUMS. -
Nothing else reads the tag's commit as being on
main: no script, workflow or tool checks that a seed tag's commit is an ancestor ofmain(grep overscripts/,.github/,.claude/).scripts/land.sh chain <S>^ <tag>-chainreachesSthrough the tag. -
The last real chain:
52f9df01b(S, on baseee3b938dc, chainbdf254c10ce4→19d6260bb881), pinned by01f5f4553withseed-2026-11-17-52f9df01bc4e. The seed pinned atee3b938dc,seed-2026-11-16-c8112863d746, refuses19d6260. -
Docs that describe the hold:
docs/RELEASING.md:117-120(chain lands only on the tip),:144-146(land pushes after checkingmainisS's parent),:147-150(retract keyed on the pin),:155-161(every job re-checks),:163-168(the in-flight hold),:203-204(Sis the commit onmainwith the trailers)..claude/skills/compiler-workflow/SKILL.md:238-245(moved-mainretracts; "a chain needs main's tip as its base"; the in-flight paragraph)..claude/skills/land/SKILL.md:42(the step table's row 7),:258-265(§7 "Wait out a chain land"),:312-313(§9 "thenin-flight"). Outside the area:.claude/agents/orchestrator.md:163(workers hold pushes while a chain is in flight). -
Host: git 2.36 here (no
merge-tree --write-tree); every merge is checked on the runner only.
-
Which
specsfiles own this behaviour: none. The door is a workflow and a shell script; no spec,tests/corpus or self-test exercisesland.shorland.yml. - Existing cases that touch it: none.
- Neighbouring cases: none. Acceptance is runner rehearsals (§6), as for #229.
The chain's seed is frozen, proved and published on S exactly as pushed; a new uncredentialed pin job merges S at the tip with the ordinary door's merge_onto, re-proves by cross-building when the merge changed a seed input, and writes the pin; the credentialed land job shares one compare-and-swap push loop with the ordinary land.
-
Plan. The chain's base is
merge-base(tip, head), as for an ordinary land; the "lands only on the tip" refusal goes, and so doesrequire_no_stand_insfor a chain (main mode still refuses stand-ins throughstanding_tip).Sand the tag are computed as today. The pin is no longer a plan output. The plan runsmerge_ontoofSonto the tip it read and discards the result, so a chain that overlapsmainbounces in minutes, not after the freeze (open choice 3). -
Freeze, prove, publish lose every
require_base_unmoved;walk_chainloses its guard parameter. The tag stays onS, the-chainref on the head. -
pinjob (new;contents: read, no secret; afterpublish). It reads the tip at the plan moment (standing_tip … plan: main, or the rehearsaltip).T == base:S' = S. OtherwiseS' = merge_onto(T, base, S)with one more trailer namingS(open choice 1);commit_fromgains a trailers argument in place of its chain argument so both callers go through it. Ifseed_inputs_differ(S, S'): fetch the published seed for the runner's lane and build the merged tree'smaxon-binonce per native target with--target=<t>, the seed alone, asprovebuilds (open choice 8); a refusal fails the job, andretractdeletes the seed. ThenP = make_pin(S', tag), its message still namingS("frozen from"). Outputs: the tip,S',P, whether it built. -
landjob runs for a chain in both modes (rehearsal without a token, as for ordinary). It runs git alone: it recomputesS,S'andPfrom the outputs (deterministic, so no bundle) and checksrequire_still_published. The push loop ofland_ordinarybecomes one loop for both kinds, parameterised by how a kind re-merges: tip unchanged → push the candidate; moved by no seed input → ordinary re-merges the landed commit, a chain re-mergesS'onto the new tip and writes a new pin, both with git alone; moved by a seed input → re-dispatch, bounded. Push with--force-with-leaseon the tip, bounded, as today. -
A chain's re-dispatch reuses its seed. It passes the published tag as a new dispatch input
seed(open choice 2). A plan givenseedreadsSfrom the tag, checks that it isSrecomputed for this head and base atS's committer time, checks the-chainref is on the head, and skips classification, freeze, prove and publish;pinre-proves against the new tip. Re-freezing on a main move stays ruled out. -
retractkeys on "main pins this tag": a commit onorigin/mainwhose change toscripts/seed-tagadds or removes the tag (git log -S<tag> origin/main -- scripts/seed-tag), so a later chain that moved the pin on does not make a landed seed look unpinned (open choice 4). It runs for every chain run that did not re-dispatch, in both modes, and decides by the pin; a re-dispatched attempt leaves the seed to the attempt that ends. It still deletes nothing whenmaincannot be read and checks each object against this run's commits. -
Deleted:
require_base_unmoved,fail_base_moved,WalkGuarded/WalkUnguarded,command_in_flightand its helpers and constants, thein-flightsubcommand and usage line,recreate_pin's plan-time pin, the plan'spinoutput. -
Docs:
docs/RELEASING.md(plan, chain, publish, the newpinstep, land, retract, the hold paragraph deleted, "a chain'sS" redefined, theseedinput), thennode website/scripts/sync-docs.mjs;compiler-workflow's chain section (no rebase onto the tip; a bounce is the overlap or the seed refusing the merged tree; the in-flight paragraph deleted);/land's step table row 7, §7 and §9's in-flight step (open choice 7).
Rejected:
-
Merge and re-prove inside the
landjob — it holds the credential and would run the new seed, a compiler built from the branch. -
Re-freeze on every main move, or move the seed tag to
S'— ruled out by #223. - Re-prove on the four native runners after the merge — the ruling says cross-built on one runner; four runners add queue time to the push window.
-
Re-prove with the chain's own two-stage build — a seed has to build the tree, one stage, as
provedoes. -
Pass
S'andPto the land job as a bundle — they are git-only and deterministic; the land job recomputes them, as the chain path already does forS. -
Find a re-dispatched chain's seed by searching tags for a
-chainref on the head — a search where an input states it. -
Keep
in-flightas an informational command — nothing waits on it any more; the ruling deletes it.
One implementer; then the docs pass.
-
scripts/land.sh— plan (chain base, early overlap,seedreuse),commit_fromtrailers,pinsubcommand, the shared push loop, chain re-merge and re-dispatch,retractby pin, deletions. -
.github/workflows/land.yml—seedinput,pinjob,landfor a chain in both modes,retract's condition, plan outputs (nopin; whether the seed is reused), jobneeds/if. -
docs/RELEASING.md, the site page it generates,.claude/skills/compiler-workflow/SKILL.mdchain section,.claude/skills/land/SKILL.mdrow 7, §7, §9. - Open choice 6:
.claude/agents/orchestrator.md:163.
- No compiler, runtime or stdlib source; no self-compile, seed chain, error code or cross-target arm.
- No
RELEASE_NOTES.mdentry: tooling, not Maxon source. -
docs/RELEASING.mdowns the surface; regenerate the site. -
bash -n,shellcheckonland.sh;actionlint(or a YAML parse) onland.yml;check-ignored-files.py. - Nothing about any agent fleet in a commit, the docs or this page.
The rehearsal chain. The last real chain replayed on its own base: bdf254c then 19d6260 with the change's scripts/land.sh, scripts/lib/scale-tables.sh, scripts/check-scale-rows.sh and land.yml laid over the head (the workflow runs from the branch). Its base ee3b938dc pins seed-2026-11-16-c8112863d746, which refuses the head, so the plan classifies it a chain. Every "main" is a stand-in branch off ee3b938dc: T-doc (a docs-only commit), T-seed (a seed-input change the new seed builds), T-bad (a maxon-bin change no compiler builds), each disjoint from the chain's files. Real main is never pushed and pins nothing new. Each rehearsal publishes a seed-* pre-release and its two refs, and its retract deletes them; whatever survives is deleted by hand at the end.
| # | Rehearsal | Asserts | Red today because |
|---|---|---|---|
| C0 | the chain with today's door, no stand-ins | plan fails "lands only on origin/main's tip" | (the red) |
| C1 | tip=T-doc |
freeze/prove/publish run; tag on S; S' on T-doc carries S's message, its Bootstrap-Chain: trailers and the trailer naming S; P on S'; the re-prove skipped; would-push holds P→S'→T-doc; retract deletes the release, tag and ref |
the plan refuses a chain not on the tip, and refuses stand-ins |
| O1 | an ordinary rehearsal started while C1 runs | it lands (would receive) before C1 ends |
/land waits on in-flight
|
| C2 | tip=T-seed |
the pin job cross-builds every native target with the new seed, green; then as C1 |
no such job |
| C3 | tip=T-bad |
the cross-build refuses; land does not run; retract deletes the seed; the run fails naming the refusal |
no such job |
| C4 |
tip=T-doc, moved=T-doc+a docs commit |
land re-merges S' and writes a new pin with git alone |
the land job pushes only onto S's base |
| C5 |
tip=T-doc, moved=T-doc+a seed input |
land re-dispatches attempt 2 with seed; attempt 1 retracts nothing; attempt 2 skips freeze/prove/publish, pin cross-builds on the moved tip; attempt 2's retract deletes the seed |
no such path |
| P1 |
land.sh retract run locally with the real pinned tag seed-2026-11-17-52f9df01bc4e, its S and head, GH_TOKEN set to an invalid value so nothing can be deleted |
"main pins … — stays published", exit 0; with a tag main never pinned it reaches the release check (and fails on the invalid token) |
retract keys on the pin commit's sha |
| — | structural: the land job |
no build and no maxon; the merge, cross-build and pin made in pin (contents: read) |
— |
| — | this change lands through the door |
main receives the door's commit |
— |
ONE /land.
-
The trailer naming
SonS'. Recommended:Frozen-From: <full sha of S>, added only whenS' ≠ S. -
A chain's re-dispatch carries the seed as a new
workflow_dispatchinputseed(refused unless the head is a chain whose-chainref is on it andSrecomputes). Recommended: yes. - The plan merges a chain at its tip and discards the result so an overlap bounces before the 27-minute freeze. Recommended: yes.
-
"Main pins this tag" read as "some commit on
mainset or cleared that tag inscripts/seed-tag" (git log -S), not "the tip's pin equals the tag". Recommended: the history reading, since a later chain may move the pin on beforeretractruns. -
Rehearsal moments for a chain: the
pinjob readstip, thelandjob readsmoved, the same plan/push moments the ordinary path has. Recommended: yes (no new input). -
.claude/agents/orchestrator.md:163tells workers to hold pushes during a chain land, which this change makes false; outside the area. Recommended: rewrite that sentence in this commit. -
/land§7 keeps its number and becomes the remaining sentence ("you do not rebase for the door"), so no §-reference elsewhere shifts. Recommended: yes. -
The cross-build re-prove is one stage per target (
<seed> build maxon-bin --target=<t>), asprovebuilds. Recommended: yes. -
The rehearsals publish and retract about six
seed-*pre-releases (never pinned, never onmain). Recommended: proceed.
- 2026-11-17: approved as written, one
/land; open choices 1–9 accepted as recommended (choice 6 adds.claude/agents/orchestrator.mdto the area). - 2026-11-17: rehearsed C0–C6, O1, P1 as section 6 lists (C6 added: a seeded attempt whose plan fails runs retract's fallback). Implementation choices: a chain re-merges
Sonto a moved tip (notS'), so theFrozen-From:trailer is present whenever the commit differs fromS;retractalso runs for a re-dispatched attempt whose plan did not succeed, binding the seed to the head by recomputingS;provepasses--target=<its lane>through the helper it shares with the cross-build.