Skip to content

docs: capture PR review learnings from #619 and #608 - #621

Merged
JeffOtano merged 1 commit into
mainfrom
claude/adoring-wozniak-qtvc4y
Aug 2, 2026
Merged

docs: capture PR review learnings from #619 and #608#621
JeffOtano merged 1 commit into
mainfrom
claude/adoring-wozniak-qtvc4y

Conversation

@JeffOtano

@JeffOtano JeffOtano commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

Changes

  • docs/pr-review-learnings.md
    • §20 — persisted-payload readers (fix: preserve scheduled workout state #619): adding a required field (schedulingFailed/deferred) to the approve_week_plan banner extractor's shape check retroactively marked legacy stored tool outputs as malformed, re-rendering confirmed successes as "This change could not be confirmed." Preventive check: treat an absent newly-added field as legacy default, keep rejecting present-but-malformed values, and regression-test a pre-migration payload.
    • §21 — data-derived enforcement thresholds (feat: estimate personal MRV set thresholds #608): the personal-MRV estimator counted not-yet-projected weeks as real zero-volume observations (ignoring performanceSyncComplete) and qualified on a statistic that a general downward trend also satisfies. Preventive check: exclude incomplete/unsynced units, require the statistic to actually demonstrate the gated effect, and default to advisory.
    • §19 — extended (fix: preserve scheduled workout state #619): lease expiry ≠ safe-to-release when the claim is past its external side-effect phase (reconciling/post_authorized may already have created a tile); and reserve the target atomically to close the preflight→external-DELETE TOCTOU window.
    • Updated the "How to use this log" area list and the Last reviewed date.
  • AGENTS.md — extended the "Learning From Past Reviews" category pointer with the three new trigger areas (lease/claim expiry-by-phase, persisted-payload readers, data-derived enforcement thresholds).

Other PRs in the window surfaced no new recurring gaps: #615 (one-component-per-file + title-template) was convention/stylistic; #616's scheduling-idempotency findings are already captured in §19; #611/#612/#609/#607/#603/#586 had no review threads.

Checklist

  • npx prettier --check passes on the edited files
  • Documentation-only change (no code, tests, or types affected)
  • No file exceeds the 400-line hard cap enforced by CI (docs are exempt from the source cap; edits are prose only)
  • Commits follow conventional format (type: description)

Test Plan

Documentation-only. Verified npx prettier --check docs/pr-review-learnings.md AGENTS.md reports clean, and that section headers renumber contiguously through §21.


Generated by Claude Code

Summary by CodeRabbit

  • Documentation
    • Expanded review guidance for lease expiry, atomic reservations, legacy persisted data, and data-backed enforcement thresholds.
    • Added recommendations for internal actions, model routing, keyword classification, and runtime-boundary changes.
    • Updated the review log date and checklist to include the new guidance.

Distill new, generalizable review findings from the 10 most recently
merged PRs into docs/pr-review-learnings.md and mirror the categories in
the AGENTS.md pointer.

- §20: readers over persisted tool-output/message payloads must treat a
  newly-added field as absent-legacy, not malformed, or old rows regress
  (#619 approve_week_plan banner extractor).
- §21: data-derived enforcement thresholds must exclude
  not-yet-synced observations (false zeros) and require the statistic
  actually demonstrate the gated effect (#608 personal MRV).
- §19: extend the scheduling-idempotency entry with lease-expiry-by-phase
  and preflight TOCTOU reservation notes from #619.

Other PRs in the window (#615 conventions, #616 already covered by §19,
#611/#612/#609/#607/#603/#586) surfaced no new recurring gaps.
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f1a6fd96-07b6-4873-9076-c73bdefc3dd8

📥 Commits

Reviewing files that changed from the base of the PR and between 6595a34 and 3f70042.

📒 Files selected for processing (2)
  • AGENTS.md
  • docs/pr-review-learnings.md

📝 Walkthrough

Walkthrough

The pull request updates review guidance with lease and reservation checks, legacy persisted-payload compatibility, data-derived enforcement thresholds, and Convex runtime-boundary topics. It also updates the review date and related checklists.

Changes

Review learning guidance

Layer / File(s) Summary
Add review guidance
docs/pr-review-learnings.md
Adds guidance for lease-expiry phases, atomic target reservation, legacy persisted payloads, incomplete observations, and evidence-based enforcement thresholds.
Align review checklists
AGENTS.md, docs/pr-review-learnings.md
Updates the repository guidance and usage checklist with the new review topics and Convex runtime-boundary concerns.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

  • JeffOtano/roni#415: Updates the same review-learning documentation and AGENTS.md guidance.
  • JeffOtano/roni#508: Adds overlapping guidance for internal-action validation and schema-bypass scenarios.
  • JeffOtano/roni#618: Covers overlapping guidance for statistical thresholds, persisted data, lease guards, and Convex runtime boundaries.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/adoring-wozniak-qtvc4y

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.

@JeffOtano
JeffOtano marked this pull request as ready for review August 2, 2026 03:09
@cursor

cursor Bot commented Aug 2, 2026

Copy link
Copy Markdown

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.

@JeffOtano
JeffOtano merged commit 38676b5 into main Aug 2, 2026
12 of 13 checks passed
@JeffOtano
JeffOtano deleted the claude/adoring-wozniak-qtvc4y branch August 2, 2026 03:09

@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: 3f70042622

ℹ️ 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".

Comment on lines +923 to +924
`qualified_for_enforcement` — i.e. the estimate becomes a hard programming gate,
not just advice. Two ways the estimate qualified on data that didn't support it:

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 Do not claim the MRV estimate is already enforced

In the current tree, qualified_for_enforcement does not become a hard programming gate: the estimate is only exposed through analyze_volume_strength, whose description says it is merely eligible for a separate backend gate (convex/ai/volumeStrengthTool.ts:129), while computeWeeklyVolume continues to apply the static VOLUME_LANDMARKS limits (convex/coach/periodization.ts:230-239). Describing this as an existing constraint that blocks or caps users' programming misstates the reviewed behavior and can misdirect future reviewers; frame it as a risk for any future enforcing consumer unless such a gate is added.

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.

2 participants