fairroom-channel-sync
v0.1.0
Published
Fairroom Channel Sync: matches channel manager reservations to the PMS: missing in the PMS, cancellations not carried over, different dates or totals, duplicates and PMS-only reservations. Drafts the fix list; a person fixes reservations.
Maintainers
Readme
Fairroom Channel Sync (fairroom-channel-sync)
Matches the channel manager's reservations to the PMS by the channel reference the PMS stores: reservations missing in the PMS (urgent when the guest arrives within days), cancellations not carried over, different dates or totals, reservations in the PMS twice, and PMS reservations the channel no longer has. It drafts the fix list for the reservations manager; a person fixes the reservations. It never creates, changes or cancels a reservation.
MIT · Node 20 or newer · local files only · built on fairroom-core
npx -y fairroom-channel-sync demo
npx -y fairroom-channel-sync mcp --root ./channel-syncWhat it finds
| Finding | Meaning |
|---|---|
| missing_in_pms | An active channel reservation with no PMS reservation (urgent within urgent_days, default 3) |
| cancel_not_synced | Cancelled on the channel, still active in the PMS |
| dates_differ | Different arrival or departure |
| amount_differs | Different total (beyond tolerance, default 1.00) |
| duplicate_in_pms | The same channel reference on two PMS reservations |
| pms_only | A PMS reservation with a channel reference the export no longer has |
A demo run
npx -y fairroom-channel-sync demo runs the agent on the fictional files in fixtures/ in a temporary folder. Captured output:
Fairroom Channel Sync demo (fictional channel manager and PMS, as of 18 Nov 2026), Auto mode on for the draft only
▶ Audit the fictional files
status: executed decision: allow
6 channel reservation(s) as of 2026-11-18: 1 match the PMS, 6 to fix (1 arriving within days and not in the PMS).
AB-9001 Airbnb 2026-12-05 PMS P4 amount_differs
BK-5001 Booking.com 2026-11-20 PMS P1 ok
BK-5002 Booking.com 2026-11-19 PMS - missing_in_pms (urgent)
BK-5003 Booking.com 2026-12-10 PMS P5 duplicate_in_pms
EX-7001 Expedia Group 2026-11-25 PMS P2 cancel_not_synced
EX-7002 Expedia Group 2026-12-01 PMS P3 dates_differ
BK-5099 Booking.com 2026-12-15 PMS P7 pms_only
▶ Explain BK-5002
status: executed decision: allow
BK-5002 (Booking.com, 2026-11-19 to 2026-11-21, reserved): PMS none, fix, urgent. Booking.com reservation BK-5002 (2026-11-19 to 2026-11-21) is not in the PMS: the guest arrives in 1 day(s).
▶ Write the worklist (CSV and HTML)
status: executed decision: allow
Channel manager against PMS written: 6 channel reservation(s) as of 2026-11-18: 1 match the PMS, 6 to fix (1 arriving within days and not in the PMS).
▶ Write the draft (fix list)
status: executed decision: allow (auto)
fix list 2026-11-18 drafted with 0 open marker(s). Nothing was sent.
▶ Auto: approving it stays one named click
status: needs_approval decision: ask
reason: go_live stays one-click, even in Auto
▶ The agent tries reservation_change itself
status: blocked decision: block
reason: Fairroom never creates, changes, cancels or checks out a reservation in the PMS.Tools
| Tool | What it does | Policy |
|---|---|---|
| channel_sync_check | Match every channel reservation to the PMS. | runs |
| channel_sync_explain | Show one channel reservation, its PMS match and findings. | runs |
| channel_sync_write_report | Write channel-sync.csv and channel-sync.html (one row per item, with a blank decision column for the person working it) into out_dir (default fairroom-out/channel-sync). | runs |
| channel_sync_draft_fix_list | Write drafts/fix_list-.md: every reservation to fix, urgent arrivals first. | asks first (Auto can be opted in) |
| channel_sync_request_apply | After one named human click (even in Auto), record that the reviewed fix list draft is approved in fix_list-requests.csv. | one named click, even in Auto (go_live) |
| reservation_change | Fairroom never creates, changes, cancels or checks out a reservation in the PMS. | refused |
| ota_portal_submit | Fairroom never logs in to or submits anything in an OTA extranet, franchisor or processor portal. | refused |
| channel_manager_resync | Fairroom Channel Sync never triggers a resend or full sync in the channel manager. | refused |
Any tool name not in this table is blocked, including names a model invents. refused tools are listed so a model can see they exist and are refused.
Columns it reads
Table inputs can be CSV, TSV, semicolon- or pipe-separated text, Excel .xlsx, JSON or JSONL. Columns are matched by the agent's own name, then by the English names below, then by their names in German, French, Spanish, Portuguese, Italian, Japanese, Chinese and Korean. Dates become YYYY-MM-DD; amounts are read with either decimal mark. Guest names, e-mails, phones and loyalty numbers are masked in what the AI model sees, and card numbers are cut to the last four digits. Every result lists under sources how each file was read.
Channel manager reservations (channel)
| Column | Type | Also read as | For example, in other languages |
|---|---|---|---|
| channel (required) | text | Channel, Source, OTA | Kanal, Canal, チャネル, 渠道 |
| channel_reservation (required) | text | Channel Reservation, Booking ID, Channel Booking ID, OTA Reference, Booking Reference | Reservierungsnummer, N° de réservation, 予約番号, 预订号 |
| guest | text | Guest, Guest Name, Name | Gast, Nom du client, ゲスト名, 客人姓名 |
| arrival (required) | date | Arrival, Check In, Check-in | Anreise, Arrivée, 到着日, 入住日期 |
| departure (required) | date | Departure, Check Out, Check-out | Abreise, Départ, 出発日, 离店日期 |
| status (required) | text | Status, Booking Status | Status, Statut, ステータス, 状态 |
| total | amount | Total, Amount, Booking Total, Price | - |
PMS reservations (pms)
| Column | Type | Also read as | For example, in other languages |
|---|---|---|---|
| reservation (required) | text | Reservation, Confirmation Number, Reservation Number | Reservierungsnummer, N° de réservation, 予約番号, 预订号 |
| external_ref | text | External Ref, External Reference, Channel Reference, OTA Confirmation, Source Reference | - |
| channel | text | Channel, Source, Booking Source | Kanal, Canal, チャネル, 渠道 |
| arrival (required) | date | Arrival, Arrival Date | Anreise, Arrivée, 到着日, 入住日期 |
| departure (required) | date | Departure, Departure Date | Abreise, Départ, 出発日, 离店日期 |
| status (required) | text | Status, Reservation Status | Status, Statut, ステータス, 状态 |
| total | amount | Total, Total Amount, Room Revenue | - |
Files from other countries
A German export in Windows-1252 with semicolons, 1.234,56 and 03.11.2026, or a Japanese one in Shift_JIS with 2026/11/03, is read the same way as the English file. fixtures/intl/ has both versions of the demo data, and the eval cases intl-de-* and intl-ja-* require the same results as the English case. Amounts are read with either decimal mark; currencies are not converted. Columns named differently? Run npx fairroom-channel-sync inspect <file> (names and shapes only, never values) and name them in fairroom-sources.json:
{ "files": { "exports/journal.csv": { "columns": { "reservation": "Buchungsnr" }, "date_order": "dmy" } } }Install
Node 20 or newer. No other dependencies.
npx -y fairroom-channel-sync demo
npx -y fairroom-channel-sync mcp --root /path/to/your/filesClaude Desktop, Cursor and other MCP hosts:
{
"mcpServers": {
"fairroom-channel-sync": {
"command": "npx",
"args": [
"-y",
"fairroom-channel-sync",
"mcp",
"--root",
"/path/to/your/files"
]
}
}
}Claude Code: claude mcp add fairroom-channel-sync -- npx -y fairroom-channel-sync mcp --root ., or install the fairroom-channel-sync plugin from this repository's marketplace.
Modes and approvals
- Review (
--mode review): reads and reports only. - Assist (default): the policy above. A tool that asks returns an
approval_id; a person approves it once withfairroom-channel-sync approve <id> --as "Your Name"(or on the local approvals page,fairroom-channel-sync approvals), and the same call is repeated. - Auto (
--mode auto --auto <tool,...>): opt-in per tool, with step caps and a kill switch (fairroom-channel-sync kill). Paying, sending, posting to a ledger or a live system and accepting a learned fact stay one named click even in Auto; an approval is tied to the sha256 of the reviewed draft, so a changed draft needs a new click.
CLI
fairroom-channel-sync tools # every tool, its policy and arguments
fairroom-channel-sync sources # the columns each input is read from
fairroom-channel-sync inspect <file> # how a file would be read (names and shapes, never values)
fairroom-channel-sync call channel_sync_check '{"channel":"<channel>","pms":"<pms>"}'
fairroom-channel-sync eval # the private eval cases on the fictional fixtures
fairroom-channel-sync demoAudit log and data
Every call is written to .fairroom/audit.jsonl under the root: hash-chained JSON lines, with arguments stored as a hash, signed with an Ed25519 key when you configure one. Everything runs on your machine on files you choose. No network calls, no telemetry, no credentials. The bundled fixtures are fictional.
Limits
- Reads only the files you give it. It never changes reservations or resends from the channel manager.
- Guest names are masked in what the AI model sees.
