Diagnostic Code Index

Exhaustive index of Mandrel CLI static validation codes (E-codes, W-codes) and Metrology Lab promotion diagnostics (L-codes).

This page provides a searchable index of all diagnostic codes emitted by mandrel-cli validate (static checks) and the Metrology Lab (promotion gate).


Static Validation Errors (E Codes)

Validation errors represent structural, schema, or safety violations. A spec containing any E code fails validation and cannot be promoted.

CodeSeverityAffected FieldCause & DescriptionRemediation
E001Errormetadata.nameAgent name is absent.Declare a valid metadata.name in the YAML header.
E002Errorspec.runtime.timeout-secondsExecution timeout is negative.Set timeout-seconds ≥ 0.
E003Errorspec.runtime.max-hops-allowedMax hops limit is negative.Set max-hops-allowed ≥ 0.
E004Errorenforcement-matrices[*].tiers[*]Threshold tier missing limit attribute.Add numeric limit to the tier.
E005Errorenforcement-matrices[*].tiers[*]Category tier missing match attribute.Add string match pattern to the tier.
E006Errorspec.extensions.<key>Extension key not claimed by any registered plugin (Default-Deny).Register plugin or pass --allow-unclaimed-extensions.
E007Errorspec.extensions.<key>Extension key uses reserved mandrelproject.ai/ prefix.Use vendor reverse-DNS key (e.g. acme.com/feature).
E010Errorspec.runtime.max-fan-outConcurrent fan-out limit is negative.Set max-fan-out ≥ 0.
E011Errorspec.runtime.max-delegationsper-session limit is less than per-turn.Set per-sessionper-turn.
E012Errorspec.token-budgetprimary-chips < 0.1, model-id empty, or invalid fallback budget.Ensure valid model-id and primary-chips ≥ 0.1.
E013ErrorMandrelChipRateTableDuplicate model-id or missing baseline model.Fix ChipRateTable schema entries.
E020Errororchestrator.scope-rejection-policyValue not in {deny, escalate, transfer}.Select a supported rejection policy.
E021Errororchestrator.permitted-delegatesDelegate entry missing required capability.Specify capability for each delegate entry.
E022Errororchestrator.planning-depthPlanning depth < 1.Set planning-depth ≥ 1.
E024Errororchestrator.context-trust.session-historyValue not in {full, intents-only, none}.Select valid session history filter.
E025Errororchestrator.autonomy.*Autonomy field value not in {autonomous, challenge, deny}.Set autonomy mode to a valid enum.
E030Errorspec.network.*-spiffe-*Workload reference is malformed (not path, spiffe://, or tag:).Fix SPIFFE reference format.

Static Validation Warnings (W Codes)

Warnings highlight potential portability, security, or environment alignment issues. Pass --strict to elevate warnings to errors.

CodeSeverityAffected FieldCause & DescriptionRemediation
W012Warningspec.token-budget.model-idModel ID not found in active ChipRateTable (--metrology-lab mode).Verify model registration in the Metrology Lab.
W021Warningorchestrator.autonomy.scope-expansionscope-expansion is not deny (requires Override Token at runtime).Set to deny for automated compliance auditing.
W030Warningspec.network.*-spiffe-*Reference explicitly names an absolute trust domain (spiffe://).Use path-only reference (/ns/finance/sa/ledger) to preserve environment portability.

Metrology Lab Promotion Diagnostics (L Codes)

Diagnostic codes returned by the Metrology Lab promotion gate (mandrel-cli agents promote).

CodeSeverityDescriptionAction Required
L001Errortoken-budget.model-id is on the platform deny-list.Select an approved model permitted by MandrelPlatformPolicy.
L002Errortoken-budget.model-id not found in active ChipRateTable.Load active model into ChipRateTable before promoting.
L003ErrorSpec failed core validation rules (E codes).Fix static validation errors reported by CLI.
L004Warningruntime ceiling was baked down by platform policy.Informational; effective baked value applied.
L005Warningprimary-chips budget was baked down by platform policy.Informational; effective baked ceiling applied.