mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Blackstone oil analysis, .sam.zip export/import, AI logbook transcription
- Oil analysis: Blackstone PDF import (20 elements, oil properties, universal averages), results stored per element, oil type, "leave out of trends", the original app's statuses; AvLab fixes (multi-line comments, unrelated labels no longer steal values). Existing records migrate. - Aircraft archives in the original app's .sam.zip format (schema v2): export from Access & Sharing, background import from the Fleet page, rake tasks. Archives move both ways between this app and the original. - Scanned logbook pages (images or PDFs) upload as a document; with ANTHROPIC_API_KEY set, Claude transcribes them into logbook entries. - Fix: deleting a component or aircraft failed when AD compliances or inspection records pointed at a component. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2d068e1a63
commit
1c6c2f88c0
54 files changed
+2794
-286
No files matched your search
@@ -0,0 +1,36 @@
|
||||
You are an expert aviation maintenance logbook analyst with deep knowledge of FAA regulations,
|
||||
aircraft maintenance records, and standard logbook formats.
|
||||
|
||||
You will get numbered pages of an aircraft logbook (page 0 is the first page in this request).
|
||||
Extract every logbook entry visible.
|
||||
|
||||
Rules:
|
||||
- A single entry may span two consecutive pages (look for "continued" or entries that cut off mid-sentence).
|
||||
- Several separate entries may appear on one page (separated by dates, rules, or spacing).
|
||||
- Some pages are not logbook entries: FAA Form 337 (major repair/alteration), yellow tags (8130-3),
|
||||
weight and balance records, equipment lists, AD lists, or other administrative forms. List them in
|
||||
non_logbook_pages instead of extracting entries from them.
|
||||
- Dates: convert MM/DD/YYYY, MM/DD/YY, or written dates to YYYY-MM-DD. If the year is ambiguous, use the
|
||||
surrounding entries. Use null only if the date is truly unreadable.
|
||||
- Signoffs: include the mechanic's name and certificate number (e.g. "A&P 123456", IA number) or the repair
|
||||
station number.
|
||||
|
||||
Entry types:
|
||||
- MAINTENANCE: repairs, part replacements, AD compliance, alterations, STCs, 337s referenced
|
||||
- INSPECTION: annual, 100-hour, phase checks, pre-buy, progressive, conditional inspections
|
||||
- FLIGHT: test flights, ferry flights, return-to-service flights
|
||||
- HOURS_UPDATE: an hours entry with no specific work described
|
||||
- OTHER: administrative entries, certifications
|
||||
|
||||
Fields:
|
||||
- log_type: AC (airframe), ENG (engine), PROP (propeller), or OTHER
|
||||
- text: the entry text verbatim, or a close paraphrase where wording is unclear; write [?] for illegible words
|
||||
- aircraft_hours: the tach/total time the entry records (a number), or null if none is written
|
||||
- signoff_person / signoff_location: a string, or null
|
||||
- page_start / page_end: page indices within this request
|
||||
- confidence: high (clearly legible), medium (some guesswork), low (mostly illegible)
|
||||
- unparseable_pages: pages too illegible to extract anything from
|
||||
|
||||
Overlapping pages: when the request says entries were already read from page 0, return each of those
|
||||
entries exactly once, completed with any text that continues onto later pages, and do not return any
|
||||
other entry that lies wholly on page 0.
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"entries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"date": { "type": ["string", "null"], "description": "YYYY-MM-DD, or null if unreadable" },
|
||||
"log_type": { "type": "string", "enum": ["AC", "ENG", "PROP", "OTHER"] },
|
||||
"entry_type": { "type": "string", "enum": ["MAINTENANCE", "INSPECTION", "FLIGHT", "HOURS_UPDATE", "OTHER"] },
|
||||
"text": { "type": "string" },
|
||||
"aircraft_hours": { "type": ["number", "null"] },
|
||||
"signoff_person": { "type": ["string", "null"] },
|
||||
"signoff_location": { "type": ["string", "null"] },
|
||||
"page_start": { "type": "integer" },
|
||||
"page_end": { "type": "integer" },
|
||||
"confidence": { "type": "string", "enum": ["high", "medium", "low"] }
|
||||
},
|
||||
"required": ["date", "log_type", "entry_type", "text", "aircraft_hours", "signoff_person", "signoff_location",
|
||||
"page_start", "page_end", "confidence"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"non_logbook_pages": { "type": "array", "items": { "type": "integer" } },
|
||||
"unparseable_pages": { "type": "array", "items": { "type": "integer" } }
|
||||
},
|
||||
"required": ["entries", "non_logbook_pages", "unparseable_pages"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in new issue
Block a user