Manage legal entity

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

Manage legal entity is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Provides task-specific setup guidance for Manage Legal Entity under the Legal Structures functional area.

How to use this skill

Skill file

Manage Legal Entity Setup Task Guidance

Purpose

Provides task-specific setup planning, routing, export, import, and validation guidance for Manage Legal Entity under Legal Structures.

Setup Task Skill Contract

Usage

Use this skill when planning, sequencing, exporting, importing, or validating setup data for Manage Legal Entity under Legal Structures.

Country and Identifying Jurisdiction

Load the reference lookup rules and

the country/default mappings before

resolving a CREATE candidate. Use territoriesLOV followed by the minimal-field

addressGeographies country lookup. The selected primary country's

GeographyValue supplies GeographyName; retain TerritoryShortName separately.

The address lookup does not expose GeographyId, and obtaining a country ID is

not a prerequisite for this flow.

Reuse the user's identifying-jurisdiction name/search text or ask for it when

missing. Resolve it with legalJurisdictionsLOV, obtain an explicit choice if

multiple eligible records match, and verify the selected exact import name is

unambiguous. Name, identifying flag, and effective-date checks do not independently

prove jurisdiction-to-country association. Preserve that disclosure and the

documented GeographyElement1 derivation limit in the package preview.

These lookups run only at the existing LE.RESOLVE_REFERENCES step through the

declared REST client and selected environment. The changes apply to the main LRU

and registration rows authored within this LE aggregate; they do not alter the

separate Manage Legal Reporting Unit or Manage Legal Jurisdictions skills.

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. Load the task-local ora-resource/ora_rule_registry.json and run its referenced input, lookup, dependency, defaulting, design, error-handling, and final-package-readiness checks. The ora-resource graph validates the candidate; it does not create a Fusion mutation.
  5. Prepare the FSM archive locally using the contract below.
  6. Hand the exact final archive to core.data-loader only after the local workflow returns READY_FOR_DATA_LOADER_PREVIEW.

Use this task metadata when invoking those skills:

Local-Only FSM Package Preparation

This assisted workflow prepares a package locally and stops before upload or any Fusion mutation.

  1. Require a fresh, same-target, same-release, successful same-task FSM export as the immutable baseline. Bind the exact environment and task identity, current ASM_SETUP_CSV_METADATA.xml, the exact current entity-tree hierarchy and all six CSV members, exact header spelling and order, and the exported encoding.
  2. Re-run the complete task ora-resource graph against the reviewed inputs and baseline. Fail closed with a task-specific package-contract gap if any source, mapping, value, member hierarchy, header, encoding, carrier, or aggregate rule is missing or ambiguous; do not invent a package contract.
  3. Build the smallest supported UI-equivalent semantic delta from the task resources: the legal-entity root, its same-name main legal reporting unit, its identifying legal-entity registration, and the identifying main-LRU registration. Preserve all six current CSV members, all required unchanged parent rows, every unrelated row, and every untouched archive member. Preserve existing registration-function rows unchanged and add zero candidate function rows. Keep a registration-function member header-only only when it is already header-only in the baseline.
  4. Do not copy physical IDs, audit fields, object-version fields, ESS fields, or service-owned values from the baseline or another row. Copy a value only when the task resources explicitly authorize it as a carrier.
  5. Produce a ZIP-valid immutable FSM archive, its SHA-256 digest, a member inventory, a row/member semantic diff against the baseline, and a sanitized package-preparation receipt containing no secrets or sensitive payload values.
  6. Any source, mapping, value, package byte, member inventory, or hash change invalidates this preview state and requires the full validation and package-preparation workflow to run again.
  7. On success, return READY_FOR_DATA_LOADER_PREVIEW. Do not claim READY_FOR_IMPORT or approval. Stop before upload or mutation and hand the exact immutable archive to core.data-loader, which owns Task Hook validation, preview, explicit approval, archive-hash verification, upload, and initiation.

Inputs

Outputs

Implementation Notes

Use the parent functional-area skill erp.financials.legal-structures for functional-area sequencing and scope decisions. Track token usage for any generated project artifact or skill-run record using the manifest policy.

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.