Skip to content

[codex] Add benchmark schema primitives - #565

Merged
zacjones93 merged 1 commit into
feat/hillerfit-planfrom
codex/hillerfit-m1-schema-primitives
Jun 21, 2026
Merged

[codex] Add benchmark schema primitives#565
zacjones93 merged 1 commit into
feat/hillerfit-planfrom
codex/hillerfit-m1-schema-primitives

Conversation

@zacjones93

@zacjones93 zacjones93 commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the M1a benchmark schema primitives on top of the M0a capability-registry work that already landed in feat/hillerfit-plan.

  • Adds benchmark battery/test/threshold DB tables, ID factories, exports, and the generated MySQL migration.
  • Adds nullable benchmark linkage on track_workouts and scores.benchmarkVariant for variant-aware scoring.
  • Adds benchmark validation schemas, absolute-tier scoring config validation, and fail-closed scoring dispatch placeholders.
  • Widens stored competition-type boundaries so the new benchmark persistence value does not leak into generic create/edit pickers or silently downgrade existing rows.
  • Gates the generic organizer edit-form venue section by physical-venue capability, so stored benchmark rows do not inherit in-person venue UI through the picker fallback.
  • Splits the implementation packet into M1a schema primitives and M1b PDF-derived seed/receipt so this PR is not confused with the upcoming seed-data slice.

Branding / Source Boundary

This does not add HillerFit-branded pages, routes, product navigation, marketing copy, logos, theme treatments, or app strings. The local training PDF remains a source artifact for the upcoming M1b seed-data slice only; shipped UI remains the generic WODsmith benchmark experience.

Verification

  • pnpm --dir apps/wodsmith-start test test/components/organizer-competition-edit-form.test.tsx test/schemas/benchmark.test.ts test/schemas/scoring.test.ts test/lib/scoring/factory.test.ts test/lib/competitions/capabilities.test.ts test/lib/competitions/venue-volunteer-gates.test.ts test/routes/api/compete/scores/window-status.test.ts test/routes/api/compete/submission-gates.test.ts test/server-fns/athlete-score-fns.test.ts test/server-fns/video-submission-fns.test.ts test/routes/compete/video-submission-route-gates.test.ts (11 files, 164 tests)
  • pnpm --filter @repo/wodsmith-db type-check
  • pnpm --dir apps/wodsmith-start type-check
  • pnpm --filter crew type-check
  • pnpm --dir apps/wodsmith-start lint (passes with existing warnings)
  • pnpm check:schema-ownership
  • git diff --check
  • rg -n "HillerFit|hillerfit" apps/wodsmith-start/src apps/crew/src packages/wodsmith-db/src apps/wodsmith-start/test apps/crew/test packages/wodsmith-db/mysql-migrations || true returned no matches
  • git push --force-with-lease pre-push hook ran pnpm lint and pnpm type-check successfully

lat check was also run and still fails only on pre-existing Crew LAT refs unrelated to this branch:

  • lat.md/crew.md:7 broken [[apps/crew/src/server-fns]]
  • lat.md/crew.md:9 broken [[apps/crew/src/server]]
  • lat.md/crew.md:217 broken [[apps/crew/src/lib/crew/templates]]
  • apps/crew/test/routes/event-import-tabs.test.tsx:22 broken @lat: [[crew#Import Tabs Duplicate Panel Regression]]

@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@zacjones93, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 20 minutes and 1 second. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d1b9ac04-8c3e-48e4-a3b7-8c4baa37875c

📥 Commits

Reviewing files that changed from the base of the PR and between d9d8f2e and bd24b45.

📒 Files selected for processing (35)
  • ai/research/hillerfit-benchmark-leaderboard/requirements.md
  • ai/research/hillerfit-benchmark-leaderboard/tasks.md
  • ai/research/hillerfit-benchmark-leaderboard/technical-design.md
  • ai/research/hillerfit-benchmark-leaderboard/test-strategy.md
  • ai/research/hillerfit-benchmark-leaderboard/traceability.md
  • apps/crew/src/server/crew-judge-rotations.server.ts
  • apps/wodsmith-start/src/components/cohost-sidebar.tsx
  • apps/wodsmith-start/src/components/compete/scoring-config-form.tsx
  • apps/wodsmith-start/src/components/competition-sidebar.tsx
  • apps/wodsmith-start/src/components/leaderboard-page-content.tsx
  • apps/wodsmith-start/src/components/organizer-competition-form.tsx
  • apps/wodsmith-start/src/db/schemas/benchmarks.ts
  • apps/wodsmith-start/src/lib/scoring/algorithms/index.ts
  • apps/wodsmith-start/src/routes/compete/organizer/$competitionId/-components/judges/judge-scheduling-container.tsx
  • apps/wodsmith-start/src/routes/compete/organizer/$competitionId/-components/organizer-competition-edit-form.tsx
  • apps/wodsmith-start/src/schemas/benchmark.schema.ts
  • apps/wodsmith-start/src/schemas/scoring.schema.ts
  • apps/wodsmith-start/src/server-fns/check-in-fns.ts
  • apps/wodsmith-start/src/server-fns/competition-server-logic.ts
  • apps/wodsmith-start/src/types/scoring.ts
  • apps/wodsmith-start/test/components/organizer-competition-edit-form.test.tsx
  • apps/wodsmith-start/test/lib/scoring/factory.test.ts
  • apps/wodsmith-start/test/schemas/benchmark.test.ts
  • apps/wodsmith-start/test/schemas/scoring.test.ts
  • lat.md/competition-type-capabilities.md
  • lat.md/domain.md
  • packages/wodsmith-db/mysql-migrations/0003_benchmark-battery.sql
  • packages/wodsmith-db/mysql-migrations/meta/0003_snapshot.json
  • packages/wodsmith-db/mysql-migrations/meta/_journal.json
  • packages/wodsmith-db/src/schema.ts
  • packages/wodsmith-db/src/schemas/benchmarks.ts
  • packages/wodsmith-db/src/schemas/common.ts
  • packages/wodsmith-db/src/schemas/competitions.ts
  • packages/wodsmith-db/src/schemas/programming.ts
  • packages/wodsmith-db/src/schemas/scores.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/hillerfit-m1-schema-primitives

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.

@zacjones93
zacjones93 force-pushed the codex/hillerfit-m1-schema-primitives branch from 70442e8 to bd24b45 Compare June 21, 2026 00:20
@zacjones93
zacjones93 marked this pull request as ready for review June 21, 2026 00:24
@zacjones93
zacjones93 merged commit 99c0253 into feat/hillerfit-plan Jun 21, 2026
15 checks passed

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd24b45000

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"winner_takes_more",
"online",
"custom",
"absolute_tier",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Allow absolute-tier configs through scoring save

When a seeded benchmark board stores settings.scoringConfig.algorithm === "absolute_tier", the organizer/cohost scoring pages parse that value and render ScoringSettingsForm, but saving posts it to updateCompetitionScoringConfigInputSchema/cohostScoringConfigInputSchema, whose hard-coded enums still omit this new algorithm. That means pressing Save on an unchanged benchmark scoring config fails validation before the handler, so benchmark boards cannot persist scoring settings from the visible scoring route; update those validators or hide the generic scoring form for benchmark boards.

Useful? React with 👍 / 👎.

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