Skip to main content

Crate mechanism_runtime

Crate mechanism_runtime 

Source
Expand description

Typed mechanism/theory surface crate for schema publication and bounded fit evaluation.

mechanism-runtime keeps the compatibility name, but its actual role is narrow: it publishes artifact families plus small helper evaluators and does not implement autonomous orchestration or promotion authority.

§Integration Points

  • forge-pilot observe phase: governance_gate.rs (#[cfg(feature = "governance")]) reads mechanism bundle publication status, theory version advisory state, and fit run dispositions from semantic-memory projections.
  • forge-pilot act phase: fit run dispositions (eligible for local review vs. blocked) and simulation contract advisory flags constrain whether mechanism promotions proceed.
  • verification-control: theory refuter suite and rollout stability report case types are affected; fit run blocking dispositions trigger verification cases.
  • Stack Arena scenarios: governed lane exercises governance observation of mechanism bundle state and fit run evaluation dispositions.

§Artifact Families

ArtifactSchema VersionOwner
MechanismBundleV1mechanism_bundle_v1this crate
TheoryVersionV1theory_version_v1this crate
TheoryLibraryV1theory_library_v1this crate
HypothesisLibraryV1hypothesis_library_v1this crate
SimulationContractV1simulation_contract_v1this crate
FitRunV1fit_run_v1this crate
TheoryRefuterSuiteV1theory_refuter_suite_v1this crate
RolloutStabilityReportV1rollout_stability_report_v1this crate

Re-exports§

pub use error::*;

Modules§

error

Structs§

FitRunV1
HypothesisLibraryV1
MechanismBundleV1
RolloutStabilityReportV1
SimulationContractV1
TheoryLibraryV1
TheoryRefuterSuiteV1
TheoryVersionV1

Enums§

FitDisposition

Constants§

FIT_RUN_V1_SCHEMA
HYPOTHESIS_LIBRARY_V1_SCHEMA
MECHANISM_BUNDLE_V1_SCHEMA
ROLLOUT_STABILITY_REPORT_V1_SCHEMA
SIMULATION_CONTRACT_V1_SCHEMA
THEORY_LIBRARY_V1_SCHEMA
THEORY_REFUTER_SUITE_V1_SCHEMA
THEORY_VERSION_V1_SCHEMA

Functions§

evaluate_fit_run