chore: add mission infrastructure for execution loop validation system

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
gsxdsm
2026-04-11 16:06:24 -07:00
parent 87e22f16a0
commit 49ab322ebf
7 changed files with 391 additions and 0 deletions

20
.factory/init.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
# Mission init script — idempotent environment setup
# Runs at the start of each worker session
MISSION_ROOT="$(git -C "$(dirname "$0")" rev-parse --show-toplevel 2>/dev/null || echo "$(dirname "$0")/../..")"
echo "[init] Mission: Enhance Mission Execution Loop"
echo "[init] Root: $MISSION_ROOT"
# Ensure dependencies are installed
if [ ! -d "$MISSION_ROOT/node_modules" ]; then
echo "[init] Installing dependencies..."
cd "$MISSION_ROOT" && pnpm install --frozen-lockfile
else
echo "[init] Dependencies already installed."
fi
echo "[init] Environment ready."