---
title: "Baseline Variance Analysis"
method: POST
path: "/api/v1/forensics/baseline-compare"
tags: ["Forensics"]
---

# Baseline Variance Analysis

`POST /api/v1/forensics/baseline-compare`

## Request

- Base URL: `https://api.bellatorsi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.bellatorsi.com/api/v1/forensics/baseline-compare`
- Auth: none declared

Compares the current schedule against an approved baseline to detect variance, drift, and execution performance signals.\n\n**Performance indicators:** BEI, Critical Path BEI, SPI(t), variance severity, on-track percentage.\n\n**Optional analysis:**\n- `include_trends` — multi-period variance trend analysis\n- `include_evms_trends` — EVMS SPI/CPI/EAC indices over time\n- `include_forecast_trends` — EAC forecast stability tracking\n- `include_logic_changes` — dependency graph drift detection\n\n**Match strategies:** `id` (default), `id_and_wbs`, `wbs_hierarchy`, `fuzzy_id`.\n\n**Tier access:** Starter and above.\n\n**Standards:** GAO BP-10, DCMA Check #14 (BEI), AACE RP 29R-03.

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable
- `x-bellator-internal-dispatch` string, nullable

## Request body

- BaselineCompareRequest: Request body for POST /api/v1/forensics/baseline-compare.
  - `current_schedule` BaselineCompareCurrentSchedule, required: Current schedule snapshot for baseline comparison.
    - `tasks` Task[], required
      - `id` string, required: Unique task identifier
      - `duration_days` number: Task duration in days
      - `predecessors` union[]: List of predecessor task IDs or dependency links. Supports: 'T1', 'T1FS+5 d', 'T2SS-2 d', or DependencyLink objects
        - union
          - string
          - object
          - DependencyLink: Rich dependency link with relationship type and lag/lead. Supports parsing from various scheduling tool formats including: - MS Project: "10FS+5 d", "/path/file.mpp/10FS+5 d" - Primavera P6: Similar format with XER encoding - Server-based: "<ServerFile>10FS+5 d" - Simple: "10" (defaults to FS with zero lag) Examples: >>> DependencyLink(task_id="10", relationship_type="FS", lag_days=5.0) >>> DependencyLink.from_string("10FS+5 d") >>> DependencyLink.from_string("15SS-2 d")
            - `task_id` string, required: Predecessor task ID
            - `relationship_type` 'FS' | 'SS' | 'FF' | 'SF': Task relationship types per PMBOK 6.3.2.2. Attributes: FINISH_START: Predecessor finish → successor start (most common, ~90%) START_START: Predecessor start → successor start (~5%) FINISH_FINISH: Predecessor finish → successor finish (~4%) START_FINISH: Predecessor start → successor finish (rare, ~1%)
            - `lag_days` number: Lag (positive) or lead (negative) in days
            - `is_external` boolean: True if link to external project file
            - `external_path` string, nullable: Path to external file if is_external=True
      - `name` string, nullable: Task name
      - `resource` string, nullable: Resource assigned to task
      - `resources` string[]: List of resources assigned (for multi-resource tasks)
      - `percent_complete` number: Percent complete (0-100)
      - `physical_percent_complete` number, nullable: Physical percent complete (0-100). Manual EVM entry by scheduler (MSP PhysicalPercentComplete). Authoritative for BCWP calculations. Captured separately from percent_complete on MSP imports.
      - `planned_start` string, date, nullable: Planned start date (ISO 8601)
      - `planned_finish` string, date, nullable: Planned finish date (ISO 8601)
      - `actual_start` string, date, nullable: Actual start date (ISO 8601)
      - `actual_finish` string, date, nullable: Actual finish date (ISO 8601)
      - `baseline_start` string, date, nullable: Baseline start date (ISO 8601)
      - `baseline_finish` string, date, nullable: Baseline finish date (ISO 8601)
      - `constraint_type` string, nullable: Constraint type: ASAP, ALAP, SNET, SNLT, FNET, FNLT, MSO, MFO
      - `constraint_date` string, date, nullable: Constraint date if applicable (ISO 8601)
      - `task_type` string, nullable: Task type classification. Valid values: task (default), milestone, loe, summary, schedule_margin, planning_package, slpp, schedule_visibility. Drives DCMA check exclusions per PAM 200.1 § 3.2.
      - `wbs_code` string, nullable: WBS code (e.g., '1.2.3')
      - `organization_code` string, nullable: Org/dept identifier for anomaly categorization (Progress Audit)
      - `custom_field_map` object, nullable: All WBS/OBS-pattern custom fields discovered in this MS Project file, keyed by alias (e.g., 'CWBS', 'OBS'). Null for XER imports or when no matching aliases exist.
      - `forecast_start` string, date, nullable: Current forecast start date (ISO 8601)
      - `forecast_finish` string, date, nullable: Current forecast finish date (ISO 8601)
      - `total_float_days` number, nullable: Pre-computed total float in days. Auto-computed by CPM if absent.
      - `baseline_duration_days` number, nullable: Baseline duration in days. Auto-computed from baseline dates if absent.
      - `delay_category` string, nullable: Delay attribution category. Valid values: owner, contractor, design, procurement, weather, force_majeure.
      - `earned_value` number, nullable: Earned Value (BCWP) in cost units. Requires options.include_ev_validation.
      - `budgeted_cost` number, nullable: Budgeted Cost of Work Scheduled (BCWS) in cost units.
      - `approval_required` boolean, nullable: Whether this task requires explicit approval before it can start.
      - `approval_status` string, nullable: Approval workflow state. Valid values: not_required, pending, approved, rejected.
    - `status_date` string, required
  - `baseline_schedule` BaselineScheduleInput, required: Approved baseline schedule for comparison.
    - `tasks` Task[], required
      - `id` string, required: Unique task identifier
      - `duration_days` number: Task duration in days
      - `predecessors` union[]: List of predecessor task IDs or dependency links. Supports: 'T1', 'T1FS+5 d', 'T2SS-2 d', or DependencyLink objects
        - union
          - string
          - object
          - DependencyLink: Rich dependency link with relationship type and lag/lead. Supports parsing from various scheduling tool formats including: - MS Project: "10FS+5 d", "/path/file.mpp/10FS+5 d" - Primavera P6: Similar format with XER encoding - Server-based: "<ServerFile>10FS+5 d" - Simple: "10" (defaults to FS with zero lag) Examples: >>> DependencyLink(task_id="10", relationship_type="FS", lag_days=5.0) >>> DependencyLink.from_string("10FS+5 d") >>> DependencyLink.from_string("15SS-2 d")
            - `task_id` string, required: Predecessor task ID
            - `relationship_type` 'FS' | 'SS' | 'FF' | 'SF': Task relationship types per PMBOK 6.3.2.2. Attributes: FINISH_START: Predecessor finish → successor start (most common, ~90%) START_START: Predecessor start → successor start (~5%) FINISH_FINISH: Predecessor finish → successor finish (~4%) START_FINISH: Predecessor start → successor finish (rare, ~1%)
            - `lag_days` number: Lag (positive) or lead (negative) in days
            - `is_external` boolean: True if link to external project file
            - `external_path` string, nullable: Path to external file if is_external=True
      - `name` string, nullable: Task name
      - `resource` string, nullable: Resource assigned to task
      - `resources` string[]: List of resources assigned (for multi-resource tasks)
      - `percent_complete` number: Percent complete (0-100)
      - `physical_percent_complete` number, nullable: Physical percent complete (0-100). Manual EVM entry by scheduler (MSP PhysicalPercentComplete). Authoritative for BCWP calculations. Captured separately from percent_complete on MSP imports.
      - `planned_start` string, date, nullable: Planned start date (ISO 8601)
      - `planned_finish` string, date, nullable: Planned finish date (ISO 8601)
      - `actual_start` string, date, nullable: Actual start date (ISO 8601)
      - `actual_finish` string, date, nullable: Actual finish date (ISO 8601)
      - `baseline_start` string, date, nullable: Baseline start date (ISO 8601)
      - `baseline_finish` string, date, nullable: Baseline finish date (ISO 8601)
      - `constraint_type` string, nullable: Constraint type: ASAP, ALAP, SNET, SNLT, FNET, FNLT, MSO, MFO
      - `constraint_date` string, date, nullable: Constraint date if applicable (ISO 8601)
      - `task_type` string, nullable: Task type classification. Valid values: task (default), milestone, loe, summary, schedule_margin, planning_package, slpp, schedule_visibility. Drives DCMA check exclusions per PAM 200.1 § 3.2.
      - `wbs_code` string, nullable: WBS code (e.g., '1.2.3')
      - `organization_code` string, nullable: Org/dept identifier for anomaly categorization (Progress Audit)
      - `custom_field_map` object, nullable: All WBS/OBS-pattern custom fields discovered in this MS Project file, keyed by alias (e.g., 'CWBS', 'OBS'). Null for XER imports or when no matching aliases exist.
      - `forecast_start` string, date, nullable: Current forecast start date (ISO 8601)
      - `forecast_finish` string, date, nullable: Current forecast finish date (ISO 8601)
      - `total_float_days` number, nullable: Pre-computed total float in days. Auto-computed by CPM if absent.
      - `baseline_duration_days` number, nullable: Baseline duration in days. Auto-computed from baseline dates if absent.
      - `delay_category` string, nullable: Delay attribution category. Valid values: owner, contractor, design, procurement, weather, force_majeure.
      - `earned_value` number, nullable: Earned Value (BCWP) in cost units. Requires options.include_ev_validation.
      - `budgeted_cost` number, nullable: Budgeted Cost of Work Scheduled (BCWS) in cost units.
      - `approval_required` boolean, nullable: Whether this task requires explicit approval before it can start.
      - `approval_status` string, nullable: Approval workflow state. Valid values: not_required, pending, approved, rejected.
    - `baseline_date` string, required
  - `schedule_history` BaselineCompareHistorySnapshot[]
    - `snapshot_date` string, required
    - `tasks` Task[], required
      - `id` string, required: Unique task identifier
      - `duration_days` number: Task duration in days
      - `predecessors` union[]: List of predecessor task IDs or dependency links. Supports: 'T1', 'T1FS+5 d', 'T2SS-2 d', or DependencyLink objects
        - union
          - string
          - object
          - DependencyLink: Rich dependency link with relationship type and lag/lead. Supports parsing from various scheduling tool formats including: - MS Project: "10FS+5 d", "/path/file.mpp/10FS+5 d" - Primavera P6: Similar format with XER encoding - Server-based: "<ServerFile>10FS+5 d" - Simple: "10" (defaults to FS with zero lag) Examples: >>> DependencyLink(task_id="10", relationship_type="FS", lag_days=5.0) >>> DependencyLink.from_string("10FS+5 d") >>> DependencyLink.from_string("15SS-2 d")
            - `task_id` string, required: Predecessor task ID
            - `relationship_type` 'FS' | 'SS' | 'FF' | 'SF': Task relationship types per PMBOK 6.3.2.2. Attributes: FINISH_START: Predecessor finish → successor start (most common, ~90%) START_START: Predecessor start → successor start (~5%) FINISH_FINISH: Predecessor finish → successor finish (~4%) START_FINISH: Predecessor start → successor finish (rare, ~1%)
            - `lag_days` number: Lag (positive) or lead (negative) in days
            - `is_external` boolean: True if link to external project file
            - `external_path` string, nullable: Path to external file if is_external=True
      - `name` string, nullable: Task name
      - `resource` string, nullable: Resource assigned to task
      - `resources` string[]: List of resources assigned (for multi-resource tasks)
      - `percent_complete` number: Percent complete (0-100)
      - `physical_percent_complete` number, nullable: Physical percent complete (0-100). Manual EVM entry by scheduler (MSP PhysicalPercentComplete). Authoritative for BCWP calculations. Captured separately from percent_complete on MSP imports.
      - `planned_start` string, date, nullable: Planned start date (ISO 8601)
      - `planned_finish` string, date, nullable: Planned finish date (ISO 8601)
      - `actual_start` string, date, nullable: Actual start date (ISO 8601)
      - `actual_finish` string, date, nullable: Actual finish date (ISO 8601)
      - `baseline_start` string, date, nullable: Baseline start date (ISO 8601)
      - `baseline_finish` string, date, nullable: Baseline finish date (ISO 8601)
      - `constraint_type` string, nullable: Constraint type: ASAP, ALAP, SNET, SNLT, FNET, FNLT, MSO, MFO
      - `constraint_date` string, date, nullable: Constraint date if applicable (ISO 8601)
      - `task_type` string, nullable: Task type classification. Valid values: task (default), milestone, loe, summary, schedule_margin, planning_package, slpp, schedule_visibility. Drives DCMA check exclusions per PAM 200.1 § 3.2.
      - `wbs_code` string, nullable: WBS code (e.g., '1.2.3')
      - `organization_code` string, nullable: Org/dept identifier for anomaly categorization (Progress Audit)
      - `custom_field_map` object, nullable: All WBS/OBS-pattern custom fields discovered in this MS Project file, keyed by alias (e.g., 'CWBS', 'OBS'). Null for XER imports or when no matching aliases exist.
      - `forecast_start` string, date, nullable: Current forecast start date (ISO 8601)
      - `forecast_finish` string, date, nullable: Current forecast finish date (ISO 8601)
      - `total_float_days` number, nullable: Pre-computed total float in days. Auto-computed by CPM if absent.
      - `baseline_duration_days` number, nullable: Baseline duration in days. Auto-computed from baseline dates if absent.
      - `delay_category` string, nullable: Delay attribution category. Valid values: owner, contractor, design, procurement, weather, force_majeure.
      - `earned_value` number, nullable: Earned Value (BCWP) in cost units. Requires options.include_ev_validation.
      - `budgeted_cost` number, nullable: Budgeted Cost of Work Scheduled (BCWS) in cost units.
      - `approval_required` boolean, nullable: Whether this task requires explicit approval before it can start.
      - `approval_status` string, nullable: Approval workflow state. Valid values: not_required, pending, approved, rejected.
    - `planned_value_total` number, nullable
    - `earned_value_total` number, nullable
    - `actual_cost_total` number, nullable
    - `budget_at_completion` number, nullable
  - `options` BaselineCompareOptions: Options controlling baseline compare analysis.
    - `match_strategy` 'id' | 'id_and_wbs' | 'wbs_hierarchy' | 'fuzzy_id'
    - `fuzzy_match_threshold` number
    - `variance_threshold_days` integer
    - `include_task_variances` boolean
    - `include_critical_path_only` boolean
    - `include_logic_changes` boolean
    - `include_oos_impact` boolean
    - `include_trends` boolean
    - `trend_analysis_periods` integer
    - `include_evms_trends` boolean
    - `eac_method` 'cpi' | 'spi' | 'composite' | 'weighted'
    - `include_forecast_trends` boolean
    - `variance_acceleration_threshold` number
    - `include_chart_data` boolean

## Response `200`

Baseline comparison completed successfully

- BellatorResponseBaselineCompareData
  - `status` 'pass' | 'fail' | 'warning' | 'info', required: Top-level result status — always present in every response.
  - `score` number, nullable
  - `grade` 'A' | 'B' | 'C' | 'D' | 'F': Letter grade derived from a 0–100 score. Null on non-scoring endpoints.
  - `summary` string, nullable
  - `breakdown` object, nullable
  - `findings` Finding[]
    - `code` string, required: Stable machine-readable identifier e.g. DCMA_CHECK_8_HIGH_DURATION
    - `severity` 'critical' | 'high' | 'medium' | 'low' | 'info', required: Severity level for findings; reused as priority level for recommendations.
    - `title` string, required: Short human-readable label
    - `description` string, required: Full explanation of the issue
    - `standard` string, nullable: Standard citation e.g. 'DCMA PAM 200.1 Check #8'
    - `affected_tasks` string[]: Task IDs implicated by this finding
    - `metric_value` number, nullable: Observed measurement e.g. 60.0 days
    - `threshold` number, nullable: Threshold that was violated e.g. 44.0 days
  - `recommendations` Recommendation[]
    - `priority` 'critical' | 'high' | 'medium' | 'low' | 'info', required: Severity level for findings; reused as priority level for recommendations.
    - `action` string, required: What to do — specific and actionable
    - `standard` string, nullable: Supporting standard citation
    - `finding_codes` string[]: Finding.code values this recommendation addresses
  - `data` BaselineCompareData: Data payload for POST /api/v1/forensics/baseline-compare.
    - `summary` BaselineCompareSummary: High-level match and variance counts.
      - `comparison_date` string, nullable
      - `baseline_date` string, nullable
      - `total_tasks` integer
      - `matched_tasks` integer
      - `unmatched_current_tasks` integer
      - `unmatched_baseline_tasks` integer
      - `tasks_with_variance` integer
      - `total_variance_days` number
      - `critical_path_variance_days` number
    - `performance_indicators` BaselinePerformanceIndicators: BEI, SPI, and severity classification.
      - `bei` number
      - `critical_path_bei` number
      - `spi_schedule` number
      - `variance_severity` 'low' | 'medium' | 'high' | 'critical'
      - `on_track_percentage` number
      - `oos_penalty` number, nullable
    - `task_variances` TaskVarianceRecord[]
      - `task_id` string, required
      - `task_name` string, required
      - `is_critical_path` boolean
      - `start_variance_days` integer
      - `finish_variance_days` integer
      - `duration_variance_days` integer
      - `progress_variance_pct` number
      - `variance_severity` 'low' | 'medium' | 'high' | 'critical'
      - `oos_impact_days` number, nullable
      - `fuzzy_match_confidence` number, nullable
    - `findings` VarianceFinding[]
      - `finding_type` string, required
      - `severity` 'low' | 'medium' | 'high' | 'critical', required
      - `affected_tasks` integer
      - `total_variance_days` number
      - `description` string
      - `tasks` string[]
    - `recommendations` BaselineRecommendation[]
      - `priority` 'critical' | 'high' | 'medium' | 'low', required
      - `category` 'schedule_recovery' | 'baseline_revision' | 'resource_reallocation' | 'risk_mitigation', required
      - `description` string, required
      - `affected_tasks` string[]
    - `variance_trends` VarianceTrends: Multi-period variance trend analysis.
      - `periods` VarianceTrendPeriod[]
        - `period_date` string, nullable
        - `total_variance_days` number
        - `bei` number
        - `spi_schedule` number
        - `critical_path_variance_days` number
      - `trend_indicators` TrendIndicators: Aggregate trend direction for variance/BEI/SPI.
        - `variance_trend` 'improving' | 'stable' | 'declining'
        - `bei_trend` 'improving' | 'stable' | 'declining'
        - `spi_trend` 'improving' | 'stable' | 'declining'
        - `variance_acceleration` number
        - `projected_completion_variance` number
      - `identified_patterns` VariancePattern[]
        - `pattern_type` string, required
        - `description` string
        - `confidence` number
      - `chart_data` BaselineChartData: Pre-aggregated time-series arrays for dashboard charts.
        - `dates` string[]
        - `total_variance` number[]
        - `bei_values` number[]
        - `spi_values` number[]
        - `cp_variance` number[]
    - `evms_trends` EVMSTrends: EVMS trend data.
      - `periods` EVMSPeriod[]
        - `period_date` string, required
        - `sv` number
        - `cv` number
        - `spi` number
        - `cpi` number
        - `tcpi` number
        - `eac_cpi` number
        - `eac_spi` number, nullable
        - `eac_composite` number, nullable
        - `eac_weighted` number, nullable
      - `performance_summary` EVMSPerformanceSummary: Aggregate EVMS performance across periods.
        - `current_spi` number
        - `avg_spi` number
        - `spi_trend` 'improving' | 'stable' | 'declining'
        - `current_cpi` number
        - `avg_cpi` number
        - `cpi_trend` 'improving' | 'stable' | 'declining'
        - `forecast_reliability` 'high' | 'medium' | 'low'
      - `chart_data` EVMSChartData: Chart-ready EVMS time series.
        - `dates` string[]
        - `spi_values` number[]
        - `cpi_values` number[]
        - `eac_values` number[]
    - `forecast_trends` ForecastTrends: EAC forecast trend analysis.
      - `eac_history` EACHistoryEntry[]
        - `period_date` string, required
        - `forecasted_completion` string, required
        - `variance_to_baseline_days` integer
      - `eac_stability` EACStability: EAC forecast stability assessment.
        - `variance_range_days` number
        - `avg_monthly_change_days` number
        - `stability_rating` 'stable' | 'moderate' | 'volatile'
        - `is_accelerating` boolean
      - `chart_data` ForecastChartData: Chart-ready EAC variance time series.
        - `dates` string[]
        - `eac_variance_days` integer[]
    - `logic_changes` LogicChanges: Dependency graph changes between baseline and current.
      - `added_relationships` LogicRelationship[]
        - `predecessor_id` string, required
        - `successor_id` string, required
        - `relationship_type` string
        - `lag_days` integer
      - `removed_relationships` LogicRelationship[]
        - `predecessor_id` string, required
        - `successor_id` string, required
        - `relationship_type` string
        - `lag_days` integer
      - `retyped_relationships` RetypedRelationship[]
        - `predecessor_id` string, required
        - `successor_id` string, required
        - `baseline_type` string, required
        - `current_type` string, required
      - `summary` LogicChangesSummary: Summary counts and severity for logic drift.
        - `total_added` integer
        - `total_removed` integer
        - `total_retyped` integer
        - `drift_severity` 'low' | 'medium' | 'high' | 'critical'
    - `logic_audit_summary` object, nullable
    - `processing_metadata` object
  - `simulation` SimulationEnvelope: Probabilistic simulation outputs for Tier 3 endpoints. Null on all Tier 1 and Tier 2 responses. When Tier 3 launches, this field transitions from null to populated without changing any other envelope field — existing consumers are unaffected.
    - `method` string, required: Simulation method: monte_carlo | latin_hypercube
    - `trial_count` integer, required
    - `duration_days` PercentileResult: Percentile distribution across simulation trials. Reserved for Tier 3 Monte Carlo / risk simulation endpoints (v0.3.0+).
      - `p10` number, required: 10th percentile outcome
      - `p50` number, required: 50th percentile (median)
      - `p80` number, required: 80th percentile — common contract delivery threshold
      - `p90` number, required: 90th percentile
      - `mean` number, required
      - `std_dev` number, required
    - `cost` PercentileResult: Percentile distribution across simulation trials. Reserved for Tier 3 Monte Carlo / risk simulation endpoints (v0.3.0+).
      - `p10` number, required: 10th percentile outcome
      - `p50` number, required: 50th percentile (median)
      - `p80` number, required: 80th percentile — common contract delivery threshold
      - `p90` number, required: 90th percentile
      - `mean` number, required
      - `std_dev` number, required
    - `completion_date` object, nullable: Map of p-value strings to ISO completion dates e.g. {'p50': '2027-04-15'}
  - `metadata` ResponseMetadata, required: Audit trail and processing context — always present, never null.
    - `task_count` integer, required: Number of tasks in the submitted schedule
    - `processing_time_ms` integer, nullable: Wall-clock processing time in milliseconds
    - `api_version` string: API version that produced this response
    - `endpoint` string, required: Endpoint path e.g. /api/v1/health/score
    - `standards_applied` string[]: Standards consulted during analysis e.g. ['DCMA PAM 200.1', 'GAO BP-2']
    - `confidence` number, nullable: Confidence in the result (0–1). Present on scoring endpoints.
    - `status_date` string, nullable: ISO date used as analysis reference point. Present on time-aware analyses.

## Other responses

- `402`: Tier limit exceeded — Starter tier or above required
- `422`: Validation error — check schedule schema or options
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/bellatorsi/apis/bellator-schedule-intelligence-apis.md) · [All operations](https://skmtc.dev/bellatorsi/apis/bellator-schedule-intelligence-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/bellatorsi/apis/bellator-schedule-intelligence-apis/revisions/03e7b786e43b?raw)
