Manage project templates

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

Manage project templates is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Provides REST-only, documented-contract guidance for Manage Project Templates under the Project Foundation functional area.

How to use this skill

Skill file

Manage Project Templates Setup Task Guidance

Purpose

Provides task-specific setup planning, documented REST contract validation, and REST execution guidance for Manage Project Templates under Project Foundation.

Prepared payload destinations must be new, versioned files. The helper refuses

an existing file, directory or symlink before writing output and uses exclusive

creation to prevent a concurrent run from replacing the artifact. Retain the

original payload and preparation evidence; intentional regeneration uses a new

destination and a fresh preview through the declared artifact services.

--validation-output remains a current validation record and may be refreshed;

use a separate path when retaining approval revalidation evidence.

REST Request Preflight

Before any workflow-selected REST request, apply the offering's

REST version and query compatibility preflight.

Determine the effective framework version from the selected core client or

workflow, construct compatible query parameters, and verify that the outgoing

header agrees. Do not hardcode a separate pillar version. Existing route,

validation, classification/matching, persistence and approval gates still apply.

Setup Task Skill Contract

Usage

Use this skill to validate, preview, execute, and verify a customer-FSCR project-template create or update for Manage Project Templates under Project Foundation.

Supported Task Behavior

Create, update, end-date, and validate project templates through the published Project Templates REST resource. It covers the documented core fields and the explicitly requested child collections: classifications, customers, team members, transaction controls, provider business units, quick entries, setup options, tasks, and task transaction controls. The precise method, path, parent/child key, and supported CUD actions are in the static REST contract reference.

This is a REST-only skill. Browser and guided-UI execution are not routes for this task. FSM and CSV export/import are also unsupported. Duplicate, create-from-project/template, root-template delete, a child operation not listed in the REST contract, and any field that cannot be mapped to the documented operation schema must stop with an unsupported-surface report. Never infer whole-template coverage from the root collection and never substitute an undocumented route after approval.

For customer-facing capability blockers, follow the wording contract in

ora-resource/ora_error_handling.md. Explain which requested settings the current

skill cannot yet save and why creation is paused; keep internal mapping/schema

terminology in diagnostics unless the customer asks for technical details.

Setup Task Metadata

REST-only Validation and Execution Workflow

ExportImportSupportedFlag and CSVExportImportSupportedFlag are both N. Do not invent an FSM package or Data Loader route.

  1. Normalize input aliases to documented REST field names and enumerate the requested core changes and child operations. Reject unknown fields rather than silently dropping them.
  2. Execute ora-resource/ora_rule_registry.json in sequence. Initial input validation checks scope and supplied-value shape; apply documented defaults and resolve references before checking prepared-payload completeness. Request only required values that remain unresolved.
  3. Read the collection baseline for duplicate detection. For create, zero exact matches is ready: use the published root POST path and schema. Do not require a nonexistent item self link or child link before the parent is created. Returned canonical links remain mandatory for update, child-after-parent operations, and readback.
  4. Validate identity, ISO dates, documented project/business unit/type/organization/legal-entity/status representations, setup-option prerequisites, child keys, and downstream reuse impact where a documented consumer lookup is available. Treat customer-supplied names as first-class REST values and require exactly one documented name/ID/code representation for each required reference. Do not call /projectTemplates/{existing-template}/lov/ProjectTypes, /ProjectUnits, or /OwningOrganizations while validating a new-template create; those values belong to the existing parent template's context. Fusion validates whether submitted root reference values exist and are compatible when the approved REST request is executed.
  5. Before approval, run scripts/validate_project_template_payload.py with the exact --operation and --child-family where applicable. Whenever defaults, inheritance or lookup resolution apply, use --prepared-payload-output for a separate immutable body and --validation-output for its preparation record. Use --priority-lookup-json for priority names, --lookup-evidence-json for other registered code-only aliases, and an explicit --effective-date for all lookup resolution. Approval and submission bind to the prepared body and its digest. Preserve the original preparation/default/resolution evidence; approval revalidation writes a separate report. No create defaults are added to PATCH. Generic describe flags cannot make generated/defaulted fields required or authorize unpublished write fields. All checks must pass before preview.
  6. Produce an immutable REST operation plan and payload checksum. Prefer one documented root POST with validated nested Tasks over a deliberately staged create. A single request does not prove server rollback on failure: reconcile uncertain outcomes through selected reads and retain partial-state evidence. Keep metadata and validation digests internally. Show the target, business values, method/path, body when requested and readback plan; request one approve/decline decision on the business change.
  7. Before execution approval, record the active workflow's operation classification and selected executor. Every import/load, including registered-business-object creation routed as an import, enters core.data-loader and its adapter/Task Hook approval workflow; missing adapter or registration blocks that route. Do not relabel an import as direct REST. For a task operation explicitly selected outside import scope, use the shared REST client with its supported body/output/timeout options after approval of the exact target, method, URI and payload. The consuming workflow owns artifact integrity and sanitized receipts. The approved POST is the first live authorization check; on 401 or 403, stop without retry. On success, use only returned canonical links for readback.

For nested template create, leave omitted task organization fields out of the request and verify Fusion-derived values from task readback. Successful target response and canonical task readback supplied on 2026-10-14 evidence this behavior. Preserve explicit overrides and validate fresh operation-specific target requirements. The published Oracle required array remains recorded as-is. Direct task create retains its existing explicit/evidenced organization contract. Apply documented task cross-charge defaults/inheritance. Oracle work type and ExternalTaskId requiredness remain operation-specific. For nested template creation, preserve supplied valid external task IDs and generate omitted IDs under the FSCR policy in ora_defaulting_rules.md. Reuse a supplied unique TaskNumber for the generated external ID; when no number is supplied, allocate a request-unique sequence. Persist generated values before approval and verify task numbers from readback. Target execution evidence shows ExternalTaskId becoming the saved TaskNumber on create, and a TaskNumber PATCH also changing ExternalTaskId. Disclose both resulting values in create/update previews; do not promise independent preservation of ExternalTaskId when changing TaskNumber. Verify both fields after execution. Validate supplied date ordering and known project schedule bounds; template availability dates are not project schedule substitutes.

Apply the four root boolean defaults and ALL_COSTS only on create, preserve explicit choices, and leave interest capitalization and asset allocation omitted for project-type derivation when not supplied. Resolve a supplied priority display name through the documented enabled/effective lookup and include the returned code and redacted evidence in the preview. The defaulting, lookup and input-validation resources own these rules; do not duplicate or override them from a historical successful payload.

Inputs

Outputs

Runtime Readiness

Supported Executor Handoff

The pillar returns task-specific validation, dependency, design and evidence

requirements to the active workflow. The workflow owns payload preparation,

approval and dispatch through the selected core executor. The static reference

is not a write route. Current v3 ora-resource files contain only the supported

task-rule resources and compiled registry; there is no separate pillar REST

execution authority or transport wrapper.

Use the existing core.fusion-api.rest-api-client contract. The client supports

--body or --body-file, --output and --timeout; it does not own the

customer's approval or the consuming task's durable audit record. There is no

blanket executor blocker for absence of task-specific CLI options.

The active workflow must classify the operation before selecting an executor.

Every import/load goes through core.data-loader first. Its selected adapter,

source/API validation, immutable artifact, Task Hook and approval checks are

authoritative. Catalog flags N prohibit inventing FSM/CSV support; they do not

prove a REST-backed Data Loader adapter exists. Missing or ambiguous adapter

evidence blocks the affected import before approval. Never substitute a generic

REST POST or reclassify the request to bypass that gate.

For a direct task REST operation explicitly selected outside import scope,

validate the payload and preserve the approved artifact, target, method, URI and

readback plan. Immediately before dispatch, verify that these still match the

approval record. validate_project_template_payload.py supports optional

--expected-payload-sha256 to check the task-local artifact; this check alone is

not execution authorization. Do not modify the artifact between verification

and handoff. Pass it through the supported shared client. The client parses and

serializes JSON; the approved data must remain unchanged, but whitespace and

wire-byte formatting are not the approval contract. Any payload, target, method,

URI or route change requires a new preview and approval.

The workflow's immutable preview must enumerate the complete ordered method/URI

list, exact body for each call, changed fields and child rows, preserved omissions,

artifact digest and independent readback plan. Prefer an atomic root POST when

the complete requested nested arrays validate; this describes one request, not

a documented rollback guarantee. An explicitly approved staged

plan must disclose partial-root impact. Later child creates require the selected

family's documented POST, returned parent URI, required fields and duplicate

checks; updates require a fresh baseline and mutable-field-only PATCH; child

deletes require a documented DELETE and exact returned child identity disclosed

in the preview. Approval is one business-change decision, not a request for the

customer to compare internal digests. No probe write or route change is permitted.

The consuming workflow captures status, safe returned identities, request UTC

window, endpoint and sanitized errors in task receipts through the existing

project services. --output saves response bytes only; it is not an error-log

or redaction option. Use it only for an approved response artifact permitted by

the active workflow; never persist raw customer-sensitive output as diagnostics.

Retain only correlation information actually exposed by the client. If required

evidence is unavailable, report the gap without inventing it. Stop on uncertain

or failed writes and reconcile through selected reads; never retry blindly.

Skill generation and local planning do not require a probe write. The active workflow supplies target identity, current operation evidence and required business context. Generic describe metadata cannot establish POST requiredness or authorize fields absent from the published request schema. Only fresh operation-specific POST evidence may require otherwise optional currency, work type or external task IDs. Supported names remain first-class values; a genuinely ID-only contract requires a proven resolver. Missing actual operation-required data or permission evidence blocks execution. Do not use an existing template contextual LOV to validate a new template.

After any rejected POST, discard that preview and approval. Retain the sanitized response correlation headers, exact UTC request window, and Fusion error. Do not call another structurally passing preflight production-ready or change fields automatically. Correct only a user-approved value or identified structural defect, rebuild the complete payload, produce new checksums, obtain fresh approval, submit once, and independently read back the returned template and tasks. If the target error is not actionable, return it and require user direction or target diagnostics before another write.

Implementation Notes

The reviewed 26C request constraints are in the operation contract snapshot. The validator checks the published root, nested and direct-child schemas as well as selected target metadata. Response-only IDs, audit fields and unrecognized UI/resource labels cannot become write fields through generic describe metadata. The source links and unresolved evidence boundaries are recorded in the static REST reference.

The Oracle Project Templates create contract and the target pod's projectTemplates/describe metadata both expose ProjectPlanType and ProjectPlanTypeId, not ProjectPlanTypeName. The published operation schema and target-exposed REST links are the authority for field and child handling; preserve omitted update fields and child rows.

Durable Artifacts and Review

Resolve project_id from the selected existing implementation project before preparation or execution; missing project identity is an input-validation blocker. Persist plans, validation results, immutable previews, approved package references, execution receipts and redacted failure diagnostics under project/{project_id}/artifacts/pillars/erp/project-financial-management/project-foundation/manage-project-templates/current/. Raw exports belong under project/{project_id}/exports/project-financial-management/project-foundation/manage-project-templates/. Never persist credentials or tokens there.

Use core.project-mgmt.artifact-version-manager for major new versions and confirmed minor updates, core.project-mgmt.artifact-registry-manager to register each durable artifact, and core.project-mgmt.project-state-manager to update only declared state fields and record the run under project/{project_id}/state/runs/. Persist each receipt before the next external call; append later statuses and retain partial failures, environment, operation, external IDs, artifact references and next action. Recover uncertain writes through supported reads; do not resubmit automatically. Record token usage using the manifest policy.

Required reviewers: responsible ERP Pillar Development Lead or SME, FSCR A-Team/core reviewer, and QA for validation/execution changes. Package readiness does not replace merge approval.

Local Validation Evidence

The payload regression suite is owned by

noship/tests/project-foundation/manage-project-templates.

It covers supported operations, malformed task identifiers, graph/date rules,

approval-bound artifact changes and persisted CLI failure results. Shared handoff checks are at

the functional-area test level.

Passing these offline tests does not prove a target adapter, privilege or live

reference is available; those remain request-specific execution prerequisites.

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.