Z001 — Configuration Structure Error¶
Z-Code: Z001 CORE_CONFIG_STRUCTURE · Engine: standalone · Exit: 1
Overview¶
The configuration file .zenzic.toml (or pyproject.toml) defines the constitution of the scan: its rules, scoring parameters, and exclusion zones. When the parser encounters structural or semantic issues, it cannot safely execute the check suite. Zenzic aborts the scan immediately to prevent non-deterministic behavior.
The Scenario¶
Consider a project with a .zenzic.toml containing a misspelled key or a key declared outside of any valid section table:
Because swallowed_key is not a valid root-level configuration option under the ZenzicConfig schema, Pydantic's validation fails.
Running the Check¶
When running Zenzic on a project with this configuration:
Expected output:
Error: Configuration validation failed.
Detailed errors in .zenzic.toml:
- line 1: Extra input or unknown configuration option 'swallowed_key' was not expected.
Exit code: 1
Interpreting the Output¶
The Z001 finding indicates a CORE_CONFIG_STRUCTURE issue.
- Scan Tier: Core / Bootstrap
- Severity:
Error(Fatal) - Impact: Immediate termination. The scan aborts before any Markdown or link analysis begins.
Resolve the Issue¶
- Open
.zenzic.tomlorpyproject.toml. - Locate the unrecognized or malformed configuration key (e.g.
swallowed_key). - Correct the key's spelling, place it inside the appropriate table/section, or remove it entirely.
See Also¶
- Checks Reference — full rule specification.