Proactive task validator

From Simplified-Reasoning/Pi-Bench · View interactive version

Proactive task validator is an AI agent skill from the GitHub repository Simplified-Reasoning/Pi-Bench. Use this skill when validating proactive task datasets, especially when you need to check whether a task's checklist is supported by current hidden intent, dependency intents, and not satisfiable from the current prompt alone. Generates a validation report for a dataset root containing episode.yaml

How to use this skill

Skill file

Proactive Task Validator

Use this skill when the user wants a complete proactive task validation workflow, not just a structural lint pass.

This skill is for validating whether a dataset really satisfies the three-step task validation flow:

  1. current initial_input + current hidden_intent should satisfy checklist
  2. current initial_input + dependency task intents should satisfy checklist
  3. current initial_input only should not satisfy checklist

Core Isolation Rule

Validation must be organized by dependency group, not by isolated task file order.

A group means:

To avoid checklist leakage:

When the platform supports subagents, this skill should use parallel subagents at the group level.

What this skill does

This skill combines:

  1. automatic extraction of validation packets
  2. structural checks
  3. Codex review of Step 1 / Step 2 / Step 3
  4. a final written verdict for each task

The script is only the first half of the workflow.

The second half is mandatory: Codex must read the generated packet and complete the review verdicts.

When to use it

Use this skill when a dataset follows this structure:

The script is best for:

Required Workflow

Phase 1. Generate validation packets

Run:

python skills/proactive-task-validator/scripts/validate_task_dataset.py \
  --root /abs/path/to/dataset \
  --output /abs/path/to/report.md \
  --packets-dir /abs/path/to/packets \
  --manifest /abs/path/to/manifest.json

This produces a report with:

Phase 2. Build dependency groups

Before judging, Codex must group tasks by validation target.

For each target task:

Do not merge multiple unrelated groups into one reasoning context if that would leak checklist expectations across tasks.

Phase 3. Run subagents in parallel for group outputs

When subagents are available, use them.

This is not optional hand-holding from the user.

After packet generation, Codex should proceed to subagent execution automatically.

Do not wait for the user to remind you to launch subagents.

Required execution pattern:

  1. Spawn one subagent per validation group.
  2. Run multiple groups in parallel when possible.
  3. Give each subagent only:
  1. Do not give the subagent the checklist.
  2. Ask the subagent to produce candidate outputs for Step 1 / Step 2 / Step 3.
  3. Ask the subagent to write those outputs back into that group's subagent_outputs.template.json.

Write-scope rule for this phase:

This phase is for output generation only.

The reason for this design:

Phase 4. Perform final checklist judging centrally

After all subagents finish producing outputs, the main Codex agent performs the final checklist judging.

At this stage, Codex may read:

Codex then reviews each task and replaces the TODO verdicts.

For each task:

  1. Read the task packet in the generated report.
  2. Read the candidate outputs from the subagent.
  3. Read the original task.yaml if needed for context.
  4. Judge:
  1. Write short notes explaining the reason.
  2. Replace:

Checklist judging must be explicit and itemized.

Do not only say "roughly satisfies the checklist" or "fails because information is missing".

For each validated task, include a point-by-point checklist review that states:

The expected final labels are:

If you want to pre-fill returned subagent outputs back into the report before final judgment, run:

python skills/proactive-task-validator/scripts/merge_subagent_outputs.py \
  --report /abs/path/to/report.md \
  --manifest /abs/path/to/manifest.json \
  --output /abs/path/to/reviewed_report.md

Phase 5. Produce a final reviewed report

The final deliverable is not the raw script output.

The final deliverable is the reviewed Markdown report with:

If the user asked to validate only part of a dataset, the reviewed report must clearly mark the scope as partial.

Do not imply that unreviewed tasks were fully validated.

Phase 6. Provide repair guidance

Validation does not stop at verdicts when the user is auditing or improving a dataset.

After producing the reviewed report, Codex should also provide:

  1. repair angles
  2. a revised task design proposal

This should be written either:

The repair guidance should be concrete, not generic.

For each failed or weak task, include:

Phase 7. Apply the repairs

When the user wants dataset improvement rather than review only, Codex should continue after proposing the repair plan.

The default behavior is:

  1. generate the reviewed report
  2. generate concrete repair guidance
  3. have the main agent apply the approved repair direction to the dataset files in scope
  4. if feasible, re-run validation on the updated tasks

Do not stop after listing suggested fixes when the user clearly wants the dataset updated.

The main agent should make the edits directly unless the user explicitly asks to stop at recommendations.

If multiple repair options exist:

If the repair would materially change task intent or benchmark scope, call that out before editing.

Subagent policy in this phase:

What the script validates automatically

What Codex must judge manually

The script does not replace the semantic validation step.

Codex must still determine:

This manual judgment is part of the skill, not an optional extra.

Subagents are used to generate isolated candidate answers.

The main agent is responsible for final scoring and verdict writing.

Output

The final reviewed report should contain:

When the user is using validation to improve the dataset, also include:

Notes

Codex Orchestration Protocol

When Codex is actually running this skill end-to-end, use this protocol:

  1. Run validate_task_dataset.py with:
  1. Read manifest.json.
  2. Select validation targets in batches of 3.
  3. Spawn 3 subagents in parallel, one per target group.
  4. For each subagent:
  1. Wait for the batch to finish.
  2. Write the returned outputs into that group's subagent_outputs.template.json.
  3. After all groups are complete, run merge_subagent_outputs.py.
  4. The main agent then reads the merged report and performs final checklist judging.
  5. Export the reviewed report.
  6. Without waiting for additional user prompting, provide repair guidance for any failed, weak, or non-applicable tasks when the user's goal is dataset improvement.
  7. Unless the user asked for review only, apply the repair plan to the in-scope dataset files.
  8. If practical, re-run validation for the updated tasks and attach the post-fix result.

Hard rule:

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.