Phase 44: data foundations — Horse.bornAt (KI-008), unpositioned odontogram findings, customer-upserted event (KI-017)#254
Merged
Conversation
…ation 20260612210000
…, real Né(e) le header alias, bornAt-aware data-quality check, DOB + derived age on horse detail
…t/null tooth-id findings in an Unpositioned findings list instead of dropping them
…pdate routes — fire-and-forget via emitN8nEvent; workflow 10 consumer stays inactive (BLOCKED-ON-VETUP-API)
…p importer (with/without DOB) — completes the Phase 44 test matrix https://claude.ai/code/session_01VzJJTUcvzZgS9jN8aap9iv
…lved, KI-017 producer-done/consumer-blocked; Vetup runbook bornAt mapping note https://claude.ai/code/session_01VzJJTUcvzZgS9jN8aap9iv
…mail → /api/webhooks/email Three-node import-ready export: Gmail IMAP trigger (UNSEEN + mark-as-read, attachments off), keep-only-set mapping to the email-intake Zod schema (empty-string optionals, ISO 8601 receivedAt), Header-Auth POST with 3x5s retry. Ships inactive; credentials filled at import. Setup checklist in node notes. https://claude.ai/code/session_01VzJJTUcvzZgS9jN8aap9iv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 44 — Data foundations small-batch (KI-008, §23 deferral, KI-017) + n8n workflow 13
Overnight multi-agent build authorised by Freddie (2026-06-12). Four small, independent items:
Horse.bornAt: additive nullable DateTime (migration20260612210000_phase44_horse_born_at, no backfill). Vetup importer now persists the animal DOB (including the realNé(e) leheader alias) intobornAtwhile leaving the legacy derivedagebehaviour untouched; horse detail shows DOB + age derived frombornAtwith stored-age fallback; the data-quality "missing birth date" check is nowbornAt-aware. Importer covered with/without DOB on both ETL paths.customer-upserted: customer create/update routes now emit the n8n event exactly like the two existing emits (fire-and-forget viaemitN8nEvent, env-gated, failure-tolerant). Producer side closed; consumer workflow 10 stays inactive (BLOCKED-ON-VETUP-API). KI-017 updated to producer-done/consumer-blocked.n8n/13-gmail-imap-intake.json— import-ready Gmail IMAP →/api/webhooks/emailintake (3 nodes, ships inactive, placeholder credentials, field mapping verified againstemail-intake.service.ts).Verification
Gates all green on the final tree: lint ✓ typecheck ✓ prisma validate ✓ build ✓, tests 2,621 → 2,652 (+31). Deferred with notes: KI-009 phone normalisation (≤3 rows, manual data fix), vaccination-schedule recalculation from
bornAt(enabled by this, not built).Suggested merge order tonight: this first → Phase 43 (#253) → Phase 41 → Phase 42 (#252). All four PRs append to
BUILD_PLAN.md/KNOWN_ISSUES.mdin separate final commits — I'll rebase the remaining branches after each merge. Final merge with Richard / Freddie as always.https://claude.ai/code/session_01VzJJTUcvzZgS9jN8aap9iv
Generated by Claude Code