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

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

Source

1/* DE4SDV method-conformance kernel vocabulary.2 *3 * Typed model-resident vocabulary for method-contract objects and4 * evaluation scopes, per the frozen conformance baseline (Sections 6-7)5 * and the accepted method-evaluation specification (docs/method-evaluation/).6 *7 * Representation decision (frozen baseline Section 7: "the first8 * implementation increment must choose and prove its native9 * representation"): the contract schema is materialized as model-resident10 * records — item definitions carrying typed attributes — so the contract11 * and the INC-AEBS-009D pilot scope are real API-queryable objects, not12 * prose. Every declaration here is classified by the model-projection13 * coverage gate: projected through a model-generated layer or listed as14 * kernel-internal with a reason.15 *16 * Boundary: this file defines method vocabulary only. The concrete17 * INC-AEBS-009D pilot scope usage lives beside its verification slice in18 * the AEBS package; no phase-specific populations, thresholds, or19 * obligations live here.20 */21package DE4SDV_MethodConformance {2223  private import ScalarValues::*;24  private import Metaobjects::SemanticMetadata;25  private import DE4SDV_MethodProcess::*;2627  /* Evaluation-source kinds from the frozen baseline Section 7 schema:28     pinned model record | pinned repository artifact | live delivery adapter. */29  enum def EvaluationSourceKind {30    doc /* The kind of input an obligation reads: a pinned model record, a pinned31           repository artifact, or a live delivery adapter (outside deterministic32           V1 evaluation). */33    pinnedModelRecord {34      doc /* The obligation reads a pinned model record at the bound API revision. */35    }36    pinnedRepositoryArtifact {37      doc /* The obligation reads a pinned, digest-identified repository artifact. */38    }39    liveDeliveryAdapter {40      doc /* The obligation reads a live delivery projection; outside deterministic V1 evaluation. */41    }42  }4344  /* One typed method-contract obligation. Attributes mirror the frozen45     baseline Section 7 schema exactly; status conditions bind to explicit46     allowed-value vocabularies (no example literals such as 'approved'). */47  item def MethodContractObligation {48    doc /* A typed model-resident method-contract obligation: stable explicit49           identifier, phase reference, typed subject selector, restricted50           applicability, population policy, pinned predicate with declared51           input/output types, target filters, per-subject cardinality bounds,52           requiredness, evaluation source, optional attestation-policy53           reference, and exact claim boundary. Model materialization of the54           frozen baseline Section 7 schema. */55    attribute obligationId : String;56    doc /* Stable explicit identifier; unique in the selected method. */57    attribute phase : MethodPhase;58    doc /* Reference to an existing MethodPhase literal; never a phase-specific Python branch. */59    attribute subjectSelector : String;60    doc /* Typed selection from the declared evaluation scope; no free-text inference. */61    attribute applicability : String;62    doc /* Restricted typed condition over pinned model/configuration data. */63    attribute minimumPopulation : Natural;64    attribute permittedEmpty : Boolean;65    doc /* Explicit permitted-empty disposition; an empty population without it is not a pass. */66    attribute predicate : String;67    doc /* Pinned ontology predicate identifier with declared input/output types. */68    attribute targetFilter : String;69    doc /* Typed conditions on returned targets, not implicitly on subjects. */70    attribute cardinalityMinimum : Natural;71    attribute cardinalityMaximum : Natural;72    doc /* Integer bounds over distinct qualifying targets per applicable subject. */73    attribute required : Boolean;74    doc /* Whether failure blocks this declared contract scope. */75    attribute evaluationSource : EvaluationSourceKind;76    attribute attestationPolicyRef : String;77    doc /* Policy identity required when acceptance/approval is part of the obligation; may be empty. */78    attribute claimBoundary : String;79    doc /* Exact claim supported when this obligation passes. */80  }8182  /* An evaluation scope binds increment identity, root subjects with83     eligible types, population policy, and explicit exclusions with84     rationale (frozen baseline Section 6). Contribution set and evaluation85     scope are distinct sets. */86  part def MethodEvaluationScope {87    doc /* An evaluation scope binding increment identity, eligible subject types,88           and explicit exclusions. Contribution set and evaluation scope are89           distinct sets; membership in evaluation scope is a reviewed scope90           decision, not an inferred impact claim. */91    attribute incrementId : String;92    doc /* Owning increment identifier, e.g. an INC-<SUBJECT>-<SEQ> record identity. */93    attribute subjectType : String;94    doc /* Eligible subject API metaclass for this scope; subjects of other types are rejected. */95    item exclusions : MethodEvaluationExclusion[*];96    /* Empty by default: existing scope declarations and memberships remain97     * unchanged. Each owned exclusion identifies what is excluded and why;98     * no inferred impact, parallel membership list or silent exclusion. */99  }100101  item def MethodEvaluationExclusion {102    doc /* One explicit evaluation-scope exclusion with a referenced element103         * and its rationale. This scope-internal record is not an ontology104         * class, contribution membership or evidence of conformance. */105    ref excludedElement : Base::Anything;106    attribute rationale : String;107    assert constraint nonEmptyRationale { rationale != "" }108  }109110  /* Explicit membership of one subject in an evaluation scope: the111     "contributes" relation of the frozen baseline Section 6. Membership in112     evaluation scope is a reviewed scope decision, not an inferred impact113     claim. */114  item def EvaluationScopeMembership {115    doc /* Explicit membership of one subject in an evaluation scope, carrying the116           contributes flag that separates the contribution set from reused117           evaluation-scope members. */118    attribute scopeId : String;119    doc /* Stable explicit identifier of the owning scope. */120    attribute subjectId : String;121    doc /* Stable explicit identifier (declaredShortName) of the subject element. */122    attribute contributes : Boolean;123    doc /* True when the increment introduces or changes the subject (contribution set); false for reused scope members. */124  }125126  /* A candidate evaluation declares the tested scope it compares evidence127     against (provenance fingerprint fields from the retained records). */128  item def TestedScopeDeclaration {129    doc /* A candidate evaluation's declaration of the tested scope it compares130           retained evidence against: execution head and pinned profile131           identities (conservative scope-equality inputs). */132    attribute executionHead : String;133    doc /* Full Git SHA the retained execution records were produced at. */134    attribute profileIdentities : String;135    doc /* Comma-separated pinned profile identities of the declared tested scope. */136  }137138  /* Reference to one retained execution record: explicit external identity139     with digest and provenance; bytes stay external. */140  item def RetainedExecutionRecordReference {141    doc /* A model-resident reference to one retained execution record with142           explicit external identity, artifact path, digest, and run identity;143           record bytes stay external. */144    attribute recordId : String;145    attribute artifactPath : String;146    attribute sha256 : String;147    attribute runId : String;148  }149150  /* Reference to the authorization policy and, where present, the151     attributable acceptance decision. Policy status (proposed vs approved)152     is carried by the policy document, not by this reference. */153  item def AcceptanceAttestationReference {154    doc /* A model-resident reference to the authorization policy and the155           machine-declared decision-registry location. Policy status (proposed156           vs approved) is carried by the policy document, not by this reference;157           a missing registry and a known-empty registry are different states. */158    attribute policyRef : String;159    doc /* Resolvable policy identity; an unresolvable identity is a contract error downstream. */160    attribute decisionRegistryPath : String;161    doc /* Machine-declared decision-registry location; missing and known-empty registries are different states. */162  }163164  doc /* Method-conformance vocabulary: model-resident contract objects so165       obligations, scopes, and evidence references are API-queryable at a166       bound revision. Phase-specific populations and thresholds are model167       data in feature slices, never Python constants. */168}169