Skip to main content

Crate norm_spec_core

Crate norm_spec_core 

Source
Expand description

Canonical semantic engine for the .norm format.

Structs§

CollectResponse
Successful collect machine response.
CollectedNorm
One parsed convention file in a collect response.
CompatibilityConformance
Frozen conformance surface reported by a candidate.
CompatibilityProduct
Exact product identity reported by compatibility discovery.
CompatibilityResponse
Machine-readable compatibility discovery response.
CompatibilityRustApi
Public Rust consumer-surface identity.
Diagnostic
Stable diagnostic emitted by schema, profile, or semantic validation.
DirectoryObservation
Filesystem-neutral observation of one traversed directory.
ErrorDetail
Stable machine-readable error detail.
ErrorResponse
Versioned machine response for a handled command failure.
InitResponse
Versioned machine response for a completed init operation.
NormCoverage
Aggregate .norm coverage across traversed directories.
ParseOptions
Options that alter accepted .norm input formats.
ParseResponse
Successful parse machine response.
ParsedNorm
A parsed .norm document before it is wrapped in a machine response.
RecurringFilename
Filename found in two or more traversed directories.
ScanNaming
Naming-style counts collected from directories and visible files.
ScanResponse
Versioned deterministic structural-scan response.
ScanSymlink
Portable symbolic-link observation in a scan response.
ScannedDirectory
One traversed directory summarized for machine output.
SchemaBundle
Root and profile schemas supplied explicitly by a caller.
SchemaCompileError
Failure to compile a Draft 7 schema from the supplied offline resources.
SchemaViolation
One structured Draft 7 schema violation.
ValidateResponse
Versioned machine response for a completed validate evaluation.
ValidationDiagnostics
Schema and profile findings for one parsed document.
ValidationOptions
Options that alter validation severity or profile selection.
ValidationResult
Validation outcome for one root-relative .norm path.
ValidationSummary
Aggregate counts for a validation response.

Enums§

CollectPathError
Failure to express a collection target relative to its project root.
InitAction
Filesystem action completed by norm init.
ParseError
Stable parser failure categories.
ReferenceStatus
Filesystem observation for one local reference target.
ScanSymlinkAction
Action taken for an observed symbolic link.
ScanSymlinkKind
Kind of symbolic link observed without traversal.
ValidationStatus
Overall classification of one validated .norm file.

Constants§

A1_CLI_CASE_COUNT
Number of executable cases in the frozen initial A1 CLI suite.
A1_CLI_CONTRACT_DIGEST
SHA-256 identity of the exact frozen initial A1 CLI contract bundle.
A1_CLI_SUITE_ID
Identifier for the frozen initial A1 CLI conformance suite.
COLLECT_API_VERSION
Machine API identifier for collect responses.
COMPATIBILITY_API_VERSION
Machine API identifier for compatibility discovery responses.
CONFORMANCE_API_VERSION
Machine API identifier for arbitrary-candidate conformance reports.
CONTRACT_BUNDLE_API_VERSION
Identifier for the locked contract-bundle format.
ERROR_API_VERSION
Machine API identifier for handled CLI failures in machine mode.
FORMAT_ID
Identifier for the initial .norm format contract.
INIT_API_VERSION
Machine API identifier for init responses.
PARSE_API_VERSION
Machine API identifier for parse responses.
RUST_API_VERSION
Identifier for the public high-level Rust consumer surface.
SCAN_API_VERSION
Machine API identifier for scan responses.
VALIDATE_API_VERSION
Machine API identifier for validate responses.

Traits§

ReferenceResolver
Explicit reference-resolution boundary implemented by filesystem adapters.

Functions§

classify_name
Classify one directory name or filename into a deterministic style bucket.
collect_candidate_paths
Return candidate .norm paths from the most-specific directory to root.
crate_version
Return the compiled crate version.
is_ignored_directory
Return whether a directory is infrastructure excluded from structural scan.
parse_norm
Parse an A1 .norm document, or the pre-A1 format when explicitly enabled.
project_path
Render a root-relative project path with portable separators.
validate_draft7
Validate an instance with an explicit Draft 7 schema and offline resources.
validate_frontmatter
Validate schema, profile, lifecycle, SSOT, and reference semantics.
validate_structure
Validate parsed frontmatter without reading the filesystem or environment.