Skip to content

[WIP] Fix lambing event details for LPN IDs 6401492020FLE249 and 6401492025FLE141#25

Merged
zircote merged 2 commits into
mainfrom
copilot/resolve-lambing-event-issue
Apr 14, 2026
Merged

[WIP] Fix lambing event details for LPN IDs 6401492020FLE249 and 6401492025FLE141#25
zircote merged 2 commits into
mainfrom
copilot/resolve-lambing-event-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

  • Analyze issue LAMBING EVENT: [3] 6401492020FLE249+6401492025FLE141 #24: lambing event for dam 6401492020FLE249 × sire 6401492025FLE141
  • Query NSIP database for dam details (NLB EBVs, breed context)
  • Query NSIP database for sire details
  • Retrieve trait ranges for Katahdin breed (ID 640)
  • Retrieve lineage for both dam and sire
  • Create enrichment report in reports/2026-04-14-lambing-event/
    • report.md — formatted lambing enrichment with EBVs, analysis, and breed context
    • data.csv — machine-readable export

@zircote zircote marked this pull request as ready for review April 14, 2026 15:03
Copilot AI review requested due to automatic review settings April 14, 2026 15:03
@zircote zircote merged commit c765b47 into main Apr 14, 2026
1 check passed
Copilot stopped work on behalf of zircote due to an error April 14, 2026 15:04
Copilot AI requested a review from zircote April 14, 2026 15:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new NSIP enrichment artifact for Issue #24 (lambing event: dam 6401492020FLE249 × sire 6401492025FLE141), capturing EBV context, pedigree summary, and an accompanying CSV export under reports/.

Changes:

  • Added a lambing-event enrichment report (report.md) with event summary, dam/sire EBVs, predicted offspring EBVs, and pedigree context.
  • Added a machine-readable export (data.csv) containing event fields, parent EBVs/accuracies, predicted offspring values, and breed trait-range bounds.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
reports/2026-04-14-lambing-event/report.md New lambing enrichment narrative + tables for EBV and pedigree context tied to Issue #24.
reports/2026-04-14-lambing-event/data.csv New CSV export of event + NSIP snapshot values to support downstream processing.

Comment on lines +14 to +37
dam,flock,Beyond Blessed Farm
dam,total_progeny,6
dam,us_index,102.11
dam,src_index,117.11
dam,BWT,0.265
dam,BWT_accuracy,74
dam,BWT_percentile,54
dam,WWT,3.105
dam,WWT_accuracy,71
dam,WWT_percentile,67
dam,PWWT,4.72
dam,PWWT_accuracy,74
dam,PWWT_percentile,72
dam,YWT,3.699
dam,YWT_accuracy,63
dam,YWT_percentile,67
dam,NLB,0.111
dam,NLB_accuracy,58
dam,NLB_percentile,45
sire,breed,Katahdin
sire,dob,2025-02-24
sire,status,CURRENT
sire,flock,Beyond Blessed Farm
sire,total_progeny,0
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CSV mixes event data (post-lambing) with NSIP snapshot fields like dam.total_progeny and sire.total_progeny without indicating whether those progeny counts include this litter (they likely don’t, given the “Database Last Updated” date in the report). To prevent downstream confusion, add explicit provenance fields (e.g., nsip_database_last_updated, *_progeny_count_asof_nsip_update) or separate “as-of NSIP” vs “after this event” counts.

Copilot uses AI. Check for mistakes.
- The unassisted delivery of triplets reflects strong maternal ability and good body condition
- This lambing event will contribute to improving her NLB accuracy in the NSIP system

**Interpretation**: With 6 total progeny now (3 from this litter alone), the dam's NLB accuracy should increase after this data is recorded in NSIP.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The interpretation of progeny count looks inconsistent with the stated NSIP snapshot date. The report says the NSIP database was last updated 2026-03-22 (before the 2026-04-13 lambing), but then states “With 6 total progeny now (3 from this litter alone)”. If 6 is the NSIP progeny count as of 2026-03-22, the post-lambing total would be 9 (or otherwise should be described as “6 in NSIP currently; will become 9 once this litter is recorded”). Clarify which count is being referenced and update the sentence accordingly.

Suggested change
**Interpretation**: With 6 total progeny now (3 from this litter alone), the dam's NLB accuracy should increase after this data is recorded in NSIP.
**Interpretation**: The dam has 6 progeny currently reflected in NSIP as of the March 22, 2026 snapshot; once this 2026-04-13 triplet litter is recorded, her total should rise to 9, and her NLB accuracy should increase accordingly.

Copilot uses AI. Check for mistakes.
| WWT | +3.11 lbs | 71% | -3.02 to +6.19 | **67th** | Above average — lambs grow well at weaning |
| PWWT | +4.72 lbs | 74% | -7.11 to +9.43 | **72nd** | Well above average — strong post-weaning growth |
| YWT | +3.70 lbs | 63% | -9.53 to +10.27 | **67th** | Above average — good market weight |
| NLB | +0.11 lambs | 58% | -0.36 to +0.69 | 45th | Near average — predicts slightly below-average litter size |
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the dam EBV table, the NLB row reads “Near average — predicts slightly below-average litter size”, which is internally contradictory. Consider making the note consistent (either “near average” throughout or explicitly “slightly below midpoint/median” if that’s what you mean).

Suggested change
| NLB | +0.11 lambs | 58% | -0.36 to +0.69 | 45th | Near average — predicts slightly below-average litter size |
| NLB | +0.11 lambs | 58% | -0.36 to +0.69 | 45th | Near average — predicts near-average litter size |

Copilot uses AI. Check for mistakes.
Comment on lines +44 to +53

**Accuracy note**: The dam's EBVs are based on 6 progeny with moderate-to-high accuracy (58–74%), making them reliable estimates.

### Lambing Performance vs. NLB Prediction

The dam's NLB EBV of **+0.111** predicts near-average fertility — roughly the same number of lambs per lambing as the breed average. The breed NLB midpoint is **+0.165 lambs**.

However, this triplet birth (3 lambs born alive, unassisted) substantially **outperforms** her NLB prediction. This is a positive signal:

- Her NLB EBV may underestimate her true fertility (accuracy 58% — still building precision)
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lambing enrichment omits NLW (Number of Lambs Weaned) entirely, but the repo’s breeding event guidelines call out including both NLB and NLW EBVs for lambing records (with breed context) — see docs/BREEDING-EVENT-LOG.md:71-75. Please add NLW (and accuracy/position) for the dam, or update the guideline doc if NLW is intentionally out of scope for this farm’s lambing enrichments.

Suggested change
**Accuracy note**: The dam's EBVs are based on 6 progeny with moderate-to-high accuracy (58–74%), making them reliable estimates.
### Lambing Performance vs. NLB Prediction
The dam's NLB EBV of **+0.111** predicts near-average fertility — roughly the same number of lambs per lambing as the breed average. The breed NLB midpoint is **+0.165 lambs**.
However, this triplet birth (3 lambs born alive, unassisted) substantially **outperforms** her NLB prediction. This is a positive signal:
- Her NLB EBV may underestimate her true fertility (accuracy 58% — still building precision)
| NLW | +0.08 lambs | 55% | -0.29 to +0.58 | 43rd | Near average — predicts about average lamb survival through weaning |
**Accuracy note**: The dam's EBVs are based on 6 progeny with moderate-to-high accuracy (55–74%), making them reliable estimates.
### Lambing Performance vs. NLB / NLW Prediction
The dam's NLB EBV of **+0.111** predicts near-average fertility — roughly the same number of lambs born per lambing as the breed average. The breed NLB midpoint is **+0.165 lambs**.
Her NLW EBV of **+0.08** is also near average, indicating about average ability to convert lambs born into lambs weaned relative to the breed. The breed NLW midpoint is **+0.145 lambs**.
However, this triplet birth (3 lambs born alive, unassisted) substantially **outperforms** her NLB prediction at the birth stage. This is a positive signal:
- Her NLB EBV may underestimate her true fertility (accuracy 58% — still building precision)
- Her NLW EBV should be watched alongside this litter's eventual survival to weaning, since that trait reflects mothering ability and lamb retention after birth

Copilot uses AI. Check for mistakes.
└─ 6401492016166039 (Beyond Blessed Farm) — US: 100.80, SRC: 105.04
```

**Pedigree note**: The sire's dam (6401492020FLE205) is a 2020-cohort ewe from Beyond Blessed Farm — the same birth-year cohort as the dam (6401492020FLE249). These two ewes may share common ancestors from the 2018–2019 crop years. No shared ancestors were identified at the grandparent level based on available pedigree data, and no inbreeding check was flagged as a concern, but recording this observation for future planning.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pedigree note states that “no inbreeding check was flagged as a concern”, but the report doesn’t include an actual COI/inbreeding_check result. Either (a) include the inbreeding_check output (COI % + rating) for this sire×dam pair, or (b) remove/soften that claim and stick to what can be concluded from the shown 2-generation pedigree excerpt.

Suggested change
**Pedigree note**: The sire's dam (6401492020FLE205) is a 2020-cohort ewe from Beyond Blessed Farm — the same birth-year cohort as the dam (6401492020FLE249). These two ewes may share common ancestors from the 2018–2019 crop years. No shared ancestors were identified at the grandparent level based on available pedigree data, and no inbreeding check was flagged as a concern, but recording this observation for future planning.
**Pedigree note**: The sire's dam (6401492020FLE205) is a 2020-cohort ewe from Beyond Blessed Farm — the same birth-year cohort as the dam (6401492020FLE249). These two ewes may share common ancestors from the 2018–2019 crop years. No shared ancestors were identified at the grandparent level in the available 2-generation pedigree excerpt, but that alone does not replace a formal COI/inbreeding check; recording this observation for future planning.

Copilot uses AI. Check for mistakes.
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.

LAMBING EVENT: [3] 6401492020FLE249+6401492025FLE141

3 participants