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_interview_plan_outline.py
View on GitHub"""Behavioral contract for the interview plan-outline artifact."""
import json
import sys
from pathlib import Path
SCRIPTS = Path(__file__).resolve().parent.parent / "scripts"
if str(SCRIPTS) not in sys.path:
sys.path.insert(0, str(SCRIPTS))
from agent_control import ControlPlane
from control_plane.wrappers.record_interview_question import record_interview_question
from control_plane.constants import (
STATE_INTERVIEW, STATE_DRAFT_PLAN,
)
def _interview_cp(tmp_path: Path):
repo_root = tmp_path / "repo"
(repo_root / "context").mkdir(parents=True)
cp = ControlPlane(db_path=repo_root / "context" / "control_plane.db")
cp.init_db()
cp.create_task("outline-task", "Outline task", "codex")
cp.log_asymmetric_persistence("outline-task", "references/map-debt.md", "OBSERVED", "prior_art_scan")
cp.transition("outline-task", STATE_INTERVIEW, "agent", "begin interview")
cp.repo_root = repo_root
return cp, repo_root
def test_recording_interview_answer_persists_outline_and_artifact(tmp_path):
cp, repo_root = _interview_cp(tmp_path)
result = record_interview_question(
task_id="outline-task",
question="interview_summary",
options={},
recommended="",
answer="Make the pipeline continue after each answer.",
target_state=STATE_DRAFT_PLAN,
control_plane=cp,
)
outline = cp._persistence.get_interview_plan_outline("outline-task")
assert outline["revision"] == 1
assert outline["bullets"][0]["question_id"] == "interview_summary"
assert outline["artifact_path"] == "docs/plans/work-tasks/outline-task/outline-task-plan-outline.md"
artifact = repo_root / outline["artifact_path"]
assert artifact.exists()
assert "Make the pipeline continue after each answer." in artifact.read_text(encoding="utf-8")
assert result["outline_artifact"] == "docs/plans/work-tasks/outline-task/outline-task-plan-outline.md"
def test_revising_same_outline_question_updates_revision_without_duplicate_decision(tmp_path):
cp, _ = _interview_cp(tmp_path)
record_interview_question(
task_id="outline-task", question="interview_summary", options={}, recommended="",
answer="First wording", target_state=STATE_DRAFT_PLAN, control_plane=cp,
)
cp.update_interview_plan_outline(
"outline-task", "interview_summary", "Revised wording", actor="human"
)
outline = cp._persistence.get_interview_plan_outline("outline-task")
assert outline["revision"] == 2
assert outline["bullets"][0]["text"] == "Revised wording"
def test_interview_exit_to_draft_plan_requires_outline_artifact(tmp_path):
cp, _ = _interview_cp(tmp_path)
with __import__("pytest").raises(Exception, match="plan outline"):
cp.transition("outline-task", STATE_DRAFT_PLAN, "agent", "draft plan")
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 | Verified | 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 |