Balance exceptions

From oracle/Fusion-Setup-Configuration-Registry · View interactive version

Balance exceptions is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Provides task-specific setup guidance and read-only ID resolution for Balance Exceptions under the Payroll Balances functional area.

How to use this skill

Skill file

Balance Exceptions Setup Task Guidance

Purpose

Provides task-specific setup planning, routing, export, import, and validation guidance for Balance Exceptions under Payroll Balances.

Setup Task Skill Contract

Usage

Use this skill when planning, sequencing, exporting, importing, or validating setup data for Balance Exceptions under Payroll Balances.

Setup Task Metadata

CSV Export, Import, and Validation Workflow

CSVExportImportSupportedFlag is Y for this task, so route task setup data work through the relevant skills:

  1. Export setup task data with shared.setup-export.task-level-export.
  2. Validate setup task data with shared.validation.setup-data-validator.
  3. Validate reference data with shared.validation.reference-data-validator.
  4. Import setup task data with core.data-loader.

Use this task metadata when invoking those skills:

Inputs

Outputs

Implementation Notes

Use the parent functional-area skill hcm.global-payroll.payroll-balances for functional-area sequencing and scope decisions. Track token usage for any generated project artifact or skill-run record using the manifest policy.

Reference ID Resolution

Before preparing an FSM import, use the read-only resolver in

scripts/resolve_balance_reference.py only after the router, active project/run

book, target environment, OAuth, and a workflow-approved current UI runtime

context have been checked. For a user-supplied HAR from the exact target pod,

--har-source may select one successful GET route captured within 24 hours as

a candidate for this run. Require a fresh exact LDG GET through that candidate

before any dependent lookup; do not persist or reuse the context as a stable

endpoint. Reject a wrong-host, stale, or ambiguous HAR. Do not obtain a context

through an undeclared browser route.

Oracle's documented public payrollGenericLOV collection returned no selectable

Current period option for the BalanceExceptionUI comparison provider in

cptczmdqy QA, so it is not a validated substitute. If neither a current

workflow context nor a recent same-pod HAR candidate passes the fresh LDG

check, record a catalog mismatch and stop. Select exactly one source:

--balance-name with --dimension-name, or --balance-group-name. Pass the

exact LDG name, expected environment label, token cache, and an evidence path

under the active project's artifacts directory. The resolver uses the shared

Fusion OAuth client and only GET requests; it does not create an exception.

py -3 pillars/hcm/global-payroll/payroll-balances/balance-exceptions/scripts/resolve_balance_reference.py \
  --ldg-name "<exact LDG name>" \
  --balance-name "<exact balance name>" \
  --dimension-name "<exact dimension name>" \
  --comparison-type "<exact selectable comparison label or code>" \
  --variance-type "<exact variance type label or code>" \
  --variance-operator "<exact operator label or code>" \
  --severity-level "<exact severity label or code>" \
  --har-source "<user-supplied same-pod HAR path>" \
  --expect-environment "<configured environment>" \
  --token-cache .fusionaim_token.json \
  --output project/<project_id>/artifacts/pillars/hcm/global-payroll/payroll-balances/balance-exceptions/current/defined-balance-reference.json

Use --runtime-context instead only when the active UI workflow supplied a

current context independently. Both routes require the fresh LDG and dependent

provider GET checks before an ID is accepted.

For a group, replace --balance-name and --dimension-name with

--balance-group-name and use a separate balance-group-reference.json output.

Omit --variance-type for a group source until the group ID is resolved;

its available variance choices depend on the selected group.

The returned DefinedBalanceId or BalanceGroupId is an internal target-pod

identifier, never a value inferred from display text. Require exactly one

positive numeric ID in the same LDG. The resolver uses the harvested

BalanceExceptionUI comparison, balance, dimension, and group providers;

the current target response must confirm their contract. If the target service does not return the

ID, reports an ambiguous match, or cannot prove complete paging, stop before

building the import ZIP. Preserve the FSM template and all existing preflight

evidence. See ora-resource/ora_reference_lookups.md for the precise request

and matching contract.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.