Skip to content

fix(reports): attached flight with unrecognized aircraft shows model, not 'Unknown'#34

Merged
BigBill1418 merged 1 commit into
mainfrom
fix/avata2-missing-from-report
Jul 3, 2026
Merged

fix(reports): attached flight with unrecognized aircraft shows model, not 'Unknown'#34
BigBill1418 merged 1 commit into
mainfrom
fix/avata2-missing-from-report

Conversation

@BigBill1418

Copy link
Copy Markdown
Owner

A DJI Avata 2 the operator flew + attached was missing from the client report. Root cause: the Avata 2 fleet record has a blank serial, so the strict serial-first matcher (ADR-0007) left aircraft_id NULL, and the report rendered 'Unknown' (LLM) / omitted it (PDF). Fix: fallback chain to the parsed drone_model so an attached flight is never anonymized/dropped. Test: 2 failed -> 34 passed. ADR-0007 + ADR-0029 untouched. Data remediation (register the serial) is separate.

An attached flight whose serial doesn't match a fleet aircraft (aircraft_id
NULL under the strict ADR-0007 serial-first matcher) was labelled 'Unknown' in
the LLM prompt and omitted from the PDF 'Aircraft used' section — so a DJI
Avata 2 the operator flew and attached vanished from the client report. New
_aircraft_label() fallback chain: linked fleet model_name -> live flight
drone_name/drone_model -> cache -> 'Unknown' only as last resort. Used by both
the LLM aggregation and the PDF section. ADR-0007 matcher untouched; ADR-0029
altitude guard untouched.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@BigBill1418 BigBill1418 merged commit a58893a into main Jul 3, 2026
1 check failed
@BigBill1418 BigBill1418 deleted the fix/avata2-missing-from-report branch July 3, 2026 00:58
BigBill1418 added a commit that referenced this pull request Jul 3, 2026
…oy note [skip-deploy] (#35)

Documents the full incident: root cause (blank fleet serial + ADR-0007 strict
matcher), the code fix (PR #34), the prod data remediation (serial registration
+ backfill of 12 flights/4 junction rows, with SQL audit trail), the standing
rule to register drone serials, and the .deployer-disabled hand-deploy learning.

Co-authored-by: Bill Barnard <me@barnardHQ.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant