Spaces:
Running
Running
Xiaochuang Yuan commited on
Commit ·
d4148f9
1
Parent(s): 060f765
Bucket A: drop tests referencing archived artofwar-decoy-sacrifice
Browse filesThe pack was moved to scenarios/packs/_archive/ but tests still
referenced it as if active.
- Mark _archive/artofwar-decoy-sacrifice.yaml status: quarantine so
scenarios/loader.discover_packs() (and the Scenarios catalog in
app.py) skip it from the active set.
- tests/test_artofwar.py: drop the pack from the FAMILY parametrize
list and remove test_decoy_hard_loss_cap_allows_bait_not_army.
- tests/test_hard_tier.py: drop the pack from UPGRADED.
The sister art-of-war packs (artofwar-indirect-approach,
artofwar-lure-the-tiger, artofwar-sequenced-citadel) cover the
decoy/sacrifice idiom in the active catalog.
openra_bench/scenarios/packs/_archive/artofwar-decoy-sacrifice.yaml
CHANGED
|
@@ -20,6 +20,12 @@ meta:
|
|
| 20 |
corridor, accepting negative short-term reward for the delayed
|
| 21 |
arrival of the main payload.
|
| 22 |
author: openra-bench
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
base_map: rush-hour-arena
|
| 25 |
|
|
|
|
| 20 |
corridor, accepting negative short-term reward for the delayed
|
| 21 |
arrival of the main payload.
|
| 22 |
author: openra-bench
|
| 23 |
+
status: quarantine
|
| 24 |
+
quarantine_reason: archived to _archive/ — pack retired from the active
|
| 25 |
+
catalog; on disk for explicit --packs / historical reference. The
|
| 26 |
+
sister art-of-war packs (artofwar-indirect-approach / -lure-the-tiger
|
| 27 |
+
/ -sequenced-citadel) cover the decoy/sacrifice idiom in the active
|
| 28 |
+
set.
|
| 29 |
|
| 30 |
base_map: rush-hour-arena
|
| 31 |
|
tests/test_artofwar.py
CHANGED
|
@@ -20,7 +20,9 @@ from openra_bench.scenarios.win_conditions import WinContext, evaluate
|
|
| 20 |
|
| 21 |
PACKS = Path(__file__).parent.parent / "openra_bench" / "scenarios" / "packs"
|
| 22 |
FAMILY = [
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
"artofwar-indirect-approach",
|
| 25 |
"artofwar-lure-the-tiger",
|
| 26 |
"artofwar-sequenced-citadel",
|
|
@@ -120,14 +122,9 @@ def test_indirect_easy_short_lane_loss_fails_and_timeout_loses():
|
|
| 120 |
assert 4001 <= 93 + 90 * (c.max_turns - 1)
|
| 121 |
|
| 122 |
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
# Redesigned: far-east objective (112,20); hard caps losses at 2
|
| 127 |
-
# (only the two bait jeeps may be spent — burning a tank fails).
|
| 128 |
-
at_obj = [(112, 20)] * 3
|
| 129 |
-
assert evaluate(c.win_condition, _ctx(at_obj, 5000, lost=2)) is True
|
| 130 |
-
assert evaluate(c.win_condition, _ctx(at_obj, 5000, lost=3)) is False
|
| 131 |
|
| 132 |
|
| 133 |
def test_lure_the_tiger_win_requires_preserved_main_body_in_budget():
|
|
|
|
| 20 |
|
| 21 |
PACKS = Path(__file__).parent.parent / "openra_bench" / "scenarios" / "packs"
|
| 22 |
FAMILY = [
|
| 23 |
+
# artofwar-decoy-sacrifice was archived (see
|
| 24 |
+
# openra_bench/scenarios/packs/_archive/); the sister packs cover
|
| 25 |
+
# the decoy/sacrifice idiom in the active set.
|
| 26 |
"artofwar-indirect-approach",
|
| 27 |
"artofwar-lure-the-tiger",
|
| 28 |
"artofwar-sequenced-citadel",
|
|
|
|
| 122 |
assert 4001 <= 93 + 90 * (c.max_turns - 1)
|
| 123 |
|
| 124 |
|
| 125 |
+
# test_decoy_hard_loss_cap_allows_bait_not_army was removed when
|
| 126 |
+
# artofwar-decoy-sacrifice was archived (file moved to _archive/ and
|
| 127 |
+
# marked status: quarantine).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
|
| 129 |
|
| 130 |
def test_lure_the_tiger_win_requires_preserved_main_body_in_budget():
|
tests/test_hard_tier.py
CHANGED
|
@@ -28,7 +28,8 @@ UPGRADED = [
|
|
| 28 |
"adversarial-duel",
|
| 29 |
# adversarial-skirmish/-siege consolidated into adversarial-duel
|
| 30 |
# (quarantined) — see SCENARIO_QUALITY.md de-dup.
|
| 31 |
-
|
|
|
|
| 32 |
"artofwar-indirect-approach",
|
| 33 |
"artofwar-lure-the-tiger",
|
| 34 |
"artofwar-sequenced-citadel",
|
|
|
|
| 28 |
"adversarial-duel",
|
| 29 |
# adversarial-skirmish/-siege consolidated into adversarial-duel
|
| 30 |
# (quarantined) — see SCENARIO_QUALITY.md de-dup.
|
| 31 |
+
# artofwar-decoy-sacrifice archived (moved to _archive/, status:
|
| 32 |
+
# quarantine); the sister art-of-war packs cover the idiom.
|
| 33 |
"artofwar-indirect-approach",
|
| 34 |
"artofwar-lure-the-tiger",
|
| 35 |
"artofwar-sequenced-citadel",
|