Cocoplus ConfigSAFE
CocoPlus is an Agentic Operating System for Snowflake Coco. It brings structured, multi-agent workflows to data engineering projects — covering everything from project initialization through spec, plan, build, test, review, and ship phases.
Overview
CocoPlus is an Agentic Operating System for Snowflake Coco. It brings structured, multi-agent workflows to data engineering projects — covering everything from project initialization through spec, plan, build, test, review, and ship phases.
6b58edc143d7OBSERVED · 2026-10-13What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
---
name: cocoplus-config
description: CocoPlus configuration SSOT — $cocoplus sync propagates cocoplus.toml into downstream artifacts; $cocoplus migrate-config converts legacy safety-config.json. Invoked via $cocoplus sync and $cocoplus migrate-config.
version: "1.0.0"
author: CocoPlus
tags:
- cocoplus-config
- configuration
- ssot
user-invocable: true
blocking: false
---
## Objective
`cocoplus.toml` is the single source of truth for all operator-configurable plugin settings. This skill handles two commands:
- `$cocoplus sync` — propagates `cocoplus.toml` into downstream artifacts
- `$cocoplus migrate-config` — converts legacy `safety-config.json` to `cocoplus.toml`
Before proceeding, verify that `.cocoplus/` exists. If not, output: "CocoPlus is not initialized. Run `$pod init` first." Then stop.
---
## Command: $cocoplus sync
### Step 1 — Read cocoplus.toml
Read `cocoplus.toml` from the project root. If absent, output:
```
cocoplus sync: cocoplus.toml not found.
Run $pod init to create a project bundle (which generates cocoplus.toml), or create cocoplus.toml manually using templates/cocoplus.toml.template from the installed CocoPlus plugin bundle.
```
Then stop.
Parse the TOML. If it contains a syntax error, output: "cocoplus sync: cocoplus.toml has a syntax error — [description]. Fix the file and re-run `$cocoplus sync`." Then stop.
### Step 2 — Read Existing Sync Manifest
Read `.cocoplus/config/sync-manifest.json` if it exists. Record `file_hashes` from the last sync for drift detection.
### Step 3 — Drift Detection
For each file listed in the prior sync manifest, check whether the file's current content hash matches the recorded hash. If any file was manually edited since the last sync, collect the list and warn:
```
cocoplus sync: The following generated files were modified since the last sync:
- hooks/the PreToolUse hook (modified 2024-01-22)
These changes will be overwritten. Edit cocoplus.toml instead.
```
Proceed with overwrite regardless — generated files are controlled by `cocoplus.toml`.
### Step 4 — Regenerate Pre-Tool-Use Security Rules
Read the `[security]` section from `cocoplus.toml`:
- `always_allow` — list of tool/operation patterns always permitted
- `ask_first` — list requiring confirmation
- `human_required` — list requiring explicit human approval
- `never` — list unconditionally blocked
Update the `boundary_tiers` configuration in `.cocoplus/config/security-rules.json`:
```json
{
"generated_at": "<ISO timestamp>",
"source": "cocoplus.toml",
"boundary_tiers": {
"always_allow_patterns": [],
"ask_first_patterns": [],
"human_required_patterns": [],
"never_patterns": []
}
}
```
The pre-tool-use hook reads this file at runtime — no code changes required.
### Step 5 — Update .cocoplus/.gitignore for Demo Data
If `[demo] enabled = true` in `cocoplus.toml`, ensure `.cocoplus/.gitignore` contains:
```
# CocoOps demo data — not committed
ops/demo/
```
If `[demo] enabled = false` or absent, the entry may remain (it is harmless).
### Step 6 — Write Sync Manifest
Compute SHA-256 of each regenerated file's content. Write `.cocoplus/config/sync-manifest.json`:
```json
{
"synced_at": "<ISO timestamp>",
"toml_hash": "<sha256 of cocoplus.toml>",
"files": [
{ "path": ".cocoplus/config/security-rules.json", "hash": "<sha256>", "generated_from": "cocoplus.toml#security" },
{ "path": ".cocoplus/.gitignore", "hash": "<sha256>", "generated_from": "cocoplus.toml#demo" }
]
}
```
### Step 7 — Commit
Stage and commit all regenerated files:
```
git add cocoplus.toml .cocoplus/config/security-rules.json .cocoplus/config/sync-manifest.json .cocoplus/.gitignore
git commit -m "chore(config): $cocoplus sync — cocoplus.toml applied"
```
### Step 8 — Confirm
Output:
```
cocoplus sync complete.
Files regenerated:
.cocoplus/config/security-rules.json
.cocoplus/config/sync-manifest.json
Security rules:
always_allow: <count> pattern(s)
ask_first: <count> pattern(s)
human_required: <count> pattern(s)
never: <count> pattern(s)
Committed: chore(config): $cocoplus sync — cocoplus.toml applied
```
---
## Command: $cocoplus migrate-config
### Step 1 — Detect Legacy File
Check for `safety-config.json` in the project root or `.cocoplus/` directory. If absent, output: "cocoplus migrate-config: no safety-config.json found. Nothing to migrate." Then stop.
### Step 2 — Read Legacy Config
Read `safety-config.json`. Extract:
- `boundary_tiers.never_patterns` → `[security] never`
- `boundary_tiers.human_required_patterns` → `[security] human_required`
- `boundary_tiers.ask_first_patterns` → `[security] ask_first`
- `boundary_tiers.always_allow_patterns` → `[security] always_allow`
If `safety-config.json` has a different schema, map fields by semantic equivalence.
### Step 3 — Check for Existing cocoplus.toml
If `cocoplus.toml` already exists, output:
```
cocoplus migrate-config: cocoplus.toml already exists.
Migration will merge [security] section only — existing sections are preserved.
Proceed? (yes/no)
```
Wait for confirmation before proceeding.
### Step 4 — Write cocoplus.toml
If `cocoplus.toml` does not exist, copy from `templates/cocoplus.toml.template` in the installed CocoPlus plugin bundle. Then populate the `[security]` section with values from `safety-config.json`.
If `cocoplus.toml` exists, update only the `[security]` section.
### Step 5 — Deprecate Legacy File
Rename `safety-config.json` to `safety-config.json.migrated` as an audit trail. Do not delete it.
### Step 6 — Run $cocoplus sync
Execute the full `$cocoplus sync` flow (Steps 1–8 above) to propagate the new `cocoplus.toml`.
### Step 7 — Confirm Migration
Output:
```
cocoplus migrate-config complete.
safety-config.json → cocoplus.toml [security] section
Legacy file preserved as: safety-config.json.migrated
Run $cocoplus sync at any time to re-propagate changes.
```
---
## Anti-Rationalization Table
| ShortcTrust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
6b58edc143d7full audit observations/trust-audit/skill/snowflake-labs__cocoplus-config.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-13 | 6b58edc143d7 | SAFE | B | 89 | first audit |
Questions
What does the Cocoplus Config skill do?
CocoPlus is an Agentic Operating System for Snowflake Coco. It brings structured, multi-agent workflows to data engineering projects — covering everything from project initialization through spec, plan, build, test, review, and ship phases.
Is Cocoplus Config safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Cocoplus Config access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (6b58edc143d7), read on 2026-10-13. The repository is watched, and a new audit runs when it changes — this is the first audit.