Skip to content

Validate Wizard

The validate wizard checks SCC configuration files for schema compliance and basic semantic checks. When SCC CLI is available, it reports the CLI’s validation output directly.

/scc-wizard:validate path/to/org-config.json

Or run without a path to search common locations.

When the CLI is available, validation follows SCC’s current enforcement:

  1. Schema validation - JSON structure compliance
  2. Basic semantic check - organization.default_profile references an existing team (org configs only)

When the CLI isn’t available, the wizard performs schema validation and may surface advisory checks (allowlists, delegation, stdio MCP) to prevent runtime surprises.

When available, the wizard prefers native SCC validation:

Terminal window
# For org configs
scc org validate org-config.json
# For team configs
scc team validate --file team-config.json

JSON Schema violations that make the config invalid:

SCHEMA ERROR: Invalid organization.id format
Path: organization.id
Expected: lowercase letters, numbers, hyphens only
Found: "Acme Corp"
Fix: Use "acme-corp" instead

Common schema errors:

  • Missing required fields (schema_version, organization.name, organization.id)
  • Invalid organization.id pattern (must match ^[a-z0-9-]+$)
  • Wrong field types
  • Invalid enum values

If organization.default_profile points to a team that doesn’t exist, validation fails:

DEFAULT_PROFILE ERROR: default_profile "backend" not found in profiles
Fix: Update default_profile or add the team to profiles

Wizard Advisory Checks (not enforced by SCC CLI)

Section titled “Wizard Advisory Checks (not enforced by SCC CLI)”

These warnings help catch runtime denials, but do not block scc org validate today:

  • allowlist/delegation mismatches for plugins or MCP servers
  • blocked plugins present in defaults
  • stdio MCP requirements (allow_stdio_mcp + absolute command path)
  • network_policy and session.auto_resume advisories
## Validation Results for: org-config.json
Config type: Org config
### Errors (CLI-enforced)
1. SCHEMA ERROR: ...
2. DEFAULT_PROFILE ERROR: ...
### Warnings (advisory)
1. WARNING: ...
### Summary
- Errors: 2
- Warnings: 1
- Status: INVALID

These fixes address advisory warnings and common runtime denials.

{
"defaults": {
"allowed_plugins": ["*@sandboxed-code-official", "custom-*"]
}
}
// Wrong
"enabled_plugins": ["scc-safety-net"]
// Correct
"enabled_plugins": ["scc-safety-net@sandboxed-code-official"]

Ensure the marketplace is defined:

{
"marketplaces": {
"sandboxed-code-official": {
"source": "github",
"owner": "CCimen",
"repo": "sandboxed-code-plugins"
}
}
}

Run validation in CI pipelines:

Terminal window
# Validate org config
scc org validate org-config.json
if [ $? -ne 0 ]; then
echo "Org config validation failed"
exit 1
fi
# Validate team configs
for config in teams/*/team-config.json; do
scc team validate --file "$config"
if [ $? -ne 0 ]; then
echo "Team config validation failed: $config"
exit 1
fi
done