Work zones

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

Work zones is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Provides task-specific setup guidance for Work Zones under the Scheduling and Dispatch functional area.

How to use this skill

Skill file

Work Zones Setup Task Guidance

Purpose

Provides task-specific setup planning, routing, export, import, and validation guidance for Work Zones under Scheduling and Dispatch.

Setup Task Skill Contract

Usage

Use this skill when planning, sequencing, exporting, importing, or validating setup data for Work Zones under Scheduling and Dispatch.

Authorization Preconditions

Before execution, require environment-owner evidence that the selected principal

has Work Zone create or replace permission for the exact approved operation.

Successful GET access and preview approval do not establish write authorization.

Stop when authorization is missing or uncertain. These are capability prerequisites,

not assumed Oracle role or privilege-code names. No write probe is permitted to

establish authorization. Keep the selected environment and Field Service OAuth

scope checks in the existing routed authentication and execution services.

Setup Task Metadata

Execution Directions

CSV Export, Import, and Validation Workflow

CSVExportImportSupportedFlag is UNKNOWN, so this task is not marked as CSV export/import supported in the effective setup-task catalog.

Do not route CSV export work to shared.setup-export.task-level-export or CSV import work to core.data-loader unless live Fusion metadata or Oracle guidance confirms support. Use shared.validation.setup-data-validator only when a setup data artifact is available for review. Use shared.validation.reference-data-validator when the task depends on cross-pillar reference data.

Shared Field Service Orchestration

Start from pillars/cx/field-service/SKILL.md. The reusable lifecycle—route selection, current-state reads, immutable preview/checksum, approval binding, ordered write, redacted evidence, and GET verification—is owned only by pillars/cx/field-service/scripts/task_orchestration.py.

scripts/task_adapter.py owns Work Zones workbook mapping, Work Zone validation, OFSC Metadata paths, request payloads, and verification rules. scripts/run_work_zone.py is the only task entry point. Do not invoke the adapter or Core REST client directly.

Inputs

Execution Safety

Preflight

Before a preview or write, the runner validates the selected environment identity, the Work Zones workbook, required API fields, active/inactive status, unique case-insensitive keys, and the 50-character key limit. It then executes WZ.ENFORCE_DESIGN against the required yellow design-evidence columns before any current-state GET. This is an evidence-completeness gate: it does not falsely claim to prove live geography, assignment, or routing outcomes. travelArea is deprecated by OFSC and omitted from the workbook mapping and REST payload. The runner obtains a current-state GET baseline for every label; HTTP 404 selects collection POST creation, while an existing baseline selects singular PUT replacement. It then creates an immutable, redacted preview bound to the target environment and checksum.

Failure and Retry Behavior

Classify malformed workbook data as input validation, incomplete design evidence as a design-enforcement blocker, unsupported direction or contract gaps as catalog or metadata mismatch, request failures as Fusion API or transport failures, and unmatched approval as an approval blocker. Do not retry a live POST or PUT automatically. Stop on the first write or verification failure, retain only redacted evidence and an append-only run record under the selected project workspace, including only an allowlisted HTTP status, Fusion error code, or field when available, and require a fresh preview and explicit approval before another attempt. See ora-resource/ora_error_handling.md for the task-local disclosure and refusal rules.

Outputs

Implementation Notes

Use the parent functional-area skill cx.field-service.scheduling-and-dispatch for functional-area sequencing and scope decisions. Track token usage for any generated project artifact or skill-run record using the manifest policy.

Runner service selection

The task runner accepts --service field-service, which is also its default

and only supported service. Task REST preflight, approved writes, and read-back

use fs_restBaseUrl and fs_scope. The route metadata and runner result identify

service: field-service; the runner does not perform BOSS catalog discovery.

New-project prevalidation and Run Book binding are separate project workflow

steps. This service option does not skip those gates or authorize setup writes.

Workbook Intake Service

Workbook adapters use the local guarded XLSX primitive in

pillars/cx/field-service/scripts/guarded_xlsx.py for bounded ZIP/XML parsing.

Task-specific field mapping and business rules remain in this package.

The reader performs no external calls and does not select an execution route

or grant load approval.

Caller-Only Exact Preview

Use the task runner with --mode preview --include-exact-preview to return

exactPreview (including the exact requests and checksum) to the active caller

for approval. The option is rejected in execute mode before workflow calls.

Default output and durable evidence remain redacted. Keep captured caller output

in private OS-temporary storage; never copy request bodies or current-state

baselines into project evidence. Review the exact target, methods, paths, headers

and bodies before granting checksum-bound execution approval.

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.