richfrem/agent-plugins-skills / plugins/agent-agentic-os/.apm/skills/running-control-plane
running-control-plane
FlaggedCRITICAL INTAKE GATEWAY: use at the start of any non-trivial engineering task, feature, refactor, multi-file bugfix, work package or new idea, including requests to explore, brainstorm, build, fix or change something, before planning or code changes. Enforces read-only discovery, 1-3 structured questions with defaults, control-plane registration and the immutable four-pillar TASK_SPEC.md. Also runs the rest of the control plane: health ("run health check", "check os metrics", "system monitor", event bus, locks, memory, "is my signing identity ready" status check), transition simulation ("dry run transition", "simulate transition", "check edge X -> Y"), worktree selection, and gating on/off ("disable the control plane", "turn off the push guard", "stop gating my commits"). Not for project setup or key creation (use setting-up-agentic-os) or improving skills (use improving-skills-in-lab).
tests/test_draft_plan_interactive_outline_gap.py
View on GitHub"""Reproduces issue: TransitionCoordinator.coordinate_transition's interactive
path from INTERVIEW to DRAFT_PLAN collects the 5 canonical interview answers
one-at-a-time via input_fn, but never persists them into the plan-outline
artifact (update_interview_plan_outline) before the commit path checks
assert_interview_plan_outline_ready. Every interactive DRAFT_PLAN transition
therefore fails with "interview plan outline is missing", even though the
human answered every question correctly.
"""
import sys
from pathlib import Path
SCRIPTS_DIR = Path(__file__).resolve().parent.parent / "scripts"
if str(SCRIPTS_DIR) not in sys.path:
sys.path.insert(0, str(SCRIPTS_DIR))
from agent_control import ControlPlane
from control_plane.coordinator import TransitionCoordinator
from interview_helpers import REASON_INTERVIEW_COMPLETE
from control_plane.constants import (
STATE_INTERVIEW, STATE_DRAFT_PLAN,
)
def test_interactive_draft_plan_transition_persists_answers_to_outline(tmp_path):
control_plane = ControlPlane(db_path=tmp_path / "control_plane.db")
control_plane.create_task("t1", "Test task", "codex")
control_plane.transition("t1", STATE_INTERVIEW, "human", "start interview")
answers = iter([
"STANDARD",
"Fix the bug.",
"agent_control.py only.",
"Tests pass.",
"Not applicable; this route is STANDARD, not TRIVIAL.",
"Preserve existing gates.",
"medium",
"YES",
])
coordinator = TransitionCoordinator(
control_plane,
input_fn=lambda _prompt: next(answers),
)
record = coordinator.coordinate_transition(
task_id="t1",
to_state=STATE_DRAFT_PLAN,
actor="human",
reason=REASON_INTERVIEW_COMPLETE,
interactive=True,
)
assert record.to_state == STATE_DRAFT_PLAN
outline = control_plane._persistence.get_interview_plan_outline("t1")
assert outline and outline.get("bullets"), (
"Interview answers given interactively were never persisted to the "
"plan outline before the DRAFT_PLAN transition committed."
)
artifact_path = control_plane._resolve_plan_outline_path(outline["artifact_path"])
assert artifact_path.is_file() and artifact_path.read_text(encoding="utf-8").strip()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |