Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

MFA Policy Validator

identity.mfa_policy_validate

ProductionBounded custom (Class B)Deterministicstrictfastv1.0.0
No network

Overview

You send methods as objects with a type from TOTP, WEBAUTHN, PUSH, SMS, EMAIL or RECOVERY_CODE. Optional recovery and stepUpMethods use the same shape. minFactors defaults to 1, requireEnrollment to true, baseline to NONE. Diagnostics report contradictions. The call does not authenticate a user or claim regulatory compliance.

A policy that lists only recovery codes looks complete while leaving no primary factor.

Reliability

Duplicate types are refused. MFA_POLICY_INVALID — trigger: a duplicate or unknown method type; retryable: no; next: send unique published types. IDENTITY_LIMIT_EXCEEDED — trigger: more than 16 methods; retryable: no; next: shorten the list.

Context footprint

Normalized types and diagnostics only. A successful call costs 1 execution credit.

When to use it

When a declared MFA method list must be checked for internal contradictions.

When a live authenticator must be challenged or a vendor must be ranked.

Scope

Note
Validates an MFA method list against enrollment, recovery, step-up and baseline rules.

Non-goals

  • Does not authenticate a user
  • Does not claim regulatory compliance
  • Does not rank vendors

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

validation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input2 MB

How we handle your data

Sensitive processing
What this means

This skill is designed to detect, mask, redact, validate, or otherwise process sensitive data.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • Targets sensitive data
  • The response does not contain submitted content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
methodsarrayYesBounded array of 1 through 17 closed method objects; runtime accepts at most 16 unique types.
minFactorsintegerNoMinimum factors the policy requires. Omit it for 1.
requireEnrollmentbooleanNoWhether enrollment is required. Omit it for true.
recoveryarrayNoBounded array of 0 through 17 closed recovery-method objects. Omit it for none.
stepUpMethodsarrayNoBounded array of 0 through 17 closed step-up method objects. Omit it for none.
baselinestringNoNONE, STANDARD or HIGH_ASSURANCE. Omit it for NONE.

Output schema

FieldTypeRequiredDescription
validbooleanYesTrue when no diagnostic has severity ERROR.
methodsarrayYesBounded array of 0 through 16 unique published method types in declaration order.
recoveryarrayYesBounded array of 0 through 16 unique published method types in declaration order.
stepUpMethodsarrayYesBounded array of 0 through 16 unique published method types in declaration order.
minFactorsintegerYesApplied minimum factor count.
requireEnrollmentbooleanYesWhether enrollment is required.
baselinestringYesApplied baseline NONE, STANDARD or HIGH_ASSURANCE.
rulesetVersionstringYesPinned MFA-policy ruleset identifier.
diagnosticsarrayYesBounded array of 0 through 500 closed findings, each with code, severity, message, path, source and details.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"identity.mfa_policy_validate","input":{"methods":[{"type":"TOTP"}]}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("identity.mfa_policy_validate", {"methods":[{"type":"TOTP"}]});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.
MFA_POLICY_INVALID400NoThe request payload failed this skill's input validation.
IDENTITY_LIMIT_EXCEEDED429NoA size, quota, rate, or time limit was exceeded.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not authenticate a user
  • Does not claim regulatory compliance
  • Does not rank vendors
  • Issuing a challenge
  • Checking a live authenticator

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "identity.mfa_policy_validate",
  "input": {
    "methods": [
      {
        "type": "TOTP"
      }
    ]
  }
}

Examples

A TOTP-only policy under NONE is valid

Inputjson
{
  "methods": [
    {
      "type": "TOTP"
    }
  ]
}
Expected outputjson
{
  "baseline": "NONE",
  "methods": [
    "TOTP"
  ],
  "stepUpMethods": [],
  "diagnostics": [],
  "valid": true,
  "rulesetVersion": "identity.mfa_policy.v1",
  "requireEnrollment": true,
  "minFactors": 1,
  "recovery": []
}
Tip
valid is true and methods contains TOTP.

Recovery codes cannot be the only method

Inputjson
{
  "methods": [
    {
      "type": "RECOVERY_CODE"
    }
  ]
}
Expected outputjson
{
  "baseline": "NONE",
  "methods": [
    "RECOVERY_CODE"
  ],
  "stepUpMethods": [],
  "diagnostics": [
    {
      "code": "RECOVERY_ONLY",
      "severity": "ERROR",
      "message": "Recovery codes cannot be the only authentication method.",
      "path": "/methods",
      "source": "squillify",
      "details": {}
    }
  ],
  "valid": false,
  "rulesetVersion": "identity.mfa_policy.v1",
  "requireEnrollment": true,
  "minFactors": 1,
  "recovery": []
}
Tip
valid is false and diagnostics include RECOVERY_ONLY.
  • Accept a TOTP-only policy under NONE
  • Reject recovery codes as the only method

Avoid for

  • Issuing a challenge
  • Checking a live authenticator

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

validationidentity