Check a Balance Rollforward
accounting.rollforward_check
Overview
Perform bounded exact-decimal rollforward check and return the calculation with an audit receipt. Closed inputs, fixed precision, deterministic ordering, and typed failures apply.
You receive exact totals and a compact audit receipt for accounting.rollforward_check.
Reliability
Closed shapes and precision bounds fail before expensive work. DECIMAL_INVALID means a malformed or over-limit decimal; correct it. CONTROL_INVALID means duplicate or malformed rows; correct their ids and shape. CURRENCY_MISMATCH means the currency is unsupported or inconsistent; use one supported currency. TOLERANCE_INVALID means tolerance is negative or malformed; provide a non-negative decimal. ALLOCATION_INVALID means weights are negative, duplicated, or unusable; correct them. ZERO_DENOMINATOR means the weight sum or divisor is zero; provide a positive divisor. ROUNDING_INVALID means mode, scale, or quantization is invalid; use a published mode and scale. BASIS_INVALID means elapsed and total basis are inconsistent; keep elapsed in range. PERIOD_INVALID means the count is outside 1 through 1,200; correct it. ITEM_LIMIT_EXCEEDED means a bounded count was exceeded; split the request. This guidance applies to accounting.rollforward_check.
Context footprint
The result replaces repeated prompt arithmetic with one reproducible receipt for accounting.rollforward_check. A successful call costs 1 execution credit.
When to use it
When opening, movements, and reported close must be tested against an absolute tolerance.
When you still need to compute the close rather than compare it to a reported figure.
Scope
Non-goals
- Does not infer currency conversion, calendar basis, accounting policy, or materiality for accounting.rollforward_check.
- Does not mutate a ledger, read files, or process unbounded rows for accounting.rollforward_check.
Properties
Capabilities
Cost & billing
Flat rate per invocation
File handling
How we handle your data
What this means
This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.
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.
- This skill does not target 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.
Input schema
| Field | Type | Required | Description |
|---|---|---|---|
| opening | string | Yes | Opening balance before applying the supplied signed movements. |
| movements | array | Yes | From 1 through 10,000 signed plain-decimal strings accumulated in caller order. |
| reportedClosing | string | Yes | Reported closing balance. |
| tolerance | string | No | Optional non-negative absolute tolerance; omitted values resolve to zero. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| expectedClosing | string | Yes | Opening plus exact movement total. |
| movementTotal | string | Yes | Exact signed movement total. |
| reportedClosing | string | Yes | Normalized reported closing balance. |
| difference | string | Yes | Expected close minus reported close. |
| balanced | boolean | Yes | Whether the absolute difference is within tolerance. |
| tolerance | string | Yes | Resolved absolute tolerance. |
| count | integer | Yes | Number of movement values. |
API contract
POST /v1/executecurl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"accounting.rollforward_check","input":{"opening":"100","movements":["10","-5"],"reportedClosing":"105"}}'import { Squillify } from "@squillify/sdk";
const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });
const { output } = await sq.execute("accounting.rollforward_check", {"movements":["10","-5"],"reportedClosing":"105","opening":"100"});Errors
| Code | HTTP | Retryable | Description |
|---|---|---|---|
| VALIDATION_ERROR | 400 | No | The request payload failed schema validation. |
| UNAUTHORIZED | 401 | No | Missing or invalid API key. |
| SKILL_NOT_ACCESSIBLE | 403 | No | The API key is not granted access to this skill. |
| SKILL_NOT_AVAILABLE_FOR_PLAN | 403 | No | This skill is not included in your current plan. |
| PLAN_ELIGIBILITY_UNAVAILABLE | 503 | Yes | Plan eligibility could not be decided. Retry after backoff. |
| SKILL_NOT_FOUND | 404 | No | The requested skill or version does not exist. |
| TENANT_RATE_LIMITED | 429 | Yes | Request rate limit exceeded. Retry after backoff. |
| QUOTA_EXCEEDED | 429 | Yes | Plan quota exhausted. Retryable once the quota period resets. |
| EXECUTION_TIMEOUT | 504 | Yes | Execution exceeded the allowed time budget. |
| DECIMAL_INVALID | 400 | No | The request payload failed this skill's input validation. |
| TOLERANCE_INVALID | 400 | No | The request payload failed this skill's input validation. |
| ITEM_LIMIT_EXCEEDED | 429 | No | A size, quota, rate, or time limit was exceeded. |
Other limits
| Limit | Value |
|---|---|
| Recommended inline bytes | 32 KiB |
Limitations
- Does not infer currency conversion, calendar basis, accounting policy, or materiality for accounting.rollforward_check.
- Does not mutate a ledger, read files, or process unbounded rows for accounting.rollforward_check.
- Inferred policy, conversion, posting, or schedules outside the closed input
- Inputs above the declared bounds for accounting.rollforward_check.
How to call
POST /v1/execute (requires authentication)
{
"skillKey": "accounting.rollforward_check",
"input": {
"movements": [
"10",
"-5"
],
"reportedClosing": "105",
"opening": "100"
}
}Examples
Verified calculation
{
"movements": [
"10",
"-5"
],
"reportedClosing": "105",
"opening": "100"
}{
"difference": "0",
"movementTotal": "5",
"expectedClosing": "105",
"balanced": true,
"tolerance": "0",
"count": 2,
"reportedClosing": "105"
}Alternative bounded calculation
{
"movements": [
"9.99"
],
"tolerance": "0.01",
"opening": "0",
"reportedClosing": "10"
}{
"difference": "-0.01",
"movementTotal": "9.99",
"expectedClosing": "9.99",
"balanced": true,
"tolerance": "0.01",
"count": 1,
"reportedClosing": "10"
}Recommended use cases
- Auditable bounded rollforward check
- Exact-decimal fund-accounting controls for accounting.rollforward_check.
Avoid for
- Inferred policy, conversion, posting, or schedules outside the closed input
- Inputs above the declared bounds for accounting.rollforward_check.
Related skills
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.