Skip to main content

Diagnostic Error Code Index

The table below catalogs all compiler diagnostic codes produced by the Scapius parser and semantic analysis suite.

Error CodeCategoryCauseRemediation
NEA1001SyntaxParsing syntax error, missing token, unclosed string, or invalid grammar structureCheck DSL syntax against language specification and close any unclosed braces/quotes.
NEA2001Semantic (AST)Duplicate entity identifier within workspaceEnsure all entity IDs across all files in the workspace are globally unique snake_case identifiers.
NEA2002Semantic (AST)Duplicate view identifier within workspaceEnsure all view IDs across all view blocks are globally unique.
NEA2003Semantic (AST)Invalid property path depth in predicate expressionLimit nested property path traversal to supported entity attributes.
NEA2004Semantic (AST)Invalid comparison operator for field typeUse string operators (contains, starts_with) for strings and numeric operators (>, <, etc.) for numbers.
NEA2005Semantic (AST)Ambiguous predicate literal valueEnsure predicate comparison values clearly match the target field type.
NEA2006Semantic (AST)Invalid predicate comparison valueEnsure comparison values match expected formats and enums.
NEA2007Semantic (AST)Type mismatch between compared operandsEnsure operands on both sides of the comparison operator have compatible types.
NEA2008Semantic (AST)Duplicate text annotation identifier in viewEnsure all text <id> statements inside a view have unique IDs.
NEA2009Semantic (AST)Text annotation anchor target entity not found in workspaceEnsure the anchor <target> points to a valid, existing entity identifier.
NEA2010Semantic (AST)Text annotation anchored to another text annotationAnchor annotations to domain entities or views, not other text annotations.
NEA2011Semantic (AST)Empty text annotation contentProvide non-empty markdown text content inside the triple-quoted block.
NEA2012Semantic (AST)Text annotation declared in a DOM-rendered viewText annotations are supported only in canvas-rendered diagram views (e.g. landscape, container, threat_model, integration, data_flow, attack_surface).
NEA3001Semantic LinkingOrphaned relationship target reference (target ID does not exist)Check spelling of destination entity ID or ensure the target .ea file is included in workspace.
NEA3002Semantic LinkingAmbiguous reference to multiple symbol candidatesDisambiguate entity reference by qualifying with namespace or fixing duplicate definitions.
NEA3003Semantic LinkingDuplicate relationship between source and destination with identical verbRemove the duplicate relationship declaration.
NEA3004Semantic LinkingRelationship constraint violation (verb disallowed between source/target entity types or multiple composition parents)Consult the Master Relationship Matrix for allowed source/destination combinations.
NEA3005Semantic LinkingCyclic composed_of composition loop detectedRemove cyclic containment loops (an entity cannot be composed of itself).
NEA4001Domain ValidationProperty value is not in the allowed enum value setCheck allowed enum values for the field (e.g. time, risk, criticality, mitigation_status).
NEA4002Domain ValidationDuplicate lifecycle phase declared on entityDeclare each lifecycle phase (Idea, Plan, Build, Run, Retire) at most once per entity.
NEA4003Domain ValidationInvalid date format in lifecycle phaseUse ISO-8601 "YYYY-MM-DD" date string format.
NEA4004Domain ValidationLifecycle end date occurs before start dateEnsure end date is chronologically greater than or equal to start date.
NEA4005Domain ValidationInvalid capability hierarchical numbering formatUse standard dotted capability numbering (e.g. "1.2", "2.4.1").
NEA4006Domain ValidationCapability numbering sequence gap detectedEnsure hierarchical capability numbers follow a contiguous sequence without numbering gaps.