Skip to content
Back to skills

Unit Lifecycle

ASecurity

Check changes to the unit stage table or the merge lane against their TLA+ models and real-code replay.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 28, 2026
ai-agentsbash

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add ZenoWangzy/zenoforge --skill unit-lifecycle --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unit Lifecycle?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unit Lifecycle
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zenowangzy-unit-lifecycle/badge)](https://www.skillsdirectory.com/skills/zenowangzy-unit-lifecycle)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: verify-unit-lifecycle-and-merge-lane
description: Check changes to the unit stage table or the merge lane against their TLA+ models and real-code replay.
---

# Verify unit lifecycle and merge-lane exclusion

The model and replay scope are in `README.md`.

## Covered files

- `engine/state/scheduling-policy.json`
- `engine/mac-autopilot/scheduler.d/units.sh`
- `engine/mac-autopilot/scheduler.d/unit-transition-log.sh`
- `engine/mac-autopilot/scheduler.d/locks-views.sh`
- `engine/mac-autopilot/scheduler.d/merge-lane.sh`
- `engine/mac-autopilot/scheduler.sh`
- `engine/lib.d/dispatch-gates.sh`

## Checks

1. Run `bash engine/formal/unit-lifecycle/verify.test.sh` for real-code replay and table drift.
2. Run `bash engine/formal/unit-lifecycle/verify-model.sh` when TLC is installed.
3. If TLC reports an unexpected result, keep the printed result and trace; do not change the expected result to hide it.
4. If a new runtime caller enters the merge lane, update the model and replay expectations in the same change.

Files in this skill

  • MergeLane.tla850 B
  • README.md2.4 KB
  • SKILL.md1 KB
  • UnitLifecycle.tla4.3 KB
  • gen-edges.sh1.1 KB
  • lifecycle.cfg89 B
  • merge-flock.cfg61 B
  • merge-no-lock.cfg62 B
  • replay.test.sh4.3 KB
  • table-drift.test.sh848 B
  • verify-model.sh1.9 KB
  • verify-model.test.sh527 B
  • verify.test.sh802 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.