Repository navigation
Tags
Tags
dcs: an infant on a lap is nobody's volunteer An infant on a lap holds no seat. Departure control still let one give up a seat, and counted it as a volunteer or as a denied boarding when its adult was one. A carrier that pays by those counts paid the infant. Station.Volunteer answers ErrLapInfant for an infant. When an adult gives up a seat and no other adult of the party flies, the party's infants come off too, in Volunteered.With. An infant is in none of the counts of seats. Tally leaves it out, and so do the waiting, denied and volunteer counts of Counts and the list Closure.Denied. The alerts count the passengers who need seats. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
dcs: an infant on a lap takes no seat Departure control gave every name of a party a seat at acceptance, an infant too. A party of 2 adults and an infant holds 2 seats and took 3. A cabin sold to its last seat then had no seat for its last passenger, who waited and was denied boarding on a flight that was not oversold. An infant is now accepted with no seat of its own. A party's infants wait with its adults when the cabin is full, and are accepted with the first adult who is seated. The load still counts the infant. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
ancillary: a carrier's price list for what it sells beside the seat jetway had the document that carries the sale of an extra, the EMD, and nothing that said what a service costs a given passenger. pkg/ancillary is a catalogue: a carrier's optional services and its price list for them. The rules for a service are tried in the order they are listed, and the first rule that matches the passenger decides. A rule can ask for a cabin, a booking class, a fare brand, a loyalty tier, a domestic or international itinerary, a distance, a flight time, a peak day, the moment of sale and which unit this is. Its outcome is a price, or "included", or "not offered". A service with no rule that matches is not for sale. The test list has the bag prices that American put in force on 9 April 2026: 50 dollars for the first bag at the airport and 45 in advance, 60 and 55 for the second. The package carries no sub codes, because the industry's list is ATPCO's and was not free to read. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
inventory, dcs: overbooking, and the passenger who came to a full cabin An empty seat at departure is 1 of 3 things. Nobody booked it, or the passenger who booked it did not come, or it is a no-show's seat in a cabin that had reached its limit. A passenger who came and found no seat is none of these. Departure control did not keep that passenger apart: it refused a booked passenger at a full cabin and reported the passenger as a no-show when the flight closed. pkg/inventory has the record and the limit. Shows is a cabin's record of who came. Deterministic, Probabilistic and CostBased are the 3 overbooking models of Peter Belobaba's lecture (MIT OpenCourseWare 16.75J, lecture 19). The tests hold them against the lecture's worked figures: 125 and 113 bookings for 100 seats, and the 2 charts of the cost-based example. Inventory.Authorized and Controller.Authorized take the limit. A cabin then sells to its authorised capacity, and the class ladder is nested under that. pkg/dcs resolves an oversold cabin. A booked passenger at a full cabin waits for a seat with a claim to one. When check-in closes, the passengers who wait take the seats of the passengers who did not come, in another cabin when their own is full. Station.Volunteer gives a volunteer's seat to the passenger who has waited longest. At the door a passenger who still has no seat is denied boarding, with the cause. The PFS reports that passenger under INVOL and not under NOSHO. Flight.Tally counts each cabin as revenue management counts it. An aircraft change gave 2 re-seated passengers the same seat and displaced nobody. A re-seated passenger now takes the seat first. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
inventory: a forecast learned from a flight's own departures pkg/inventory had EMSR-b and no forecaster. History is the forecaster: the booking record of one flight's cabin over its past departures, by time frame and by the lowest class on sale, and the class controls the record gives. Bookings are divided by the time on sale, which unconstrains them. The marginal revenue transformation of Fiig, Isler, Hopperstad and Belobaba (2010) turns each strategy's demand and revenue into independent demands at adjusted fares, which corrects for buy-down. EMSR-b then needs no change. The tests hold MarginalRevenue and EMSRb against tables 1 and 2 of the paper, and run example 5 of Cooper, Homem-de-Mello and Kleywegt's spiral-down paper: the manager's model protects 70 seats, the best level is 95, sales read as demand spiral to 7, and fare adjustment holds 94. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
store: a split store exports its records store.Split keeps the message log in one store and the records in another. It is the store of a hosted carrier with its records in Postgres. It did not implement store.Exporter, and a caller that type-asserted for the export found none, although the Postgres node view beneath it has one. Split.ExportPNRs now streams from the records store. It returns an error when that store cannot stream. The test checks that the export gives the records store's records and none of the message store's. wholesky found it: its ledger counts a database book record by record after a restart, and the count never started on a split store. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
inventory: an empty override is taken off SetOverride forces a class open, closed or waitlisted on one flight. The way to undo it was to set an empty status, and the empty status was stored like any other. The next request for the class was then answered with an empty status code, and the availability broadcast treated the class as open by default. An empty status now deletes the override, in pkg/inventory and in the gateway's simple inventory. The test closes a class, takes the override off, and checks that the class sells and is advertised open. It answered "" before the fix. wholesky found it beside a fault of its own: its lever for closing a class passed "C", which no inventory knows. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
gateway: an own sale does not write to a published record Book stores the record, publishes it on the bus, and from then on does not change it. The own-sale step added in v0.1.100 broke that: it set the segment statuses on the same record a moment after the publish. A subscriber reading the record raced with it. wholesky's revenue tap did, and its race suite caught it. sellOwn now takes the locator, reads its own copy from the store, decides on that copy, stores it and publishes it. Book and AddSegment return the decided copy. The new test makes 60 own sales while a bus listener reads every record. It reports 2 data races on the old code and none now. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
inventory: a class sold past its limit stays closed classOpen returned a class's authorisation less the seats sold in it and below it. The controller sets the authorisations again at every question, so a stronger forecast can put a class's authorisation under what the class has sold. The result was then negative. Decide and Availability both treat a negative count as "no ladder for this class", so the class sold to the last seat of the cabin and went out in the availability broadcast as open. The count now stops at zero. The test sells 60 seats in a discount class under a weak forecast, strengthens the forecast so that the class's limit is 49, and checks that the next request is refused and the class is advertised as closed. Before the fix the request was confirmed and the class was advertised with 113 seats. wholesky found it. A carrier's lowest class closed at 18 seats. One sale in the class above lowered the limit to 16, and the next request for the lowest class was confirmed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
gateway: a carrier's node sells its own seats A node configured as a carrier answered the sells that other systems sent it and could not sell its own flight. Book wrote the record, asked for a link to the node's own designator, found none, and left the segment at HN. A carrier's website and call centre book on the carrier's own reservations system, so this was the direct channel missing from the gateway. Book now decides the node's own carrier's segments with the node's own Responder, with a nil peer and nothing sent, and writes the answers on the record. Cancel releases those seats through the Releaser and no longer reports the node's own carrier as unreachable. Ticket control, document control and the divide advice skip the node's own carrier. AddSegment decides an own segment the same way. Other carriers' segments on the record go over their links as before. A node with no Responder owns nothing and is unchanged. wholesky found it: a booking of a carrier's own flight at its own node stayed at HN on all 4 carriers of the test world. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q
PreviousNext