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).
NEA2025Semantic (AST)Invalid enum value in data element style selectorEnsure data element style selectors use valid enum values (e.g. phase.Plan, phase.Build, phase.Run, phase.Retire or time.Invest, time.Tolerate, time.Migrate, time.Eliminate).
NEA2026Semantic (AST)Unsupported data element selector prefix or segment countData element selectors support exactly two dotted segments with phase or time prefixes (e.g., phase.<value> or time.<value>).
NEA2027Semantic (AST)Inapplicable property declared on data element style ruleData elements only support visual styling properties (fill, background, stroke, border, opacity, color, border_width, border_style). Layout properties like shape, icon, arrow, and curve_type are prohibited.
NEA2028Semantic (AST)Data element style selector declared in incompatible view typeRestrict view-scoped data element style rules to compatible view types (phase.* only in lifecycle_roadmap views; time.* only in portfolio_matrix views).
NEA2030Semantic (AST)Archived entity explicitly included in view by identifier without predicateUse include <target> where archived or remove explicit inclusion.
NEA2031Semantic (AST)View is marked as archivedArchived views produce empty closures; remove archived true to activate view.
NEA2035Semantic (AST)Unknown attribute type in attr_type declarationSupported types are "string", "number", "bool", and "enum".
NEA2036Semantic (AST)Enum attr_type declaration missing values listProvide values ["val1", "val2"] inside the enum attr_type block.
NEA2037Semantic (AST)Non-enum attr_type declaration has values propertyRemove values from non-enum type declarations.
NEA2038Semantic (AST)Duplicate attr_type declarationEach attribute may only be declared once in types { ... }.
NEA2039Semantic (AST)Attribute value type mismatch (string expected)Assign a quoted string value matching the declared attribute type.
NEA2040Semantic (AST)Attribute value type mismatch (number expected)Assign a numeric value matching the declared attribute type.
NEA2041Semantic (AST)Attribute value type mismatch (boolean expected)Assign true or false matching the declared attribute type.
NEA2042Semantic (AST)Attribute enum value not in declared values allowlistAssign a value defined in the enum declaration's values list.
NEA2043Semantic (AST)Incompatible predicate operator for attribute typeCheck operator matrix (e.g. comparison operators <, > require "number").
NEA2044Semantic (AST)Predicate comparison value type mismatchEnsure RHS comparison value matches the attribute's declared type.
NEA2045Semantic (AST)types block declared in nested scopePlace types { ... } blocks strictly at the workspace root.
NEA2046Semantic (AST)cluster view statement declared in DOM-rendered view typeClusters are supported in canvas diagram views (landscape, container, integration, threat_model, data_flow, attack_surface).
NEA2047Semantic (AST)Duplicate annotation identifier between cluster and text annotationCluster IDs and text annotation IDs share a single namespace per view; use unique IDs.
NEA2048Semantic (AST)Cluster has no include statementsAdd at least one include statement to define cluster members.
NEA2050Semantic (AST)Entity explicitly included by multiple clusters in same viewAn entity may belong to at most one cluster per view; remove conflicting explicit include declarations.
NEA2051Semantic (AST)Cluster member extracted out of structural parent containerInformational diagnostic: entity is drawn inside the cluster container, outside its structural parent.
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).
NEA3007Semantic LinkingLive operational relier depends on an archived entityActive relier entities cannot depend on, call, or read archived targets; either restore the target or archive the relier.
NEA3008Semantic LinkingArchived parent entity contains active child entityA parent entity (composed_of or lexical container) cannot be archived while retaining active children.
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.
NEA4007Domain ValidationInvalid monotonic restrictiveness orderingEnsure security classification or restrictiveness levels follow monotonic hierarchy.
NEA4008Domain ValidationNon-canonical restrictiveness warningEnsure restrictiveness values map to canonical definitions.
NEA4009Domain ValidationScore axis value out of boundsEnsure score values (business_value, tech_fit) are within the configured score scale bounds ([0.0, 10.0]).
NEA4010Domain ValidationEmpty score block declared on entityProvide at least one score axis (business_value or tech_fit) within the score { ... } block.
NEA4011Domain ValidationDuplicate axis defined in score blockDeclare each score axis at most once per score block.
NEA4012Domain ValidationScore predicate literal out of rangeEnsure predicate filter comparison values match scale bounds.
NEA4013Domain ValidationInvalid portfolio quadrant thresholdConfigure quadrant threshold values between the scale minimum and maximum.
NEA4014Domain ValidationUnknown key in manifest portfolio configurationVerify portfolio threshold keys in manifest.yaml.
NEA4015Domain ValidationDeclared time disposition contradicts quadrant evaluated from scoreAlign declared time with quadrant derived from tech_fit and business_value, adjust scores, or remove the manual time declaration.
NEA4016Domain ValidationNegative number not allowed on non-negative fieldNegative number literals are disallowed on non-negative domain fields (cost, probability, cvss_score, order).