⬡
WATCHDOG — Continuous platform health monitor. Runs 8 checks every 10 minutes. Alerts fire to Supabase
watchdog_alerts + HAMAYA Risk Register. Covers API health, PM2 cluster, Supabase connection, ADM threshold, disk usage, Beast KB staleness, VIDHUR escalation spike.Check Frequency
8
every 10 minutes
API Status
—
api.flybytheway.com
Supabase
—
Mumbai region
Open Alerts
—
unresolved
PM2 Workers
6
cluster online
Beast KB
v5.2
last updated
⬡ Platform Health — Live
Loading…
WATCHDOG Checks — All 8
| # | Check | Trigger | Action |
|---|---|---|---|
| 1 | API Health | 3 consecutive failures | CRITICAL alert → HAMAYA Risk |
| 2 | PM2 Cluster | Any worker offline | HIGH alert → HAMAYA Risk |
| 3 | Supabase Connection | REST ping failure | CRITICAL alert |
| 4 | ADM Threshold | >5 ADMs in 7 days | HIGH alert → Maya review |
| 5 | Disk Usage | >80% VPS disk | MEDIUM alert |
| 6 | Beast KB Staleness | KB not updated >30 days | MEDIUM alert |
| 7 | VIDHUR Escalation Spike | >10 escalations in 24h | HIGH alert → investigate |
| 8 | Hold Booking TTL Expiry | TTL <2h on held booking | AMBER alert → Booking Manager |
Recent WATCHDOG Alerts
Click Load to fetch alerts
Cron Schedule
# VPS — admin crontab (not root)
# WATCHDOG — every 10 minutes
*/10 * * * * /usr/bin/python3 /opt/travel-management/flybrain/watchdog.py >> /opt/travel-management/flybrain/logs/watchdog.log 2>&1
# Alerts route to:
# POST /api/watchdog/alert → watchdog_alerts (Supabase) + HAMAYA_Risk_Register
# WATCHDOG — every 10 minutes
*/10 * * * * /usr/bin/python3 /opt/travel-management/flybrain/watchdog.py >> /opt/travel-management/flybrain/logs/watchdog.log 2>&1
# Alerts route to:
# POST /api/watchdog/alert → watchdog_alerts (Supabase) + HAMAYA_Risk_Register
◎
FlyBrain — Executive Intelligence Layer. The command intelligence that feeds all other agents. GRAND Feed monitors 41 sources daily. Market Monitor tracks 6 competitor platforms. FlyBrain is the brain — WATCHDOG, Scout, Beast KB, and Booking Manager all receive their intelligence signals from FlyBrain.
GRAND Feed
LIVE
6AM UTC daily
Sources
41
Airlines · Competitors · GDS · Regulators
Daily Brief
LIVE
4AM UTC · Maya direct
Register Audit
LIVE
Sunday 6AM UTC
Market Monitor
Staged
8AM UTC · deploy pending
Groups Built
4
of 26 total (A–Z)
FlyBrain — Agent Intelligence Flow
G
GRAND Feed → All Agents
41 sources scanned daily. Findings → HAMAYA_Agent_Intelligence_Register. Policy changes → Beast KB pending. Carrier reliability signals → Scout + Booking Manager. Competitor moves → Maya direct.
B
Daily Brief → Maya
4AM UTC every day. Platform KPIs, bookings, Beast stats, escalations, ADM ledger, competitor alerts. Maya's morning intelligence digest.
M
Market Monitor → Strategy
6 competitor platforms tracked: MakeMyTrip myBiz, Cleartrip, EaseMyTrip, Yatra, BrightSun, TBO. Pricing signals, product changes, UI changes detected → HAMAYA Intel Register.
J
Register Audit → Governance
Sunday 6AM UTC. 9 HAMAYA SharePoint registers audited. 27 checks. Zero errors confirmed. Compliance health snapshot delivered.
N
NDC Sync → Beast KB [Planned]
NDC policy changes from Amadeus, Sabre, Travelport, Duffel, Verteil → automatically queued as Beast KB pending update → HAMAYA approval gate.
P
Policy Scanner → VIDHUR + Beast [Planned]
Visa rule changes, transit requirement updates, health certificate changes → Supabase visa_transit_matrix + transit_airport_master updates → HAMAYA review → instant deploy.
GRAND Feed — 41 Sources
Competitors (9)
MakeMyTrip myBiz · Cleartrip OOO · EaseMyTrip · Yatra · BrightSun Travel · Ish Travel · Riya Travels · Southall Travel · TBO
Distribution (7)
Amadeus · Sabre · Travelport · Verteil NDC · IATA NDC · SITA · ATPCO
Airlines (25)
AI · 6E · SG · QP · EK · EY · QR · G9 · WY · LH · BA · TK · KL · AF · SQ · CX · MH · UL · GF · UA · AA · DL · B6 · AS · MS
Regulators (6)
IATA · ICAO · DGCA India · FAA · EASA · AAI
Group Status — A to Z Build Sequence
| Group | Name | Output | Cron | Status |
|---|---|---|---|---|
| B | Daily Briefing | Morning digest → Maya email | 4AM UTC daily | Live |
| G | GRAND Feed | 41 sources → HAMAYA Intel Register | 6AM UTC daily | Live |
| H | WATCHDOG | 8 health checks → Supabase + HAMAYA | Every 10 min | Deploy pending |
| J | Register Audit | 9 registers · 27 checks | Sunday 6AM UTC | Live |
| M | Market Monitor | 6 competitors → HAMAYA Intel | 8AM UTC daily | Deploy pending |
| N | NDC Sync | Policy changes → Beast KB pipeline | Planned | Not built |
| P | Policy Scanner | Visa/transit changes → Supabase | Planned | Not built |
| S | Scout Integration | IRROPS → Booking Manager | Every 30 min | Script exists |
⚡
Beast KB Auto-Update Pipeline — LIVE. When aviation intelligence changes (visa rules, carrier policies, BSP void rules), a KB update is submitted here. HAMAYA approval gate fires. On approval, Beast Engine reads the update on its very next compliance check. No server restart. No blind updates.
Submit KB Update
Check Number (1–37)
Severity
Updated Rule
Source / Reference
Pipeline — How It Works
1
Change Detected
GRAND Feed / Market Monitor / Manual submission here → KB update submitted
2
Supabase — PENDING
Written to
beast_kb_pending_updates · status: PENDING3
HAMAYA Notified
HAMAYA_Risk_Register webhook fires · Maya reviews in SharePoint
4
Maya Approves / Rejects
Approve or reject below → POST /api/hamaya/beast-kb-approve
5
Instant Activation
Beast Engine reads from Supabase on every check · No restart · No blind changes
Pending Updates
Click Load to fetch pending KB updates
⚡
Fly!Brain Cockpit — Live route intelligence. Enter any route and run all 37 Beast compliance checks instantly. Transit visa, passport validity, ADM risk, baggage, NDC gap, carrier compliance — all in one screen. Indian passport primary lens.
Route Input
Origin
Transit Hub(s)
Destination
Carrier (IATA)
Cabin
Passport Valid (months)
Fare Basis (optional)
Layover Hours (at hub)
Quick:
⚡
Beast Engine v5.2 — 37 pre-booking compliance checks. Runs at checkout before every booking. 7ms average response. Indian passport primary lens. Covers transit visa, passport validity, ADM risk, RHC thresholds, NDC gaps, carrier restrictions, INAD fines, baggage compliance, married segments, and more.
Engine Version
v5.2
beast_engine.js · 54KB
Total Checks
37
compliance rules
Avg Response
7ms
per full check run
Carrier Coverage
110+
PROHIBITED_RBDS map
KB Version
v5.2
beast_kb.js · 160KB
Live Overrides
—
volatile overrides active
All 37 Beast Checks
| # | Check | Category | Severity | Coverage |
|---|---|---|---|---|
| 1 | Transit Visa — DATV | Transit | CRITICAL | 39 countries |
| 2 | Visa Required | Visa | CRITICAL | 35 countries |
| 3 | Schengen Zone | Transit | CRITICAL | 27 member states |
| 4 | Visa on Arrival | Visa | HIGH | 35 countries |
| 5 | Digital Travel Documents | Docs | HIGH | 8 countries |
| 6 | Yellow Fever + Endemic Transit | Health | CRITICAL | 26+16 countries |
| 7 | HIP Hubs | Routing | HIGH | 14 airports |
| 8 | Married Segments | Fare | HIGH | 11 airports |
| 9 | Carrier Baggage Profile | Baggage | MEDIUM | 109 carriers |
| 10 | BSP Void Rules | BSP | CRITICAL | v2.0 · 8 markets · 30+ overrides |
| 11 | INAD Fines | Compliance | CRITICAL | 20 jurisdictions |
| 12 | RHC Thresholds | BSP | HIGH | 50/75/100% bands |
| 13 | India MPM Routes | Routing | MEDIUM | 69 routes |
| 14 | Passport Validity | Docs | HIGH | 6-month rule · carrier overrides |
| 15 | Single Name Passport | Docs | HIGH | Indian passport specific |
| 16 | Airside Transit Free | Transit | MEDIUM | Hub specific |
| 17 | Landside Transit | Transit | HIGH | Hotel transit hubs |
| 18 | Prohibited RBDs | Fare | CRITICAL | 110+ carriers |
| 19 | NDC Content Gap | Distribution | MEDIUM | NDC vs GDS delta |
| 20 | Lounge Eligibility | Ancillary | LOW | Cabin + tier based |
| 21 | GoLite Baggage Risk | Baggage | HIGH | RHC trigger check |
| 22 | Same-Day ADM Risk | BSP | HIGH | Carrier ADM history |
| 23 | Codeshare Compliance | Routing | MEDIUM | OAL ticketing rules |
| 24 | Interline Agreement | Routing | HIGH | Through check-in validity |
| 25 | Transit Hotel Required | Transit | MEDIUM | Long layover hubs |
| 26 | Passport Blank Pages | Docs | HIGH | Min 2 blank pages |
| 27 | Visa Validity vs Travel Date | Visa | CRITICAL | Single/double/multiple entry |
| 28 | OBC Restrictions | Compliance | HIGH | Carrier crew booking rules |
| 29 | ATPCO Cat 15 Restriction | Fare | HIGH | Sales restriction rules |
| 30 | Dangerous Goods | Compliance | CRITICAL | IATA DGR rules |
| 31 | Infant Policy | Passenger | MEDIUM | Age + seat + doc rules |
| 32 | UM Policy | Passenger | HIGH | Unaccompanied minor rules |
| 33 | Medical Clearance | Passenger | HIGH | MEDA + MEDIF carriers |
| 34 | Deportee / DEPA | Compliance | CRITICAL | Escort requirements |
| 35 | Transit Visa Exemption | Transit | MEDIUM | Nationality + destination combos |
| 36 | Visa Free Access | Visa | LOW | Indian passport visa-free list |
| 37 | ETA / eVisa Required | Visa | HIGH | Digital travel auth systems |
Live Beast Log — Last 10 Checks
Click Refresh above to load
Architecture
beast_engine.js — 37 checks, runChecks() · 54KB
Livebeast_kb.js — 35 sections, 37 objects · 160KB
Livebeast_middleware.js — auth, logging, volatile overrides · 12KB
LivePOST /api/beast/check — public, rate-limited 20 req/IP
LivePOST /api/intelligence/pre-booking — x-beast-key auth
LiverefreshKB() — reads beast_volatile_overrides every 10 min
Livebeast_check_log — every check logged to Supabase
LiveRuns TWICE per booking — client + server-side
By design
◎
VIDHUR — Aviation Intelligence Agent. Conversational AI agent built on vidhur_knowledge_base.js (56KB) + vidhur_intents.json (35KB) + vidhur_additional_intents.js (16KB) + vidhur_visa_intents_complete.js (39KB). 6,880+ conversations. Handles transit visa, routing, baggage, fare rules, NDC vs GDS, airline compliance — all Indian passport primary lens.
Status
LIVE
fbtw-vidhur · PM2 fork
Conversations
6,880+
total sessions
Open Escalations
—
needs review
Intent Files
4
KB + intents + visa
Beast Advisory
ON
appended to aviation answers
PM2 Restarts
67
all non-crash
Knowledge Files
vidhur_knowledge_base.js · 56KB · Core aviation intelligence
Livevidhur_intents.json · 35KB · Primary intent matching
Livevidhur_additional_intents.js · 16KB · Extended coverage
Livevidhur_visa_intents_complete.js · 39KB · Full visa intelligence
LiveOpen Escalations
Click Load to fetch escalations
VIDHUR Coverage Map
| Domain | Coverage | Status |
|---|---|---|
| Transit Visa (Indian passport) | DEL → 40+ hubs | Live |
| DATV / Airside / Landside | UK, Germany, Canada, UAE, SG, AU | Live |
| Routing Intelligence | MPM, HIP hubs, married segments | Live |
| Baggage Rules | 109 carriers, fare family profiles | Live |
| NDC vs GDS | Amadeus, Sabre, Travelport, Duffel | Live |
| Fare Rules | Cat 31/33, advance purchase, penalties | Live |
| Corporate Fares | SME, government, student, marine | Partial |
| EMD Intelligence | Seat, baggage, lounge, upgrade | Partial |
| Loyalty Programs | FF redemption, tier benefits | Planned |
⬡
HAMAYA — Governance Intelligence Layer. 9 SharePoint registers covering Risk, Commitment, Project, Decision, IRROPS, Agent Intelligence, ADM, Supplier, and Compliance. Power Automate flows wire every platform event to the correct register. Sunday audit confirms zero errors across all 9 registers.
Registers Live
3
Risk · Agent Intel · ADM
Registers Pending
6
Build next
PA Flows
LIVE
IRROPS + Risk + Intel
Sunday Audit
LIVE
9 registers · 27 checks
All 9 HAMAYA Registers
| Register | Purpose | Trigger | Status |
|---|---|---|---|
| Risk Register | Platform risk events — CRITICAL/HIGH alerts | Beast CRITICAL · WATCHDOG · ADM spike | Live |
| Agent Intelligence Register | GRAND Feed intelligence findings | GRAND Feed daily · Market Monitor | Live |
| ADM Register | Agency Debit Memo tracking | Manual + Auto ADM detection | Live |
| Project Register | Platform build tasks and milestones | Manual · Weekly review | Build next |
| Commitment Register | Supplier and partner commitments | Duffel · Supplier onboarding | Field mismatch — fix pending |
| Decision Register | Architecture and business decisions log | Manual | Not built |
| IRROPS Register | Flight disruption events | Scout → HAMAYA PA flow | PA flow live · register pending |
| Supplier Register | Duffel, Air India DRCT, NDC supplier status | Supplier events · onboarding | Not built |
| Compliance Register | IATA, DGCA, BSP compliance events | Beast CRITICAL · Regulatory changes | Not built |
Power Automate Flows
HAMAYA_Risk_Register — Beast CRITICAL/HIGH → SharePoint Risk Register
LiveHAMAYA_Agent_Intelligence — GRAND Feed findings → Intel Register
LiveHAMAYA_IRROPS_Alerts — Scout disruption → IRROPS Register
LiveHAMAYA_Commitment_Register — Supplier commitments
Field mismatchHAMAYA_Decision_Register — Architecture decisions
Not builtHAMAYA_Compliance_Register — Regulatory events
Not builtCommitment Register — Field Mismatch Fix
The Commitment Register PA flow is sending fields that don't match the SharePoint list column names. This causes silent failures — commitments are not being logged. Fix: audit SharePoint column names → update PA flow field mapping → test with one Duffel commitment → confirm in SharePoint.
P2.1 — Fix before B2B supplier onboarding
◎
Suppliers — Distribution Layer. All content suppliers connected to FlyByTheWay. Duffel is the primary aggregator (110+ carriers, NDC + GDS). Air India DRCT is the direct NDC connection for AI content. Future: IndiGo direct, Amadeus NDC, Sabre NDC.
Duffel
Live
Test key · 110+ carriers
Air India DRCT
Staged
NDC direct · pending live
Duffel Live Key
Pending
Post-IATA activation
NDC Carriers
6
via Duffel NDC
Duffel — Primary Aggregator
API connection — test key active
LiveSearch endpoint — /api/search → Duffel /air/offer_requests
LiveBooking endpoint — /api/book → Duffel /air/orders
Live110+ carriers returning fares
LiveLive key — DUFFEL_KEY switch in .env
Post-IATAOrder change / cancellation / refund endpoints
Post-IATAAir India DRCT — Direct NDC
DRCT connection registered
StagedAI fares via DRCT vs Duffel — comparison pending
PendingDRCT ancillary services (seats, meals, bags) via NDC
Not liveAI Maharaja Club integration
PlannedFuture Suppliers — Roadmap
| Supplier | Type | Trigger | Timeline |
|---|---|---|---|
| IndiGo Direct | NDC direct | Post-IATA accreditation | Q1 2027 |
| Amadeus NDC | GDS + NDC | Volume threshold | Q2 2027 |
| Sabre NDC | GDS + NDC | Volume threshold | Q2 2027 |
| HotelBeds / Expedia | Hotel content | B2B portal launch | Q3 2027 |
| Visa First / VFS | Visa services | Post B2B launch | Q3 2027 |
▣
IATA Accreditation — Section 8 Active. Application submitted. Section 8 financial documents (Bank statement, CA audited accounts, net worth certificate) are the current gate. IATA approval unlocks: BSP participation, live ticketing, airline commissions, GDS full access, and live Duffel key activation.
Application Status
Section 8
Financial documents gate
Current Gate
Docs
Bank · CA · Net Worth
TID Status
Held
Existing accreditation
BSP
India
Target market
IATA Checklist
Section 1–7 — Company details, directors, office
CompleteSection 8 — Financial: Bank statement 6 months
In progressSection 8 — CA Audited accounts
In progressSection 8 — Net worth certificate from CA
In progressAir India reference letter
Pending replyIndiGo reference letter
Pending replyIATA inspection — office visit
Post-docsBSP participation agreement
Post-approvalWhat IATA Unlocks
| Item | Unlocked By | Impact |
|---|---|---|
| BSP Participation | IATA approval | Issue tickets via BSP · Airline commissions |
| Live Duffel Key | IATA approval | Real bookings · Real revenue |
| Razorpay Live Gate | IATA + Razorpay KYC | Customer payments live |
| GDS Full Access | IATA + GDS contract | Amadeus · Sabre · Travelport |
| B2B Agent Portal | IATA + live booking | Sub-agent network |
| Corporate Accounts | IATA + live booking | B2Corporate revenue |
| Airline Direct Contracts | IATA + volume | Override commissions · PLACI |
AKTU Navachar — Screening Preparation
AKTU screening response pending. Platform readiness for evaluation: Fly!Brain Cockpit live (open platform.html → Fly!Brain Cockpit tab), VIDHUR live at flybytheway.com, fares returning (DEL→YYZ INR 56,953 Air India confirmed), Beast 37 checks running, intelligence database active (68 airlines, 840 airports, 625 visa rules, 22 intelligence tables).
VIDHUR Live
Fares Live
Beast 37 Checks
68 Airlines
840 Airports
625 Visa Rules
IATA Pending
Razorpay Pending