verify-session-execution
Skill1.9k starsChanged 4 days agoApache-2.0View on GitHub
Model-check Session Inbox multi-client delivery, Stop, submission, retained retries, output waiting and cross-session progress; replay findings against production dispatch, gate, Effect and SQLite boundaries.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about LodyAI/Lody
- LodyAI/acp-extension-codex“feat: expose native session archives through Lody Core”GitHub · Nov 3, 2026 · 1 reactions
- LodyAI/acp-extension-core“feat: define reversible session archive capabilities”GitHub · Nov 3, 2026 · 1 reactions
- Asuka109/Lody“feat: download oversized remote session files in ranges”GitHub · Oct 15, 2026 · 1 reactions
- LodyAI/lody-android“feat(roost): migrate Android runtime to Roost 0.4.0 bidirectional Streams sync (M5)”GitHub · Dec 2, 2026
- LodyAI/lody-ios“feat(roost): migrate iOS cloud-runtime to Roost 0.4.0 bidirectional Streams sync (M5)”GitHub · Dec 2, 2026
The biggest 5 of 45 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 45
Talked about on GitHub (45 times).
On GitHub · 45
- Nov 3, 2026feat: expose native session archives through Lody Core — LodyAI/acp-extension-codex1 reaction · 1 comment
- Nov 3, 2026feat: define reversible session archive capabilities — LodyAI/acp-extension-core1 reaction · 2 comments
- Oct 15, 2026feat: download oversized remote session files in ranges — Asuka109/Lody1 reaction · 2 comments
- Dec 2, 2026feat(roost): migrate Android runtime to Roost 0.4.0 bidirectional Streams sync (M5) — LodyAI/lody-android0 reactions
- Dec 2, 2026feat(roost): migrate iOS cloud-runtime to Roost 0.4.0 bidirectional Streams sync (M5) — LodyAI/lody-ios0 reactions
40 more on GitHub
- Dec 2, 2026feat(runtime): mirror session_chat operation_progress projection — LodyAI/lody-android0 reactions
- Dec 2, 2026feat(runtime): project session_chat operation_progress cards as reply — LodyAI/lody-ios0 reactions
- Dec 2, 2026feat(runtime): mirror session_chat and session_chat_many operation_progress projection — LodyAI/lody-android0 reactions
- Dec 2, 2026feat(runtime): project session_chat and session_chat_many operation_progress cards as reply items — LodyAI/lody-ios0 reactions
- Nov 30, 2026feat(chat): make inline-code URLs clickable, truncate bare autolinks at CJK punctuation, and skip loopback hosts — LodyAI/lody-android0 reactions
- Nov 29, 2026feat(today): implement native iOS Today daily outline notes behind feature gate — LodyAI/lody-ios0 reactions
- Nov 21, 2026fix(cli): publish session diffStats on workspace watch refreshes — Edger/Lody0 reactions
- Nov 19, 2026fix: skip account admission for debug offline fixtures — LodyAI/lody-android0 reactions
- Nov 18, 2026chore: import the native Android client from Lody — LodyAI/lody-android0 reactions
- Nov 18, 2026fix: align mobile runtime sync dependencies — LodyAI/lody-ios0 reactions
- Nov 18, 2026fix: recover mobile catalog sync and keep catch-up responsive — LodyAI/lody-ios0 reactions
- Nov 18, 2026fix: keep Electron Node mode out of Codex project commands [risk:medium] — LodyAI/acp-extension-codex0 reactions
- Nov 18, 2026fix: keep Electron Node mode out of Claude project commands [risk:medium] — LodyAI/acp-extension-claude0 reactions
- Nov 17, 2026fix: restore context window after ACP session resume — LodyAI/acp-extension-dsh0 reactions
- Nov 4, 2026perf: defer ACP validation schema construction — LodyAI/acp-extension-codex0 reactions
- Nov 3, 2026feat: archive and restore Claude sessions through the native SDK — LodyAI/acp-extension-claude0 reactions · 3 comments
- Nov 1, 2026fix: upgrade bundled Claude Code to 2.1.316 — LodyAI/acp-extension-claude0 reactions
- Oct 28, 2026fix: fork Pi sessions at completed native boundaries — LodyAI/acp-extension-pi0 reactions
- Oct 24, 2026Update DimCode icon to the 45:32 brand mark — agentclientprotocol/registry0 reactions
- Oct 11, 2026fix: trace Live Activity registration and lifecycle — LodyAI/lody-ios0 reactions · 2 comments
- Oct 10, 2026fix: delegate automatic session titles to ACP clients — LodyAI/acp-extension-codex0 reactions
- Oct 10, 2026fix: preserve official DeepSeek Messages endpoints — LodyAI/acp-extension-dsh0 reactions
- Oct 8, 2026fix: support inline prompts after /plan — LodyAI/acp-extension-codex0 reactions
- Oct 7, 2026[BUG] RTCPeerConnection.close() does not cancel or join in-flight ICE/TURN gathering — shinyoshiaki/werift-webrtc0 reactions · 1 comment
- Sep 26, 2026feat: define normalized subagent event contract — LodyAI/acp-extension-core0 reactions
- Sep 24, 2026feat: use native Harness session titles — LodyAI/acp-extension-dsh0 reactions
- Sep 24, 2026feat: advertise and tag native session titles — LodyAI/acp-extension-grok0 reactions
- Sep 24, 2026feat: advertise automatic session title capability — LodyAI/acp-extension-codex0 reactions
- Sep 24, 2026feat: advertise and tag automatic session titles — LodyAI/acp-extension-claude0 reactions
- Sep 24, 2026feat: declare automatic session title capability — LodyAI/acp-extension-core0 reactions
- Sep 24, 2026fix(chat): keep slash menu off URLs and paths — ThinkInAIXYZ/deepchat0 reactions · 1 comment
- Sep 23, 2026[BUG] URL 或路径中的斜杠误触发命令补全,导致 Enter 无法发送消息 — ThinkInAIXYZ/deepchat0 reactions · 1 comment
- Sep 13, 2026test: await usage accounting test completion — LodyAI/acp-extension-core0 reactions
- Sep 10, 2026OSS 功能对齐 — LodyAI/lody-ios0 reactions · 1 comment
- Sep 9, 2026fix: await settings profile smoke tests — LodyAI/acp-extension-dsh0 reactions
- Sep 7, 2026[Request]: Lody — ScoopInstaller/Extras0 reactions
- Sep 6, 2026fix: seed Grok session permission flags like the TUI — LodyAI/acp-extension-grok0 reactions
- Aug 29, 2026fix: notify Grok runtime on always-approve session start — LodyAI/acp-extension-grok0 reactions · 2 comments
- Aug 29, 2026[Bug] always-approve session start omits yolo_mode_changed notification — LodyAI/acp-extension-grok0 reactions · 1 comment
- Aug 27, 2026【开源自荐】Lody: 面向团队与 Coding Agent 的共享工作区 — ruanyf/weekly0 reactions
In this repository15 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- .agents/docs/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .agents/notes/AGENTS.mdAGENTS.md
- e2e/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- site-docs/AGENTS.mdAGENTS.md
- specs/AGENTS.mdAGENTS.md
- archive-agent-notesSkill
- delete-commentSkill
- effect-tsSkill
- effect-v3-to-v4Skill
- failure-containment-reviewSkill
- lody-loro-sync-stackSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 46
Read owning AGENTS.md, the Session orchestration Spec, the failure-containment guide, Effect reference and the storage decision before …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Verify Session Inbox availability and execution
Use for the covered delivery, dispatch recovery, Inbox service, SQLite, execution owner and reply-ordering gate. This is one subsystem with scheduling, delivery, output and shared-writer retry slices, not a proof of their entire composition. Follow coverage.json, expanded-coverage.json and requirements.md. Source mapping pins the verified product commit and exact source hashes. Git tracks model and verifier revisions; their hashes are not duplicated in the mapping. The separate verification commit follows that product commit.
Run
From the repository root:
python3 .agents/verification/state-machines/check.pyOn a new machine add --prepare-tools once. It installs the portable locked dependencies in an external temporary directory, never in the app. The lockfile pins transitive packages and integrity checks for npm ci; keep it for reproducible native-SQLite replays. --tools selects an existing exact-version tool tree; --out must be fresh and outside the repo. Use the supported Node runtime, Python 3 and Java 11+. TLC is pinned and checksum-verified. BFS temporal checking needs local RMI socket access; unavailable execution is not PASS.
Exit 0 means all requested current-source properties passed. Exit 1 is a property failure. Exit 2 means the check could not complete. Failed old-code variants are deliberate mutations and must be caught; a failing current baseline must never be relabeled as an expected PASS. summary.json keeps raw evidence paths separate from property results.
The current corrected baseline checks:
- Shared SQLite BUSY: one native blocking attempt per scan, retained work, scoped retry cancellation and recovery after unlock.
BusyScan.tlaabstracts the delay; native SQLite plus TestClock checks the real implementation. The original driver's single-call five-second wait remains. - Scheduling safety, Stop/final start, fixed membership, unknown non-replay, retained receipts and independent-session progress under a persistent local fault.
- Two-client history/RPC/receipt/activation delivery, permanent first-input partition, per-ID negative acknowledgements, and eventual explicit outcome under the declared fairness assumptions.
- Output waiting with a hung pre-open callback: the original deadline or disposal releases waiters, and cooperative late callbacks do not issue stale writes. Progress does not assume the user eventually presses Stop.
- Real Effect/SQLite source traces, two batch-local SQL faults (trigger and native capacity limit), independent retry categories, prepare/report/launch failures, 336 Stop/new-input/epoch timelines, 24 cancel snapshots and 30 arrival-order snapshots.
- Broken model/source variants that restore scan blocking, drop receipts, bypass start/owner fences, forget negative acknowledgements or strand output waiters.
expanded.py --source-only runs the additional source witnesses. --safety-only uses exhaustive DFID safety checks and explicitly omits temporal properties. It requires TLC's completion message, not merely reaching its depth budget. Neither option is a replacement for the default full check.
Preserve the boundary
A local failure affects its dependent action. Retry every independent receipt, retain failed entries and return the full combined Cause to an explicit recovery caller. Background scanning reports that failure and continues. Prepare each candidate independently. A shared OrchestrationStorageFailure.kind=busy stops that connection's current pass and arms one scope-owned retry (250 ms doubling to 2 s); coalesce scan wakes until it fires. Publishing its flag and fiber is uninterruptible, but its delay is interruptible. Explicit admission remains available, and scope closure cancels the retry. Do not treat row-local errors or SQLITE_FULL as a shared lock. Diagnostics and synchronous adapter exceptions cannot kill the scanner or strand running. Stop vetoes the affected old input; it is not a workspace readiness gate. A completely unwritable database cannot authorize unrecorded input, and an unknown submitted request must never replay.
missingHistoryUserMsgIds is host-owned, append-only identity evidence, with legacy scalar compatibility. Only the serialized host watcher appends it. Producers never clear acknowledgements to publish a new activation. Old timeouts cannot accuse newer activation. Every input eligibility path and the renderer use the shared predicate. Test fresh-ID progress as well as old-ID exclusion.
The reply gate has waiting/opening/open phases. Keep its original deadline while the pre-open callback runs. Deadline releases waiters while the live callback continues adding author/model metadata. Only disposal (including after timeout already opened the gate) aborts later callback steps; abort does not undo an already-issued write. The MessageHandler checks that signal before issuing its assistant-entry write. Finalization disposes its captured gate before persisting finish-assistant; do not wait until turn-state cleanup. An old callback or finalization cannot cancel a successor gate.
SQL commits are synchronous transactions. Do not combine across real awaits or introduce a global Wait to conceal a deadlock. Keep the worker latch, durable slot, provider work and retained write receipts distinct. The native service is already Effect v4; this repair adds no runtime owner or migration chain.
Model upkeep and statecharts
Read owning AGENTS.md, the Session orchestration Spec, the failure-containment guide, Effect reference and the storage decision before editing a mapped boundary. Review source changes before refreshing hashes. Replay every new counterexample against real code; a source-selection witness is not evidence of actual Agent execution.
Read every TLA+ result using pstack /statechart at commit 6b0300214a09fd6029cfb7077043125758cd1fd2. Run <pstack>/skills/statechart/scripts/statechart <external-output>/expanded/gate-completing/Model.tla --config <external-output>/expanded/gate-completing/Model.cfg --view .agents/skills/verify-session-execution/gate-view.mjs --out /tmp/lody-gate-chart-new; use a fresh external output folder. Reports and TLC output stay there; copy only the necessary Mermaid source into this skill. Use view.mjs for the restricted scheduler chart, gate-view.mjs for the current reply flow, and the diagnostic views for complete loop/mutation reports. The main source checker writes each checked model/config to its external result folder for this purpose. Charts over 500 states may be omitted; the report still records the checks. Presentation scenarios and merged labels are not the proof bounds.
The explanation, current charts and coverage maps describe the scope. Raw reports and result snapshots are generated only in the external output folder. This is finite model checking and production-boundary replay, not unbounded full-app refinement, real replication/E2EE/host-lease proof, provider execution, mobile/native acceptance or proof that failed storage is available. Use pstack /maintain-formal-verification-skill after covered changes that bypassed this workflow.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

