--- name: engagement-intake-and-planning description: Help plan a security assessment or scope a penetration test from an initial goal; draft engagement details, then validate complete authorized scope and compile reviewable immutable action plans. --- # Engagement intake and execution planning ## Start with a draft Use this skill for “help me plan a security assessment” or “scope a penetration test.” Start with the goal and information already available. Ask only for the next detail needed to make the draft useful; record missing targets, owners, windows, budgets, and permissions as unresolved. Do not require signed scope, credentials, or a ready worker to discuss or draft a plan. Draft notes are not a validated Engagement or ActionPlan. Before using the CLI below, gather its required fields and validate them; never invent approvals or insert placeholder values to pass validation. Before execution, require the applicable approved scope, exact-plan authorization, worker readiness, budgets, and cleanup controls. A planning mode contract does not authorize live work. 1. **Intake and RoE Verification**: - Collect and validate assessment targets, exclusions, operator ownership, assessment window, allowed effects, budget, and credential references. - Refuse validated contract creation or execution requests lacking explicit operator identity, valid future assessment window, or unambiguous target specifications. 2. **Scope Boundary Enforcement**: - Reject wildcards (`*`, universal ranges), malformed network representations, and collisions where a target is simultaneously included and excluded. - Restrict active live requests to bounded subnets (/24 or narrower). 3. **Execution Mode Distinction**: - Explicitly distinguish between: - `planning`: Purely offline hypothesis modeling and test plan assembly. - `import`: Static parsing and ingestion of external logs, scans, and manifests. - `laboratory`: Synthetic or containerized simulation in an isolated environment. - `live`: Active network verification against production or staging infrastructure. - For `live` mode, mandate explicit budgets, non-empty emergency contacts, and active windows; refuse incomplete live requests. 4. **Action Plan Compilation**: - Produce an immutable `ActionPlan` (`cops.action-plan/v1`) with: - Declared platform prerequisites (OS, container boundaries, required CLI tools). - Bounded operations with an exact, independently measured caller-supplied tool version, expected evidence receipts, anticipated side effects, and cleanup obligations. - Execution budget limits and credential references. - Canonical SHA-256 `plan_digest`. - Do not infer or discover executable versions at runtime. Reject a missing or blank version for the scenario operation tool. 5. **CLI Invocation**: ```bash python3 -m cops engagement create --name "Scope Review" --owner "operator" --targets "10.0.0.5" --start "2026-10-05T00:00:00Z" --until "2026-10-05T23:59:59Z" python3 -m cops engagement validate python3 -m cops engagement plan --engagement --scenario COPS-E03.01-S01 --target 10.0.0.5 --tool-version python3=3.11.9 ``` Repeat `--tool-version TOOL=VERSION` when supplying more than one independently measured value. The CLI rejects malformed or blank entries and conflicting repeated values for the same tool. API callers must pass the required `tool_versions` mapping explicitly.