#!/bin/bash # Simple toolchain verification script # Creates a verified artifact proving tool calls work correctly set -e OUTPUT_DIR="/root/.hermes/wizard-outputs/spark" ARTIFACT="$OUTPUT_DIR/artifact.txt" TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") # Create artifact with verifiable content cat > "$ARTIFACT" << EOF toolchain-verified:true timestamp:$TIMESTAMP work-done:snippet-complete EOF echo "Artifact created at: $ARTIFACT" echo "Contents:" cat "$ARTIFACT" # Verify the artifact exists and is valid if [[ -f "$ARTIFACT" ]] && grep -q "toolchain-verified:true" "$ARTIFACT"; then echo "VERIFICATION: PASSED" exit 0 else echo "VERIFICATION: FAILED" exit 1 fi