Skip to Content
Helm

Result Shape

Fields returned by an evaluation.

An evaluation returns profile, scoring, allocation, and model metadata.

Evaluation input

Single evaluations use a definition-driven envelope:

FieldTypeNotes
applicantIdstringOptional external applicant identifier.
answersRecord<string, string | number | boolean>Answers keyed by definition question ID.
{
  "applicantId": "APP-001",
  "answers": {
    "investmentHorizonYears": 10,
    "riskAttitude": "hold",
    "investmentObjective": "balanced_growth",
    "annualIncome": 95000,
    "dtiRatio": 22,
    "liquidityMonths": 4,
    "investmentExperience": "intermediate"
  }
}

Custom definitions use the same envelope, but the keys inside answers come from the active definition.

Evaluation result

FieldTypeNotes
applicantIdstringPresent when the input included an applicant ID.
scoresRecord<string, number>Optional per-scored-question points, keyed by question ID.
rawScorenumberSum of weighted score contributions before normalization.
normalizedScorenumberFinal score on a 0-100 scale, rounded to two decimals.
profile{ id: string, label: string, description?: string }Final profile after score-band resolution and overrides.
overrideAppliedbooleanWhether an override changed the final profile.
overrideIdstringPresent when an override matched.
allocationRecord<string, number>Allocation percentages for the final profile.
evaluatedAtstringISO timestamp generated at evaluation time.
definition{ id: string, version: string, schemaVersion: string, graphChecksum: string }Model metadata for auditability.

The definition metadata includes the definition ID, version, schema version, and graph checksum so stored results can be traced back to the model version that produced them.

{
  "applicantId": "APP-001",
  "scores": {
    "investmentHorizonYears": 25,
    "riskAttitude": 10
  },
  "rawScore": 56,
  "normalizedScore": 70,
  "profile": {
    "id": "moderate",
    "label": "Moderate"
  },
  "overrideApplied": false,
  "allocation": {
    "equities": 55,
    "fixedIncome": 30,
    "cash": 5,
    "alternatives": 10
  },
  "evaluatedAt": "2026-06-20T10:00:00.000Z",
  "definition": {
    "id": "helmDefaultRiskProfiler",
    "version": "0.1.0",
    "schemaVersion": "1.0",
    "graphChecksum": "sha256:..."
  }
}

Batch result

Batch input can be an object with an items array. The core engine also accepts a raw array directly; REST uses the object envelope for JSON batch requests.

{
  "items": [
    {
      "applicantId": "APP-001",
      "answers": {}
    }
  ]
}

Batch evaluation returns one status per input item. A failed item does not stop the rest of the batch.

FieldTypeNotes
summary.totalnumberNumber of submitted applicants.
summary.fulfillednumberNumber of successful evaluations.
summary.rejectednumberNumber of failed evaluations.
items[].indexnumberOriginal zero-based item position.
items[].applicantIdstringPresent when the input included one.
items[].status"fulfilled" | "rejected"Per-applicant outcome.
items[].resultEvaluationResultPresent for fulfilled items.
items[].error{ code, message, details? }Present for rejected items.

Rejected item errors preserve validation details when the failure comes from input validation.

{
  "summary": {
    "total": 2,
    "fulfilled": 1,
    "rejected": 1
  },
  "items": [
    {
      "index": 0,
      "applicantId": "APP-001",
      "status": "fulfilled",
      "result": {
        "rawScore": 56,
        "normalizedScore": 70,
        "profile": {
          "id": "moderate",
          "label": "Moderate"
        },
        "overrideApplied": false,
        "allocation": {
          "equities": 55,
          "fixedIncome": 30,
          "cash": 5,
          "alternatives": 10
        },
        "evaluatedAt": "2026-06-20T10:00:00.000Z",
        "definition": {
          "id": "helmDefaultRiskProfiler",
          "version": "0.1.0",
          "schemaVersion": "1.0",
          "graphChecksum": "sha256:..."
        }
      }
    },
    {
      "index": 1,
      "applicantId": "APP-002",
      "status": "rejected",
      "error": {
        "code": "evaluation_error",
        "message": "Expected number, received string",
        "details": {}
      }
    }
  ]
}

Last updated on

On this page