Check an AcroForm's fields against its declared constraints.
Use describe("pdf.validate.form") when your code needs the complete live JSON Schemas.
At a glance
| Property | Value |
|---|---|
| Package | @runstamp/forms |
| Domain / verb | pdf / validate |
| Customer jobs | validate |
| Deterministic | Yes |
| Side effects | none |
Availability
| Local | SDK | CLI | MCP | Managed API |
|---|---|---|---|---|
| public ga | public ga | public ga | public ga | public ga |
Managed API route: POST /api/v2/operations/pdf/validate/form. Managed execution requires a free-trial workspace or an active Platform or Enterprise workspace, and an environment-bound API key.
Input and result
| Schema | Required fields | Optional fields |
|---|---|---|
| Input | artifactId, bytesBase64, sha256, tenantId, version | values |
| Options | none | operation, deterministic, deterministicSeed, timeoutMs, limits, locale, lossPolicy |
| Result value | output, artifacts | none |
Every success also carries losses, diagnostics, and a hash-bound receipt.
Defaults, limits, and format constraints
Defaults
| Path | Default |
|---|---|
$.deterministic | default=true |
$.lossPolicy | default="collect" |
Formats and profiles
| Path | Constraint |
|---|---|
$.version | minLength=1maxLength=16384 |
Other limits
| Path | Constraint |
|---|---|
$.artifactId | pattern="^[a-f0-9]{64}$" |
$.bytesBase64 | minLength=4maxLength=89478492pattern="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" |
$.sha256 | pattern="^[a-f0-9]{64}$" |
$.tenantId | minLength=1maxLength=16384 |
$.deterministicSeed | minLength=1maxLength=1024 |
$.timeoutMs | minimum=1 |
$.limits.maxInputBytes | minimum=1 |
$.limits.maxOutputBytes | minimum=1 |
$.limits.maxPages | minimum=1 |
$.limits.maxElements | minimum=1 |
$.limits.maxArchiveEntries | minimum=1 |
$.limits.maxExpansionRatio | minimum=1 |
$.limits.maxDurationMs | exclusiveMinimum=0maximum=2147483647 |
$.locale | minLength=1maxLength=128 |
Invoke
const input = await fetch("https://runstamp.com/demo-evidence/operation-evidence/forms/pdf.validate.form/input.json").then((response) => response.json());
const result = await runstamp.run("pdf.validate.form", input);
if (!result.ok) throw new Error(`${result.error.code}: ${result.error.remediation}`);
console.log(result.value, result.losses, result.diagnostics, result.receipt);curl -fsS https://runstamp.com/demo-evidence/operation-evidence/forms/pdf.validate.form/input.json -o input.json
npx -p @runstamp/sdk runstamp ops invoke pdf.validate.form --input input.json{
"tool": "runstamp_invoke_operation",
"arguments": {
"operation": "pdf.validate.form",
"input": "<JSON from https://runstamp.com/demo-evidence/operation-evidence/forms/pdf.validate.form/input.json>",
"execution_mode": "local"
}
}Errors and losses
Declared errors (27)
pdf/A03_BINDING_MISMATCHpdf/ABORTEDpdf/ACTIVE_ACTIONpdf/BINDING_MISMATCHpdf/DUPLICATE_FIELD_NAMEpdf/FIELD_UNKNOWNpdf/FIELD_UNSUPPORTEDpdf/FLATTEN_FAILEDpdf/FORM_INVALIDpdf/INVALID_INPUTpdf/INVALID_VALUEpdf/MALFORMED_APPEARANCEpdf/MALFORMED_WIDGETpdf/OUTPUT_HASH_MISMATCHpdf/POST_MUTATION_CHECK_FAILEDpdf/PROTECTED_FORMpdf/RESOURCE_LIMITpdf/SIGNED_INPUTpdf/SIGNING_PROVIDER_REQUIREDpdf/TIMEOUTpdf/WIDGET_COUNT_MISMATCHpdf/SCHEMA_REJECTEDcommon/SCHEMA_REJECTEDcommon/OPERATION_CANCELLEDcommon/OPERATION_TIMEOUTcommon/CONTRACT_VIOLATIONpdf/LOSS_POLICY_VIOLATED
Declared losses (2)
pdf/FORM_INTERACTIVITY_REMOVEDpdf/FORM_APPEARANCE_DEFERRED
SDK AbortSignal, CLI exit 130, and MCP cancellation return the typed common/OPERATION_CANCELLED failure envelope.
Verified example and exact contract
- Fixture:
icp-workflow(Completed Employee onboarding EMP-2027-00418). - Example input — SHA-256
8b8aea5980a0d4d0b24a3a5b8a5c77c4b05d062c4c6600360ceede542ec5c795. - Example result — SHA-256
9a3e3f75aaeacd99a64255f937f2b0dec3adf54b123dfedfc8f2402dcf15d863. - Verified result SHA-256:
9c63459c448b1529a1c2a86f4511b0c33e3841347fcf3577f803b64d567a50b2. - Qualification lane:
12-approval-forms-review.
Contract fingerprints
- Descriptor:
baab81025f5bcb0b5abb883584183d6696cae4fcc6412e95b98f3b51aa70c15e. - Input schema:
7b16bde2a3dc13cf74ccb38a6de87f9202ec138536e78da98293053d34ff3824. - Options schema:
2cefa3b4c991adf4c32cc66c8e5ffd1322f92b755dcee2851067d87fc341bef6. - Result value schema:
53034991f5cba18453fc9fe4b203c569d2131fb6b32ca26a4e9c8218239ceb49.
The machine-readable operation reference publishes the complete schemas, qualification results, and evidence bindings for every operation.