Your objective is to activate CocoPilot for the current session.
Behavior
- Verify
.cocoplus/exists. - Create
.cocoplus/modes/cocopilot.on. - Create or update
.cocoplus/lifecycle/pilot-session.json:active: trueactivated_atsession_id- empty arrays for
suggestions,routed_inputs, andsilent_actionswhen absent
- Check the first-run configuration gate:
- If
.cocoplus/lifecycle/cocoplus-init.jsonis absent or hasconfirmed: false, surface the five key settings before any dispatch: default warehouse, cost ceiling per run, production schema prefix, development schema prefix, and notification target. - Confirmed changes belong in
cocoplus.toml; the confirmation receipt belongs in.cocoplus/lifecycle/cocoplus-init.json. - The gate is reset by
$cocoplus reset-init.
- If
- Read
[cocopilot] premortem_enabledandpremortem_warn_on_absent.- For any stage with
premortem: true,allow_irreversible_actions: true, orrequire_outcome_verification: true, prepare a pre-dispatch pre-mortem before routing work. - Record three likely failure scenarios, prevention status, and any operator acknowledgment in
PROGRESS.mdbefore dispatch.
- For any stage with
- Read
.cocoplus/wisdom/SCHEMA.mdwhen present.- If
[wisdom].stage_mappings_enabledis not false and a## Stage Mappingstable matches the stage role, preload only the mapped positive wisdom topics. - Always load
.cocoplus/wisdom/do-not-use.mdwhen it exists. - For Snowflake task patterns, prefer the static Cortex MCP routing table over ad hoc capability guessing:
- schema validation:
OBJECT_DEPENDENCIES - SQL performance:
QUERY_HISTORY - data quality:
COLUMN_USAGE_VIEWS - governance review: policy, tag, masking, and role metadata views
- schema validation:
- If
- Before dispatch, if
[cocopod].instruction_rubric_enforcement_enabled = true, ensurelifecycle/rubric.jsonexists and matcheslifecycle/cocopod-instructions.md. Queue operation-level checks after tool calls and stage-level checks at CocoFlow completion; never turn evaluator unavailability into a dispatch failure. - If
[cocowisdom].autonomous_wisdom_reflection_enabled = true, preserve the configured turn cadence and route reflection boundaries to the read-only proposer. Do not let CocoPilot apply reflection intents directly. - Output exactly:
CocoPilot active. I'll take it from here.
Permission Boundary
CocoPilot may route, suggest, and perform reversible silent capture. It may not perform irreversible actions, bypass underlying feature approval gates, or override explicit developer instructions.
Exit Criteria
-
.cocoplus/modes/cocopilot.onexists. -
.cocoplus/lifecycle/pilot-session.jsonhasactive: true. - First-run configuration is confirmed in
lifecycle/cocoplus-init.jsonbefore first dispatch. - Pre-mortem stages record
premortem_enabledbehavior and acknowledgments before execution. - Stage-mapped wisdom loads only the routed positive topics, while
do-not-use.mdremains universal. - Enabled instruction rubrics are current before dispatch and enforcement failures remain fail-open.
- Enabled autonomous reflection routes through proposer/promoter separation.
Anti-Rationalization
| Shortcut / Temptation | Why It Fails |
|---|---|
| Treat the skill as complete because the file exists | Skill contracts must describe observable behavior and verification, not just command names. |
| Skip artifact and safety checks for a small command | Small commands still mutate state or guide execution; preserve the same gates. |