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).
scripts/test_capability_probe.py
View on GitHub"""
test_capability_probe.py -- Contract Tests for Active-Runtime Capability Detection
=======================================================================================
Purpose:
RED contract tests for active-runtime capability detection: verifies
detect_runtime() correctly identifies codex/agy/copilot/claude-code from each
runtime's environment session markers.
Key Input Dependencies:
- capability_probe.py (module under test) -- detect_runtime(), probe_runtime().
- pytest's monkeypatch fixture, used to set the runtime marker env vars per test.
Key Functions:
- test_detects_codex_from_active_session_marker()
- test_detects_agy_from_active_session_marker()
- test_detects_copilot_from_active_session_marker()
- test_detects_claude_code_from_active_session_marker()
"""
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from capability_probe import _RUNTIME_MARKERS, detect_runtime, probe_runtime
import pytest
@pytest.fixture(autouse=True)
def clean_env(monkeypatch):
for _, markers in _RUNTIME_MARKERS:
for marker in markers:
monkeypatch.delenv(marker, raising=False)
def test_detects_codex_from_active_session_marker(monkeypatch):
monkeypatch.setenv("CODEX_CLI", "1")
assert detect_runtime() == "codex"
def test_detects_agy_from_active_session_marker(monkeypatch):
monkeypatch.setenv("ANTIGRAVITY_IDE", "1")
assert detect_runtime() == "agy"
def test_detects_copilot_from_active_session_marker(monkeypatch):
monkeypatch.setenv("GITHUB_COPILOT_CLI", "1")
assert detect_runtime() == "copilot"
def test_detects_claude_code_from_active_session_marker(monkeypatch):
monkeypatch.setenv("CLAUDE_CODE_ENTRY", "1")
assert detect_runtime() == "claude-code"
def test_unknown_runtime_is_explicitly_unavailable(monkeypatch):
for name in ("CODEX_CLI", "ANTIGRAVITY_IDE", "GITHUB_COPILOT_CLI", "CLAUDE_CODE_ENTRY"):
monkeypatch.delenv(name, raising=False)
result = probe_runtime()
assert result.runtime_id == "unknown"
assert result.available is False
assert result.native_worktree is False
def test_codex_native_worktree_requires_explicit_capability_marker(monkeypatch):
monkeypatch.setenv("CODEX_CLI", "1")
monkeypatch.delenv("CODEX_NATIVE_WORKTREE", raising=False)
assert probe_runtime().native_worktree is False
monkeypatch.setenv("CODEX_NATIVE_WORKTREE", "1")
result = probe_runtime()
assert result.native_worktree is True
assert "native" in result.worktree_activation.lower()
@pytest.mark.parametrize(
("runtime", "marker"),
[
("claude-code", "CLAUDE_CODE_ENTRY"),
("agy", "ANTIGRAVITY_IDE"),
("copilot", "GITHUB_COPILOT_CLI"),
],
)
def test_documented_native_capabilities_are_available_without_host_markers(monkeypatch, runtime, marker):
monkeypatch.setenv(marker, "1")
result = probe_runtime()
assert result.native_planning is True
assert result.native_subagents is True
def test_claude_documented_worktree_is_available_without_host_marker(monkeypatch):
monkeypatch.setenv("CLAUDE_CODE_ENTRY", "1")
assert probe_runtime().native_worktree is True
@pytest.mark.parametrize(
("runtime", "marker", "prefix"),
[
("codex", "CODEX_CLI", "CODEX"),
("agy", "ANTIGRAVITY_IDE", "AGY"),
("copilot", "GITHUB_COPILOT_CLI", "COPILOT"),
("claude-code", "CLAUDE_CODE_ENTRY", "CLAUDE"),
],
)
def test_runtime_uses_explicit_native_capability_markers(monkeypatch, runtime, marker, prefix):
monkeypatch.setenv(marker, "1")
for capability in ("PLANNING", "WORKTREE", "SUBAGENTS"):
monkeypatch.setenv(f"{prefix}_NATIVE_{capability}", "true")
result = probe_runtime()
assert result.runtime_id == runtime
assert result.native_planning is True
assert result.native_worktree is True
assert result.native_subagents is True
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 |