AirPlan V2 initial release — unified scheduler with 12 sub-modes

Merges 8 V1 plugins into 1 unified plugin, adds 4 new components (dep, tst, sec, rvr).
12 sub-modes: arc, eng, do, dbg, xdb, sdb, ndb, ctx, dep, tst, sec, rvr.
L1 code-level guarantees: atomic writes, file locks, evidence gating, forced debug routing,
3-phase arc gate, evidence-first debug gate, Chinese language lock, scheduler boundary.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
AirPlan Team
2026-06-10 16:24:26 +08:00
commit 2c4b3340bf
81 changed files with 6005 additions and 0 deletions

46
commands/airplan.md Normal file
View File

@@ -0,0 +1,46 @@
---
description: "AirPlan V2 - unified scheduler with 12 modes"
argument-hint: "[arc|eng|do|dbg|xdb|sdb|ndb|ctx|dep|tst|sec|rvr] [sub-command]"
allowed-tools: "[Read, Glob, Grep, Bash, Write, Edit]"
---
# /airplan
AirPlan V2 - unified scheduler. V1 8 plugins merged into 1, adds 4 components, total 12 sub-modes.
## Sub-modes
| Mode | Role | Key Files |
|------|------|-----------|
| arc | Architecture planner | execution-plan.json, task-graph.json |
| eng | Scheduler engine | state/aireng/state.json |
| do | Task executor | state/airdo/tasks/{task_id}/result.json |
| dbg | Debugger | state/airdbg/sessions/*.json |
| xdb | GUI validator | state/airxdb/artifacts/ |
| sdb | Static analyzer | state/airsdb/reports/ |
| ndb | Network debugger | state/airndb/captures/ |
| ctx | Context manager | state/aircontext/ |
| dep | Deployer | state/airdep/sessions/ |
| tst | Test runner | state/airtst/reports/ |
| sec | Security scanner | state/airsec/ |
| rvr | Requirements reviewer | state/airrvr/reviews/ |
## Usage
1. Parse $ARGUMENTS; default to "status" when empty.
2. Run from project root:
```bash
python "$HOME/plugins/airplan/scripts/airplan.py" --mode <MODE> --project . [OPTIONS]
```
3. Common sub-commands:
- arc: --sub enter|status|parallel-review|incremental-replan --todo AirPlan/todo.md
- eng: --sub enter|status|plan|dispatch|monitor|merge|intervene
- do: --sub enter|status|finish --task-id <id> --result <path>
- dbg: --sub start|snapshot --task-id <id>
- dep: --sub deploy --task-id <id> --host <host> --binary <path>
- tst: --sub run --task-id <id> --framework <name>
- sec: --sub scan --task-id <id> --scan-path <path>
4. Runtime auto-bootstraps missing AirPlan/ files.