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_actionable_rollback.py
View on GitHub"""
tests/test_actionable_rollback.py
=================================
Purpose:
Failing-first tests for U2 (auth-ciba-increment-b, issue #639): a transition that the database
trigger rejects for missing human decisions must say so and name the missing question ids, not
report a misleading "changed concurrently ... Retry." (which sends the agent into a retry loop).
A genuine concurrent state change still raises ConcurrentModificationError.
Key Input Dependencies:
- agent_control.py (ControlPlane.transition), control_plane/adapters.py (required_transition_questions)
- tests/test_review_selection.py helper (_plan_review_task)
Key Functions (test cases):
- test_missing_human_decisions_are_named_not_reported_as_concurrency
- test_a_real_concurrent_change_is_still_retryable
"""
import sqlite3
import sys
from pathlib import Path
import pytest
_scripts_dir = str(Path(__file__).resolve().parent.parent / "scripts")
if _scripts_dir not in sys.path:
sys.path.insert(0, _scripts_dir)
from agent_control import ConcurrentModificationError, PersistenceInvariantViolation
from test_review_selection import TASK, _plan_review_task
def test_missing_human_decisions_are_named_not_reported_as_concurrency(tmp_path):
sim = _plan_review_task(tmp_path)
with pytest.raises(PersistenceInvariantViolation) as excinfo:
sim.control_plane.transition(TASK, "MULTI_AGENT_REVIEW", "tester", "no decisions recorded")
message = str(excinfo.value)
assert "plan_review_agent_review_decision" in message
assert "coordinate-transition" in message and "--interactive" in message
assert "Retry" not in message
def test_a_real_concurrent_change_is_still_retryable(tmp_path):
sim = _plan_review_task(tmp_path)
cp = sim.control_plane
def stale_read(task_id):
conn = sqlite3.connect(cp.db_path)
conn.execute("UPDATE tasks SET state = 'ESCALATED' WHERE task_id = ?", (task_id,)) # a competing writer
conn.commit()
return "PLAN_REVIEW"
cp._read_current_state_for_update = stale_read
with pytest.raises(ConcurrentModificationError) as excinfo:
cp.transition(TASK, "MULTI_AGENT_REVIEW", "tester", "race")
assert "Retry" in str(excinfo.value)
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 |