Manage deal horizons

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

Manage deal horizons is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Maintains Deal Horizons through exact-task FSM CSV, including header-only baseline recovery, with a final approved Apps Common REST fallback when the CSV route is exhausted and prior writes are reconciled.

How to use this skill

Skill file

Manage Deal Horizons Setup Task Guidance

FSM Task Identity Policy

Require exact task code/name, selected task SKILL.md, target environment, and

immutable archive SHA-256 throughout review, export, package preparation, and

validation.

TaskContextPath, exact TaskName, and positive TaskSequence.

TaskCode, TaskName, offering, and functional area.

The persisted context may be generated from the project's resolved setup-task

plan without creating an Oracle Run Book. Never hand-author, infer, or

synthesize a context entry merely to satisfy Data Loader.

Purpose

Provides task-specific setup planning, routing, export, import, and validation guidance for Manage Deal Horizons under Opportunities.

Setup Task Skill Contract

Usage

Use this skill when planning, sequencing, exporting, importing, or validating setup data for Manage Deal Horizons under Opportunities.

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:

Set ID Selection

Never default this task to Common Set. For SingleLookup without an exact set

selector, ask whether Common Set should be used or a different exact Set ID or

Set Code should be selected. Resolve confirmed Common Set through the

documented read-only set resolver rather than hard-coding its ID. For package

mutations, preserve each exported row's set and require an explicit choice for

every new row without one. Set confirmation is not mutation approval.

Validate SetId as an integer resolved in the selected environment, rather than

requiring it to be positive. A confirmed Common Set may legitimately resolve

to zero; use the returned ID and SetCode without hard-coding an ID or inferring

Common Set from a numeric value.

Negative Set Scenarios

Reject a malformed or unknown Set ID/Set Code, selectors that resolve to

different sets, a confirmed Common Set choice that resolves to a non-Common

set, a business-unit assignment whose ReferenceGroupName or set differs from

the exact parent, or a package row whose set differs from its confirmed or

fresh-export identity. Do not substitute Common Set, a close match, a generic

lookup type, or another environment's set. Return the exact mismatch and

require one valid set decision before continuing.

Fixed Set-Enabled Lookup Adapter

| Contract item | Fixed value |

|---|---|

| Business value | Estimated Deal Duration |

| Lookup type | MOO_SETID_DEAL_HORIZION |

| Catalog and FSM task code | MOO_MANAGE_DEAL_HORIZONS |

| Record-set prerequisite task | ORA_MOO_MANAGE_OPPORTUNITY_RECORD_SET_VALUES |

| Default mutation route | FSM through core.data-loader |

| Final fallback route | core.fusion-api.apps-common after documented CSV exhaustion and reconciled prior submissions |

The lookup type and FSM task code are immutable for this adapter. Reject a

request that supplies a different lookup type or package task code. If the

record-set assignment is missing or incorrect, return ORA_MOO_MANAGE_OPPORTUNITY_RECORD_SET_VALUES as the

prerequisite gap; do not change that assignment here.

Common Workflow Contract

Load Manage Set Enabled Lookups for

the shared Apps Common discovery, validation, preview, approval, mutation,

diagnostics, retry, and verification discipline. Reuse its behavior only; do

not inherit its FND task identity or its two generic lookup types.

For the final fallback, load Apps Common,

then its Lookups skill

and Set-Enabled Lookups reference. This adapter's final-fallback condition

selects that route; its separate REST approval and verification rules apply.

Core Data Loader retains ownership of the FSM preview and submission lifecycle.

This adapter owns the exact task boundary:

  1. Load the task-local resources and compiled registry listed below.
  2. Resolve the exact MOO_SETID_DEAL_HORIZION parent first and capture its returned nonblank ReferenceGroupName. For SingleLookup, use it to resolve one exact set and any requested business-unit assignment before reading code state. For Package work, validate set and state per changed row; full-task Export has no set selector or code.
  3. For the preferred FSM route, require exactly one reviewed SingleLookup Create, Update, or Disable code change in a fresh, validated, immutable MOO_MANAGE_DEAL_HORIZONS package, plus its unchanged parent linkage row. Apply the header-only baseline procedure below when seeded data is omitted. For native Package Create, Update, Disable, or Import, validate every changed code and its parent linkage atomically. Both FSM modes require exact task identity, package hash binding, state locks, and business-impact evidence before Data Loader handoff; persisted Data Loader task context is required for every Data Loader handoff.
  4. Let core.data-loader own Task Hook validation, its immutable preview, the later standalone approve, upload, and accepted initiation result. Accepted initiation ends the request; status, ProcessLog, and read-back verification require a later explicit request.
  5. Exhaust the applicable CSV recovery below before considering Apps Common. The verifier may return RETURN_FALLBACK_REQUIRED with a same-target failure receipt; the invoking router resumes this request once as REST_FALLBACK, preserves its business intent and confirmed sets, and restarts parent/set/code resolution. After an accepted import, this evaluation occurs only on a later explicit status or results request, after terminal process evidence and exact state reconciliation. Pending, uncertain, or partially applied requests block route switching.
  6. For an eligible REST_FALLBACK Create, Update, or Disable, or an explicitly selected REST_DELETE, require editability and impact evidence, a separate immutable REST preview, immediate approval, one submission per displayed request, and exact read-back verification. Never reuse export or Data Loader approval.
  7. Never substitute FND_MANAGE_SET_ENABLED_LOOKUPS or another named Opportunity task code.

Supported Operations

Inventory and Read are read-only. Create, Update, and Disable use the exact FSM

task code first and may use the final Apps Common fallback below. Export and

Import remain FSM-only; an Import request is not converted to REST writes.

Delete fails closed on FSM and retains its explicitly selected REST exception.

Header-Only FSM Baselines and Parent Linkage

A completed data export can contain header-only CSVs because FSM excludes

Oracle seeded data. Zero exported rows alone do not invalidate a baseline or

prove that the live lookup is empty. Validate the exact target, release,

MOO_MANAGE_DEAL_HORIZONS task, successful process result, metadata, members,

and headers first. A template export, failed or incomplete process, wrong-task

archive, or missing metadata remains a blocker.

For a Create against an existing lookup omitted from the valid data export:

  1. Resolve the live MOO_SETID_DEAL_HORIZION parent, its returned reference

group and editability, the confirmed set, and the new code's absence through

the existing read-only resolvers. An export omission is not absence evidence.

  1. Preserve the source ZIP and construct a separate final package. Keep

ASM_SETUP_CSV_METADATA.xml, member names, header spelling/order, and all

unrelated rows and members unchanged. Use only the current export's schema.

  1. In FND_APP_SET_ENABLED_LOOKUP.csv, reuse the exact exported parent when

present. If omitted, add one existing-parent linkage row whose LookupType,

ReferenceGroupName, Meaning, Description, ModuleId,

CustomizationLevel, and RestAccessSecured come from the fresh exact

parent response. Include only fields present in the exported header; leave

audit columns blank on this added row. Do not invent values, create a new

lookup type, or change the existing parent's configuration. Missing required

parent fields or conflicting exported/live parent values block preparation.

  1. In ORA_FND_APP_SET_ENABLED_LOOKUP_CODE.csv, add the reviewed new code with

FND_APP_SET_ENABLED_LOOKUP.LookupType equal to the parent LookupType,

SetCode equal to the resolved set, and the requested meaning and permitted

mutable fields. Do not copy all seeded codes into the package.

  1. Validate the parent-child join for every changed child. One lookup-code

change plus its unchanged support parent is one business change, although

both CSVs contain a row. A child-only package is not ready even when its

parent exists live. Re-read the exact code state before Data Loader handoff.

Keep FSM as the execution route. Data Loader still owns Task Hook validation,

the immutable preview, approval, and submission. This procedure does not

authorize an import or by itself qualify the request for REST fallback.

Oracle source: Export and import of CSV file packages, page 29.

Final Apps Common Fallback

For Create, Update, or Disable, use this order: exact-task FSM export and CSV

preparation; applicable header-only/unchanged-parent recovery; Core Data Loader

validation and approved submission; Apps Common only if the CSV route cannot

complete the requested change. Do not submit a known-invalid package or repeat

a live import merely to demonstrate exhaustion. Record which recovery was

applied or why it was unavailable; a repairable missing parent row must be

corrected before fallback, and a valid header-only baseline stays on FSM.

Require a fresh failure receipt bound to the exact environment, release,

MOO_MANAGE_DEAL_HORIZONS, MOO_SETID_DEAL_HORIZION, operation, reviewed rows,

and confirmed sets. Include the failed stage, classified reason, actual status,

timestamps, sanitized error or ProcessLog evidence, available artifact hashes,

and every returned process/request/content ID. Permitted reasons are:

or exceeded its declared polling window; retain the actual last status and

elapsed wait. A running export inside that window does not qualify.

safe, usable data baseline and documented CSV recovery cannot resolve the

defect. A wrong-target source file is not an attempted export receipt.

request, all related import jobs are terminal, status/errors and ProcessLog

have been retrieved, and fresh reads show every requested row remains at its

reviewed pre-import state (or absent for Create). Document why further CSV

recovery cannot resolve the failure; do not retry an import automatically.

Input, catalog identity, set/assignment, authentication/authorization, missing

workflow/context, and declined or missing approval failures remain blockers.

So do explicit FSM-only constraints, unknown upload/initiation outcomes,

pending import jobs, incomplete diagnostics, concurrent state changes, or

partial business changes. If all requested values are already applied, return

the verified result without another write. Partial results require a new

reviewed request for the remaining changes; never replay the original batch.

The route verifier first returns a candidate, then RestFallbackEligible=true

only after fresh exact parent, set/assignment, and per-code reads pass and prior

submissions are reconciled. Preserve RequestMode and row scope. For Package

Create, Update, or Disable, use the reviewed ordered row list, validate every

distinct case-sensitive LookupCode/SetId pair, and reject duplicates. This

route uses no Data Loader session, archive, task context, or approval; missing

Data Loader context cannot itself trigger it.

Prepare one immutable REST preview showing the failure/recovery evidence,

target, operation, lookup/set identity, current and proposed values, impact,

exact method/endpoint/body, verification GET, and request fingerprint for every

row. For Create, POST to the fixed lookup's child collection with LookupCode,

the resolved integer SetId (including a live-resolved zero), Meaning, and only

reviewed writable fields; send Upsert-Mode: false. SetCode is read-only and

is not sent. For Update or Disable, PATCH the same-target canonical child link

returned by the fresh read; Update contains only reviewed mutable fields and

Disable only EnabledFlag=N. Never write the parent, reference-set assignment,

lookup identity, audit fields, or unrelated codes.

Obtain explicit approval of this exact REST preview immediately before execution.

Submit each approved request once through the Apps Common Lookups skill's core

REST client and verify it immediately through the disclosed exact GET. A changed

or stale preview invalidates approval. Stop at the first failed, uncertain, or

unverified row; retain prior successes and unattempted rows without automatic

retry, rollback, or another fallback. A new write needs fresh reconciliation,

a rebuilt preview, and new approval.

Oracle source: 26D Set-Enabled Lookup Codes REST operations.

Execution Safety Contract

Before any external read, export, package handoff, supported direct REST

preview, or mutation, run a preflight that validates the exact environment,

task identity, request mode and route, privileges, selectors, current-state

evidence, package or endpoint shape, destination paths, and route-owned

approval state. Stop before side effects when evidence is missing, stale,

ambiguous, cross-environment, or inconsistent with the task-local resources

and compiled rule plan.

For error handling and failure behavior, load

ora-resource/ora_error_handling.md, classify the failure under the governed

taxonomy, preserve sanitized diagnostics and external identifiers, and follow

only the documented recovery path. Retry cached-token authentication at most

once through the owning core client and retry only bounded read-only transport

failures. Never retry a live REST mutation, Data Loader import, upload, or

uncertain result without a fresh immutable preview and explicit approval. On a

timeout or accepted Data Loader initiation, return the current status and safe

next-check path instead of polling or resubmitting automatically.

Redact credentials, bearer tokens, authorization headers, OAuth state,

token-cache contents, cookies, private keys, and sensitive payload values.

Never print or persist those secrets in previews, diagnostics, project

artifacts, skill-run records, or user responses.

Oracle Resource Read Order

  1. ora_input_validation.md
  2. ora_reference_lookups.md
  3. ora_dependency_readiness.md
  4. ora_design_enforcement.md
  5. ora_error_handling.md
  6. ora_rule_registry.json

Use the rule planner before consuming the registry. The local graph owns this

adapter's exact task identity; the common workflow is not a substitute for the

local registry or approval gate.

Runtime Interface

Use the manifest inputs and outputs as the canonical interface. In

addition to the standard project and setup-data fields, preserve this

adapter's RequestMode, fixed lookup type, exact catalog/FSM task code, returned

reference group, SingleLookup set or per-row package sets, package validation

result, Data Loader handoff evidence, and route-specific approval state.

Preserve CSV failure/recovery receipts, prior-submission reconciliation, and

the fallback eligibility decision when REST_FALLBACK is selected. Do not

maintain a second reduced interface

or reinterpret a generic approval as Data Loader upload authorization.

Implementation Notes

Use the parent functional-area skill cx.sales.opportunities 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.