← Back to Pull requests

feat: expand daily conversation practice #1472

Merged
m-e-h-r-d-a-a-d merged 24 files (2195 lines) on Oct 02, 2026 01:58 UTC
View on GitHub
m-e-h-r-d-a-a-d m-e-h-r-d-a-a-d commented on Oct 02, 2026 01:39 UTC
Author

Daily Conversation now guides learners through greetings, invitations, making and changing plans, and keeping in touch. It expands the situation from six to eighteen reviewed meanings with two examples each, distinct fuller explanations, editorial level rationales, and stable existing IDs.

Natural regional and phrase forms such as “cancelled”, “caught up”, “met up”, “kept in touch” and “sound good” now pass lexical validation through narrowly scoped canonical entries. Meaning correctness remains a separate provider judgment. Both word-detail views hide repeated definitions while retaining useful fuller guidance, and display readable word-type and level labels.

Evaluation fixture v3 retains all 336 cases and 91 golden members, removing only three resolved regional exclusions. Browser fixtures read the actual curriculum; content-only changes now trigger accessibility and Lighthouse workflows.

Validation:

  • Full workspace validation passed, including both builds and the Go suite against a migrated disposable PostgreSQL database.

  • Independent editorial, backend, UI and deployment-path reviews found no remaining actionable findings.

  • Seed rerun regression passed with real PostgreSQL constraints and an unchanged synthetic saved-learning reference; all 298 existing content row identities and relationships are preserved.

  • The full CI browser suite passed 266 tests with 37 existing skips on implementation 679f192c; Lighthouse and all applicable CI passed. Eighteen screenshots cover 360px, 430px and desktop in both themes, with overflow/accessibility checks and representative visual inspection.

  • Review follow-up 922086d6 clarifies that both follow-up meanings account for the ninth variant check and shares the identical usage-note formatter. Independent and final automated review found no issues. Fresh full workspace validation and all 18 focused browser checks passed. Final CI also passed, including all 266 browser tests and Lighthouse. Database integration evidence applies to 679f192c; the follow-up changes no database behavior.
  • The browser API and feedback providers used for local checks are synthetic. These results do not establish live AI feedback quality, learner outcomes or production backup recovery. Production promotion remains separate.

    Diff: 2195 lines (+2045 / -150) across 24 files Reviewer: claude[bot] Review duration: 19m
    All Vouch review confidence checks passed
    Residual risk 0.36 = Change Risk (0.72) × (1 − Review Confidence (0.50)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 2195 lines diff across 24 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.52 · 5 substantive comment(s)
    0.52
    Model 3 · Review Timing & Attention
    Session adequacy: 35% · Reviewer familiarity: 35%
    49%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    8 items
    vercel[bot] vercel[bot] commented on Oct 02, 2026 01:39 UTC
    Bot

    [vc]: #QIdu0VVsrXGV+4/F0em3CgiMV4GoNUYnIf/7kMWbXJc=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJ2b2Nhbm92YS1wbGF0Zm9ybS1zYW5kYm94LXdlYiIsInByb2plY3RJZCI6InByal9zOW5ZZ0oxcTJYc3F2TVk4RlRqN0U0bGRkaDZMIiwibGl2ZUZlZWRiYWNrIjp7InJlc29sdmVkIjowLCJ1bnJlc29sdmVkIjowLCJ0b3RhbCI6MCwibGluayI6IiJ9LCJpbnNwZWN0b3JVcmwiOiJodHRwczovL3ZlcmNlbC5jb20va2Fyc2lmdC92b2Nhbm92YS1wbGF0Zm9ybS1zYW5kYm94LXdlYi80NGU0S0hpYmFLUXBhR1BXRTh5ODk4cUJNOFdzIiwibmV4dENvbW1pdFN0YXR1cyI6IklHTk9SRUQiLCJyb290RGlyZWN0b3J5IjoiYXBwcy93ZWIiLCJwcmV2aWV3VXJsIjoidm9jYW5vdmEtcGxhdGZvcm0tc2FuZGJveC13ZWItZ2l0LWNvZGV4LWRhaWx5LWNvLTdlMTRhZS1rYXJzaWZ0LnZlcmNlbC5hcHAifV19
    The latest updates on your projects. Learn more about Vercel for GitHub.

    <details><summary>1 Skipped Deployment</summary>

    | Project | Deployment | Actions | Updated |
    | :--- | :----- | :------ | :------ |
    | <a href="https://vercel.com/karsift/vocanova-platform-sandbox-web"><sup><img src="https://vercel.com/api/www/avatar?projectId=prj_s9nYgJ1q2XsqvMY8FTj7E4lddh6L&teamId=team_IXcxvxrwJRxXjvq44fCGcOTw&s=32" width="16" height="16" align="middle" alt="" /></sup></a> vocanova-platform-sandbox-web | !Ignored Ignored | Preview | <relative-time datetime="2026-10-02T01:48:21.307Z">Oct 2, 2026 1:48am UTC</relative-time> |
    </details>

    coderabbitai[bot] coderabbitai[bot] commented on Oct 02, 2026 01:39 UTC
    Bot

    <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
    <!-- This is an auto-generated comment: skip review by coderabbit.ai -->

    [!IMPORTANT]

    ## Review skipped

    > Auto reviews are disabled on this repository. 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.

    > <details>

    <summary>⚙️ Run configuration</summary>

    > Configuration used: Repository: KARSIFT/vocanova-platform-sandbox/.coderabbit.yaml

    > Review profile: CHILL

    > Plan: Advanced

    > Run ID: 35224d2f-e0ef-404f-8a85-5798d21269d1

    > </details>

    > 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:

    - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> 🔍 Trigger review

    <!-- end of auto-generated comment: skip review by coderabbit.ai -->

    <!-- autopilot:start -->

  • <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autopilot</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
  • Autopilot is currently an internal CodeRabbit preview.

    <!-- autopilot:end -->
    <!-- tips_start -->

    ---

    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.

    <details>
    <summary>❤️ Share</summary>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </details>

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    claude[bot] claude[bot] commented on Oct 02, 2026 01:40 UTC
    Bot

    Claude finished @m-e-h-r-d-a-a-d's task in 4m 22s —— View job

    ---

    Review complete

  • Gather context

  • Read changed files

  • Review: correctness

  • Review: security

  • Review: tests

  • Review: consistency & simplicity

  • Post findings
  • ---

    Two minor findings posted as inline comments; nothing blocking.

    target_seed_test.go:85 — The comment string "four noun meaning pairs and five Daily Conversation targets" is inconsistent with the variants map (3 noun words + 5 DC targets = 8). The expected count of 9 implies "cancel" contributes two meaning rows (one pre-existing, one new DC meaning). The comment should reflect this so the arithmetic is self-evident.

    word-definition.ts — Both word-detail pages define the same formatNoteType helper locally. Since getAdditionalDefinition was just extracted here, this module is the natural home for formatNoteType too — one removal per page, no new files needed.

    ---

    Everything else looks solid:

  • Correctness: The curated natural forms for cancel, catch up, meet up, keep in touch, and sounds good are narrowly scoped (wordType + POS must match exactly) and the scope-leak tests in target_natural_forms_test.go cover the boundary cases well. The evaluation dataset ID stability test confirms all 336 IDs are preserved.

  • Security: No secrets, no injection vectors, no unsafe user-input handling found.

  • Tests: Coverage is thorough — unit (natural forms, scope leaks), integration (service orchestration, PostgreSQL FK constraints), E2E (full save → navigate → definition-dedup pathway in both themes). seed-content-fixture.mjs reads the actual JSON at test time, so browser fixtures can't drift from content.

  • CI paths: Adding apps/api/cmd/seed/voc026-p1.json to the accessibility and Lighthouse workflow triggers is correct — content-only seed edits will now exercise the browser suite.

  • Evaluation fixture cleanup: The three removed regional_validation_gap fields from evaluation_targets_v2.json (travel/learn/organize) are the direct consequence of the curated-forms fix landing in this same PR. The test TestEditorialRegionalFormsRegainScoringWithoutChangingLanguageLabels verifies the regression is gone.
  • chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] commented on Oct 02, 2026 01:40 UTC
    Bot

    <!-- codex-pull-request-review-summary -->
    <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"922086d6677f1a91d4163145ada43edd356895f9","mergeGateEnabled":false,"pullRequestNumber":1472,"repository":"KARSIFT/vocanova-platform-sandbox","status":"completed"} -->

    Codex Review Summary

    This comment shows the latest Codex review activity on this pull request.

    | Review | Status | Commit | Review trigger |
    | --- | --- | --- | --- |
    | 📝 Code Review | ✅ Completed <relative-time datetime="2026-10-02T01:51:31.134592Z">2026-10-02T01:51:31.134592Z</relative-time> | 922086d | Draft marked ready |
    | 🔒 Security Review | ✅ Completed <relative-time datetime="2026-10-02T01:54:55.968887Z">2026-10-02T01:54:55.968887Z</relative-time> | 922086d | Draft marked ready |

    <details> <summary>ℹ️ About Codex in GitHub</summary>
    <br/>

    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" or "@codex security review".
  • Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

    </details>

    claude[bot] claude[bot] commented on code on Oct 02, 2026 01:44 UTC
    Code Review
    apps/api/business/aifeedback/target_seed_test.go:1
    @@ -77,7 +82,7 @@ func TestSeededTargetsAcceptExamplesAndApprovedNounVariants(t *testing.T) {
     		}
     	}
     	require.Equal(t, len(seed.Examples), checkedExamples, "every shipped example must have a loaded target")
    -	require.Equal(t, 4, checkedVariants, "syllabus, check-out, and both follow-up meanings")
    +	require.Equal(t, 9, checkedVariants, "four noun meaning pairs and five Daily Conversation targets")

    The comment "four noun meaning pairs and five Daily Conversation targets" doesn't add up with the variants map. The map contains 3 noun words (syllabus, follow-up, check-out) and 5 DC targets (catch up, meet up, keep in touch, sounds good, cancel), giving 8 entries. Reaching 9 requires one word to contribute two meaning rows — most likely "cancel", which now has both an existing meaning and a new DC meaning in the seed. The comment should say "three noun meaning pairs" (or "cancel contributes two rows") so the arithmetic is legible to future maintainers.

    	require.Equal(t, 9, checkedVariants, "three noun meaning pairs (syllabus/follow-up/check-out) and five Daily Conversation targets (cancel counted twice: one pre-existing meaning plus one DC meaning)")
    

    claude[bot] claude[bot] commented on code on Oct 02, 2026 01:44 UTC
    Code Review
    apps/web/src/lib/word-definition.ts:1
    @@ -0,0 +1,14 @@
    +/** Keep a fuller explanation only when it adds text to the short definition. */
    +export function getAdditionalDefinition(
    +  shortDefinition: string,
    +  learnerDefinition?: string | null,
    +): string | null {
    +  const explanation = learnerDefinition?.trim();
    +  if (!explanation) return null;
    +
    +  const normalize = (text: string) =>
    +    text.trim().replace(/\s+/g, " ").toLowerCase();
    +  return normalize(explanation) === normalize(shortDefinition)
    +    ? null
    +    : explanation;
    +}

    Both discover/[situation]/[word]/page.tsx and words/[userWordId]/page.tsx define an identical formatNoteType local function. Now that this module exists, it's a natural home for that helper too — eliminating the duplication and making the extraction consistent.

    claude[bot] claude[bot] commented on Oct 02, 2026 01:48 UTC
    Bot

    Claude finished @m-e-h-r-d-a-a-d's task in 3m 43s —— View job

    ---

    Review complete

  • Gather context

  • Read changed files

  • Review: correctness

  • Review: security

  • Review: tests

  • Review: consistency & simplicity

  • Post findings
  • ---

    Both findings from the earlier automated review have been addressed in the second commit (922086d, "refactor: share word detail note formatting"):

  • formatNoteType duplication — both word-detail pages now import from @/lib/word-definition rather than defining the helper locally. Resolved. ✓

  • Test comment arithmetic — target_seed_test.go:85 was updated to "syllabus, check-out, both follow-up meanings, and five Daily Conversation targets". I verified against the seed JSON: follow-up has two word_meanings rows, so eight entries in the variants map correctly produce nine checkedVariants increments. Resolved. ✓
  • No new findings. Everything below holds on a fresh read:

    Correctness

  • addCuratedNaturalForms is gated on the exact (base, wordType, partOfSpeech) triple — narrowly scoped, no cross-type bleed. sounds good uses the unusual partOfSpeech: "phrase" self-type, correctly guarded by wordType == "phrase" && partOfSpeech == "phrase".

  • findCanonicalMeaning replaces hardcoded CANONICAL_WORDS.pour in the mock server's save, saved-words, due-words, and target-lookup paths. The save action now returns a proper 404 when the meaning is not found, rather than proceeding with undefined data.

  • Evaluation dataset v3 removes the three regional_validation_gap markers for travel/learn/organize — the curated British forms now pass the validator, so the exclusions are no longer warranted. TestEditorialRegionalFormsRegainScoringWithoutChangingLanguageLabels verifies this boundary is clean.

  • Seed counts in main_test.go are arithmetically consistent: +12 canonical words, +12 meanings, +30 examples (12 × 2 new + 6 retained second examples), +36 notes (12 × 3), +12 journey words.
  • Security — No secrets, no injection vectors. The prompt-injection evaluation case verifies that injected grading instructions don't change the validator's behavior.

    Tests — Unit (curated forms + scope leaks), service integration (provider receives correct payload; lexical presence doesn't override provider meaning judgment), PostgreSQL integration (real FK constraints, idempotent rerun, saved-learning reference preserved), and E2E (18-word curriculum list, save flow, definition deduplication in both themes, accessibility scan). seed-content-fixture.mjs reads the actual seed JSON at test time so browser fixtures track content edits automatically.

    CI paths — Adding apps/api/cmd/seed/voc026-p1.json to the accessibility and Lighthouse path filters is correct.

    Reviewers
    Assignees
    m-e-h-r-d-a-a-d m-e-h-r-d-a-a-d
    Labels
    risk: medium confidence: 49.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 71.5% (HIGH) · Higher = larger blast radius
    71.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 49.8% · Lower = rushed or shallow review
    49.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 35.9% · Moderate risk
    35.9%