Alert Triage: environment #2, built end to end by the pipeline
ci / web (push) Successful in 2m43s
ci / python (push) Successful in 2m36s

The first environment shipped through .claude/workflows/new-environment.js:
specification, three adversarial reviews (all 'fixable', none fatal), the
Python environment, the TypeScript port, captured rollouts, and the demo page.
Eleven agents, no errors.

The proof that the platform scales is one line long. Alert Triage has a
completely different shape from Word Five — JSON actions, priced lookups, an
analyst screen instead of a grid — and the only change under
src/components/demo/ is a comment edit, because the isolation lint refused the
word "wordle" there. Zero shell code changed. 415 contract checks now pass
against two demos, up from 206 against one.

The environment is honest by construction. Every alert is synthetic, generated
from the seed, and the banner saying so sits inside the board surface. Two of
the eleven scenario templates are hidden-suspicious: generated by the same code
as their benign twin with the signal overlaid only in lookup data, so the free
screen is identically distributed and a screen-only policy STRUCTURALLY cannot
tell them apart. The probe ladder measures it: `fast` catches 0.0 of hidden
seeds. That is the counterweight made real rather than asserted.

Twelve policies, thirteen ladder assertions, a genuine three-way trade:

  fast      0.846   wins hours (0.85), misses every hidden case
  targeted  0.894   wins the shipped total
  thorough  0.820   wins evidence (1.00), spends 2.9 hours

None dominates. 92 Python tests, 35 TypeScript tests, 65 fixtures replaying at
delta 0, and conformance gated on world + scorer + protocol so the browser shows
the same alert for ?seed= that Python generated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019mt6sHQHEnEYrJZvoMCJSB
This commit is contained in:
karti-ai
2026-08-28 19:48:36 -07:00
parent 1239dc7034
commit 2dfa96939e
91 changed files with 13763 additions and 182 deletions
+31 -4
View File
@@ -10,8 +10,9 @@ A blended float hides the failure this is built to catch: a component that is
flat across every policy is measuring nothing, and it will still move the total
because the other components move.
Run: uv run python envs/probe.py
Exits non-zero on any violated assertion.
Run: uv run python envs/probe.py [--taskset wordle-five|alert-triage]
Runs every registered taskset by default. Exits non-zero on any violated
assertion.
"""
from __future__ import annotations
@@ -20,6 +21,7 @@ import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).parent / "wordle_five"))
sys.path.insert(0, str(Path(__file__).parent / "alert_triage"))
from wordle_five import solver as S # noqa: E402
from wordle_five.engine import ( # noqa: E402
@@ -32,6 +34,8 @@ from wordle_five.engine import ( # noqa: E402
from wordle_five.protocol import parse_guess # noqa: E402
from wordle_five.reward import ROLES, WEIGHTS, Episode, metrics, score, total # noqa: E402
from alert_triage import ladder as alert_triage_ladder # noqa: E402
SEEDS = list(range(16))
COMPONENTS = ("solved", "economy", "consistency")
@@ -162,7 +166,7 @@ def play(policy, seed: int) -> Episode:
)
def run() -> int:
def run_wordle() -> int:
print(f"Probing wordle-five over {len(SEEDS)} seeds\n")
results: dict[str, dict[str, float]] = {}
extra: dict[str, dict[str, float]] = {}
@@ -243,5 +247,28 @@ def run() -> int:
return 0
# Each taskset registers its ladder here. The alert-triage rungs live in
# envs/alert_triage/alert_triage/ladder.py beside the policies they probe.
TASKSETS = {
"wordle-five": run_wordle,
"alert-triage": alert_triage_ladder.run,
}
def main(argv: list[str]) -> int:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--taskset", choices=sorted(TASKSETS), action="append")
args = parser.parse_args(argv)
chosen = args.taskset or list(TASKSETS)
status = 0
for i, name in enumerate(chosen):
if i:
print("\n" + "=" * 78 + "\n")
status |= TASKSETS[name]()
return status
if __name__ == "__main__":
raise SystemExit(run())
raise SystemExit(main(sys.argv[1:]))