#!/usr/bin/env bash # Oracle solution: the expert golden report IS the correct deliverable. Copy it # binary-safe to the expected output path. The verifier grades it blind (no # reference report) and it should score >= 0.9: a lower score means the golden # does not meet its own rubric. On rubric-less tasks, the verifier of this # oracle run also derives the draft rubric for expert review. set -euo pipefail # Assert the agent's input files actually localized. The oracle copies the # golden and never reads the attachments, so a silent localization failure # would still pass golden-vs-golden and ship a task that real agents see with # an empty /app/attachments (a false 0.0). Fail the calibration gate loudly. test -s "/app/attachments/999AW XP_Exercise_Notes.xlsx" || { echo "MISSING INPUT: /app/attachments/999AW XP_Exercise_Notes.xlsx absent or empty" >&2; exit 1; } test -s "/app/attachments/999AW CEMP - EOC Seating Chart.docx" || { echo "MISSING INPUT: /app/attachments/999AW CEMP - EOC Seating Chart.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/999AW AtHoc Messages.docx" || { echo "MISSING INPUT: /app/attachments/999AW AtHoc Messages.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/999AW Initial SITREP.docx" || { echo "MISSING INPUT: /app/attachments/999AW Initial SITREP.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/Exercise Inject #2 - AW Commander Message.docx" || { echo "MISSING INPUT: /app/attachments/Exercise Inject #2 - AW Commander Message.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/Exercise Inject #1 - SALUTE Report.docx" || { echo "MISSING INPUT: /app/attachments/Exercise Inject #1 - SALUTE Report.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/999AW Exercise SIGACTS Timeline.docx" || { echo "MISSING INPUT: /app/attachments/999AW Exercise SIGACTS Timeline.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/After Action Report Template.docx" || { echo "MISSING INPUT: /app/attachments/After Action Report Template.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/Email #2 between 999AW_IG and 999AW_XP.docx" || { echo "MISSING INPUT: /app/attachments/Email #2 between 999AW_IG and 999AW_XP.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/Email #1 between 999AW_IG and 999AW_XP.docx" || { echo "MISSING INPUT: /app/attachments/Email #1 between 999AW_IG and 999AW_XP.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/EOC References.docx" || { echo "MISSING INPUT: /app/attachments/EOC References.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/999AW Exercise Participant Roster.docx" || { echo "MISSING INPUT: /app/attachments/999AW Exercise Participant Roster.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/Exercise Inject #3 - Threat Eliminated.docx" || { echo "MISSING INPUT: /app/attachments/Exercise Inject #3 - Threat Eliminated.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/EOC Director Notes.docx" || { echo "MISSING INPUT: /app/attachments/EOC Director Notes.docx absent or empty" >&2; exit 1; } test -s "/app/attachments/Military Operations - Selection Criteria (MDMP).docx" || { echo "MISSING INPUT: /app/attachments/Military Operations - Selection Criteria (MDMP).docx absent or empty" >&2; exit 1; } mkdir -p "$(dirname "/app/outputs/report.docx")" cp "/solution/golden/Golden Report - 999AW After Action Report.docx" "/app/outputs/report.docx"