Skip to content

Audit and backfill scored-interfaces.json coverage across all 70 tasks - #104

Closed
yiwenxx wants to merge 5 commits into
TIGER-AI-Lab:mainfrom
yiwenxx:feat/audit-scored-interface-contracts
Closed

yiwenxx wants to merge 5 commits into
TIGER-AI-Lab:mainfrom
yiwenxx:feat/audit-scored-interface-contracts

Conversation

@yiwenxx

@yiwenxx yiwenxx commented Nov 26, 2026

Copy link
Copy Markdown

Note: Stacked on top of PR #100 (fix/unify-task-instructions, commit 357d1d5).

Summary

Implements Phase A contract standardization across all 70 WebsiteBench tasks so agent-visible scored-interfaces.json contracts accurately cover the local API/form endpoints exercised by T1 (task-suite.json) and T3 (obligations.json active business_probe & custom T3 Python /api/* checks), without modifying any of the 91 site-specific Python verifier modules or src/websitebench/websitebench-v1.json.

Changes

  1. Add scripts/audit_contracts.py (deterministic contract extractor, auditor, and --sync backfiller):
    • Extracts tested local endpoints from T1 op: api actions, active obligations.json business_probe entries (only when invoked by cicd-suite.json), and custom T3 Python /api/* calls via AST inspection with HTTP method inference (filtering predicate guards such as startswith, negative probe paths, static assets, and management_probes/no_payment_probes refusal paths).
    • Normalizes concrete fixture IDs, UUIDs, ISO weeks, SKUs, template expressions (${...}), and entity slugs into stable {id}/{slug}/{week}/{sku}/{model}/{color}/{group} patterns with zero fixture value leaks.
  2. Clean up & backfill environment/seed/scored-interfaces.json across 65 modified tasks:
    • Replace 11 obsolete /__websitebench/health declarations (unexercised by task-suite.json or cicd*) with /healthz (1password-web, 33, ace-hardware, airtable, amazon-home-services, aspca-pet-insurance, bean-box, beeradvocate, blinkist, crumbl-cookies, leetcode), while retaining /__websitebench/health on boardgamegeek and target where tests still reference it.
    • Backfill 348 non-spoiler scored-interfaces.json entries across 62 tasks and merge missing tested HTTP methods into existing exact-path entries.
  3. Enforce contract schema & coverage in scripts/check_tasks.py and add unit tests:
    • Validate every scored-interfaces.json entry structure (6 required fields, valid HTTP methods, no duplicate IDs), reject obsolete /__websitebench/health entries, and verify all T1/active-T3 extracted endpoints are covered.
    • Add tests/test_audit_contracts.py and extend tests/test_check_tasks.py.

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 — 34/35 pass on Windows (the single failure test_checker_does_not_change_task_contents is the pre-existing POSIX 0o111 executable-bit check on Windows)

tuxyw123 added 5 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 commented Nov 28, 2026

Copy link
Copy Markdown
Author

Consolidated into #100 (fix/unify-task-instructions now includes commit de05071).

@yiwenxx yiwenxx closed this Nov 28, 2026
@yiwenxx
yiwenxx deleted the feat/audit-scored-interface-contracts branch November 28, 2026 12:15
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