#!/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/01_Division_Commander_Guidance_v1.pdf" || { echo "MISSING INPUT: /app/attachments/01_Division_Commander_Guidance_v1.pdf absent or empty" >&2; exit 1; } test -s "/app/attachments/02_Rapid_Armored_Gunnery_Qualification_Program_v1.pdf" || { echo "MISSING INPUT: /app/attachments/02_Rapid_Armored_Gunnery_Qualification_Program_v1.pdf absent or empty" >&2; exit 1; } test -s "/app/attachments/03_Weekly_Gunnery_Schedule.xlsx" || { echo "MISSING INPUT: /app/attachments/03_Weekly_Gunnery_Schedule.xlsx absent or empty" >&2; exit 1; } test -s "/app/attachments/04_Abrams_Crew_Qualification_Tracker.xlsx" || { echo "MISSING INPUT: /app/attachments/04_Abrams_Crew_Qualification_Tracker.xlsx absent or empty" >&2; exit 1; } test -s "/app/attachments/05_Bradley_Crew_Qualification_Tracker.xlsx" || { echo "MISSING INPUT: /app/attachments/05_Bradley_Crew_Qualification_Tracker.xlsx absent or empty" >&2; exit 1; } test -s "/app/attachments/06_Range_Ammo_Evaluator_Status_v1.pdf" || { echo "MISSING INPUT: /app/attachments/06_Range_Ammo_Evaluator_Status_v1.pdf absent or empty" >&2; exit 1; } test -s "/app/attachments/07_Maintenance_and_Crew_Availability_Report_v1.pdf" || { echo "MISSING INPUT: /app/attachments/07_Maintenance_and_Crew_Availability_Report_v1.pdf absent or empty" >&2; exit 1; } test -s "/app/attachments/08_Battalion_Training_Updates_15Feb2019_v1.pdf" || { echo "MISSING INPUT: /app/attachments/08_Battalion_Training_Updates_15Feb2019_v1.pdf absent or empty" >&2; exit 1; } test -s "/app/attachments/09_Division_Master_Gunner_Weekly_Working_Notes_v1.pdf" || { echo "MISSING INPUT: /app/attachments/09_Division_Master_Gunner_Weekly_Working_Notes_v1.pdf absent or empty" >&2; exit 1; } test -s "/app/attachments/10_Higher_Headquarters_Training_Notes_v1.pdf" || { echo "MISSING INPUT: /app/attachments/10_Higher_Headquarters_Training_Notes_v1.pdf absent or empty" >&2; exit 1; } mkdir -p "$(dirname "/app/outputs/report.docx")" cp "/solution/golden/20190215_1ID_WAR_U.docx" "/app/outputs/report.docx"