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_architecture_overview_contract.py
View on GitHub"""Contract tests for the durable control-plane architecture overview."""
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.registry import TransitionRegistry
from control_plane.state_machine import ALLOWED_TRANSITIONS, CANONICAL_STATES
REPO_ROOT = Path(__file__).resolve().parents[5]
SKILL_DIR = Path(__file__).resolve().parent.parent
OVERVIEW = SKILL_DIR / "references/control-plane-architecture.md"
TEMPLATES = SKILL_DIR / "scripts/control_plane/transition_templates.yaml"
def _overview_edges(text: str) -> set[tuple[str, str]]:
return set(
re.findall(r"^\|\s*([A-Z_]+)\s*\|\s*([A-Z_]+)\s*\|", text, re.MULTILINE)
)
def test_overview_exists_and_describes_the_runtime_contract():
text = OVERVIEW.read_text()
for marker in (
"TransitionRegistry",
"TransitionCoordinator",
"SQLite",
"verification_receipts",
"human provenance",
"work package",
"execution step",
"control-plane-pipeline.mermaid",
"control-plane-architecture.mermaid",
):
assert marker.lower() in text.lower()
def test_overview_states_match_canonical_state_machine():
text = OVERVIEW.read_text()
documented_states = set(re.findall(r"^\|\s*([A-Z_]+)\s*\|", text, re.MULTILINE))
assert documented_states == set(CANONICAL_STATES)
def test_overview_edges_match_registry_and_templates():
registry = TransitionRegistry.load_from_file(TEMPLATES)
text = OVERVIEW.read_text()
expected_edges = {
(from_state, to_state)
for from_state, to_states in ALLOWED_TRANSITIONS.items()
for to_state in to_states
}
assert registry.get_all_edges() == expected_edges
assert _overview_edges(text) == expected_edges
def test_overview_preserves_advisory_execution_guidance_boundary():
text = OVERVIEW.read_text().lower()
assert "advisory" in text
assert "must not change legal transitions" in text
assert "objective" in text
assert "failure/recovery" in text
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 |