docs(baseball): repo-truth sync for tonight's batch (docs-only)#853
Conversation
…de changes) Syncs 5 living docs + 1 memory file to actual tonight's reality on batch/bbh-finish-0714 @ 0056bc0, independently re-verified (not copied from PR claims) via grep/gh API/local test runs: - PRODUCTION_READINESS_MISSION_2026-07-09.md: dated addendum (history kept intact) covering #792-#807 merged, discover-privacy P0 fixed+tested, 29-surface Living-Annual migration done, tonight's batch merge state (#808 merged not "green-pending", #810 still open, #812-#841 + #851 on batch branch, #842-#850 still open), and the batch HEAD's 3 currently-red CI checks (Business contracts/Unit tests/Import-cycle ratchet). - ui-migration-map.md + ui-migration-execution-plan.md: code-verified status headers — all 29 surfaces executed, Batch H (PR #820) done, zero isRedesignEnabled() forks remain under src/app/baseball or src/components/baseball. - BASEBALLHELM_FEATURE_READINESS_MATRIX.md: ran check-readiness-matrix.ts (green before and after); upgraded Documents, Travel, Practice, Staff/Roles to ready and Practice Effectiveness to partial on real new test-coverage PRs (#822-#825); updated Player Today/Signals/Videos with tonight's #377 contract tests (#826) and #379 Phase 4a progress (#851); rollup 10->14 ready. Re-ran the checker (route resolution + live owner-issue validation) clean after edits. - BASEBALLHELM_PRODUCTION_VERDICT.md: reissued (old 2026-06-25 verdict kept as history below a new 2026-07-15 section) — honest "batch branch pending integration merge + CI" verdict, deferred-minors list, and the journey/pipeline vocabulary decision, #379 legacy-backfill scope, marketing-root (helm-website-ui/ vs src/app/page.tsx), and dual-wizard (ImportWizardClient vs EventImportWizard) open decisions, each grounded in a specific file/PR. - memory/context/baseballhelm-features.md: corrected narrative lines now verifiably false (stale 2026-06-30 rollup counts, decision-room "unapplied migration"/#405-406 "open", pipeline "7 columns vs 5-stage enum", journey "UNVERIFIED source table", discover.ts profile_visibility omission, documents #393) — no AUTOGEN blocks in this file, none touched. Gates: check:readiness-matrix exit 0 (route resolution + live GITHUB_TOKEN owner-issue validation); readiness-matrix-routes.test.ts 204/204 passing; no markdownlint config present in repo (skipped per task instructions). Docs-only change; no product code touched. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (3)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Greptile SummaryDocs-only sync pass against
Confidence Score: 4/5Safe to merge; the one issue found is a stale warning symbol in a memory file that contradicts the Documents upgrade made in this same PR. All six files are docs/memory only — no code, migrations, or RLS touched. The production verdict, mission addendum, and ui-migration docs are internally consistent and accurately disclose the batch branch's unresolved CI failures. The readiness matrix row changes each cite a specific PR and assertion count. The single inconsistency is in memory/context/baseballhelm-features.md: the §11–18 concise bullet still carries ( memory/context/baseballhelm-features.md — the §11–18 concise bullet for Documents still carries a stale Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph Tonight["2026-07-15 batch/bbh-finish-0714 state"]
direction LR
A["14 ready ✅\n(+4 tonight)"]
B["7 partial 🟡\n(-3 tonight)"]
C["1 hidden"]
D["0 route-only\n(-1 tonight)"]
end
subgraph Upgrades["Tonight's row upgrades (PRs #822–#826)"]
direction TB
U1["Staff/Roles: partial → ready\nPR #822: pgTAP scope_player_ids isolation test"]
U2["Travel: partial → ready\nPR #823: 18 action-level assertions"]
U3["Documents: partial → ready\nPR #824: 24 capability/signed-URL assertions"]
U4["Practice: partial → ready\nPR #825: 13 save/publish/attendance assertions"]
U5["Practice Effectiveness: route-only → partial\nPR #825: 15 action-level assertions"]
end
subgraph CI["Batch branch CI (HEAD 0056bc0e)"]
F1["❌ Business contracts\nstat-layer-contract.test.ts — 2 unlisted files + 1 stale manifest"]
F2["❌ Unit tests\nResizeObserver mock TypeError in CI env"]
F3["❌ Import-cycle ratchet\nexternal-package false positive"]
end
subgraph Open["Open umbrella issues"]
I1["#377 — Player Today / Signals / Videos\n(narrowed tonight, still open)"]
I2["#379 — 3-layer stat reconciliation\n(Phase 4a landed; Phases 2/3 unstarted)"]
I3["#372/#373 — smoke gate / auth crawler\n(in-flight PRs #849/#850)"]
end
Tonight --> Upgrades
Tonight --> CI
Tonight --> Open
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
subgraph Tonight["2026-07-15 batch/bbh-finish-0714 state"]
direction LR
A["14 ready ✅\n(+4 tonight)"]
B["7 partial 🟡\n(-3 tonight)"]
C["1 hidden"]
D["0 route-only\n(-1 tonight)"]
end
subgraph Upgrades["Tonight's row upgrades (PRs #822–#826)"]
direction TB
U1["Staff/Roles: partial → ready\nPR #822: pgTAP scope_player_ids isolation test"]
U2["Travel: partial → ready\nPR #823: 18 action-level assertions"]
U3["Documents: partial → ready\nPR #824: 24 capability/signed-URL assertions"]
U4["Practice: partial → ready\nPR #825: 13 save/publish/attendance assertions"]
U5["Practice Effectiveness: route-only → partial\nPR #825: 15 action-level assertions"]
end
subgraph CI["Batch branch CI (HEAD 0056bc0e)"]
F1["❌ Business contracts\nstat-layer-contract.test.ts — 2 unlisted files + 1 stale manifest"]
F2["❌ Unit tests\nResizeObserver mock TypeError in CI env"]
F3["❌ Import-cycle ratchet\nexternal-package false positive"]
end
subgraph Open["Open umbrella issues"]
I1["#377 — Player Today / Signals / Videos\n(narrowed tonight, still open)"]
I2["#379 — 3-layer stat reconciliation\n(Phase 4a landed; Phases 2/3 unstarted)"]
I3["#372/#373 — smoke gate / auth crawler\n(in-flight PRs #849/#850)"]
end
Tonight --> Upgrades
Tonight --> CI
Tonight --> Open
Prompt To Fix All With AIFix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
memory/context/baseballhelm-features.md:173
The `(⚠️#393)` tag in the §11–18 concise bullet was not updated in this PR. The routing-table row for Documents was correctly rewritten to reflect the closed finding and the `ready` upgrade (PR #824), but this companion line still carries the open-issue warning. Since this file is pre-loaded as context before every BaseballHelm review, the stale `⚠️` will continue to surface as an apparent open security finding even after this sync.
```suggestion
- **Tasks/Travel/Academics/Documents** — `baseball_tasks`+`_task_assignments`; `baseball_travel_itineraries`/`_expenses`; `baseball_player_classes`/`_academic_eligibility`; `baseball_documents`/`_document_versions` (#393 closed 2026-07-09 — capability-gated writes + signed URLs; 24-assertion regression suite added 2026-07-15, PR #824).
```
Reviews (1): Last reviewed commit: "docs(baseball): repo-truth sync for toni..." | Re-trigger Greptile |
| - **Calendar/Events** ⚠️ — `createBaseballEvent` → INSERT `baseball_events` (+ conditional `baseball_event_attendance`, + conditional `baseball_games`); Events page bypasses server actions (P1-9); player calendar team-resolution bug (#368/#369). | ||
| - **Calendar/Events** ⚠️ — `createBaseballEvent` → INSERT `baseball_events` (+ conditional `baseball_event_attendance`, + conditional `baseball_games`); Events page bypasses server actions (P1-9). The player calendar team-resolution bug (#368) and un-normalized mutation guards (#369) are both **closed and verified** (2026-07-09) — stale reference removed. | ||
| - **Announcements** ✅ — uses `content` + `created_by_id` (the canonical-spec P0-3 "golf column" bug is FIXED). Tables `baseball_announcements`/`_recipients`/`_acknowledgements`. | ||
| - **Tasks/Travel/Academics/Documents** — `baseball_tasks`+`_task_assignments`; `baseball_travel_itineraries`/`_expenses`; `baseball_player_classes`/`_academic_eligibility`; `baseball_documents`/`_document_versions` (⚠️#393). |
There was a problem hiding this comment.
The
(⚠️#393) tag in the §11–18 concise bullet was not updated in this PR. The routing-table row for Documents was correctly rewritten to reflect the closed finding and the ready upgrade (PR #824), but this companion line still carries the open-issue warning. Since this file is pre-loaded as context before every BaseballHelm review, the stale ⚠️ will continue to surface as an apparent open security finding even after this sync.
| - **Tasks/Travel/Academics/Documents** — `baseball_tasks`+`_task_assignments`; `baseball_travel_itineraries`/`_expenses`; `baseball_player_classes`/`_academic_eligibility`; `baseball_documents`/`_document_versions` (⚠️#393). | |
| - **Tasks/Travel/Academics/Documents** — `baseball_tasks`+`_task_assignments`; `baseball_travel_itineraries`/`_expenses`; `baseball_player_classes`/`_academic_eligibility`; `baseball_documents`/`_document_versions` (#393 closed 2026-07-09 — capability-gated writes + signed URLs; 24-assertion regression suite added 2026-07-15, PR #824). |
Prompt To Fix With AI
This is a comment left during a code review.
Path: memory/context/baseballhelm-features.md
Line: 173
Comment:
The `(⚠️#393)` tag in the §11–18 concise bullet was not updated in this PR. The routing-table row for Documents was correctly rewritten to reflect the closed finding and the `ready` upgrade (PR #824), but this companion line still carries the open-issue warning. Since this file is pre-loaded as context before every BaseballHelm review, the stale `⚠️` will continue to surface as an apparent open security finding even after this sync.
```suggestion
- **Tasks/Travel/Academics/Documents** — `baseball_tasks`+`_task_assignments`; `baseball_travel_itineraries`/`_expenses`; `baseball_player_classes`/`_academic_eligibility`; `baseball_documents`/`_document_versions` (#393 closed 2026-07-09 — capability-gated writes + signed URLs; 24-assertion regression suite added 2026-07-15, PR #824).
```
How can I resolve this? If you propose a fix, please make it concise.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
What / why
Docs-truth pass (no code changes) syncing 5 living docs + 1 memory file to
the actual state of
batch/bbh-finish-0714@0056bc0etonight. Everythingbelow was independently re-verified for this PR — grep against the tree,
gh/GraphQL against the live repo, and local test runs — not copied fromany prior PR's own claims.
Per-file changes
docs/audits/PRODUCTION_READINESS_MISSION_2026-07-09.md— appended adated addendum section (history above it untouched):
main(verified viagh pr list --state merged --base main); the discover-privacy P0 fromthis doc's own Ground Truth section is fixed in code with a dedicated
test (
discover-privacy.test.ts); the 29-surface Living-Annual migrationis done (Batch H / PR chore(baseball): delete dead PlayerPassportCard + legacy header/mobile-menu-button #820).
main; chore(ci): import-cycle ratchet + mobile viewport regression suite #808 is alsonow merged to
main(correction — no longer "green-pending"); chore: devibe wave 1 — delete dead root dirs, screenshots, one-off scripts, stray assets #810is still open (402 files, all checks green, CodeRabbit auto-skipped for
exceeding its 150-file cap — not a billing block); fix(baseball): camps E2E seed status mismatch with RLS #812–fix(mobile): onboarding-auth chrome-drift skeletons + tap-target/grid fixes #841 (30 PRs) +
fix(baseball): CoachHelm engine loaders/registry — #379 Phase 4a #851 merged onto the batch branch; fix(ui): portal Select dropdown, forward wrapper className, 44px coarse-pointer floor #842–test(e2e): authenticated Baseball route crawler, replace broken script (#373) #850 (9 PRs) still open against it.
0056bc0e,PR fix(baseball): CoachHelm engine loaders/registry — #379 Phase 4a #851) shows 3 failing checks on GitHub (
Business contracts,Unit tests,Import-cycle ratchet) — reproduced the first locally.None look like new regressions, but "30 PRs merged" ≠ "branch head green."
docs/baseball/ui-migration-map.md+ui-migration-execution-plan.md— added code-verified status headers: all 29 tracked surfaces executed,
Batch H (PR #820) landed, zero
isRedesignEnabled()conditional forksremain under
src/app/baseball/**/src/components/baseball/**(verifiedby grep, comments excluded),
useRedesign()unused in baseball. Both docsare now framed as historical execution records.
docs/operations/BASEBALLHELM_FEATURE_READINESS_MATRIX.md— rannpx tsx scripts/baseball/check-readiness-matrix.tsbefore and after (bothgreen). Row upgrades on real, verified new test coverage:
partial→ready(PR test(baseball): deepen documents coverage — signed URLs + capability-gated writes #824, 24 assertions replacing a1-assertion smoke test).
partial→ready(PR test(baseball): cover travel actions — coach-id/user-id identity + denial paths #823, 18 assertions replacing zerocoverage).
partial→ready(PR test(baseball): add practice + practice-effectiveness action coverage #825, 13 assertions closing theexact save/publish/attendance gap this row cited).
partial→ready(PR test(baseball): pgTAP suite for scope_player_ids staff isolation (#406) #822, pgTAP test deliveringBaseballHelm: wire staff player-scope RLS to scope_player_ids columns #406's previously-missing acceptance criteria —
supabase/tests/rls/baseball_scope_player_ids_isolation.sql).route-only→partial(PR test(baseball): add practice + practice-effectiveness action coverage #825, 15action-level assertions — real coverage, not yet the contract-test shape
BaseballHelm: add product-trust contracts for empty/error/no-permission states #400 originally asked for).
tests (PR test(baseball): #377 product-truth contracts for Player Today, Signal Inbox, Video Library #826) without closing the umbrella issue (broader scope).
currently-red
stat-layer-contract.test.ts(2 offenders + 1 stale entry).ready; Owner-issue groupings section recomputed.GITHUB_TOKENafter all edits (routeresolution and owner-issue open/closed validation) — clean.
docs/audits/BASEBALLHELM_PRODUCTION_VERDICT.md— reissued. The stale2026-06-25 "SHIPPED" verdict is kept verbatim as history below a new
2026-07-15 section with an honest verdict: batch branch pending integration
merge + CI (3 known-red checks, no PR into
mainyet, no deploy fortonight's work). Includes a grounded "what remains" list:
JUCOModeToggle, ConversationClient-vs-MessagesClient dual design,
unconverted PlayerNotesSection/PlayerPerformanceTab raw color, the red
contract test).
chunks; 3 remain gated on Nick's read of 2 open product questions).
not started, drift-detection test currently red).
helm-website-ui/— a separate, fullyindependent
.vercelignore-excluded v0 project — vs. the deployedsrc/app/page.tsx; no decision recorded either way).ImportCenterShell.tsxcomposes both the legacyImportWizardClient.tsxand the newerEventImportWizard.tsxas a modeswitcher; no call yet on whether that's permanent).
memory/context/baseballhelm-features.md— corrected narrative linesverified false (no AUTOGEN blocks exist in this file; none touched):
stale 2026-06-30 rollup counts; Decision Room "unapplied migration" +
#405/#406 "open" (both closed, RLS-hardened, pgTAP test now exists);
pipeline "renders 7 columns, DB enum has 5" (fixed —
stages.tsnowdeclares exactly 5, board renders 4 active columns); journey "UNVERIFIED
source table" (verified real:
baseball_players/baseball_recruiting_interests/baseball_player_engagement_events);discover.ts profile_visibility omission (fixed, P0 closed w/ test);
Documents #393 (closed, capability-gated + signed URLs, 24 new assertions).
Gates (worktree, no pipe-masking)
No
.markdownlint*config exists anywhere in the repo (checkedfind . -maxdepth 1 -iname "*.markdownlint*"andpackage.jsonfor amarkdownlint script) — skipped per task instructions, nothing to run.
Docs-only PR; zero product/test/migration code touched.
typecheck/eslintnot applicable (no
.ts/.tsxfiles in the diff).Files changed (6, well under the 15-file cap)
docs/audits/PRODUCTION_READINESS_MISSION_2026-07-09.mddocs/baseball/ui-migration-map.mddocs/baseball/ui-migration-execution-plan.mddocs/operations/BASEBALLHELM_FEATURE_READINESS_MATRIX.mddocs/audits/BASEBALLHELM_PRODUCTION_VERDICT.mdmemory/context/baseballhelm-features.mdCo-Authored-By: Claude Fable 5 noreply@anthropic.com