Documentation
¶
Overview ¶
Package eval runs the deterministic, production-backed resolution corpus.
Index ¶
- Constants
- func RunCorpus(ctx context.Context, root string, update bool) error
- func ValidateManifests(manifests []LoadedManifest) error
- type AmbiguitySpec
- type DiagnosticRef
- type EdgePattern
- type EdgeRef
- type Expectations
- type LoadedManifest
- type Manifest
- type MessageChannelConflict
- type MessageCoverageItem
- type MessageCoverageResult
- type MessageCoverageSpec
- type MessageFlowResult
- type MessageFlowSpec
- type MessageHandlerResult
- type MessageMemberResult
- type MessageTransportResult
- type NodeRef
- type PathPattern
- type QuerySpec
- type RepositorySpec
- type Snapshot
- type SourceRef
- type TestCoverageMatchResult
- type TestCoverageResult
- type TestCoverageSpec
Constants ¶
View Source
const ManifestSchemaVersion = 2
Variables ¶
This section is empty.
Functions ¶
func RunCorpus ¶
RunCorpus validates every manifest before indexing, then runs every case through initial, unchanged-incremental, and fresh-database evaluation.
func ValidateManifests ¶
func ValidateManifests(manifests []LoadedManifest) error
Types ¶
type AmbiguitySpec ¶
type DiagnosticRef ¶
type EdgePattern ¶
type Expectations ¶
type Expectations struct {
Nodes []NodeRef `json:"nodes"`
Edges []EdgeRef `json:"edges"`
Diagnostics []DiagnosticRef `json:"diagnostics,omitempty"`
Queries []QuerySpec `json:"queries,omitempty"`
Ambiguities []AmbiguitySpec `json:"ambiguities,omitempty"`
ForbiddenEdges []EdgePattern `json:"forbidden_edges,omitempty"`
ForbiddenPaths []PathPattern `json:"forbidden_paths,omitempty"`
MessageFlows []MessageFlowSpec `json:"message_flows,omitempty"`
MessageCoverage []MessageCoverageSpec `json:"message_coverage,omitempty"`
TestCoverage []TestCoverageSpec `json:"test_coverage,omitempty"`
}
type LoadedManifest ¶
type Manifest ¶
type Manifest struct {
SchemaVersion int `json:"schema_version"`
CaseID string `json:"case_id"`
Repositories []RepositorySpec `json:"repositories"`
Expect Expectations `json:"expect"`
}
type MessageChannelConflict ¶
type MessageChannelConflict struct {
Send MessageTransportResult `json:"send"`
Receive MessageTransportResult `json:"receive"`
}
type MessageCoverageItem ¶
type MessageCoverageItem struct {
Message NodeRef `json:"message"`
Status query.CoverageStatus `json:"status"`
Gaps []string `json:"gaps"`
UnknownEvidence []string `json:"unknown_evidence"`
Uncertainties []string `json:"uncertainties"`
Members []MessageMemberResult `json:"members"`
Truncated bool `json:"truncated"`
}
type MessageCoverageResult ¶
type MessageCoverageResult struct {
Messages []MessageCoverageItem `json:"messages"`
Truncated bool `json:"truncated"`
}
type MessageCoverageSpec ¶
type MessageCoverageSpec struct {
ID string `json:"id"`
Options query.MessageCoverageOptions `json:"options,omitempty"`
Result MessageCoverageResult `json:"result"`
}
type MessageFlowResult ¶
type MessageFlowResult struct {
Message NodeRef `json:"message"`
Status query.CoverageStatus `json:"status"`
Bindings []string `json:"bindings"`
Members []MessageMemberResult `json:"members"`
Encoders []string `json:"encoders"`
Decoders []string `json:"decoders"`
Sends []MessageTransportResult `json:"sends"`
Receives []MessageTransportResult `json:"receives"`
Handlers []MessageHandlerResult `json:"handlers"`
ChannelMismatches []MessageChannelConflict `json:"channel_mismatches"`
Gaps []string `json:"gaps"`
UnknownEvidence []string `json:"unknown_evidence"`
Uncertainties []string `json:"uncertainties"`
Truncated bool `json:"truncated"`
}
type MessageFlowSpec ¶
type MessageFlowSpec struct {
ID string `json:"id"`
Selector string `json:"selector"`
Options query.MessageFlowOptions `json:"options,omitempty"`
Result MessageFlowResult `json:"result"`
}
MessageFlowSpec is a schema-versioned golden task query. The compact result records stable semantic identities and evidence IDs instead of duplicating every presentation field returned by the service.
type MessageHandlerResult ¶
type MessageMemberResult ¶
type MessageTransportResult ¶
type PathPattern ¶
type RepositorySpec ¶
type Snapshot ¶
type Snapshot struct {
Nodes []NodeRef `json:"nodes"`
Edges []EdgeRef `json:"edges"`
Queries []QuerySpec `json:"queries,omitempty"`
MessageFlows []MessageFlowSpec `json:"message_flows,omitempty"`
MessageCoverage []MessageCoverageSpec `json:"message_coverage,omitempty"`
TestCoverage []TestCoverageSpec `json:"test_coverage,omitempty"`
}
type TestCoverageMatchResult ¶
type TestCoverageResult ¶
type TestCoverageResult struct {
Root NodeRef `json:"root"`
Designation string `json:"designation"`
Matches []TestCoverageMatchResult `json:"matches"`
Truncated bool `json:"truncated"`
}
type TestCoverageSpec ¶
type TestCoverageSpec struct {
ID string `json:"id"`
Direction string `json:"direction"`
Selector string `json:"selector"`
Options query.TestCoverageOptions `json:"options,omitempty"`
Result TestCoverageResult `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.