Skip to content

Unify task instructions, normalize verifier contracts, and backfill scored-interfaces.json across all 70 tasks - #100

Open
yiwenxx wants to merge 5 commits into
TIGER-AI-Lab:mainfrom
yiwenxx:fix/unify-task-instructions
Open

yiwenxx wants to merge 5 commits into
TIGER-AI-Lab:mainfrom
yiwenxx:fix/unify-task-instructions

Conversation

@yiwenxx

@yiwenxx yiwenxx commented Nov 24, 2026 •

Copy link
Copy Markdown

Summary

Consolidates PR #100 and PR #104 into a single PR covering all 70 WebsiteBench tasks: unifies instruction.md, normalizes shared trusted_check.py runtime checks without brittle coupling (including real Mailpit mail delivery and $DATA_DIR sandbox payment persistence), standardizes browser-contract.json, and audits/backfills scored-interfaces.json coverage against T1 and active T3 contracts while preserving full Oracle/manifest compatibility (46,916 case IDs unchanged).

Changes

  1. Normalize shared assertions & keep non-brittle real runtime verification in trusted_check.py (mirrored across all 70 tasks):
    • Retain non-intrusive $DATA_DIR / restart-persistence checks (_data_dir, _migration_preserves, _migration_idempotent) without PRAGMA user_version = 0 tampering, relax 4xx refusal matching in _no_external_effects, remove private backend/runtime.json coupling, and allow lazy session cookie issuance in _loopback_session.
    • Restore real local Mailpit delivery verification (_mail for mailbox-purposes-use-only-local-sidecar) and real $DATA_DIR sandbox payment execution (_sandbox_payment for local-sandbox-payment-never-creates-live-charge) without brittle response-copy matching, with dynamic CSRF token refresh and safe _local_payment_surface fallback when evaluator_secret is absent or an unscoped static csrf lacks csrf_from.
  2. Remove site-specific x-websitebench-site header observations:
    • Strip the 36 x-websitebench-site response-header observations from asana, beeradvocate, blinkist, and medium tests/fixtures/task-suite.json.
  3. Unify instruction.md and standardize browser-contract.json across all 70 tasks:
    • Unify all 70 instruction.md files to a single canonical task specification and update docs/task-format.md.
    • Set explicit integrations.mail.mode (56 api, 14 disabled) and integrations.payment.mode (38 local-sandbox, 32 disabled) across all 70 browser-contract.json files, remove contradictory mailbox rules on mail-disabled tasks, and fix leetcode candidate_ready_path to /healthz.
  4. Audit and backfill environment/seed/scored-interfaces.json coverage:
    • Add scripts/audit_contracts.py to extract tested local endpoints from T1 task-suite.json, active T3 obligations.json probes (business_probe, mail_probe, and payment_probe with non-secret prerequisites), and custom T3 Python /api/* calls via AST inspection, normalizing fixture IDs/slugs into {id}/{slug}/etc. without leaking values or secrets.
    • Ensure scored-interfaces.json exists across all 70 tasks, clean obsolete /__websitebench/health declarations, backfill uncovered tested endpoints/methods (including mail/payment routes), and enforce schema + coverage checks in scripts/check_tasks.py.
  5. Unit tests:
    • Add tests/test_audit_contracts.py and extend tests/test_check_tasks.py (including TrustedCheckMailAndPaymentTest).

Verification

  • python scripts/audit_contracts.py --check — all 70 tasks OK (exit code 0)
  • python scripts/check_tasks.py --code-only — all 70 tasks PASS (exit code 0)
  • ruff check scripts src tests & ruff format --check scripts src tests — pass
  • python -m unittest tests/test_audit_contracts.py tests/test_check_tasks.py -v — 37/38 pass on Windows (only test_checker_does_not_change_task_contents fails due to Windows NTFS lacking POSIX .sh execute bits; awaits Linux CI approval)

tuxyw123 added 3 commits November 24, 2026 21:23
…all 70 tasks

- Redirect legacy intrusive/narrow assertions in shared trusted_check.py to non-intrusive v2 handlers (eliminating PRAGMA user_version=0 tampering, single-status management refusal splits, evaluator_secret dependencies, and candidate backend/runtime.json coupling while keeping all 46,916 case IDs and oracle compatibility intact)
- Remove site-specific x-websitebench-site header observations from the 4 affected task suites (asana, beeradvocate, blinkist, medium)
- Standardize browser-contract.json (add integrations.mail/payment modes, fix leetcode candidate_ready_path, remove site-specific spoiler keys/rules) and ensure scored-interfaces.json exists across all 70 tasks
- Replace all 70 task instruction.md files with a single canonical instruction and enforce contract/instruction parity in scripts/check_tasks.py
…t rules

- Remove redundant mail API/SMTP payload details and unreferenced payment integration contract wording from shared instruction.md; move full mail delivery details to mail-enabled browser-contract.json rules
- Remove contradictory trial mailbox exploration rule from the 13 mail-disabled browser-contract.json files and enforce this check in scripts/check_tasks.py + tests/test_check_tasks.py
- Use absolute /app/repo/compile.sh and /app/repo/executable deliverable paths, backtick all commands/tools/env vars, remove procedural workflow steps and preflight helper instructions, and simplify internal framework jargon
…istence checks, and strengthen check_tasks.py
@yiwenxx yiwenxx changed the title Unify task instructions and normalize verifier/seed contracts across all 70 tasks Unify task instructions, normalize verifier contracts, and backfill scored-interfaces.json across all 70 tasks Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant