Documentation
¶
Overview ¶
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-ASCIIDOC-GENERATOR
ENGMODEL-OWNER-UNIT: FU-VALIDATION-ENGINE
ENGMODEL-OWNER-UNIT: FU-SYSTEM-COMPOSITION
ENGMODEL-OWNER-UNIT: FU-VALIDATION-ENGINE
ENGMODEL-OWNER-UNIT: FU-GEMARA-EXPORTER
ENGMODEL-OWNER-UNIT: FU-GEMARA-EXPORTER
ENGMODEL-OWNER-UNIT: FU-GEMARA-EXPORTER
ENGMODEL-OWNER-UNIT: FU-GEMARA-EXPORTER
ENGMODEL-OWNER-UNIT: FU-GEMARA-EXPORTER
ENGMODEL-OWNER-UNIT: FU-CLI-ORCHESTRATION
ENGMODEL-OWNER-UNIT: FU-CODEMAP-INFERENCE
ENGMODEL-OWNER-UNIT: FU-CODEMAP-INFERENCE
ENGMODEL-OWNER-UNIT: FU-CODEMAP-INFERENCE
ENGMODEL-OWNER-UNIT: FU-LOBSTER-EXPORTER
ENGMODEL-OWNER-UNIT: FU-OSCAL-EXPORTER
ENGMODEL-OWNER-UNIT: FU-OSCAL-EXPORTER
ENGMODEL-OWNER-UNIT: FU-OSCAL-EXPORTER
ENGMODEL-OWNER-UNIT: FU-OSCAL-EXPORTER
ENGMODEL-OWNER-UNIT: FU-MODEL-CHANGE
ENGMODEL-OWNER-UNIT: FU-STRUCTURIZR-EXPORTER
ENGMODEL-OWNER-UNIT: FU-THREAT-EXPORTER
ENGMODEL-OWNER-UNIT: FU-ALLOCATION-TRACE
ENGMODEL-OWNER-UNIT: FU-TRLC-EXPORTER
Index ¶
- Constants
- func GenerateGemaraOSCALAssessmentResults(bundle model.Bundle, requirements model.RequirementsDocument, codeRoot string, ...) (string, error)
- func GenerateGemaraOSCALAssessmentResultsFromFiles(architecturePath, requirementsPath, codeRoot string, ...) (string, error)
- func GenerateGemaraOSCALCatalog(bundle model.Bundle, options GemaraExportOptions) (string, error)
- func GenerateGemaraOSCALCatalogFromFile(architecturePath string, options GemaraExportOptions) (string, error)
- func HasComposition(bundle model.Bundle) bool
- type AsciiDocOptions
- type AsciiDocResult
- type ComposedSystem
- type CompositionResult
- type DanglingLink
- type GemaraEvaluationResult
- type GemaraExportOptions
- type GemaraExportResult
- type LobsterActivityExportOptions
- type LobsterActivityExportResult
- type MaterializedAllocation
- type OSCALARDocument
- type OSCALAROptions
- type OSCALARResult
- type OSCALPOAMDocument
- type OSCALPOAMOptions
- type OSCALPOAMResult
- type OSCALSSPDocument
- type OSCALSSPOptions
- type OSCALSSPResult
- type RequirementsDelta
- type RequirementsDeltaOperations
- type RequirementsDeltaResult
- type Result
- type StructurizrExportResult
- type TRLCExportOptions
- type TRLCExportResult
- type ThreatModelExportOptions
- type ThreatModelExportResult
- type ThreatModelFormat
- type TraceCodeRef
- type TraceDelegation
- type TraceMatrix
- type TraceRow
- type TraceSummary
Constants ¶
const GemaraVersion = "1.1.0"
GemaraVersion is the Gemara specification version stamped into every artifact's metadata.
Variables ¶
This section is empty.
Functions ¶
func GenerateGemaraOSCALAssessmentResults ¶
func GenerateGemaraOSCALAssessmentResults(bundle model.Bundle, requirements model.RequirementsDocument, codeRoot string, options GemaraExportOptions) (string, error)
GenerateGemaraOSCALAssessmentResults converts the Gemara Evaluation Log to OSCAL Assessment Results JSON via the go-gemara SDK. Returns "" when there is nothing to evaluate. TRLC-LINKS: REQ-EMG-015 ENGMODEL-LINKS: FU-GEMARA-EXPORTER, FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func GenerateGemaraOSCALAssessmentResultsFromFiles ¶
func GenerateGemaraOSCALAssessmentResultsFromFiles(architecturePath, requirementsPath, codeRoot string, options GemaraExportOptions) (string, error)
GenerateGemaraOSCALAssessmentResultsFromFiles loads inputs and emits OSCAL Assessment Results derived from the Gemara evaluation log. TRLC-LINKS: REQ-EMG-015 ENGMODEL-LINKS: FU-GEMARA-EXPORTER, FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func GenerateGemaraOSCALCatalog ¶
func GenerateGemaraOSCALCatalog(bundle model.Bundle, options GemaraExportOptions) (string, error)
GenerateGemaraOSCALCatalog converts the Gemara Control Catalog to an OSCAL Catalog JSON document via the go-gemara SDK. Returns "" when there are no controls. TRLC-LINKS: REQ-EMG-015 ENGMODEL-LINKS: FU-GEMARA-EXPORTER, FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func GenerateGemaraOSCALCatalogFromFile ¶
func GenerateGemaraOSCALCatalogFromFile(architecturePath string, options GemaraExportOptions) (string, error)
GenerateGemaraOSCALCatalogFromFile loads the model and emits an OSCAL Catalog derived from the Gemara Control Catalog. TRLC-LINKS: REQ-EMG-015 ENGMODEL-LINKS: FU-GEMARA-EXPORTER, FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func HasComposition ¶
HasComposition reports whether the model declares any subsystems. TRLC-LINKS: REQ-EMG-016 ENGMODEL-LINKS: FU-SYSTEM-COMPOSITION
Types ¶
type AsciiDocOptions ¶
ENGMODEL-LINKS: FU-ASCIIDOC-GENERATOR, FU-CODEMAP-INFERENCE, CTRL-TRACEABILITY-COVERAGE, DEP-LOCAL-WORKSPACE
type AsciiDocResult ¶
type AsciiDocResult struct {
Document string
DecisionsDocument string
Diagnostics []validate.Diagnostic
}
ENGMODEL-LINKS: FU-ASCIIDOC-GENERATOR, FU-VALIDATION-ENGINE, CTRL-TRACEABILITY-COVERAGE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateAsciiDoc ¶
func GenerateAsciiDoc(bundle model.Bundle, requirements model.RequirementsDocument, design model.DesignDocument, options AsciiDocOptions) (AsciiDocResult, error)
ENGMODEL-LINKS: FU-ASCIIDOC-GENERATOR, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS TRLC-LINKS: REQ-EMG-001, REQ-EMG-003, REQ-EMG-014
func GenerateAsciiDocFromFiles ¶
func GenerateAsciiDocFromFiles(architecturePath, requirementsPath, designPath string, options AsciiDocOptions) (AsciiDocResult, error)
ENGMODEL-LINKS: FU-ASCIIDOC-GENERATOR, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS TRLC-LINKS: REQ-EMG-001, REQ-EMG-003, REQ-EMG-014
type ComposedSystem ¶
type ComposedSystem struct {
SubsystemID string // id of this system within its parent (empty for the root)
Dir string // resolved directory of this system's model
Bundle model.Bundle
Requirements model.RequirementsDocument // this system's own requirements (for delegation target resolution)
Children []*ComposedSystem
}
ComposedSystem is a resolved system together with its resolved subsystems. ENGMODEL-LINKS: FU-SYSTEM-COMPOSITION, DO-ARCHITECTURE-MODEL
type CompositionResult ¶
type CompositionResult struct {
Root *ComposedSystem
Allocations []MaterializedAllocation
Diagnostics []validate.Diagnostic
}
CompositionResult is the resolved tree plus materialized allocation trace and diagnostics. ENGMODEL-LINKS: FU-SYSTEM-COMPOSITION, FU-ALLOCATION-TRACE
func GenerateCompositionFromFile ¶
func GenerateCompositionFromFile(architecturePath string) (CompositionResult, error)
GenerateCompositionFromFile resolves the system-of-systems rooted at architecturePath. TRLC-LINKS: REQ-EMG-016 ENGMODEL-LINKS: FU-SYSTEM-COMPOSITION, FU-MODEL-LOADER, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS
type DanglingLink ¶
type DanglingLink struct {
Kind string `json:"kind"` // requirement | model
Target string `json:"target"`
From string `json:"from"` // file:line
}
DanglingLink is a code trace link that resolves to nothing in the model. ENGMODEL-LINKS: FU-VALIDATION-ENGINE, CTRL-TRACEABILITY-COVERAGE
type GemaraEvaluationResult ¶
type GemaraEvaluationResult struct {
EvaluationLog gemara.EvaluationLog
YAML string
HasContent bool // false when there is nothing to evaluate (no controls)
}
GemaraEvaluationResult holds the L5 Evaluation Log and its serialization. ENGMODEL-LINKS: FU-GEMARA-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func GenerateGemaraEvaluationLog ¶
func GenerateGemaraEvaluationLog(bundle model.Bundle, requirements model.RequirementsDocument, codeRoot string, options GemaraExportOptions) (GemaraEvaluationResult, error)
GenerateGemaraEvaluationLog builds an L5 Evaluation Log from the model bundle. requirements and codeRoot are reserved for inferred-verification augmentation. TRLC-LINKS: REQ-EMG-015 ENGMODEL-LINKS: FU-GEMARA-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func GenerateGemaraEvaluationLogFromFiles ¶
func GenerateGemaraEvaluationLogFromFiles(architecturePath, requirementsPath, codeRoot string, options GemaraExportOptions) (GemaraEvaluationResult, error)
GenerateGemaraEvaluationLogFromFiles loads inputs and renders the Evaluation Log. TRLC-LINKS: REQ-EMG-015 ENGMODEL-LINKS: FU-GEMARA-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type GemaraExportOptions ¶
type GemaraExportOptions struct {
AuthorID string // metadata.author.id (default "engmod")
AuthorName string // metadata.author.name (default "Engineering Model")
Version string // metadata.version (optional)
Date string // metadata.date, ISO 8601 (optional; omitted when empty for reproducibility)
}
GemaraExportOptions configures the deterministic metadata stamped into artifacts. ENGMODEL-LINKS: FU-GEMARA-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type GemaraExportResult ¶
type GemaraExportResult struct {
ControlCatalog gemara.ControlCatalog
ThreatCatalog gemara.ThreatCatalog
RiskCatalog gemara.RiskCatalog
VectorCatalog gemara.VectorCatalog
CapabilityCatalog gemara.CapabilityCatalog
// Extended artifacts (emitted only when the model has supporting data).
PrincipleCatalog gemara.PrincipleCatalog
GuidanceCatalog gemara.GuidanceCatalog
Policy gemara.Policy
Lexicon gemara.Lexicon
ControlThreatMapping gemara.MappingDocument
AuditLog gemara.AuditLog
EnforcementLog gemara.EnforcementLog
HasGuidance bool
HasPolicy bool
HasMapping bool
HasAudit bool
HasEnforcement bool
// YAML maps an artifact short-name (e.g. "control-catalog") to its serialized document.
YAML map[string]string
}
GemaraExportResult holds the typed Gemara documents and their YAML serializations. ENGMODEL-LINKS: FU-GEMARA-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func GenerateGemara ¶
func GenerateGemara(bundle model.Bundle, options GemaraExportOptions) (GemaraExportResult, error)
GenerateGemara renders the engineering model bundle into Gemara L1-L3 documents. TRLC-LINKS: REQ-EMG-015 ENGMODEL-LINKS: FU-GEMARA-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func GenerateGemaraFromFile ¶
func GenerateGemaraFromFile(architecturePath string, options GemaraExportOptions) (GemaraExportResult, error)
GenerateGemaraFromFile loads the model bundle and renders the Gemara catalogs. TRLC-LINKS: REQ-EMG-015 ENGMODEL-LINKS: FU-GEMARA-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type LobsterActivityExportOptions ¶
ENGMODEL-LINKS: FU-LOBSTER-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FU-TRLC-EXPORTER
type LobsterActivityExportResult ¶
type LobsterActivityExportResult struct {
JSON string
}
ENGMODEL-LINKS: FU-LOBSTER-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func GenerateLobsterActivityTraceFromDir ¶
func GenerateLobsterActivityTraceFromDir(testsDir string, options LobsterActivityExportOptions) (LobsterActivityExportResult, error)
TRLC-LINKS: REQ-EMG-006 ENGMODEL-LINKS: FU-LOBSTER-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS, FU-TRLC-EXPORTER, FU-CODEMAP-INFERENCE, DEP-LOCAL-WORKSPACE
type MaterializedAllocation ¶
type MaterializedAllocation struct {
System string // owning (parent) system id
Requirement string
Subsystem string
Target string // public id within the subsystem
TargetRef string // the subsystem requirement that realizes the target (its contract ref)
Resolved bool // target is published in the subsystem contract
TargetRefResolved bool // TargetRef names a requirement that exists in the subsystem
Note string
}
MaterializedAllocation is a parent->subsystem allocation with its composed-view resolution status. ENGMODEL-LINKS: FU-ALLOCATION-TRACE, CTRL-TRACEABILITY-COVERAGE
type OSCALARDocument ¶
type OSCALARDocument struct {
AssessmentResults oscalAssessmentResults `json:"assessment-results"`
}
ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type OSCALAROptions ¶
type OSCALAROptions struct {
AssessmentPlanHref string
RequirementsPath string
CodeRoot string
ProfileHref string
CatalogHref string
}
ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type OSCALARResult ¶
type OSCALARResult struct {
JSON string
Document OSCALARDocument
Diagnostics []validate.Diagnostic
}
ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FU-VALIDATION-ENGINE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateOSCALAssessmentResults ¶
func GenerateOSCALAssessmentResults(bundle model.Bundle, requirements model.RequirementsDocument, options OSCALAROptions) (OSCALARResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-013 ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS, FU-THREAT-EXPORTER, FU-VALIDATION-ENGINE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateOSCALAssessmentResultsFromFile ¶
func GenerateOSCALAssessmentResultsFromFile(architecturePath string, options OSCALAROptions) (OSCALARResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-013 ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS
type OSCALPOAMDocument ¶
type OSCALPOAMDocument struct {
PlanOfActionAndMilestones oscalPOAMRoot `json:"plan-of-action-and-milestones"`
}
ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type OSCALPOAMOptions ¶
type OSCALPOAMOptions struct {
SSPHref string
}
ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type OSCALPOAMResult ¶
type OSCALPOAMResult struct {
JSON string
Document OSCALPOAMDocument
Diagnostics []validate.Diagnostic
}
ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FU-VALIDATION-ENGINE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateOSCALPOAM ¶
func GenerateOSCALPOAM(bundle model.Bundle, options OSCALPOAMOptions) (OSCALPOAMResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-013 ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS, FU-THREAT-EXPORTER, FU-VALIDATION-ENGINE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateOSCALPOAMFromFile ¶
func GenerateOSCALPOAMFromFile(architecturePath string, options OSCALPOAMOptions) (OSCALPOAMResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-013 ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS
type OSCALSSPDocument ¶
type OSCALSSPDocument struct {
SystemSecurityPlan oscalSystemSecurityPlan `json:"system-security-plan"`
}
ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type OSCALSSPOptions ¶
type OSCALSSPOptions struct {
ProfileHref string
CatalogHref string
SystemName string
SystemDescription string
}
ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type OSCALSSPResult ¶
type OSCALSSPResult struct {
JSON string
Document OSCALSSPDocument
Diagnostics []validate.Diagnostic
}
ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FU-VALIDATION-ENGINE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateOSCALSSP ¶
func GenerateOSCALSSP(bundle model.Bundle, options OSCALSSPOptions) (OSCALSSPResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-013 ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS, FU-VALIDATION-ENGINE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateOSCALSSPFromFile ¶
func GenerateOSCALSSPFromFile(architecturePath string, options OSCALSSPOptions) (OSCALSSPResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-013 ENGMODEL-LINKS: FU-OSCAL-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS
type RequirementsDelta ¶
type RequirementsDelta struct {
Version int `yaml:"version"`
Requirements RequirementsDeltaOperations `yaml:"requirements"`
}
RequirementsDelta describes stable-ID operations against requirements.yml. Updates replace the complete requirement entity. ENGMODEL-LINKS: FU-MODEL-CHANGE, DO-REQUIREMENTS-DELTA, DO-REQUIREMENTS-DOCUMENT
type RequirementsDeltaOperations ¶
type RequirementsDeltaOperations struct {
Add []model.Requirement `yaml:"add"`
Update []model.Requirement `yaml:"update"`
Remove []string `yaml:"remove"`
}
RequirementsDeltaOperations groups supported requirement mutations. ENGMODEL-LINKS: FU-MODEL-CHANGE, DO-REQUIREMENTS-DELTA
type RequirementsDeltaResult ¶
type RequirementsDeltaResult struct {
Candidate model.RequirementsDocument
YAML []byte
Diff string
Added []string
Updated []string
Removed []string
Diagnostics []validate.Diagnostic
}
RequirementsDeltaResult is the validated candidate and deterministic change summary. ENGMODEL-LINKS: FU-MODEL-CHANGE, FU-VALIDATION-ENGINE, DO-REQUIREMENTS-DELTA, DO-REQUIREMENTS-DOCUMENT
func ApplyRequirementsDelta ¶
func ApplyRequirementsDelta(root, deltaPath string) (result RequirementsDeltaResult, err error)
ApplyRequirementsDelta validates and atomically writes a requirements delta. TRLC-LINKS: REQ-EMG-031, REQ-EMG-032, REQ-EMG-033 ENGMODEL-LINKS: FU-MODEL-CHANGE, FU-MODEL-LOADER, FU-VALIDATION-ENGINE, DO-REQUIREMENTS-DELTA, DO-REQUIREMENTS-DOCUMENT, DEP-LOCAL-WORKSPACE
func PlanRequirementsDelta ¶
func PlanRequirementsDelta(root, deltaPath string) (RequirementsDeltaResult, error)
PlanRequirementsDelta loads a delta, applies it in memory, and validates the complete candidate. It never modifies requirements.yml. TRLC-LINKS: REQ-EMG-031, REQ-EMG-032 ENGMODEL-LINKS: FU-MODEL-CHANGE, FU-MODEL-LOADER, FU-VALIDATION-ENGINE, DO-REQUIREMENTS-DELTA, DO-REQUIREMENTS-DOCUMENT
type Result ¶
type Result struct {
Bundle model.Bundle
View view.ProjectedView
Mermaid string
Diagnostics []validate.Diagnostic
}
ENGMODEL-LINKS: FU-CLI-ORCHESTRATION, FU-VIEW-PROJECTION, FU-ASCIIDOC-GENERATOR, FU-VALIDATION-ENGINE, CTRL-TRACEABILITY-COVERAGE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func Generate ¶
TRLC-LINKS: REQ-EMG-001, REQ-EMG-003 ENGMODEL-LINKS: FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS, FU-CLI-ORCHESTRATION, FU-VIEW-PROJECTION, FU-ASCIIDOC-GENERATOR, FU-VALIDATION-ENGINE, CTRL-TRACEABILITY-COVERAGE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateFromFile ¶
TRLC-LINKS: REQ-EMG-001, REQ-EMG-003 ENGMODEL-LINKS: FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS, FU-CLI-ORCHESTRATION, FU-VIEW-PROJECTION
type StructurizrExportResult ¶
type StructurizrExportResult struct {
DSL string
Diagnostics []validate.Diagnostic
}
ENGMODEL-LINKS: FU-STRUCTURIZR-EXPORTER, DO-STRUCTURIZR-DSL, FU-VALIDATION-ENGINE, CTRL-TRACEABILITY-COVERAGE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateStructurizrDSL ¶
func GenerateStructurizrDSL(bundle model.Bundle) (StructurizrExportResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-005 ENGMODEL-LINKS: FU-STRUCTURIZR-EXPORTER, DO-STRUCTURIZR-DSL, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS, DEP-LOCAL-WORKSPACE, DEP-CI-PIPELINE, FU-VALIDATION-ENGINE, CTRL-TRACEABILITY-COVERAGE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateStructurizrDSLFromFile ¶
func GenerateStructurizrDSLFromFile(architecturePath string) (StructurizrExportResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-005 ENGMODEL-LINKS: FU-STRUCTURIZR-EXPORTER, DO-STRUCTURIZR-DSL, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS
type TRLCExportOptions ¶
type TRLCExportOptions struct {
PackageName string
}
ENGMODEL-LINKS: FU-TRLC-EXPORTER, CTRL-TRACEABILITY-COVERAGE
type TRLCExportResult ¶
ENGMODEL-LINKS: FU-TRLC-EXPORTER, CTRL-TRACEABILITY-COVERAGE
func GenerateTRLCRequirements ¶
func GenerateTRLCRequirements(requirements model.RequirementsDocument, options TRLCExportOptions) (TRLCExportResult, error)
TRLC-LINKS: REQ-EMG-006 ENGMODEL-LINKS: FU-TRLC-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS
func GenerateTRLCRequirementsFromFile ¶
func GenerateTRLCRequirementsFromFile(requirementsPath string, options TRLCExportOptions) (TRLCExportResult, error)
TRLC-LINKS: REQ-EMG-006 ENGMODEL-LINKS: FU-TRLC-EXPORTER, CTRL-TRACEABILITY-COVERAGE, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS
type ThreatModelExportOptions ¶
type ThreatModelExportOptions struct {
Format ThreatModelFormat
}
ENGMODEL-LINKS: FU-THREAT-EXPORTER, DO-THREAT-DRAGON-JSON
type ThreatModelExportResult ¶
type ThreatModelExportResult struct {
JSON string
Diagnostics []validate.Diagnostic
}
ENGMODEL-LINKS: FU-THREAT-EXPORTER, DO-THREAT-DRAGON-JSON, FU-VALIDATION-ENGINE, CTRL-TRACEABILITY-COVERAGE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateThreatModelExport ¶
func GenerateThreatModelExport(bundle model.Bundle, options ThreatModelExportOptions) (ThreatModelExportResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-004, REQ-EMG-011 ENGMODEL-LINKS: FU-THREAT-EXPORTER, DO-THREAT-DRAGON-JSON, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS, FU-VALIDATION-ENGINE, CTRL-TRACEABILITY-COVERAGE, STATE-MODEL-INVALID, EVT-VALIDATION-FAILED
func GenerateThreatModelExportFromFile ¶
func GenerateThreatModelExportFromFile(architecturePath string, options ThreatModelExportOptions) (ThreatModelExportResult, error)
TRLC-LINKS: REQ-EMG-001, REQ-EMG-004, REQ-EMG-011 ENGMODEL-LINKS: FU-THREAT-EXPORTER, DO-THREAT-DRAGON-JSON, FLOW-MODEL-CHANGE-TO-VERIFIED-ARTIFACTS
type ThreatModelFormat ¶
type ThreatModelFormat string
ENGMODEL-LINKS: FU-THREAT-EXPORTER, DO-THREAT-DRAGON-JSON
const ( ThreatModelFormatThreatDragonV2 ThreatModelFormat = "threat-dragon-v2" ThreatModelFormatOpenOTM ThreatModelFormat = "open-otm" )
type TraceCodeRef ¶
type TraceCodeRef struct {
Symbol string `json:"symbol"`
Path string `json:"path"`
Line int `json:"line,omitempty"`
}
TraceCodeRef is a code symbol that implements a requirement. ENGMODEL-LINKS: FU-CODEMAP-INFERENCE
type TraceDelegation ¶
type TraceDelegation struct {
Subsystem string `json:"subsystem"`
Target string `json:"target"`
TargetRequirement string `json:"targetRequirement,omitempty"`
}
TraceDelegation is the downward allocation of a requirement onto a subsystem. ENGMODEL-LINKS: FU-ALLOCATION-TRACE
type TraceMatrix ¶
type TraceMatrix struct {
Model string `json:"model"`
Requirements []TraceRow `json:"requirements"`
DanglingLinks []DanglingLink `json:"danglingLinks"`
Orphans []string `json:"orphanRequirements"`
Summary TraceSummary `json:"summary"`
}
TraceMatrix is the consolidated, machine-readable traceability matrix for one model. ENGMODEL-LINKS: FU-ALLOCATION-TRACE, CTRL-TRACEABILITY-COVERAGE
func BuildTraceMatrixFromFiles ¶
func BuildTraceMatrixFromFiles(modelPath, requirementsPath, codeRoot string) (TraceMatrix, []validate.Diagnostic, error)
BuildTraceMatrixFromFiles loads a model, scans its code root, scopes the code to the model, validates trace integrity, and returns the matrix together with diagnostics. TRLC-LINKS: REQ-EMG-028, REQ-EMG-030 ENGMODEL-LINKS: FU-ALLOCATION-TRACE, FU-MODEL-LOADER, FU-CODEMAP-INFERENCE
func (TraceMatrix) CSV ¶
func (m TraceMatrix) CSV() []byte
CSV renders the matrix as one row per requirement for spreadsheet/diff consumption. TRLC-LINKS: REQ-EMG-030 ENGMODEL-LINKS: FU-ALLOCATION-TRACE
type TraceRow ¶
type TraceRow struct {
ID string `json:"id"`
Text string `json:"text,omitempty"`
Units []string `json:"units,omitempty"`
Code []TraceCodeRef `json:"code,omitempty"`
Verifications []string `json:"verifications,omitempty"`
DelegatedTo *TraceDelegation `json:"delegatedTo,omitempty"`
Status string `json:"status"`
}
TraceRow is one requirement and everything that traces to it. ENGMODEL-LINKS: FU-ALLOCATION-TRACE, CTRL-TRACEABILITY-COVERAGE
type TraceSummary ¶
type TraceSummary struct {
Requirements int `json:"requirements"`
Implemented int `json:"implemented"`
Verified int `json:"verified"`
Delegated int `json:"delegated"`
Orphan int `json:"orphan"`
DanglingLinks int `json:"danglingLinks"`
}
TraceSummary is the headline coverage roll-up. ENGMODEL-LINKS: FU-ALLOCATION-TRACE
Source Files
¶
- asciidoc.go
- asciidoc_backlinks.go
- asciidoc_composition.go
- asciidoc_decisions.go
- asciidoc_design_refs.go
- asciidoc_diagrams_core.go
- asciidoc_diagrams_runtime.go
- asciidoc_gemara.go
- asciidoc_linking_units.go
- asciidoc_template.go
- asciidoc_views.go
- catalog_description_validation.go
- composition.go
- ears_preflight.go
- gemara_evaluation.go
- gemara_export.go
- gemara_extended.go
- gemara_l1l3.go
- gemara_oscal.go
- generate.go
- inferred_code.go
- inferred_layers.go
- inferred_verification.go
- lobster_export.go
- oscal_ar.go
- oscal_compliance.go
- oscal_poam.go
- oscal_ssp.go
- requirements_delta.go
- structurizr_export.go
- threat_model_export.go
- trace_matrix.go
- trlc_export.go
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
engchange
command
ENGMODEL-OWNER-UNIT: FU-MODEL-CHANGE
|
ENGMODEL-OWNER-UNIT: FU-MODEL-CHANGE |
|
engdoc
command
ENGMODEL-OWNER-UNIT: FU-CLI-ORCHESTRATION
|
ENGMODEL-OWNER-UNIT: FU-CLI-ORCHESTRATION |
|
engdragon
command
ENGMODEL-OWNER-UNIT: FU-THREAT-EXPORTER
|
ENGMODEL-OWNER-UNIT: FU-THREAT-EXPORTER |
|
enggemara
command
ENGMODEL-OWNER-UNIT: FU-CLI-ORCHESTRATION Command enggemara renders the engineering model into OpenSSF Gemara documents (L1 Vector/Principle/Guidance, L2 Capability/Threat/Control, L3 Risk/Policy, L5 Evaluation Log, L6 Enforcement Log, L7 Audit Log) using the official go-gemara SDK types, with an optional OSCAL catalog and assessment-results bridge.
|
ENGMODEL-OWNER-UNIT: FU-CLI-ORCHESTRATION Command enggemara renders the engineering model into OpenSSF Gemara documents (L1 Vector/Principle/Guidance, L2 Capability/Threat/Control, L3 Risk/Policy, L5 Evaluation Log, L6 Enforcement Log, L7 Audit Log) using the official go-gemara SDK types, with an optional OSCAL catalog and assessment-results bridge. |
|
englobster
command
ENGMODEL-OWNER-UNIT: FU-LOBSTER-EXPORTER
|
ENGMODEL-OWNER-UNIT: FU-LOBSTER-EXPORTER |
|
engmcp
command
ENGMODEL-OWNER-UNIT: FU-MCP-SERVER
|
ENGMODEL-OWNER-UNIT: FU-MCP-SERVER |
|
engoscal
command
ENGMODEL-OWNER-UNIT: FU-OSCAL-EXPORTER
|
ENGMODEL-OWNER-UNIT: FU-OSCAL-EXPORTER |
|
engstruct
command
ENGMODEL-OWNER-UNIT: FU-STRUCTURIZR-EXPORTER
|
ENGMODEL-OWNER-UNIT: FU-STRUCTURIZR-EXPORTER |
|
engtrace
command
ENGMODEL-OWNER-UNIT: FU-ALLOCATION-TRACE
|
ENGMODEL-OWNER-UNIT: FU-ALLOCATION-TRACE |
|
engtrlc
command
ENGMODEL-OWNER-UNIT: FU-TRLC-EXPORTER
|
ENGMODEL-OWNER-UNIT: FU-TRLC-EXPORTER |
|
engview
command
ENGMODEL-OWNER-UNIT: FU-CLI-ORCHESTRATION
|
ENGMODEL-OWNER-UNIT: FU-CLI-ORCHESTRATION |
|
ENGMODEL-OWNER-UNIT: FU-CODEMAP-INFERENCE
|
ENGMODEL-OWNER-UNIT: FU-CODEMAP-INFERENCE |
|
examples
|
|
|
bedrock-pr-review-github-app-sample/src
ENGMODEL-OWNER-UNIT: FU-LAMBDA-RUNTIME-OPERATIONS ENGMODEL-CODE-DESCRIPTION: wires Lambda runtime entrypoints and shared execution dependencies
|
ENGMODEL-OWNER-UNIT: FU-LAMBDA-RUNTIME-OPERATIONS ENGMODEL-CODE-DESCRIPTION: wires Lambda runtime entrypoints and shared execution dependencies |
|
coffee-fleet-ota-cloud-sample/src
ENGMODEL-OWNER-UNIT: FU-CLOUD-RUNTIME-OPERATIONS ENGMODEL-CODE-DESCRIPTION: wires cloud runtime handlers and integration entrypoints
|
ENGMODEL-OWNER-UNIT: FU-CLOUD-RUNTIME-OPERATIONS ENGMODEL-CODE-DESCRIPTION: wires cloud runtime handlers and integration entrypoints |
|
payments-engineering-sample/src
ENGMODEL-OWNER-UNIT: FU-CHECKOUT ENGMODEL-CODE-DESCRIPTION: accepts checkout requests and forwards payment authorization flow input
|
ENGMODEL-OWNER-UNIT: FU-CHECKOUT ENGMODEL-CODE-DESCRIPTION: accepts checkout requests and forwards payment authorization flow input |
|
ENGMODEL-OWNER-UNIT: FU-MCP-SERVER
|
ENGMODEL-OWNER-UNIT: FU-MCP-SERVER |
|
ENGMODEL-OWNER-UNIT: FU-MODEL-LOADER
|
ENGMODEL-OWNER-UNIT: FU-MODEL-LOADER |
|
render
|
|
|
diagramstyle
ENGMODEL-OWNER-UNIT: FU-VIEW-PROJECTION
|
ENGMODEL-OWNER-UNIT: FU-VIEW-PROJECTION |
|
mermaid
ENGMODEL-OWNER-UNIT: FU-VIEW-PROJECTION
|
ENGMODEL-OWNER-UNIT: FU-VIEW-PROJECTION |
|
ENGMODEL-OWNER-UNIT: FU-VALIDATION-ENGINE
|
ENGMODEL-OWNER-UNIT: FU-VALIDATION-ENGINE |
|
ENGMODEL-OWNER-UNIT: FU-VIEW-PROJECTION
|
ENGMODEL-OWNER-UNIT: FU-VIEW-PROJECTION |