Task hook

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

Task hook is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Dispatch task-level validation for Data Loader.

How to use this skill

Skill file

Data Loader Task Hook

Purpose

Dispatch the selected task's Data Loader validation and preview lifecycle while

preserving the supplied task identity, rule order, approval envelope, and final

archive digest.

Preflight

Before any command, require the supplied task context and an exact supported

route. For data-load, validate the selected task name and positive sequence;

before building a preview, require the expected ordered rule results and archive

SHA-256. Validate the preview when recording approval, and require its matching

approval envelope before verifying the final archive. Fail closed on missing,

ambiguous, inconsistent, or unrecognized inputs without selecting another task,

route, or execution mechanism.

the final artifact.

Redaction

Never include credentials, access tokens, or archive contents in Task Hook

output or diagnostics. Preserve the existing user-visible preview fields and

return only the validation, approval, and digest evidence defined by the

selected command.

Use this as the single task-level dispatcher after the workflow has supplied

the selected task context. Do not modify or

reinterpret that task context.

../task-validator/scripts/task_validator.py and

../references/task-rule-registry-execution.md. Use this Task Hook's

build-data-load-preview, approve-data-load-preview, and

verify-approved-data-load-archive commands for the preview lifecycle;

callers must not invoke Task Validator commands directly. Continue only with

an approved envelope that matches the final upload artifact SHA-256.

Never scan arbitrary Skills, reselect a task, or call Run Book REST APIs.

Data Loader Preview Lifecycle

Handle data-load's returned taskValidation.taskValidationStatus before continuing:

returned executionGuide and rule files and execute applicable nodes using

the registry prerequisites and transitions. Declared read-only Fusion GETs

through the shared REST client are part of this selected workflow. Record

evidence and ordered ruleResults. This assisted execution step does not

require a separate evaluator command; its absence is not a workflow gap.

and original failure evidence, require literal

allowReadinessOverride: true, and execute remaining applicable rules.

not_applicable and continue without requesting a user override.

or status. Do not substitute a different route.

ready is registry readiness, not completed validation. Follow the returned

nextAction; only evaluated results may be supplied to preview creation.

After data-load resolves the task plan and the non-write rules have been

evaluated, call build-data-load-preview --input-stdin with JSON containing

taskContextPath, taskName, sequence, finalData, and

ordered ruleResults. finalData.archiveSha256 is required. Rule exceptions

remain visible as status: overridden with their user waiver and reason.

Only after explicit user approval, call approve-data-load-preview --input-stdin

with the preview. Then call `verify-approved-data-load-archive --input-stdin

--archive <final-zip>` with the preview and approval. Its

taskValidationEnvelope is the exact JSON object to persist and pass to

core.data-loader as --task-validation-envelope.

Never manually create, reconstruct, or modify Task Hook preview, approval, or

taskValidationEnvelope outputs, including approval flags, archive digests, or

Run Book bindings. Obtain these outputs only through the prescribed Task Hook

preview, approval, and archive-verification commands, and persist and pass the

returned taskValidationEnvelope unchanged. If it is missing, invalid, or no

longer matches the artifact, stop submission and repeat the required Task Hook

validation and approval steps. Never substitute direct Task Validator calls.

Project Evidence

artifacts/core/data-loader/task-hook/runs/{run_id}/validation-result.json.

core.project-mgmt.artifact-registry-manager.

lifecycle using core.project-mgmt.project-state-manager; do not create one

run record per Task Hook command.

core/project-mgmt/scripts/token_usage_logger.py.

successful validation-result artifact.

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.