Skip to content

Commit 55e8955

Browse files
committed
trace ace: launch V101 objective-level router
1 parent df2cc3e commit 55e8955

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Trace the Ace V101 objective-level router
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: [agent/trace-ace-mastery-events]
6+
paths:
7+
- 'competitions/trace_the_ace/v101_objective_level_router.py'
8+
- '.github/workflows/trace-ace-v101-objective-router.yml'
9+
10+
jobs:
11+
router:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 360
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
cache: pip
20+
- name: Install dependencies
21+
run: python -m pip install --disable-pip-version-check numpy pandas scipy scikit-learn gdown
22+
- name: Download frozen training data
23+
run: |
24+
set -euo pipefail
25+
gdown 1nOjremWhpZ_QKSLvZfGcNkS_C3kMMBUI -O transcripts.zip
26+
gdown 1EpqoamY0vFI2qE57R6wdqU5HwuoVk3Zz -O metadata.zip
27+
mkdir -p data/transcripts data/meta
28+
unzip -q transcripts.zip -d data/transcripts
29+
unzip -q metadata.zip -d data/meta
30+
- name: Resolve schemas
31+
run: |
32+
set -euo pipefail
33+
FEATURES=$(find data/meta -type f -name 'train_features*.csv' -print -quit)
34+
LABELS=$(find data/meta -type f -name 'train_labels*.csv' -print -quit)
35+
FIRST=$(find data/transcripts -type f -name '*.csv' -print -quit)
36+
TRANSCRIPTS=$(dirname "$FIRST")
37+
echo "FEATURES=$FEATURES" >> "$GITHUB_ENV"
38+
echo "LABELS=$LABELS" >> "$GITHUB_ENV"
39+
echo "TRANSCRIPTS=$TRANSCRIPTS" >> "$GITHUB_ENV"
40+
- name: Run V101 objective-level router
41+
run: |
42+
cd competitions/trace_the_ace
43+
python v101_objective_level_router.py \
44+
--features "../../$FEATURES" --labels "../../$LABELS" --transcripts "../../$TRANSCRIPTS" \
45+
--out ../../v101_objective_level_router.json
46+
- name: Show decision
47+
if: always()
48+
run: cat v101_objective_level_router.json
49+
- name: Upload V101 evidence
50+
if: always()
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: trace-ace-v101-objective-router
54+
path: v101_objective_level_router.json
55+
retention-days: 14

0 commit comments

Comments
 (0)