Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidates PR #100 and PR #104 into a single PR covering all 70 WebsiteBench tasks: unifies
instruction.md, normalizes sharedtrusted_check.pyruntime checks without brittle coupling (including real Mailpit mail delivery and$DATA_DIRsandbox payment persistence), standardizesbrowser-contract.json, and audits/backfillsscored-interfaces.jsoncoverage against T1 and active T3 contracts while preserving full Oracle/manifest compatibility (46,916case IDs unchanged).Changes
trusted_check.py(mirrored across all 70 tasks):$DATA_DIR/ restart-persistence checks (_data_dir,_migration_preserves,_migration_idempotent) withoutPRAGMA user_version = 0tampering, relax 4xx refusal matching in_no_external_effects, remove privatebackend/runtime.jsoncoupling, and allow lazy session cookie issuance in_loopback_session._mailformailbox-purposes-use-only-local-sidecar) and real$DATA_DIRsandbox payment execution (_sandbox_paymentforlocal-sandbox-payment-never-creates-live-charge) without brittle response-copy matching, with dynamic CSRF token refresh and safe_local_payment_surfacefallback whenevaluator_secretis absent or an unscoped staticcsrflackscsrf_from.x-websitebench-siteheader observations:x-websitebench-siteresponse-header observations fromasana,beeradvocate,blinkist, andmediumtests/fixtures/task-suite.json.instruction.mdand standardizebrowser-contract.jsonacross all 70 tasks:instruction.mdfiles to a single canonical task specification and updatedocs/task-format.md.integrations.mail.mode(56api, 14disabled) andintegrations.payment.mode(38local-sandbox, 32disabled) across all 70browser-contract.jsonfiles, remove contradictory mailbox rules on mail-disabled tasks, and fixleetcodecandidate_ready_pathto/healthz.environment/seed/scored-interfaces.jsoncoverage:scripts/audit_contracts.pyto extract tested local endpoints from T1task-suite.json, active T3obligations.jsonprobes (business_probe,mail_probe, andpayment_probewith non-secretprerequisites), and custom T3 Python/api/*calls via AST inspection, normalizing fixture IDs/slugs into{id}/{slug}/etc. without leaking values or secrets.scored-interfaces.jsonexists across all 70 tasks, clean obsolete/__websitebench/healthdeclarations, backfill uncovered tested endpoints/methods (including mail/payment routes), and enforce schema + coverage checks inscripts/check_tasks.py.tests/test_audit_contracts.pyand extendtests/test_check_tasks.py(includingTrustedCheckMailAndPaymentTest).Verification
python scripts/audit_contracts.py --check— all 70 tasksOK(exit code 0)python scripts/check_tasks.py --code-only— all 70 tasksPASS(exit code 0)ruff check scripts src tests&ruff format --check scripts src tests— passpython -m unittest tests/test_audit_contracts.py tests/test_check_tasks.py -v— 37/38 pass on Windows (onlytest_checker_does_not_change_task_contentsfails due to Windows NTFS lacking POSIX.shexecute bits; awaits Linux CI approval)