Skip to content

docs(author): add strategy-selection reference with empirical contract ladder#1810

Merged
jackwener merged 1 commit into
mainfrom
docs/strategy-selection-deep-reference
Jun 1, 2026
Merged

docs(author): add strategy-selection reference with empirical contract ladder#1810
jackwener merged 1 commit into
mainfrom
docs/strategy-selection-deep-reference

Conversation

@jackwener
Copy link
Copy Markdown
Owner

Summary

Step 4 of the Network/API-first design rework (companion to #1809). Adds a deep reference for the strategy gate so authors can justify the rule with empirical evidence, not just the inline SKILL.md prescription.

  • New references/strategy-selection.md:

    • Contract-based ladder model (stable / visible-ui / internal-unstable), not "API > DOM"
    • Empirical fixes/adapter-year for all 6 strategies (827 adapters, 30-day window 2026-04-20 → 2026-05-20). Headline: PAGE_FETCH/INTERCEPT are 7-8x PUBLIC_API
    • How to turn analyze api_candidates[] verdicts into strategy note evidence
    • Strategy note field-by-field guide (Contract / Evidence / Why-not for PAGE_FETCH+INTERCEPT)
    • Reference cases: booking feat(booking): add search adapter for Booking.com hotel listings #1680 (Pattern A misjudgment), Twitter GraphQL (queryId drift), xhs signed URL (INTERCEPT necessity), weread-official (PUBLIC_API ideal)
  • SKILL.md inline strategy gate gets a one-line empirical hook + cross-link

  • coverage-matrix.md auth/strategy row renamed to 6-enum with fixes/adapter-year on each

  • site-recon.md Pattern A annotated: Pattern A ≠ PAGE_FETCH; must check api_candidates verdicts

Why this matters

After #1809, agents have the strategy enum + forced note. But the inline ladder ordering ("PUBLIC_API → COOKIE_API → ...") risks reading as "upper is better", which the step-3 sampling data does not support. This reference makes the contract model and empirical numbers visible, so authors don't over-invest in PAGE_FETCH/INTERCEPT.

Test plan

  • npm run docs:build clean
  • CI green

…t ladder

Companion deep reference for the SKILL.md strategy gate (#1809):

- New `references/strategy-selection.md` with contract-based ladder model,
  empirical fixes/adapter-year data (837 adapters / 30-day window), Pattern A
  judgment rules from `api_candidates` verdicts, and reference cases
  (booking #1680, Twitter GraphQL, xhs signed URL, weread-official).
- Cross-link from SKILL.md inline strategy gate to the deep reference, plus
  one-line empirical hook ("PAGE_FETCH/INTERCEPT 7-8x PUBLIC_API fix rate").
- coverage-matrix.md: Strategy row renamed to 6-enum (PUBLIC_API / COOKIE_API
  / UI_SELECTOR / DOM_STATE / PAGE_FETCH / INTERCEPT) with fixes/adapter-year
  on each entry.
- site-recon.md: Pattern A note that hit alone is not a `PAGE_FETCH` signal —
  must check `api_candidates` verdicts (booking #1680 reference).
@jackwener jackwener merged commit 7731e36 into main Jun 1, 2026
11 checks passed
@jackwener jackwener deleted the docs/strategy-selection-deep-reference branch June 1, 2026 06:11
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