Latest: 1.1.0 · 2026-12-03
What’s new
in GTFS Guru.
Every release, newest first: new validation rules, changes in behaviour, and fixes. Installers, CLI archives and checksums for each version are on its GitHub release. Which GTFS specification revision and canonical validator a version answers for is on the compatibility page.
Added
- Parity with the canonical MobilityData validator v9.0.1, which is now the baseline (
summary.canonicalBaseline), along with GTFS referencegoogle/transit@9e5344c. The golden suite compares against 9.0.1 output. licenses.txtis read and validated:missing_license_spdx_id_or_custom_license_url,forbidden_license_spdx_id_or_custom_license_url,invalid_license_spdx_id,deprecated_license_spdx_id(SPDX License List 3.29.0, refreshed withscripts/update_spdx_licenses.py),licenses_unknown_table_name, andduplicate_keyfor two licenses on one table or two feed-wide licenses. The summary lists the "License Information" feature.- Stop and station checks:
parent_station_missing_timezone,child_stop_far_from_parent_station(over 1 km),child_stop_too_far_from_parent_station(over 10 km),stations_too_close,stops_too_closeandstop_too_close_to_non_parent_station(under 2 m). - Trip checks:
duplicate_trips,too_many_consecutive_stop_times_with_same_time, andtrips.shape_idrequired when a trip's stop times or route use continuous pickup or drop-off. - Transfer, pathway and translation checks:
transfer_walking_speed_too_fast,min_transfer_timerequired fortransfer_type=2, stop ids required whentransfer_typeis empty,length/stair_count/traversal_timerecommended by pathway mode,irrelevant_max_slope_set_for_pathway_mode,translation_unknown_field_nameandtranslation_unknown_field_value. - File-level checks:
empty_required_filefor a required file with a header and no records (in every mode),invalid_line_endingfor CR or CR CR LF line endings, andcsv_parsing_failedwith univocity's message for a stray character after a closing quote, which drops the table as in Java. shapes.txtis a recommended file unless the feed only describes demand-responsive service, andtrip_headsignis a recommended field.
Changed
- Breaking:
non_ascii_or_non_printable_charreports the column asfieldNameinstead ofcolumnName, as the canonical validator does since v9.0. Consumers that readcolumnNamemust switch. unused_stationis a warning instead of info.fare_products.amountmay be negative.- Checks that walk stop times trip by trip report in the canonical validator's trip order, and calendars whose
start_dateis after theirend_dateno longer count towards the service window. - Validators that the canonical validator runs on the whole feed (licenses, missing shapes, translations) are skipped when a table failed to parse, and an empty
stops.txtno longer also reportsmissing_required_file. - Translations of every canonical table are recognised, and the legacy translation-format checks are gone, as in v9.
- In
--thoroughmode,lengthis no longer asked for on stairs, escalators, elevators or moving sidewalks.
Fixed
- The web server's processing timeout now stops the validation it times out. Before, the job was dropped but the validation kept running and holding its worker slot, so a few slow feeds could stall every later upload. A cancelled run reports one
runtime_exception_in_validator_error.
Changed
- Notice pages open with one sentence naming the code, its severity and the files to check. Related notices must share a file or a word of the code (severity alone used to fill the list, so
bidirectional_exit_gateshowed up on 21 unrelated pages), and each page links the guides that cover it. - Notice, notices-index and compatibility pages reference the homepage's Organization and WebSite by
@id, and describe each code as aDefinedTermin oneDefinedTermSet. - The website has an About page, four new guides (Python, CI, the MCP server, and a comparison with MobilityData's validator), self-hosted Inter and Fira Code fonts instead of Google Fonts, a pinned lucide version instead of
@latest, a JPEG Open Graph image at a third of the PNG's size, a<main>landmark and underlined in-text links. - Guides drop unsourced figures and outdated sources, and the create-a-feed sample now validates with no errors or warnings.
- Text, JavaScript, JSON and XML files are served with
charset=utf-8.
Fixed
- The notice schema lists context fields for the 30 notices whose rules fill them in a helper (
stop_too_far_from_shape,invalid_url,feed_expiration_date7_daysand others). The source scan inbuild.rsfound none for these, so--export_notices_schemaand the gtfs.guru notice pages said they carried no fields. Where the scan finds nothing, the fields now come from the canonical notice metadata. - Notice page meta descriptions end the summary with a full stop instead of running it into the template, and stay whole sentences within 158 characters.
- The web server sends
Cache-Controland anETagon every embedded file and answersIf-None-Matchwith304 Not Modified. HTML, scripts and WASM are revalidated on each use, and images and icons are cached for a day. - The web server sets HSTS,
X-Content-Type-Options,X-Frame-OptionsandReferrer-Policyitself, so they no longer depend on the reverse proxy configuration. COOP/COEP stay with the proxy: a second copy from the app makes browsers drop cross-origin isolation, which disables the multi-threaded WASM build. - The web server answers unknown paths with an HTML 404 page linking to the validator, notice codes and guides, instead of plain "Not Found". A directory page requested without its trailing slash, and a file page requested with one, get a 301 to their single address instead of a second copy of the page.
Fixed
- Windows MSI and NSIS installations can install signed updates from inside the app. Each installation uses its own installer format.
- Windows installers are signed with Authenticode and include a trusted timestamp. The macOS release checks the disk image signature and notarization ticket before publication.
First stable release. The CLI, core, model, report, profile, MCP, web, WASM, Python, and desktop crates share the 1.0.0 version and their public APIs are now covered by semantic versioning.
Added
gtfs-guru diff old.zip new.zipcompares files, feed metadata, agencies, routes, stops (including moves over 10 m), trip counts and frequency windows by route, and exact validation notice counts. It can emit JSON or Markdown and fail CI with--fail-on-new-errors.--fail-on <none|error|warning>for CI quality gates. Reports are written before the process exits with status2.--badgeand--badge-svgwrite a feed status badge: a shields.io endpoint descriptor and a self-contained SVG.--badge-labelreplaces the defaultGTFSlabel. Both paths are used verbatim rather than joined to--output_base, and both work under--stdout.- A composite GitHub Action in
action/. It installs a checksum-verified release binary, validates a local or remote feed, uploads SARIF to code scanning, writes a job summary, publishes the counts as step outputs, and fails the job at the chosen severity. - A one-click example feed on the website: a small two-route network carrying deliberate mistakes, rebuilt reproducibly by
scripts/build_demo_feed.py. - Shareable report links. The browser report is compressed into the URL fragment, so a link can be sent to a colleague or a vendor without the feed or its findings ever reaching a server. Long reports keep a sample of each issue type and exact per-rule counts.
llms.txt, plusSoftwareApplicationandFAQPagestructured data on the home page, so AI assistants can answer questions about GTFS Guru from something better than a guess.--fixand--fix-unsafewrite a repaired copy of the feed.--fix-outputpicks the destination, defaulting to<input>.fixed.<ext>beside the input. The input is never modified and an existing output path is refused. Only the CSV records carrying an edit are re-serialized, so line endings, quoting, a UTF-8 BOM, and every untouched file survive byte for byte. A fix whose target field no longer holds the expected value is reported and skipped rather than applied.- Auto-fix suggestions for the defects with exactly one reading:
invalid_color(#FF0000and the0F0shorthand),invalid_date(separator forms ofYYYYMMDD),invalid_time(a missing:SS, an all-zero fraction),invalid_url(a missing scheme), andinvalid_email(amailto:prefix or angle brackets) are safe; a decimal comma ininvalid_floatand a redundant fraction ininvalid_integerneed--fix-unsafe. Every suggestion is re-checked against the validator that rejected the value, so applying one cannot introduce a new notice. Ambiguous input gets no suggestion:01-05-2026could be either day-first or month-first, and1,500could be 1.5 or 1500. - Safe auto-fixes now trim declared GTFS fields and canonically order
stop_times.txtby trip andstop_sequencewhile preserving each raw record.--fix-unsafecan delete child rows with missing foreign-key parents, with an expected-value guard that refuses stale plans. Every repaired feed is automatically validated again and reports resolved, remaining, and introduced notice totals. gtfs_validator_core::fixexposingFixPlanandapply_fixesfor embedders.gtfs-guru profileandgtfs-guru explain, backed by the newgtfs-guru-profilecrate. The profile is deterministic: entity counts, route types, completeness facts, seven actual service dates with calendar exceptions applied, and grouped validation issues. The explanation is derived from that same profile, so every statement can be checked without sending the feed to an LLM provider.gtfs-guru-mcp, a read-only MCP server exposingvalidate_gtfs,explain_gtfs, andget_notice_details. It speaks stdio for a local host and authenticated stateless Streamable HTTP for a remote one. Local reads are confined to the roots passed with--allow-dir; downloading a public URL is off until--allow-urlis given. HTTP defaults to 60 authenticated requests per rolling minute, four concurrent validations, and 64 KiB request bodies. Validation and explanation responses include bounded concrete notice examples with available file, row, field, context, and suggested-fix details, so an MCP host can show actionable errors instead of only grouped counts.- The browser validator now renders a local “What ChatGPT receives” preview from the real validation report, with exact totals and concrete error examples. It does not call an AI provider or upload the feed.
gtfs-guru --version.service_never_active, which flags calendar.txt rows with no active weekday and no added dates in calendar_dates.txt.feed_versionin the Feed Info section of the JSON and HTML reports.- Multithreaded in-browser validation: a wasm-threads build backed by a rayon Web Worker pool, served to cross-origin-isolated pages with an automatic fallback to the single-threaded package.
- In-browser validation of large feeds, with the work moved into a Web Worker so an out-of-memory failure kills the worker instead of the tab, and a main-thread fallback when the worker cannot load.
- An interactive map showing the stops a notice refers to.
- Prebuilt Python wheels for Linux x86_64/aarch64, macOS x86_64/arm64, and Windows x64, plus an sdist and post-upload PyPI verification.
- A pre-publish Python wheel smoke test covering the synchronous and asynchronous APIs, progress callbacks, notice conversion, and report export.
- A security policy and operator guidance.
- A public compatibility page at <https://gtfs.guru/compatibility/>, generated and committed alongside the notice pages. It names the GTFS specification revision and the canonical validator release this build answers for, lists what changed upstream recently with a support status and a source for each, maps all 191 notice codes to their canonical rule (or marks them as GTFS Guru additions or as deprecated upstream), states every accepted difference, and shows the per-file column coverage. Linked from every website page's footer, from the home page, from the documentation, and from the release notes.
crates/gtfs_validator_core/spec_changes.json: the curated, versioned record of recent upstream changes and this build's support status for each, withgtfs_guru_core::validate_spec_changeschecking every claim against the build's own spec surface and the baseline's accepted differences. A claim the build does not satisfy failscargo test.- Two CI gates against stale or self-contradictory metadata:
cargo run -p gtfs-guru-web --bin generate-notice-pages -- --checknow runs on every Rust CI build, so committed generated pages cannot fall behind the code; andscripts/spec_watch.py check-coordinationfails a pull request that moves the baseline without moving the change log the page is built from. - Spec Watch: a weekly CI run that compares the GTFS specification (
google/transit) and the canonical validator's published rules against what this build supports, and opens or updates a single Linear issue when the two drift apart. It stays silent when nothing drifted. The accepted upstream state lives incrates/gtfs_validator_core/spec_baseline.json;docs/spec-watch.mddocuments the workflow and the protocol for moving it. gtfs-guru spec-surfaceemits the files, fields, enum domains, and notice codes this build supports as JSON, derived from the same tables validation uses.- Every JSON report's
summarynow carriesspecRevisionandcanonicalBaseline, so a stored report states which specification revision and canonical validator release it was produced against.
scripts/mdb_parity.py: the mdb-50 catalogue parity check. Fifty MobilityDatabase feeds pinned inscripts/real_world/mdb50.json, both validators on the same zips, a per-feed diff classified againstexpected_deltas.jsonandmdb50_expected_deltas.json. 46 of 50 feeds are exact and 50 of 50 exact-on-shared; seedocs/real-world-parity.md.
Changed
- Every crate now sets
#![forbid(unsafe_code)], except the CLI, which uses#![deny(unsafe_code)]with a single documented opt-out for thegetrusagecall behind its peak-memory reporting. Three hand-writtenunsafe impl Send/Syncblocks were removed: the types derived both automatically, so the impls only suppressed the compiler's check on data shared across rayon workers. - The embedded website no longer serves dotfiles.
include_dir!bakes in whatever is on disk at build time, so an untracked.DS_Storeor editor swap file inwebsite/could otherwise be fetched from a locally built server. gtfs-guru-webis no longer published to crates.io. It is the deployed server binary rather than a library, and it now embeds the repo-rootwebsite/directly, whichcargo packagecannot carry. The previously published 0.9.x versions stay available; anyone running the server should build it from this repository or use the Docker image.- The website is stored once.
website/is served by nginx and embedded intogtfs-guru-webfrom the same path, replacing the second copy undercrates/gtfs_validator_web/that had to be kept in sync by hand. sitemap.xmlno longer carries a<lastmod>. It was stamped with the time of the request, so every crawl saw the whole site as freshly modified — worse than omitting the field, which is what search engines fall back to.- The comparison with the Java validator on the home page is a real
<table>instead of a grid of<div>s, which is what "X vs Y" answers are extracted from. - Notices are capped per (code, severity) group in memory while the reported totals stay exact, so feeds with pervasive issues no longer exhaust the browser heap. Reports mark a capped list as truncated.
- In-browser validation is gated on the uncompressed feed size declared in the ZIP central directory (150 MB compressed / 700 MB uncompressed) rather than the compressed size alone, which predicts peak memory poorly in both directions.
- Python bindings now use PyO3 0.29.
- The desktop app shares the workspace's
reqwest0.12 dependency instead of retaining a second 0.11 TLS stack. [PERF]diagnostics requireGTFS_PERF_DEBUG.- SARIF output identifies the tool and repository as GTFS Guru.
- Documentation reports the current 110 validators and 191 notice codes, and uses the measured 4.6–6.7x benchmark results.
docs/rules.mdis generated from the notice schema instead of being edited by hand, and the generator's--checkmode fails CI when it drifts. That is what moved the documented total from 190 to 191:leading_or_trailing_whitespaceswas already emitted but had never been listed.inconsistent_route_type_for_block_idandinconsistent_route_type_for_in_seat_transferno longer compare extended route types. MobilityData's canonical typed route table rejects extended HVT values, so the validators that read that table never see them.--threadsis documented as report metadata; actual parallelism is controlled withRAYON_NUM_THREADS.- Parallel CSV loading is faster, and the hottest rules were optimized.
- Website polish: mobile navigation, scroll-reveal that degrades without JavaScript, clearer size-limit copy, and a cache-buster for site scripts.
- Tagging a release now rebuilds and deploys the website after the GitHub Release, crates.io, PyPI, and npm jobs succeed.
- Release binaries ship without debug symbols. Use the
profilingprofile (cargo build --profile profiling) when a flamegraph needs them.
Fixed
- Per-validator timings are measured in the browser again. The parallel run path hardcoded a zero duration on
wasm32even though the crate'sInstantisweb_time::Instant, which is backed byperformance.now()there, so the multithreaded browser build reported every rule as taking no time at all.
- The browser's remote-feed fallback now uses the guarded Rust
/cors-proxy?url=...endpoint instead of an unrestricted nginx forward proxy. It rejects private and reserved addresses on every redirect and limits request rate, concurrency, response size, and duration. - IPv6 URL literals are classified directly, so public IPv6 hosts work while private and loopback literals remain blocked.
- Zip decompression is capped per member and across the archive.
- Negative
pathways.txtstair counts are loaded as valid downward stairs instead of silently dropping the pathway and producing false reachability errors. - The home page advertised
cargo install gtfs-guru-cliand a--jsonflag. The crate isgtfs-guruand the flag is--stdout, so both copied commands failed for anyone who followed them. - The home page no longer overflows horizontally on a 375 px viewport; the stats row, install commands, and footer links wrap instead. A Chromium check asserts the mobile page has no horizontal scroll.
- tzdb backward-compatibility link names (for example
Europe/Nicosia,US/Eastern) are accepted, matching Java'sZoneId. - Translation foreign-key lookups are indexed instead of scanned, which fixed a quadratic single-threaded hang on feeds with many translations.
duplicate_route_namematches the canonical validator for extended route types.- Service windows account for dates added through calendar_dates.txt.
- Placeholder notice codes from test modules no longer leak into the generated notice schema.
- Website container images remove deployment inputs such as
nginx.conf,Dockerfile, Compose files, and.envfrom the public document root. - Compose deployments require explicit PostgreSQL and Umami secrets.
- The Python package version is read from Cargo metadata, so a release can no longer publish wheels carrying the previous version.
- Updated
anyhow,bytes,crossbeam-epoch,plist/quick-xml,quinn-proto,rustls-webpki,tar,time, andwayland-scanner. stop_times.txtreferences topickup_booking_rule_idanddrop_off_booking_rule_idare now checked whenbooking_rules.txtis absent, so every such reference is aforeign_key_violation, as the canonical validator reports. The check used to be skipped entirely without the file, which hid 50,631 dangling references on one real-world feed (GTF-33).fare_products.txtrows are keyed on the specification's primary key,(fare_product_id, rider_category_id, fare_media_id), so a product sold to several rider categories is no longer aduplicate_key. Thorough mode keeps the stricter globally uniquefare_product_id(GTF-34).geo_json_duplicated_elementfor repeated MultiPolygon geometries is now reported only under--thorough, matching the Polygon case. The canonical validator uses that code for duplicated JSON keys, so the default profile no longer emits it for geometry (GTF-34).- The four remaining real-world parity differences on
mdb-3234andmdb-502are recorded as reviewed inscripts/real_world/expected_deltas.jsonwith the evidence for keeping each one (GTF-34, GTF-35). - The demo feed archive is stored rather than deflated, so
scripts/build_demo_feed.py --checkagrees with the committed copy on every machine. Deflate output is only stable for a given zlib implementation, so a contributor whose Python links zlib-ng saw the committed archive as stale and a rebuild produced a diff CI rejected. The archive's contents are unchanged. block_trips_with_overlapping_stop_timesnow follows the canonical validator step for step: a trip's interval is its first and last stop_time bystop_sequence(both need arrival and departure), a pair whose boundary stop repeats the same arrival/departure is a block transfer and not an overlap, and two trips only overlap on a date both services are active on, with no shortcut for identicalservice_ids.intersectionis that first shared date (YYYYMMDD) instead of a time range. Hyderabad (mdb-2457) loses 793 false errors and SNCB (mdb-686) 177.non_ascii_or_non_printable_charno longer fires on the_idfields the canonical validator does not type as IDs:frequencies.trip_id,translations.record_id/record_sub_id,timeframes.service_id,location_group_stops.location_group_id/stop_id,booking_rules.prior_notice_service_idandtrips.direction_id.- The CSV reader applies univocity's field boundaries before parsing (GTF-35): whitespace around a bare field is dropped, a quote after that whitespace still opens the field, whitespace inside quotes is kept.
817, "DUS"is now the valueDUS, not"DUS"(Latvia, mdb-992: 28 falsemixed_case_recommended_field), andleading_or_trailing_whitespacesis reported in default mode exactly when the canonical validator reports it, so it no longer needs--thorough. mixed_case_recommended_fieldtokenises like Java's[^\p{L}]+: combining vowel signs and tone marks (Thai, Lao, Indic scripts) split a word into several caseless tokens, lengths count UTF-16 units, and the notice is held back on rows whose fields failed to parse, as Java's entity validators never see those rows.- Shape-to-stop matching uses an operation-for-operation port of
S2EdgeUtil.getClosestPoint,S2LatLngandS2LatLng.getDistance, so near-ties on degenerate shapes (a polyline jittering between two points centimetres apart, or repeated points) resolve the way the canonical validator resolves them. Thailand (mdb-1831)stop_has_too_many_matches_for_shapegoes from 57 to Java's 63 andstops_match_shape_out_of_orderfrom 75 to 71 against 72; the last pair differs in the final ulp of a trig call.
- Release metadata and documentation update for 0.9.4.
How this page is generated
This page is built from CHANGELOG.md
in the repository, and the build fails when the two disagree. Follow new releases
through the GitHub releases feed.