Skip to content
POST/api/v1/health/logic-audit

Logic Audit

Scores schedule logic. The score starts at 100 and subtracts once for each defect severity that is present: critical 15, high 10, medium 5, low 2. A rule fails when its count is above zero. That pass line is this route's. It is not a pamphlet percentage.

Rules that match a sentence that was read: missing predecessor, missing successor, and isolated tasks are the population in PAM 200.1 section 4.1. Section 4.1 flags a share above 5 percent. This route flags any count. Leads are section 4.2. Hard constraints are section 4.5 (SNLT, FNLT, MSO, MFO), which flags a share above 5 percent. This route flags any count. Dangling starts and finishes are DECM 06A204b. The tracker threshold is 0 percent. This route's score is the severity deduction, not that ratio.

Duplicate ids, negative duration, cycles, invalid predecessor ids, lag above max_lag_days (default 5), relationship-type shares, out-of-sequence logic, and redundant links are this route's rules. The relationship-type defaults are finish-to-start at least 80 percent, not the pamphlet's 90 percent. No document was read that states those rules, so none is named. The API reference page is the rule table. The async route is the same audit.

DCMA-EA PAM 200.1DCMA EVMS Compliance Metrics v8.1

Logic audit

The OpenAPI description is the overview. This page is the rule table.

The score starts at 100. Each severity that is present is deducted once: critical 15, high 10, medium 5, low 2. The score is not below 0. A rule fails when its count is above zero. That pass line is this route's. PAM percentages are not applied here.

Grade: A at 90, B at 75, C at 60, D at 45, otherwise F.

Rule What is counted Cited sentence
Missing predecessor Tasks with no predecessor PAM 200.1 §4.1. The pamphlet flags a share of incomplete tasks above 5%. This rule flags any count.
Missing successor Tasks with no successor Same section, same difference.
Isolated No predecessor and no successor Same section.
Leads Negative lag PAM 200.1 §4.2. "Leads should not be used; therefore, the goal for this metric is 0."
Hard constraints SNLT, FNLT, MSO, MFO PAM 200.1 §4.5. The pamphlet flags a share above 5%. This rule flags any count. SNET and FNET are not hard.
Dangling start Predecessors exist and none constrain the start DECM 06A204b, open starts or finishes. Tracker threshold is 0%. This route does not compute that ratio.
Dangling finish Successors exist and none constrain the finish Same metric.

These rules are this route's. No document that was read states them, so the response does not name one:

Rule What is counted
Duplicate ids Repeated task ids
Negative duration Duration below 0
Cycles A dependency cycle
Invalid predecessor A predecessor id that is not a task
Excessive lag Lag above max_lag_days. The default is 5. Section 4.3 counts any positive lag as a share of logic links and flags above 5%. This rule is not that share.
Relationship types Finish-to-start below 80%, start-to-start above 20%, finish-to-finish above 20%, or start-to-finish above 5%, unless the request sets other numbers. Section 4.4 says finish-to-start should be at least 90%. These defaults are not that sentence.
Out-of-sequence logic The route's own sequence test. It is not PAM section 4.14. Section 4.14 is the baseline execution index.
Redundant links A finish-to-start link with no positive lag that a chain of other finish-to-start links with no lead already implies. Only that chain says the successor starts after the predecessor finishes, so a path through a start-to-start or finish-to-finish link does not make the link redundant.

The async route is the same audit.

Request example

json
json
{
  "schedule_fixture": "string",
  "tasks": [
    {
      "duration_days": 10,
      "id": "T1",
      "name": "Design Phase",
      "percent_complete": 0,
      "planned_finish": "2026-01-15",
      "planned_start": "2026-01-01",
      "predecessors": [],
      "resource": "Team A"
    }
  ],
  "start_task_ids": [
    "string"
  ],
  "finish_task_ids": [
    "string"
  ],
  "options": {
    "max_examples_per_rule": 10,
    "include_network_stats": true,
    "include_forensic_paths": false,
    "severity_threshold": "low",
    "enable_recommendations": true,
    "max_lag_days": 5,
    "relationship_type_thresholds": {
      "fs_min_percentage": 80,
      "ss_max_percentage": 20,
      "ff_max_percentage": 20,
      "sf_max_percentage": 5
    }
  }
}

Built from the request schema: field names and types, not a sample run.

Request fields from OpenAPI contract

Required fields and the optional fields that change this call are listed here. The shared task model stays on the task schema guide.

This table is generated from the endpoint schema in openapi.json.

FieldTypeRequiredDescription
optionsobjectOptionalOptions controlling Logic Audit analysis behavior.
options.max_examples_per_ruleintegerOptionalMaximum number of example task IDs returned per rule
options.include_network_statsbooleanOptionalInclude network topology statistics in response
options.include_forensic_pathsbooleanOptionalInclude full cycle/path details (may be large)
options.severity_thresholdstringOptionalMinimum severity level to include in findings
options.enable_recommendationsbooleanOptionalInclude recommended fixes in response
options.max_lag_daysnumberOptionalThreshold above which a lag is flagged as excessive (days)
options.relationship_type_thresholdsobjectOptionalConfigurable thresholds for relationship type distribution checks.
options.relationship_type_thresholds.fs_min_percentagenumberOptionalMinimum FS relationship percentage (default 80%)
options.relationship_type_thresholds.ss_max_percentagenumberOptionalMaximum SS relationship percentage (default 20%)
options.relationship_type_thresholds.ff_max_percentagenumberOptionalMaximum FF relationship percentage (default 20%)
options.relationship_type_thresholds.sf_max_percentagenumberOptionalMaximum SF relationship percentage (default 5%)

Response example

json
json
{
  "status": "pass",
  "metadata": {
    "task_count": 0,
    "endpoint": "string"
  }
}

Built from the response schema: field names and types, not a sample run.

Response fields from OpenAPI contract

This table is generated from the endpoint response schema in openapi.json.

FieldTypeRequiredDescription
statusstringRequiredTop-level result status — always present in every response.
metadataobjectRequiredAudit trail and processing context — always present, never null.
metadata.task_countintegerRequiredNumber of tasks in the submitted schedule
metadata.endpointstringRequiredEndpoint path e.g. /api/v1/health/score

Schema

json-schema
{
  "$ref": "#/components/schemas/BellatorResponse_LogicAuditData_"
}

Authentication

  • API key required

Reference details

Operation ID
health_logic_audit
Section
Health
Tags
Health
Playground link
/playground?endpoint=%2Fapi%2Fv1%2Fhealth%2Flogic-audit&method=post

Was this page helpful?

Your feedback helps us improve docs, reference pages, and Playground flows.

Topic: Logic Audit · Page: /docs/api-reference/health_logic_audit

TermsPrivacyContact

Schedule analysis guidance. Not legal advice. You remain responsible for contract and agency compliance.