feat: expand daily conversation practice #1472
[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>
<!-- 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.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.
> <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 thereviews.review_statustofalsein 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 -->
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>
</details>
<sub>Comment @coderabbitai help to get the list of available commands.</sub>
<!-- tips_end -->
Claude finished @m-e-h-r-d-a-a-d's task in 4m 22s —— View job
---
Review complete
---
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:
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.seed-content-fixture.mjs reads the actual JSON at test time, so browser fixtures can't drift from content.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.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.<!-- 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
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
</details>
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)")
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 finished @m-e-h-r-d-a-a-d's task in 3m 43s —— View job
---
Review complete
---
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. ✓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.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.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.
claude[bot]
m-e-h-r-d-a-a-d
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:
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.922086d6clarifies 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 to679f192c; 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.