Skip to content

docs: R_final — wonder-consolidation bake-off ship decision (#228) - #398

Merged
robotrocketscience merged 1 commit into
mainfrom
docs/issue-228-r-final
May 4, 2026
Merged

docs: R_final — wonder-consolidation bake-off ship decision (#228)#398
robotrocketscience merged 1 commit into
mainfrom
docs/issue-228-r-final

Conversation

@yoshi280

@yoshi280 yoshi280 commented May 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

R_final ship-decision PR for #228. Runs the bake-off harness (PR #397, commit 61ab575) end-to-end against the synthetic corpus across three configurations, applies spec § "Adoption criteria for v2.0 ship", and lands the verdict + result JSONs.

Verdict

Defer the wonder offline-generation line item from v2.0. The v2.0 wonder surface ships as on-line wonder-prompted generation only.

Trigger: spec rule 3 ("junk rate > 60%"). All three strategies exceed the 60% threshold; STS at 88.9% is the decisive failure.

Strategy Confirmation rate Junk rate Retrieval/cost
RW 0.374 0.626 0.993
TC 0.294 0.706 0.667
STS 0.112 0.889 1.000

Verdict is robust across feedback_budget ∈ {8, 16, 32} and n_atoms_per_topic ∈ {25, 50}: budget=8 trips rule 4 (drop) because no phantom can hit α≥12; budget∈{16,32} returns defer.

The offline-generation premise is not falsified — RW and TC clear the H0+10pp adoption floor (0.165) on confirmation rate. The runner/strategies/evaluator stay in tree (src/aelfrice/wonder/) so a future corpus or threshold revisit can re-run without re-implementation.

What's in tree

  • docs/v2_wonder_consolidation_R_final.md — the result memo, 71 lines. Cites the spec, applies the four-rule decision tree, calls out honest limitations (synthetic-only corpus; spec rule 2 fires on a single-strategy threshold breach which is harsher than an alternative all-strategies reading).
  • docs/bake_off_results/R0_default.json — default sweep, 10 seeds.
  • docs/bake_off_results/R_a50_b8.json — low-budget sweep.
  • docs/bake_off_results/R_a50_b32.json — high-budget sweep.

No code changes; the harness shipped in #397.

What this is not

Closes #228.

Summary by Sourcery

Document the bake-off results and ship decision for the v2.0 wonder offline-generation line item and check in the associated result artifacts.

Documentation:

  • Add a detailed result memo describing the wonder offline-generation bake-off setup, metrics, adoption-rule evaluation, and v2.0 ship/defer decision.

Chores:

  • Check in bake-off output JSONs for the default, low-budget, and high-budget wonder offline-generation runs.

Verdict: defer. STS junk_rate (88.9%) trips spec rule 2 decisively;
RW (62.6%) and TC (70.6%) also exceed the 60% defer threshold.
RW and TC do clear the H0+10pp adoption floor on confirmation
rate, so the offline-generation premise is not falsified — ship
v2.0 wonder surface as on-line prompted only and leave the
runner/strategies/evaluator in tree for a later corpus revisit.

Three result JSONs committed alongside the memo:
- R0_default.json (n_atoms=25, budget=16): defer x10 seeds.
- R_a50_b8.json   (n_atoms=50, budget=8):  drop x10 (no phantom
  reaches alpha>=12 inside the budget).
- R_a50_b32.json  (n_atoms=50, budget=32): defer x10.

Closes #228.
@coderabbitai

coderabbitai Bot commented May 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (2)
  • docs:
  • release:

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 88496ccc-fdf5-40bd-b978-eaa08f2f862b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/issue-228-r-final

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sourcery-ai

sourcery-ai Bot commented May 4, 2026

Copy link
Copy Markdown

Reviewer's Guide

Adds the R_final wonder-consolidation ship decision memo and its associated bake-off result JSONs, documenting how the bake-off harness was run, the quantitative outcomes across configurations, and the resulting decision to defer offline wonder generation for v2.0 while keeping the runner and strategies in-tree for future reruns.

Flow diagram for wonder offline-generation adoption decision

flowchart TD
  Start[Start evaluation for offline_generation] --> Rule1{Drop?
  all_strategies_confirm_rate <= H0_null_floor}

  Rule1 -- Yes --> VerdictDrop[Verdict: drop offline_generation line item]
  Rule1 -- No --> Rule2{Defer?
  any_strategy_junk_rate > 0.60}

  Rule2 -- Yes --> VerdictDefer[Verdict: defer offline_generation from v2_0]
  Rule2 -- No --> Rule3{Single_strategy_ship?
  any_strategy_meets_adoption_floor}

  Rule3 -- Yes --> VerdictSingle[Verdict: ship best_single_strategy offline_generation]
  Rule3 -- No --> Rule4{Ensemble?
  complementarity_passes
  pairwise_Jaccard_low}

  Rule4 -- Yes --> VerdictEnsemble[Verdict: ship ensemble offline_generation]
  Rule4 -- No --> VerdictDrop2[Verdict: drop offline_generation line item]

  VerdictDrop --> End[End]
  VerdictDefer --> End
  VerdictSingle --> End
  VerdictEnsemble --> End
  VerdictDrop2 --> End

  subgraph Inputs
    H0_null_floor[H0_null_floor = 0.065]
    Adoption_floor[H0_plus_10pp_adoption_floor = 0.165]
    Junk_threshold[Junk_rate_threshold = 0.60]
  end

  Inputs --> Rule1
  Inputs --> Rule2
  Inputs --> Rule3
  Inputs --> Rule4
Loading

File-Level Changes

Change Details Files
Document the R_final wonder bake-off decision and how it was derived from the harness results and spec decision rules.
  • Add a detailed markdown memo describing how the wonder bake-off harness was run across three configurations and seeds
  • Summarize default-configuration metrics (confirmation rate, junk rate, retrieval/cost, n_phantoms) for RW, TC, and STS strategies
  • Apply the four-rule adoption decision tree from the spec to reach a defer verdict and explain why ship/ensemble rules are not reached
  • Clarify implications for the v2.0 wonder surface (online-only generation, offline strategies deferred) and explicitly scope what is and isn’t affected
  • Call out limitations of the decision, including reliance on a synthetic corpus and a strict interpretation of the junk-rate defer rule
docs/v2_wonder_consolidation_R_final.md
Check in the bake-off result JSON artifacts used by the memo to support the ship decision.
  • Add default-configuration bake-off JSON results for the R0 sweep with 25 atoms per topic and feedback budget 16
  • Add low-budget bake-off JSON results with 50 atoms per topic and feedback budget 8
  • Add high-budget bake-off JSON results with 50 atoms per topic and feedback budget 32
docs/bake_off_results/R0_default.json
docs/bake_off_results/R_a50_b8.json
docs/bake_off_results/R_a50_b32.json

Assessment against linked issues

Issue Objective Addressed Explanation
#228 Run the v2.0 wonder offline-generation bake-off on the three candidate strategies (RW, TC, STS) using the pre-registered synthetic corpus and feedback simulator, producing metrics on confirmation rate, retrieval per cost, redundancy/complementarity, and junk rate.
#228 Apply the v2.0 spec’s adoption criteria to the bake-off results and record a clear ship decision for offline wonder generation (single strategy, ensemble, or defer) in the repository, along with the supporting result artifacts.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@yoshi280 yoshi280 added the attn:review Needs review (PR open, awaiting reviewer) label May 4, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • Consider briefly expanding the first mention of RW/TC/STS with a one-line description or link so readers unfamiliar with the strategies can interpret the table without cross-referencing code.
  • The references to planning memo decisions (e.g., “Decision D/E/F”) could be ambiguous to future readers; adding a short parenthetical or link to the relevant section of the planning memo would make the provenance clearer.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider briefly expanding the first mention of RW/TC/STS with a one-line description or link so readers unfamiliar with the strategies can interpret the table without cross-referencing code.
- The references to planning memo decisions (e.g., “Decision D/E/F”) could be ambiguous to future readers; adding a short parenthetical or link to the relevant section of the planning memo would make the provenance clearer.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@yoshi280

yoshi280 commented May 4, 2026

Copy link
Copy Markdown
Collaborator Author

[claim:review:Setr:2026-05-04T08:11:35Z]

@robotrocketscience
robotrocketscience merged commit b1906d5 into main May 4, 2026
22 of 24 checks passed
@robotrocketscience
robotrocketscience deleted the docs/issue-228-r-final branch May 4, 2026 08:12
@yoshi280

yoshi280 commented May 4, 2026

Copy link
Copy Markdown
Collaborator Author

[release:review:Setr:2026-05-04T08:12:58Z]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attn:review Needs review (PR open, awaiting reviewer)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[v2.0 research] wonder-consolidation — phantom generation strategy bake-off (RW vs TC vs STS)

2 participants