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_control_plane_pipeline_diagram_contract.py
View on GitHub"""Task 7 contract tests for pipeline diagrams and user-facing skill guidance."""
import re
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 control_plane.state_machine import ALLOWED_TRANSITIONS
from control_plane.constants import (
STATE_INTERVIEW, STATE_DRAFT_PLAN, STATE_RETROSPECTIVE, STATE_DONE,
)
REPO_ROOT = Path(__file__).resolve().parents[5]
SKILL_DIR = Path(__file__).resolve().parent.parent
DIAGRAM_DIR = SKILL_DIR / "references" / "diagrams"
def _edges(path: Path) -> set[tuple[str, str]]:
return set(re.findall(r"^\s*([A-Z_]+)\s*-->\s*([A-Z_]+)", path.read_text(), re.MULTILINE))
def test_full_pipeline_diagram_matches_canonical_edges():
expected = {
(from_state, to_state)
for from_state, to_states in ALLOWED_TRANSITIONS.items()
for to_state in to_states
}
assert _edges(DIAGRAM_DIR / "control-plane-pipeline.mermaid") == expected
def test_happy_path_diagram_is_a_valid_subset_with_required_closeout_path():
expected = {
(from_state, to_state)
for from_state, to_states in ALLOWED_TRANSITIONS.items()
for to_state in to_states
}
happy_path = DIAGRAM_DIR / "control-plane-pipeline-happy-path.mermaid"
assert _edges(happy_path) <= expected
text = happy_path.read_text()
for marker in (STATE_INTERVIEW, STATE_DRAFT_PLAN, STATE_RETROSPECTIVE, STATE_DONE):
assert marker in text
def test_architecture_diagram_names_governed_delegation_and_advisory_guidance():
text = (DIAGRAM_DIR / "control-plane-architecture.mermaid").read_text()
for marker in ("DelegationContract", "Transition guidance", "advisory", "verification_receipts"):
assert marker.lower() in text.lower()
def test_runtime_skills_expose_final_dispatch_contracts():
interview = (SKILL_DIR / "references/modes/intake.md").read_text()
for marker in ("transition-guidance", "advisory", "SQLite"):
assert marker.lower() in interview.lower()
for skill_name in ("cli-agent",):
skill = (REPO_ROOT / f"plugins/agent-orchestration/skills/{skill_name}/SKILL.md").read_text()
for marker in ("--require-input", "---SOURCE---", "record-critic-review", "REVISE"):
assert marker in skill
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: 472k | 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 |