Skip to main content

dpm_engine/
lib.rs

1//! Validated commands and consistent execution projections for humans and agents.
2
3mod change;
4pub use change::{
5    AffectedWork, ApplicabilityChange, ChangePreview, EdgeRelaxation, EntityChange,
6    RelaxedConstraint, apply_plan_change, json_equivalent, patch, plan_change, propose_change,
7    propose_revert, protected_work,
8};
9mod command;
10mod context;
11mod execution;
12mod gates;
13pub use gates::{
14    GateReport, ProvisionalRelease, Transition, UnmetGate, describe_applicability, gate_report,
15};
16mod progress;
17mod query;
18mod readiness;
19mod run;
20pub use run::{
21    LinkRefusal, OperationFacts, RunError, STALE_AFTER, authorize as authorize_run, check_link,
22    check_transition as check_run_transition, observe_start as observe_run_start,
23    project as project_run, start_event as run_start_event,
24};
25mod schedule_view;
26pub use schedule_view::{
27    ScheduleProjection, ScheduleSpan, ScheduleUncertainty, ScheduledRelation, ScheduledTimes,
28    ScheduledWork, schedule_projection, schedule_span,
29};
30mod scope;
31pub use scope::{
32    NEXT_RESULT_VERSION, NextWorkResult, OutsideScope, ScopeError, ScopeMember, ScopedCandidate,
33    WorkScope, next_in_scope,
34};
35
36pub use command::{Command, EngineError, ExternalLinkRequest, Operation};
37pub use execution::apply_command;
38pub use query::{
39    Advisory, AgingWork, AppliedCalibration, AppliedFactor, AppliedReviewDelay,
40    BULK_WINDOW_SECONDS, BasisReport, CalibrationReport, CalibrationRules, ClaimOutcomes,
41    CriticalityBasis, Durations, EstimateCalibration, EstimateSample, Exclusion, ExclusionReason,
42    FlowReport, ForecastSpread, HistoryCoverage, HolderOutcomes, HourBasis, InapplicableWork,
43    MAX_APPLIED_RATIO, MAX_SCENARIOS, MIN_ACTUAL_SECONDS, MIN_AGENT_APPLIED_RATIO,
44    MIN_APPLIED_RATIO, MIN_SAMPLES, MilestoneForecast, NextWorkCandidate, NextWorkQuery,
45    OpenChoices, PathStep, PertApproximationReport, REVIEW_FLOOR_SECONDS, RatioGroup, ReasonCount,
46    Reliability, RiskForecast, ScenarioForecast, StatusSummary, THROUGHPUT_WEEKS, Throughput,
47    WaitGroup, WaitReport, WeekCount, WorkExplanation, advisories, calibration, excluded_in_flight,
48    explain_work, in_status_scope, is_unestimated, min_applied_ratio, next_work, status,
49    status_at_horizon, status_calibrated, status_calibrated_at_horizon, unestimated,
50};
51pub use readiness::{completion, is_ready, show_work};
52
53pub use context::ExecutionContext;
54
55pub use progress::{ProgressProjection, ProgressScope, ProgressSummary, progress};