Skip to content

feat(focus): @focus global-workspace tier (perseus_focus tool) (#689) #152

feat(focus): @focus global-workspace tier (perseus_focus tool) (#689)

feat(focus): @focus global-workspace tier (perseus_focus tool) (#689) #152

Workflow file for this run

name: Compose benchmark gate
# Guards Perseus's headline context-compiler claim: the compiled context must stay
# a large, deterministic token reduction with full answer coverage. If a change
# regresses the compiler (context bloats or drops a required fact), this fails.
# Fully offline, no LLM, no network. The full benchmark + methodology live in
# benchmark/compose/.
on:
push:
branches: [main, master]
paths:
- "src/perseus/**"
- "perseus.py"
- "scripts/build.py"
- "benchmark/compose/**"
- ".github/workflows/compose-gate.yml"
pull_request:
branches: [main, master]
paths:
- "src/perseus/**"
- "perseus.py"
- "scripts/build.py"
- "benchmark/compose/**"
- ".github/workflows/compose-gate.yml"
jobs:
compose-gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install deps
run: |
python -m pip install --upgrade pip
[ -f requirements-runtime.txt ] && pip install -r requirements-runtime.txt || true
pip install tiktoken
- name: Build perseus.py
run: python scripts/build.py
- name: Compose benchmark gate
run: python benchmark/compose/gate.py