textual-notation-of-model/packages/methods/de4sdv/de4sdv_ontology_validation_rules.sysml

0 view(s) · 11 declared member(s)

Source

1/*2 * DE4SDV ontology validation-rule homes.3 *4 * Each validation rule of the former basic ontology (validation rules5 * DE4SDV-ONT-R001 to DE4SDV-ONT-R010) has one model-resident home. Each home6 * is a package-owned constraint usage whose first owned documentation is the7 * rule statement (normalized-exact) and whose second is its enforcement note.8 *9 * The constraint usages are rule declarations only: they carry no Boolean10 * expression, are not asserted on any element, and evaluate nothing. Rule11 * enforcement stays where each enforcement note says it is (scripts, tests and12 * reviews). The authored ontology is deleted, so these homes are the only13 * record of the rules. The R003 origin and exclusion groundings are read from14 * the ontologyRuleR003 home below (see its reader comment). No compliance,15 * certification or acceptance claim is made.16 *17 * This package also records the vocabulary-only role of IncrementSize. It18 * lives here, not in DE4SDV_MethodProcess, so the method-process view, which19 * exposes every DE4SDV_MethodProcess member, is not changed by this note.20 */2122package DE4SDV_OntologyValidationRules {23  private import DE4SDV_MethodProcess::*;2425  constraint ontologyRuleR001 {26    doc /* Every Feature shall distinguish at least one member product from another member27     * product. */28    doc /* Rule DE4SDV-ONT-R001. Enforced by: Kernel rule (a feature stays a29     * ProductLineFeatureCandidate until variability is shown) plus feature-catalogue30     * review. */31  }3233  constraint ontologyRuleR002 {34    doc /* Every FeatureIncrement shall identify selected SAF viewpoints and out-of-scope35     * viewpoints. */36    doc /* Rule DE4SDV-ONT-R002. Enforced by: Increment framing review against the kernel37     * viewpoint selections. */38  }3940  constraint ontologyRuleR003 {41    doc /* Every Requirement in a feature increment shall trace to at least one Need,42     * RegulatoryConstraint, or ArchitectureDecisionRecord. */43    doc /* Rule DE4SDV-ONT-R003. Enforced by: scripts/check_model_sync.py sync point 6 resolves44     * each derivation target to its modeled type (including specialization closure) and45     * accepts only targets whose semantic type grounds Need (StakeholderNeedCandidate46     * specializations), RegulatoryConstraint (RegulatoryConstraintCandidate47     * specializations), or ArchitectureDecisionRecord (ArchitectureDecisionRecord48     * specializations); identifier prefixes are never consulted. Remaining49     * semantic-strength questions stay with requirements QA review. */50    doc /* Origin groundings: Need: requirement def StakeholderNeedCandidate in51     * textual-notation-of-model/packages/methods/de4sdv/de4sdv_method_context.sysml;52     * RegulatoryConstraint: requirement def RegulatoryConstraintCandidate in53     * textual-notation-of-model/packages/methods/de4sdv/de4sdv_method_context.sysml;54     * ArchitectureDecisionRecord: part def ArchitectureDecisionRecord in55     * textual-notation-of-model/packages/methods/de4sdv/de4sdv_method_context.sysml.56     * Exclusion groundings: ProblemStatement: requirement def ProblemStatement in57     * textual-notation-of-model/packages/methods/de4sdv/de4sdv_method_context.sysml. */58    comment /* Reader: scripts/check_model_sync.py sync point 6 reads the origin and59     * exclusion groundings above from this rule home. Their text format is fixed and drift60     * fails closed. */61  }6263  constraint ontologyRuleR004 {64    doc /* Every compliance-oriented claim shall be marked as draft, planned, example,65     * verified, or accepted. */66    doc /* Rule DE4SDV-ONT-R004. Enforced by: Verification-model invariant tests (product-claim67     * bans) and evidence-register status review. */68  }6970  constraint ontologyRuleR005 {71    doc /* Common capabilities shall not be modeled as Features unless they distinguish member72     * products. */73    doc /* Rule DE4SDV-ONT-R005. Enforced by: Kernel ProductLineCharacteristic specialization74     * structure plus product-line classification review. */75  }7677  constraint ontologyRuleR006 {78    doc /* Every VerificationCase shall identify a verification method and at least one79     * acceptance criterion or open gap. */80    doc /* Rule DE4SDV-ONT-R006. Enforced by: ADR 0009 amendment attributes (VerificationMethod81     * metadata, verificationStatus) plus capability-agnostic verification-model invariant82     * tests. */83  }8485  constraint ontologyRuleR007 {86    doc /* Every ValidationScenario shall identify the Need or stakeholder concern whose87     * fitness-for-use it evaluates. */88    doc /* Rule DE4SDV-ONT-R007. Enforced by: V&V planning review. */89  }9091  constraint ontologyRuleR008 {92    doc /* Every EvidenceArtifact shall carry an explicit status value. */93    doc /* Rule DE4SDV-ONT-R008. Enforced by: ADR 0009 amendment (VVStatus in the model);94     * evidence YAML records no longer duplicate method or evidence_status columns. */95  }9697  constraint ontologyRuleR009 {98    doc /* Every AssuranceClaim shall be supported by evidence or recorded as an open gap. */99    doc /* Rule DE4SDV-ONT-R009. Enforced by: Argumentation-assurance viewpoint review. */100  }101102  constraint ontologyRuleR010 {103    doc /* Product-line variation points represented in SysML v2 shall use native variation104     * with owned variant usages; do not substitute a generic variation-point part105     * taxonomy. */106    doc /* Rule DE4SDV-ONT-R010. Enforced by: Kernel guard doc plus variability-configuration107     * tests. */108  }109110  comment IncrementSizeVocabularyRole about IncrementSize /* Vocabulary only.111   * IncrementSize and its literals XS, S, M and L stay model-resident as112   * size-guidance labels for increment planning. They are never113   * promoted to semantic authority: no sizing rule, gate, completion claim or runtime114   * traversal is derived from them. */115}116