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_signing_skill_selfcontained.py
View on GitHub"""
tests/test_signing_skill_selfcontained.py
=========================================
Purpose:
Failing-first tests for the os-control-signing-setup skill packaging (auth-ciba-increment-b, #639):
the skill must be self-contained, so the self-test has a standalone hub CLI
(`scripts/test_signing_mechanics.py`) whose spokes (and `signing_selftest.py`) are symlinked into
the skill, the SKILL.md steps point only at skill-relative scripts, and a README for humans exists.
Real files and a real subprocess; no mocks.
Key Input Dependencies:
- scripts/test_signing_mechanics.py, scripts/control_plane/signing_selftest.py
- skills/os-control-signing-setup/{SKILL.md,README.md,scripts/}
Key Functions (test cases):
- test_standalone_selftest_cli_refuses_without_a_terminal
- test_skill_scripts_are_symlinks_to_the_hub
- test_every_skill_script_import_resolves_inside_the_skill
- test_skill_md_uses_only_skill_relative_scripts
- test_readme_exists_with_the_high_level_steps
"""
import os
import json
import subprocess
import sys
from pathlib import Path
SETUP_SCRIPTS = Path(__file__).resolve().parents[2] / "setting-up-agentic-os" / "scripts" # the setup skill beside this one
SETUP_SKILL = SETUP_SCRIPTS.parent # setting-up-agentic-os
WORKFLOW = SETUP_SKILL / "references" / "modes" / "signing-setup.md"
def test_standalone_selftest_cli_refuses_without_a_terminal(tmp_path):
result = subprocess.run(
[sys.executable, str(SETUP_SCRIPTS / "test_signing_mechanics.py"), "--key", str(tmp_path / "k"), "--repo-root", str(tmp_path)],
capture_output=True, text=True, stdin=subprocess.DEVNULL,
)
assert result.returncode != 0
assert "terminal" in (result.stdout + result.stderr).lower()
def test_every_skill_script_import_resolves_inside_the_skill(tmp_path):
"""Run the setup scripts from a directory that is NOT the plugin: they must find the control plane in the sibling skill, and nowhere else."""
for script in ("setup_ciba_identity.py", "test_signing_mechanics.py"):
result = subprocess.run(
[sys.executable, str(SETUP_SCRIPTS / script), "--help"],
capture_output=True, text=True, cwd=tmp_path,
)
assert result.returncode == 0, result.stderr
# deref check: the imported control_plane package must come from the skill folder
probe = subprocess.run(
[sys.executable, "-c",
"import sys, runpy; sys.argv=['x','--help']; sys.path.insert(0, %r); import control_plane, control_plane.signing_selftest as m; print(control_plane.__file__)" % str(SETUP_SCRIPTS.parent.parent / "running-control-plane" / "scripts")],
capture_output=True, text=True, cwd=tmp_path,
)
assert probe.returncode == 0, probe.stderr
def test_signing_workflow_uses_only_skill_relative_scripts():
text = WORKFLOW.read_text()
assert "agent_control.py test-signing-mechanics" not in text
assert "scripts/test_signing_mechanics.py" in text
assert "plugins/agent-agentic-os/scripts" not in text
def test_readme_exists_with_the_high_level_steps():
guide = SETUP_SKILL / "references" / "signing-setup-guide.md"
readme = guide.read_text().lower()
for needle in ("passphrase", "fingerprint", "setup_ciba_identity.py", "test_signing_mechanics.py", "show-challenge", "approve-transition", "agentic-os-local-agent", "never"):
assert needle in readme, needle
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 |