Use aircraft typecode to refine military flight typing#34
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d9a023cafe
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const aircraftType = analysis.typecode || details.typecode; | ||
| if (aircraftType) { | ||
| const typeMatch = identifyByAircraftType(aircraftType); | ||
| if (typeMatch) { | ||
| enrichedFlight.aircraftType = typeMatch.type; |
There was a problem hiding this comment.
Avoid overwriting high-confidence types with generic typecodes
The new typecode logic applies unconditionally and replaces whatever aircraftType was already derived from callsign/hex. This can degrade accuracy when a callsign already identified a more specific role (e.g., NCHO/MC‑130 yields special_ops via callsign, but Wingbits typecode C130 maps to transport and will overwrite it). That’s a regression because the change was intended as a fallback; consider only applying this mapping when the existing type is unknown or confidence is low.
Useful? React with 👍 / 👎.
- PR #33: Disambiguate NAVY callsign by origin country (US vs UK) - PR #34: Use typecode fallback in determineAircraftInfo + Wingbits enrichment (guarded: only when type is still 'unknown') - PR #35: Persist typeCode in enriched data (skip the broken pre-filter removal and false-positive regex from original PR) Closes #33, #34, #35
|
Cherry-picked typecode fallback into main (commit 283d05a). Fixed: added guard to only set type when still 'unknown' to avoid overwriting higher-confidence matches. |
…with fixes - PR koala73#33: Disambiguate NAVY callsign by origin country (US vs UK) - PR koala73#34: Use typecode fallback in determineAircraftInfo + Wingbits enrichment (guarded: only when type is still 'unknown') - PR koala73#35: Persist typeCode in enriched data (skip the broken pre-filter removal and false-positive regex from original PR) Closes koala73#33, koala73#34, koala73#35
- koala73#34: Remove isProUser() guard from setupAuthWidget(). New users now see the sign-in button and can create accounts. The guard was intentionally deferred; removing it is the stated end-state. Close stale todos whose fixes already landed in prior PRs: - koala73#10: inferEntityClassFromName word-boundary regex (already in code) - koala73#11: entity key collision fix using candidateStateId (already in code) - koala73#12: priorWorldState threading to writeSimulationPackage (already in code) - koala73#13: sanitizeForPrompt on simulation builder strings (already in code) - koala73#14: allForecastIdSet Set-based lookup (already in code) - koala73#35: algorithms:['RS256'] in jwtVerify (already in auth-session.ts) - koala73#41: frameworkHash in deduct-situation cache key (already in code) - koala73#42: isCallerPremium server-side premium gate (already in code) - koala73#43: SSRF — ALLOWED_AGENTSKILLS_HOSTS + redirect:manual (already fixed) - koala73#44: sanitizeForPrompt on systemAppend before LLM (already in code) - koala73#45: systemAppend included in getCacheKey (already in code) - koala73#49: shippingStress/diseaseOutbreaks/socialVelocity in BOOTSTRAP_KEYS https://claude.ai/code/session_015fz1MvRuBJGYbgHubGEabA
The setupAuthWidget() call was gated behind isProUser(), which created a deadlock: new users without legacy API keys could never see the Sign In button and thus could never authenticate. Removes the guard in both the main app and the pro landing page pricing section. Closes #34 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…#3115) The setupAuthWidget() call was gated behind isProUser(), which created a deadlock: new users without legacy API keys could never see the Sign In button and thus could never authenticate. Removes the guard in both the main app and the pro landing page pricing section. Closes #34 Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
Motivation
typecodevalues to known military types and increase confidence when appropriate.Description
identifyByAircraftTypefromsrc/config/militaryand extenddetermineAircraftInfoto accept an optionaltypeCodeparameter and consultidentifyByAircraftTypeas a fallback.enrichFlightsWithWingbits), examineanalysis.typecodeordetails.typecode, map it viaidentifyByAircraftType, setflight.aircraftTypewhen matched, and upgradeconfidencefromlowtomediumwhere applicable.identifyByAircraftTypeas the single source of truth for mapping typecodes toMILITARY_AIRCRAFT_TYPES.Testing
Codex Task