verify-landing-queue
Check the landing queue and its path leases against the TLA+ model in verification/landing-queue/. Use when a change touches…
от creedants★ 22 звезды на GitHub
Установить verify-landing-queue в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Verify the landing queue
verification/landing-queue/LandingQueue.tla and the sibling modules beside it are
a hand-written TLA+ model of the landing queue and its path leases. TLC checks the
model inside a stated bound.
TLA+ checks the model. It does not read the Python. A rerun of an unchanged model passes after a real code regression, with the same state counts. A passing rerun alone does not show the model matches the current code.
Before a passing run counts, and before Verified at moves, compare each affected
action and its helper assumptions with the changed code and update the model to
match. Start from the diff, not from the table. Run git diff --stat <Verified at> ..HEAD -- t3/added/landing/scripts/landing_lib/ and read every changed function
against its action before you run anything. A function can change behaviour without
moving a transaction boundary and without appearing in the table's right column.
Read every result with the pstack /statechart skill. It turns an invariant
violation into the shortest path to it in plain words, and draws the state graph
when nothing breaks. Use it rather than reading tlc.out yourself.
Does my change touch the verified code?
Compare the model and run the check when a change touches any of these, in
t3/added/landing/scripts/landing_lib/.
| Code | Actions in the model | Promises |
|---|---|---|
leases.py: lease_claim, lease_renew, lease_release, lease_widen |
Claim, Renew, Release, Widen |
P1, P2, P6 |
_leases/store.py: admission, in_flight |
Clash, InFlight inside every lease write |
P1 |
_leases/owner.py: check_owner, raise_floor |
Stale, OwnerAllowed, RaiseFloor |
P2 |
seam.now and lease expiry |
ClockTick |
P1, P5b, P6 |
_queue/entries.py: submit |
Submit, SubmitDuplicate |
P2, P5b |
drain.py: land and the .queue.lock flock |
DrainStart, DrainEnd, Crash |
P3a |
_queue/entries.py: reconcile |
ReconcileFetch, ReconcileAttempt, ReconcileLanding |
P3b, P5a, P5c |
_queue/entries.py: attempt; _queue/prs.py: build, build_line |
IntegrationReset, SettleAlready, BounceApply, BounceCheck, RecordLanding, BeginPublish, AbandonAttempt, SettleLanded, RecordCandidate |
P3b, P4, P5 |
_queue/entries.py: publish |
Publish, PublishRefused |
P3b, P3c |
_queue/entries.py: settle_landed, settle_bounced |
Landed, Bounced inside every settling action |
P4, P5b |
_queue/integration.py: apply, check |
ApplyRun, CheckRun |
P4, P5c |
_queue/prs.py: ensure_pr |
OpenPr, StorePr |
P4 |
_merge/rollup.py: absent_since, absence_waits |
AbsenceSeen, GraceEnds |
P4 |
_merge/required.py: request_merge |
RequestMerge |
P4 |
_merge/settle.py: take_pr |
SettleMerged |
P3b, P4 |
_merge/settle.py: bounce_open_pr |
BounceOpenPr |
P4, P5b |
These actions stand for an actor and not for our code, so read them when an assumption about that actor changes.
| Actor | Actions |
|---|---|
| The forge | ChecksPost, ChecksFinish, HeadMoves, ForgeCompletes |
| Another writer on trunk | OutsiderPush |
ReleaseThenSettle stands for no code. It is the broken order behind one variant.
The model also leans on helpers. These are foundation.overlaps,
foundation.covered, foundation.fingerprint, and Store.tx. It assumes overlap
is intersection over atomic paths, coverage is a subset test, a fingerprint is equal
exactly when a replay carries the same change, and a transaction is all or nothing.
A change to any of them can invalidate a promise without moving a transaction
boundary. So can a change to the values land.py passes to these functions.
Message-only changes do not need this comparison.
If the change moves a transaction boundary, adds or removes a Store.tx(), adds an
external call between two transactions, or changes when the queue lock is taken,
the model needs updating even when the table does not name the function. Say which
transaction moved.
Run it
One command, from the repository root:
python3 skills/landing/scripts/land.py slot -- python3 verification/landing-queue/check.py --scratch-parent <parent>
--scratch-parent is required and has no default. It takes the machine's scratch
directory, the one a brief or the restaurant's scratchDir names. Any existing
writable directory works, so when neither names one, make one with mktemp -d
and delete it afterwards. check.py creates a new directory under the parent for
each config's TLC state and deletes that directory, by its exact path, when TLC
exits. With the argument missing it prints a usage error naming
--scratch-parent and runs nothing.
It runs five base configs and every config in variants/, and exits 0 only when
each answers what the model says it should. It prints one row per config with the
states generated, the distinct states found, the deepest level, and the wall time.
Bo
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл verify-landing-queue?
Check the landing queue and its path leases against the TLA+ model in verification/landing-queue/. Use when a change touches t3/added/landing/scripts/landing_lib/, before you trust a claim about lease overlap, queue order, one trunk writer, what merges, or recovery after a crash.
Как установить скилл verify-landing-queue?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл verify-landing-queue запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…