بنقرة واحدة
speckit-deskwork-governance-govern
Govern the just-implemented work — cross-model audit-barrage + lift findings
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Govern the just-implemented work — cross-model audit-barrage + lift findings
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Provision the fleet control plane's accepted bearer token, or serve the plane HTTP endpoint (stackctl plane provision-token | serve) — the fleet control plane a single operator's sidecars uplink to (specs/036-fleet-control-plane). Wraps `stackctl plane`.
Elect and run the per-installation sidecar daemon that uplinks telemetry to the fleet control plane and receives commands over SSE (stackctl sidecar run) — specs/036-fleet-control-plane. Wraps `stackctl sidecar`.
Run a Spec Kit spec by dispatching each task to a fresh, right-sized subagent at the model its declared [tier:] resolves to (model-sized dispatch), with deskwork governance firing automatically afterward (cross-model audit-barrage + finding lift)
Author a NEW Spec Kit spec for a new feature, in-session — drive native /speckit-specify and the downstream authoring chain via the in-session agent, confirming state with stackctl spec-check (spec-authoring only; does not create worktree/docs infra)
Open the designing phase for a roadmap item — an opinionated frontend that drives a swappable design backend (default superpowers:brainstorming) IN-SESSION, sets the design: pointer on entry, re-injects capture-over-YAGNI, routes the handoff to /stack-control:define, and writes the installation-anchored design record the design-to-spec gate checks
Close a shipped roadmap item and everything it contains — the operator-confirmed post-ship terminal move. Shows the full transitive cascade (the item's part-of subtree's recorded closes: ids) as a dry-run, prompts you to confirm (and, when self-hosting, to validate the installed release), then runs `roadmap advance --to closed` which closes the deduped backlog ids and advances the item to the terminal `closed` phase. Never closes automatically.
| name | speckit-deskwork-governance-govern |
| description | Govern the just-implemented work — cross-model audit-barrage + lift findings |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"deskwork-governance:commands/speckit.deskwork-governance.govern.md"} |
Run deskwork's differentiated governance over the work Spec Kit just implemented. This composes existing deskwork CLI verbs; it does not reimplement them.
Run the orchestration script from the repo root:
bash plugins/stack-control/spec-kit/deskwork-governance/scripts/bash/govern.sh
Optional environment overrides:
GOVERN_DIFF_BASE — git ref the implemented work is diffed against (default HEAD~1).GOVERN_FEATURE_SLUG — feature slug. By default the slug is derived from the feature/<slug> branch; set this to override (the script fails loud if neither resolves).The script gathers the diff of the implemented work, fires dw-lifecycle audit-barrage (multiple LLM CLIs in parallel), and lifts findings into the feature audit-log.md. It branches only on the diff + feature slug — never on which tool authored or executed the plan.
When the barrage lifts open findings, do NOT author the fixes in this orchestrating context. Fix quality degrades under accumulated context — expansive edits made in a fatigued context become the next round's findings. The fix step runs in a fresh, minimal context instead. For each open finding:
Within one govern invocation, the iterate/stop decision is the code driver's, not yours (specs/015 US2 / FR-004). govern delegates the convergence loop to runConvergenceLoop (plugins/stack-control/src/govern/convergence-loop.ts): it runs the bounded render→barrage→lift→slush→gate pass, reads the gate's single boolean (#432), and resolves to a recorded terminal — converged (exit 0) or non-converged at the FR-014 ceiling (exit 1). An operator --override is routed through the gate (it records the reason and returns OPEN), so an overridden run graduates as converged with a barrage record — there is no separate driver overridden terminal (AUDIT-20260612-05). Be precise about the scope of "the driver owns the loop": at the default ceiling 1, govern runs exactly ONE bounded pass and applies NO in-process fix, so the driver owns the stop decision for that single invocation — the cross-round loop (fix the surfaced findings, re-invoke govern) is still agent-paced until a real in-process fixer lands (AUDIT-20260612-04 / -03; that is why raising --ceiling >1 alone just re-barrages an unchanged tree). You do not decide "is it converged?" within a pass — you fix surfaced findings and re-invoke. Per the project's enforcement-lives-in-skills discipline, the per-pass loop lives in the verb + driver, never in this prose. Obey govern's exit: exit 0 = the driver recorded converged (stop), exit 1 = non-converged (fix the surfaced findings & re-invoke govern → a fresh bounded driver run, or record a --override), exit 2 = fatal. Do not re-derive "done" from finding counts — the gate decides on what the recent run(s) raw-surfaced (FR-010); the count of still-open findings has no bearing.
The orchestrator's only cross-round job is dispatch → apply → re-invoke — never hand-authoring the fix, never holding the within-pass iterate/stop decision (the driver holds that).
Report the printed run-dir path and summarize: how many model lanes produced output, and how many findings were lifted into audit-log.md. Read govern's exit as the gate decision relayed (#432): exit 0 = gate OPEN (work governed/done), exit 1 = gate BLOCKED (more fix → re-barrage rounds, or a recorded override), exit 2 = fatal (e.g. dw-lifecycle absent — surface it; governance is never optional, FR-005).