ワンクリックで
maestro-session-seal
Seal current session with knowledge extraction and DAG progression
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Seal current session with knowledge extraction and DAG progression
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Default interactive entry for development intents — score intent + project state, recommend one atomic step, execute after confirmation. Multi-step intents: stepwise, user-confirmed manual-engine chain, or hand off to /maestro. Never auto-orchestrates
Adaptive lifecycle orchestrator — compose, dispatch ralph-executor agent, evaluate decision, loop
Auto-route intent to optimal command chain — default multi-step closed-loop orchestration; for stepwise interactive execution use /maestro-next
ACO swarm intelligence with modular Workflow composition and adversarial decision gates. Coordinator drives iteration loop; 4 composable Workflow scripts handle exploration, scoring, convergence, and synthesis — each with built-in adversarial patterns.
Unified team skill for architecture optimization. Uses team-worker agent architecture with role directories for domain logic. Coordinator orchestrates pipeline, workers are team-worker agents. Triggers on "team arch-opt".
Unified team skill for brainstorming team. Uses team-worker agent architecture with role directories for domain logic. Coordinator orchestrates pipeline, workers are team-worker agents. Triggers on "team brainstorm".
| name | maestro-session-seal |
| description | Seal current session with knowledge extraction and DAG progression |
| argument-hint | [--session <session_id>] [-y] [--skip-knowledge] |
| allowed-tools | ["AskUserQuestion","Bash","Edit","Glob","Grep","Read","Write","teammate"] |
| session-mode | run |
| contract | null |
<required_reading> @~/.maestro/workflows/run-mode.md </required_reading>
<host_mirror>
镜像协议(状态对账由插件自动完成,LLM 只保留两个语义动作):
| 动作 | 工具调用 | 说明 |
|---|---|---|
| 步进 | todo({ action: "next" }) | 激活下一步 + 注入上游摘要 + 绑定 skill |
| 完成宣告 | goal done | 触发前置校验(chain 全 completed + gates 无 failed)+ verifier |
todo({ action: "create" }) / todo({ action: "update" }) 镜像任务——bridge 从 session.json 自动物化maestro run brief --platform pi <run-id> 重挂协议</host_mirror>
Seal a completed session: verify all runs are done, extract knowledge (specs/knowhow promotion), mark session as sealed, and recommend the next dep-ready session from the DAG.Replaces the deprecated maestro-milestone-complete with session-level semantics and integrated knowledge capture.
Flags:
| Flag | Effect | Default |
|---|---|---|
--session <id> | Target session (slug or full ID) | active_session_id |
-y / --yes | Auto mode — skip confirmations | false |
--skip-knowledge | Skip knowledge extraction step | false |
--session flag or active_session_idsession.json — verify status is running or pausedreview step first")Skip if --skip-knowledge. Otherwise:
status: accepted from runs/*/run.json.handoff.decisions[] → spec candidatesAskUserQuestion:
question: "以下知识候选项值得持久化吗?"
options:
- "全部保存" (save all candidates as specs/knowhow)
- "逐个选择" (review each candidate)
- "跳过" (no knowledge extraction)
Skill("spec", "add ...")Skill("manage", "knowledge capture ...")session.jsonmaestro run seal-session {session_id}session.json.lifecycle.sealed_at and seal_summarystate.json.sessions[].status to sealedstate.json.sessions[] — find sessions that became dep-ready (all depends_on sealed)question: "Session {slug} 已 sealed。推荐激活下一个 session: {next-slug},是否确认?"
options:
- "激活推荐 session"
- "选择其他 session"
- "暂不激活"
active_session_id to selected session| Condition | Suggestion |
|---|---|
| Next session activated | step analyze (maestro run prepare --platform pi analyze + maestro run create analyze --session {next-slug} --intent "{goal}") |
| DAG complete (all sealed) | /manage status |
| Knowledge review needed | /manage knowledge audit |
<error_codes>
| Code | Severity | Condition | Recovery |
|---|---|---|---|
| E001 | error | Session not found | Check state.json.sessions[] |
| E002 | error | Session already sealed | Nothing to do |
| E003 | error | Active runs exist | Complete or seal pending runs first |
| E004 | error | Critical gates failed | Run verify/review to resolve |
| W001 | warning | No knowledge candidates found | Proceed to seal |
| </error_codes> |
<success_criteria>
session.json.lifecycle.sealed_at written)state.json.sessions[].status updated to sealed