Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

fix: document Tatkal Aadhaar authentication

Barack Sokullua794fa54c1fb
diff --git a/src/chrome/src/agent/adapters.js b/src/chrome/src/agent/adapters.js
index 85182997e..9badb5469 100644
--- a/src/chrome/src/agent/adapters.js
+++ b/src/chrome/src/agent/adapters.js
@@ -17649,7 +17649,7 @@ const ADAPTERS = [
notes: `
- IRCTC (irctc.co.in) is Indian Railways ticketing. Login ("LOGIN") needs username/password + CAPTCHA; booking also needs passenger details (name, age, berth preference) and an explicit user confirm before "Book Now".
- Search with station CODES (e.g. NDLS, BCT, HWH) in "From"/"To", journey date, and quota ("General", "Tatkal", "Ladies"). Sort/filter by class (SL/3A/2A/1A/CC) and train type; availability colours (Available/RAC/WL + number) are per class — read the exact class row before quoting.
-- Tatkal trap: booking opens at 10:00 IST for AC classes and 11:00 IST for non-AC classes on the calendar day before the train's departure date at its originating station. Do not calculate from a later boarding-station date; check live availability before promising a berth.
+- Tatkal trap: booking opens at 10:00 IST for AC classes and 11:00 IST for non-AC classes on the calendar day before the train's departure date at its originating station. Online Tatkal/Premium Tatkal booking requires an Aadhaar-authenticated account and Aadhaar-based OTP during booking; surface authentication or OTP needs to the user instead of retrying. Do not calculate from a later boarding-station date; check live availability before promising a berth.
- PNR/status trap: "PNR Status" is a separate flow from booking history ("Booked Ticket History"). Cancel via "Cancel Ticket" with confirmation; partial-cancel needs per-passenger selection.
- Never submit payment or final booking without the user confirming train number, class, date, quota, and passenger list. Success = PNR on the booking-confirmation page.`,
},
diff --git a/src/firefox/src/agent/adapters.js b/src/firefox/src/agent/adapters.js
index 360818bcc..de22bfbe9 100644
--- a/src/firefox/src/agent/adapters.js
+++ b/src/firefox/src/agent/adapters.js
@@ -17647,7 +17647,7 @@ const ADAPTERS = [
notes: `
- IRCTC (irctc.co.in) is Indian Railways ticketing. Login ("LOGIN") needs username/password + CAPTCHA; booking also needs passenger details (name, age, berth preference) and an explicit user confirm before "Book Now".
- Search with station CODES (e.g. NDLS, BCT, HWH) in "From"/"To", journey date, and quota ("General", "Tatkal", "Ladies"). Sort/filter by class (SL/3A/2A/1A/CC) and train type; availability colours (Available/RAC/WL + number) are per class — read the exact class row before quoting.
-- Tatkal trap: booking opens at 10:00 IST for AC classes and 11:00 IST for non-AC classes on the calendar day before the train's departure date at its originating station. Do not calculate from a later boarding-station date; check live availability before promising a berth.
+- Tatkal trap: booking opens at 10:00 IST for AC classes and 11:00 IST for non-AC classes on the calendar day before the train's departure date at its originating station. Online Tatkal/Premium Tatkal booking requires an Aadhaar-authenticated account and Aadhaar-based OTP during booking; surface authentication or OTP needs to the user instead of retrying. Do not calculate from a later boarding-station date; check live availability before promising a berth.
- PNR/status trap: "PNR Status" is a separate flow from booking history ("Booked Ticket History"). Cancel via "Cancel Ticket" with confirmation; partial-cancel needs per-passenger selection.
- Never submit payment or final booking without the user confirming train number, class, date, quota, and passenger list. Success = PNR on the booking-confirmation page.`,
},
diff --git a/test/run.js b/test/run.js
index aa7662b65..23b7f5b3d 100644
--- a/test/run.js
+++ b/test/run.js
@@ -10226,7 +10226,7 @@ test('report-driven adapter notes remain bounded and do not overfit low-evidence
assert.equal(getActiveAdapter('https://naukrigulf.com.evil.example/job/1'), null);
});
-test('India payment and Tatkal guidance keeps finance and opening-time safety signals', () => {
+test('India payment and Tatkal guidance keeps finance, timing, and authentication safety signals', () => {
for (const getAdapter of [getActiveAdapter, getActiveAdapterFx]) {
const paytm = getAdapter('https://paytm.com/recharge');
assert.equal(paytm?.name, 'paytm');
@@ -10237,6 +10237,8 @@ test('India payment and Tatkal guidance keeps finance and opening-time safety si
assert.match(irctc?.notes || '', /10:00 IST for AC classes/);
assert.match(irctc?.notes || '', /11:00 IST for non-AC classes/);
assert.match(irctc?.notes || '', /departure date at its originating station/);
+ assert.match(irctc?.notes || '', /requires an Aadhaar-authenticated account/);
+ assert.match(irctc?.notes || '', /Aadhaar-based OTP during booking/);
assert.doesNotMatch(irctc?.notes || '', /~24h before departure/);
}
});