Skip to content
Proud to collaborate with Microsoft for Startups

control.version.lag_summary ​

Aggregate version-lag evidence rows into a deterministic summary

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-control
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
itemsjsonYes—List of evidence objects or child workflow outputs. Examples include direct control.version.select_latest result objects or rows containing merge_row_evidence.result.
source_itemsjsonNo—Optional full attempted row list; unmatched rows are reported as missing evidence.
evidence_pathsjsonNo—Ordered dotted paths used to unwrap child outputs, for example ["merge_row_evidence.result", "result", "state_data.result"].
identity_fieldsjsonNo—Fields used to match evidence rows to source rows, for example ["package", "package_version"] or ["repository", "tag"].
name_fieldsjsonNo—Fields used to choose display labels, for example package, image, repository, or service.
current_version_fieldsjsonNo—Fields used to read the current/pinned version, for example package_version or tag.
latest_version_fieldsjsonNo—Fields used to read the latest/target version, for example latest_version or target_version.
behind_fieldstringNo—Dotted path to the boolean lag flag in each evidence row; defaults to behind.
ahead_count_fieldstringNo—Dotted path to the integer number of newer candidate versions; defaults to ahead_count.

Output Schema ​

FieldTypeRequiredDefaultDescription
itemsjsonNo—Evidence row list echoed from input.
source_itemsjsonNo—Attempted source row list echoed from input.
evidence_pathsjsonNo—Evidence unwrap paths used for child workflow outputs.
identity_fieldsjsonNo—Fields used to match evidence rows to source rows.
name_fieldsjsonNo—Fields used to choose row display labels.
current_version_fieldsjsonNo—Fields used to read current or pinned versions.
latest_version_fieldsjsonNo—Fields used to read latest or target versions.
behind_fieldstringNo—Dotted path used to read the boolean lag flag.
ahead_count_fieldstringNo—Dotted path used to read newer-version counts.
checked_countintegerNo—Number of evidence rows evaluated.
source_countintegerNo—Total attempted source rows when supplied, otherwise evidence row count.
behind_countintegerNo—Number of checked rows known to be behind.
current_countintegerNo—Number of checked rows known to be current.
unknown_countintegerNo—Number of checked rows whose lag status is unknown.
missing_countintegerNo—Number of source rows missing evidence.
max_ahead_countintegerNo—Largest ahead_count observed across checked rows.
total_ahead_countintegerNo—Sum of positive ahead_count values across checked rows.
checked_itemslistNo—Normalized evidence rows that were checked.
behind_itemslistNo—Checked rows known to be behind.
current_itemslistNo—Checked rows known to be current.
unknown_itemslistNo—Checked rows whose lag status is unknown.
missing_itemslistNo—Source rows that did not produce matching evidence.
summary_textstringNo—Bounded deterministic prose summary for notifications and reports.
statusstringNo—Aggregate status: current, lagging, partial, or unknown.
resultjsonNo—Typed envelope using schema control.version.lag_summary.v1.
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "control.version.lag_summary",
  "initial_data": {
    "items": "value"
  }
}