Repository navigation
Drop IKEA category-browse URL hint to stop code hallucination - #75
Merged
Merged
Conversation
The `search-url-helper` recipe for ikea.com included a
`/cat/{slug}-{categoryCode}/` template with example
`/us/en/cat/bookcases-st002/`. `{categoryCode}` is a host-internal code the
agent has no way to know without first browsing to the category, so agents
guessed values (`billy-bookcases-18732`, `billy-bookcases-16282`), got
redirected to unrelated category pages, and recovered via the search box
anyway — wasting 3–7 steps per failure. The `Search:` and `Direct product:`
templates carry the win on their own.
Also pins the `ikea-billy-cheapest-white` benchmark task to the standard
shortest BILLY bookcase variant in white (excluding BILLY OXBERG, height
extension, and accessory units), and adds a Composability rule to the
site-rules skill so future recipes don't reintroduce templates that require
identifiers the agent can't plausibly read or be told. The rule explicitly
warns against tuning recipes to benchmark tasks.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Pre-commit's mdformat rewrapped the new composability subsection to ~88 cols. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
3 of 4 tasks
This branch was successfully deployed
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
Category browse: /{country}/{lang}/cat/{slug}-{categoryCode}/line fromextension/data/sites/ikea.yaml.{categoryCode}is a host-internal code the agent can't read off the page or be told at runtime; agents were inventing values (billy-bookcases-18732,billy-bookcases-16282) that redirected to unrelated categories and then recovering via search anyway. TheSearch:andDirect product:templates remain — those compose cleanly from runtime intent.ikea-billy-cheapest-whitebenchmark task to the standard shortest BILLY bookcase variant in white (excluding BILLY OXBERG, height-extension, and accessory units) so the "smallest white BILLY variant" is no longer ambiguous between bookcases, extensions, and shelves.search-url-helpertemplates" subsection toskills/agent-browser-shield-site-rules/SKILL.mdso future recipes don't reintroduce templates requiring identifiers the agent can't plausibly read or be told. The rule explicitly warns against deriving recipes frombenchmark/tasks.csv— recipes must reflect general agent information needs, not benchmark ground truth.Evidence
run_20260601_204107_e2eecmp_20260602_030512_dea7(before fix)billy-bookcases-18732cmp_20260602_031552_4d23(after fix)goto /cat/...attempts across all 6 repsAggregate guarded vs baseline is dominated by n=3 stochasticity and an inconsistent
gpt-4o-minijudge (the same correctly-formatted answer was marked PASS in one run and FAIL in another). The pinned task spec should reduce future judge variance independently of the rule change.Test plan
cd extension && bun run checkpassescd extension && bun run buildregeneratessite-data.generated.tscleanly (already committed)ikea-billy-cheapest-whiteissues agototo/us/en/cat/...Search:URL hint (e.g., a freshcompare_scenarios.pyrep that usesgoto /search/?q=...in step 0–2)🤖 Generated with Claude Code