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/control_plane/wrappers/record_retrospective.py
View on GitHub#!/usr/bin/env python3
"""Fixed-identity wrapper for recording a task retrospective draft or completion."""
import json
import sys
from pathlib import Path
from typing import Any, Dict, List, Optional
_scripts_dir = str(Path(__file__).resolve().parent.parent.parent)
if _scripts_dir not in sys.path:
sys.path.insert(0, _scripts_dir)
from agent_control import ControlPlane, PhaseCapabilityDenied
from control_plane.constants import STATE_RETROSPECTIVE
ACTION_IDENTITY = "retrospective_capture"
def record_retrospective(
task_id: str,
entry: Dict[str, Any],
follow_ups: Optional[List[Dict[str, Any]]] = None,
control_plane: Optional[ControlPlane] = None,
) -> Dict[str, Any]:
"""Persist one retrospective record after verifying RETROSPECTIVE occupancy."""
cp = control_plane or ControlPlane()
cap = cp.verify_phase_capability(task_id, ACTION_IDENTITY)
if cap.current_state != STATE_RETROSPECTIVE:
raise PhaseCapabilityDenied(f"Retrospective capture is only authorized in {STATE_RETROSPECTIVE} state.")
cp.save_retrospective(task_id, entry, follow_ups or [])
return {
"status": "RECORDED",
"task_id": task_id,
"transition_id": cap.transition_id,
"action_identity": ACTION_IDENTITY,
}
def main() -> None:
import argparse
parser = argparse.ArgumentParser(description="Fixed-identity retrospective capture wrapper")
parser.add_argument("--task-id", required=True)
parser.add_argument("--entry", required=True, help="JSON object containing retrospective fields")
parser.add_argument("--follow-ups", default="[]", help="JSON array of follow-up objects")
args = parser.parse_args()
try:
entry = json.loads(args.entry)
follow_ups = json.loads(args.follow_ups)
if not isinstance(entry, dict) or not isinstance(follow_ups, list):
raise ValueError("--entry must be a JSON object and --follow-ups must be a JSON array")
print(json.dumps(record_retrospective(args.task_id, entry, follow_ups), indent=2))
except PhaseCapabilityDenied as exc:
print(f"CAPABILITY DENIED: {exc}", file=sys.stderr)
sys.exit(2)
except Exception as exc:
print(f"ERROR: {exc}", file=sys.stderr)
sys.exit(1)
if __name__ == "__main__":
main()
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 |