Repository navigation
merge: wire the platform gaps (#163–#174) - #175
Merged
Merged
Conversation
… routes Every enterprise_mcp caller could list and call every tool, and three tools (assign_driver, get_available_drivers, get_cod_balance) hit unauthenticated /v1/internal routes with no permission check. - One MCP_TOOL_RULES table (any_of permissions + internal_route) and an MCP_HIDDEN list; mcp_tool_access() is the single decision used by both list_tools and call_tool. Unlisted tools fail closed. Partner-scoped tokens (pid set) never reach internal-route tools. - Refusals return an MCP invalid_request naming the tool and required permissions, and are audited as failed actions via record_audit. - 13 tools now forward the caller's bearer (no-op without one). - send_notification -> POST /v1/notifications/send with the engagement body shape (adds recipient/priority to the input schema); vehicle tools use /v1/fleet/vehicles[/:id]. - Tests: registry coverage, role matrix, partner scope, wildcard, list/call agreement. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Next.js page files may only export framework-allowed names. parseLabels was exported from the venues/[venueId] page; move it unchanged to src/lib/venues/parse-labels.ts and import it back into the page. Adds unit tests covering the current behaviour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…compliance panel Adds an "Upload document" button (compliance:admin only) to the document detail panel. It opens a modal with document type, number, optional issue and expiry dates and a file picker. Files over 10 MB or outside jpeg/png/webp/pdf are refused client-side; the file is sent as bare base64 to POST /api/v1/compliance/admin/profiles/:id/documents. The panel reloads on success; server errors show inline. Pure helpers (size guard, base64 prefix strip) live in lib/compliance/upload.ts with jest tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POST /api/v1/compliance/admin/profiles/:profile_id/documents (compliance:admin, 16 MB body limit on this route only). Shares UploadDocumentRequest and the validation/storage path with the self-upload route via api/http/upload.rs. submit_document now takes DocumentActor so the audit row records "admin" vs "driver". Document is inserted Submitted; nothing is auto-approved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…book A topic with an orphaned partition (on-disk topic_id from an older incarnation) looks healthy to --list and --describe but drops every keyed event hashing to that partition. 12 topics had partition 0 orphaned on the VPS broker on 2026-11-25, including order.shipment.created and pod.captured. scripts/check-kafka-partitions.sh asks for every partition's offset in one call and exits 1 when any is refused. The runbook records detection, confirmation and the repair used on 2026-08-25 and 2026-11-25. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Escape closes (not mid-submit), focus moves to the first field on open, Tab/Shift+Tab cycle inside the dialog, focus returns to the trigger on close, and the dialog is labelled by its heading. The panel now refreshes in place after a refresh on the same profile so the trigger stays mounted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ggers Every libs/events publisher sends an envelope and no Kafka headers, so the consumer never knew the tenant and read no ids. decode_event unwraps the envelope (or flat form) and events with no tenant are skipped, never evaluated against a nil tenant. HubCapacityExceeded, PaymentOverdue and SlaBreach now match on new topics as upward crossings. Adds the topic constants, payload structs, and topic script entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… invoice.overdue Adds overdue_days_notified, an hourly (configurable) sweep with CAS claim and rollback on publish failure, and keeps overdue invoices counted as unpaid by the billing clearance gate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…vice Replace the localStorage stub with the real /v1/marketplace routes: browse available listings, book against one of the merchant's own shipments (shipment_id/awb, prefilled labels and weight, invoice|online payment with checkout redirect), list my bookings (30s poll) and cancel pending ones. Types mirror the carrier serde output; size classes are the backend set. ReceiptModal now renders a MarketplaceBooking. Server 4xx messages are surfaced. Booking and receipt dialogs get Escape, focus trap/return and aria-labelledby via a shared useDialogA11y hook. Removes marketplace-bus, mock data, and the AI cargo-suggestion panel (it keyed on vehicle classes the backend does not have). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…anges current_load Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… once checkout_url comes from the server and was passed to location.assign, where a javascript: URL would run script. safeCheckoutUrl() now allows absolute https only; otherwise the booking list still refreshes and the user sees an error. The ?listing= deep link reopened the booking dialog on every 30 s poll; it is now consumed once per id and removed from the URL. Adds a jest config (next/jest) and tests for the helper. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ADR-0019 (Proposed): identity becomes an OAuth 2.1 authorization server for the single resource /mcp. MCP access tokens are ES256 on their own key (no existing HS256 validator accepts them), audience-bound, scope-narrowed over R1's per-tool RBAC; ai-layer exchanges them for a 5-minute platform token so the client's token is never forwarded downstream. ADR-0014 amendment (Proposed): records that the marketplace lives in services/carrier today and reconstructs the 2026-09-19 decisions that were never committed - extract before extending, rental as a listing type, one tstzrange/EXCLUDE reservation pattern with two owners, On-Demand as its own product - with prerequisites P1-P4. Plans: 2026-11-25-mcp-oauth-authorization.md (15 tasks) and 2026-11-25-marketplace-rental-on-demand.md (phases 0-2 detailed, 3-4 outlined pending the NI hold-validity answer). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A foreign-tenant hub or induction now returns NotFound before any save or hub.load.changed publish. Removes the redundant list_hubs guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…olling GET /v1/internal/drivers/idle returns drivers that crossed the idle threshold inside the polled window (available, open duty session, no active task). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… fire Idle is the absence of events. run_idle_driver_checker polls per (tenant, minutes) group, builds the context, runs rules and logs executions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… admin Receipts in both portals now render from the MarketplaceBooking the carrier service returned (types copied from the merchant portal, which mirror the carrier serde output). There is no receipt record: the issue form is gone with the bus, and View Receipt shows for any booking past pending/rejected/cancelled. The receipt dialog gets Escape, focus trap/return and aria-labelledby via a copied useDialogA11y hook. Admin: AdminBooking is the real booking plus a carrier label; the fabricated merchant_type/size_class columns are removed. The dispatch console sources accepted marketplace bookings from the same GET /v1/marketplace/bookings the Marketplace page calls (30s poll); the "via <carrier>" line and vehicle class are dropped because the booking carries neither. Deletes both marketplace-bus.ts files. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ode is returned once Driver-ops accepts an optional since (watermark) and returns as_of; the poller keeps a per-(tenant,minutes) watermark, uses MissedTickBehavior::Delay and a 10s client timeout. Driver-ops warns when the 1000-row cap is hit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fetchAllBookings now throws on any failure (apiGet is unchanged for its other callers). The dispatch console keeps the previous marketplace rows and shows an alert on failure, clears it on the next success, skips a poll tick while a request is in flight, and ignores results after unmount. The admin Marketplace page keeps its last data and shows an error banner. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ish its breach The promise shown to the customer (sla_label) now comes from one table that also yields sla_due_at, set in ShipmentService::create. A sweep claims overdue open shipments (UPDATE .. RETURNING, SKIP LOCKED), publishes SHIPMENT_SLA_BREACHED per tenant, and resets the claim if the publish fails. No backfill. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ngCommand Size class is now exactly the carrier service's seven wire values (motorcycle, sedan, van, l300, 6wheeler, 10wheeler, trailer); the old 1ton/3ton/7ton/10ton/scooter_bicycle/refrigerated_truck/recovery_truck values were rejected by SizeClass::from_str. features, currency and a create-time status are gone from the types and forms because the backend has no such fields. A failed create surfaces the carrier error envelope's message. The admin RegisterVehicleModal (a listing creator) is realigned. Also: partner marketplace refresh catches failures (banner, keeps last data, poll in-flight and unmount guards); admin fetchAllListings uses apiGetStrict and the admin marketplace poll has an unmount guard; the admin dispatch page resets its in-flight ref on cleanup. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… terminal set from the enum Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r has not accepted POST /v1/marketplace/bookings/:id/cancel (marketplace:book). Void-then-cancel is now one shared path used by the expiry sweep and the merchant cancel; a failed void leaves the booking Pending. Someone else's booking is a 404 identical to a missing one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoOpSmsAdapter now errors and logs the masked recipient, never the body (which held the plaintext PIN). generate_and_send_otp records delivered_via (sms | response | NULL) in the single insert. submit decides with the pure pin_requirement: a missing PIN is refused only when the live PIN was delivered; otherwise it is waived on a photo, tagged PIN_UNDELIVERED on the POD, and logged to telemetry as POD_PIN_UNDELIVERED. Migration 0010. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rows issued before migration 0010 have no delivery record but may well hold a PIN the recipient has, and PINs live 60 days. Backfill delivered_via = 'legacy' so they keep refusing a missing PIN. live_pin_state maps any recorded channel to delivered; the waiver tests now assert the exact text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Earnings queries filter tasks.driver_id directly (drivers.id = user_id is enforced by migration 0014); stale "ids may differ" comments corrected in driver-ops, dispatch and libs/events. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The generic /v1/drivers rule sent it to driver-ops, which has no such route. Match the exact path shape ahead of that rule; everything else under /v1/drivers stays with driver-ops. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A driver could reissue with the SMS failing: the new row had delivered_via NULL, shadowed the recipient's real PIN, and the delivery became waivable on one photo. generate_and_send_otp now refuses to insert a new PIN that reached nobody while a delivered live PIN exists (supersede_decision). Also make the submit PIN match exhaustive and mask the phone in the Twilio success log. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rmcp 3.0.1 has three advisories (RUSTSEC-2026-0461 unbounded tool schema cache in the Streamable HTTP server transport, which is the transport /mcp serves; -0462 unbounded response buffering in Streamable HTTP clients; -0457 OAuth client SSRF filter). The patched floor is 3.9.0, so the workspace requirement is raised to 3.9.0 and the lock takes 3.12.0. 3.9+ deprecates `model::ServerInfo` in favour of `ServerConfig` (same type), which fails CI's -D warnings, so the handler uses the new name. Verified on rustc 1.100.0: clippy -p logisticos-ai-layer --all-targets -D warnings -D clippy::all clean; cargo test -p logisticos-ai-layer 107 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reasons The 2026-11 advisory-db refresh left six findings that no in-range upgrade clears. Each is added to all three places that must agree (ci-rust.yml --ignore flags, deny.toml, scripts/check-audit-ignores.sh) with its reason and an expiry check the guard re-runs on every CI build: - RUSTSEC-2026-0387 crypto-bigint 0.5.5: compiled only via aws-sigv4's sigv4a (S3 multi-region access point signing), never called; fix is 0.7.6 and aws-sigv4 1.x pins 0.5. Guard walks the chain crypto-bigint <- elliptic-curve/ecdsa/primeorder <- p256 <- aws-sigv4 and fails if any link gains another consumer. - RUSTSEC-2026-0459 libsqlite3-sys: never compiled (sqlx-sqlite optional dep, Postgres-only). Guard fails if it enters the build graph. - RUSTSEC-2026-0543 chrono, -0555 chrono-tz, -0559 chrono-tz-build, -0441 pin-utils: unmaintained, informational, no fixed version. Guard fails once they stop being reported. Verified locally: cargo audit with CI's flags, the guard script and cargo deny check (advisories) all pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rmcp 3.0.1 has three advisories (RUSTSEC-2026-0461 unbounded tool schema cache in the Streamable HTTP server transport, which is the transport /mcp serves; -0462 unbounded response buffering in Streamable HTTP clients; -0457 OAuth client SSRF filter). The patched floor is 3.9.0, so the workspace requirement is raised to 3.9.0 and the lock takes 3.12.0. 3.9+ deprecates `model::ServerInfo` in favour of `ServerConfig` (same type), which fails CI's -D warnings, so the handler uses the new name. Verified on rustc 1.100.0: clippy -p logisticos-ai-layer --all-targets -D warnings -D clippy::all clean; cargo test -p logisticos-ai-layer 107 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reasons The 2026-11 advisory-db refresh left six findings that no in-range upgrade clears. Each is added to all three places that must agree (ci-rust.yml --ignore flags, deny.toml, scripts/check-audit-ignores.sh) with its reason and an expiry check the guard re-runs on every CI build: - RUSTSEC-2026-0387 crypto-bigint 0.5.5: compiled only via aws-sigv4's sigv4a (S3 multi-region access point signing), never called; fix is 0.7.6 and aws-sigv4 1.x pins 0.5. Guard walks the chain crypto-bigint <- elliptic-curve/ecdsa/primeorder <- p256 <- aws-sigv4 and fails if any link gains another consumer. - RUSTSEC-2026-0459 libsqlite3-sys: never compiled (sqlx-sqlite optional dep, Postgres-only). Guard fails if it enters the build graph. - RUSTSEC-2026-0543 chrono, -0555 chrono-tz, -0559 chrono-tz-build, -0441 pin-utils: unmaintained, informational, no fixed version. Guard fails once they stop being reported. Verified locally: cargo audit with CI's flags, the guard script and cargo deny check (advisories) all pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rmcp 3.0.1 has three advisories (RUSTSEC-2026-0461 unbounded tool schema cache in the Streamable HTTP server transport, which is the transport /mcp serves; -0462 unbounded response buffering in Streamable HTTP clients; -0457 OAuth client SSRF filter). The patched floor is 3.9.0, so the workspace requirement is raised to 3.9.0 and the lock takes 3.12.0. 3.9+ deprecates `model::ServerInfo` in favour of `ServerConfig` (same type), which fails CI's -D warnings, so the handler uses the new name. Verified on rustc 1.100.0: clippy -p logisticos-ai-layer --all-targets -D warnings -D clippy::all clean; cargo test -p logisticos-ai-layer 107 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reasons The 2026-11 advisory-db refresh left six findings that no in-range upgrade clears. Each is added to all three places that must agree (ci-rust.yml --ignore flags, deny.toml, scripts/check-audit-ignores.sh) with its reason and an expiry check the guard re-runs on every CI build: - RUSTSEC-2026-0387 crypto-bigint 0.5.5: compiled only via aws-sigv4's sigv4a (S3 multi-region access point signing), never called; fix is 0.7.6 and aws-sigv4 1.x pins 0.5. Guard walks the chain crypto-bigint <- elliptic-curve/ecdsa/primeorder <- p256 <- aws-sigv4 and fails if any link gains another consumer. - RUSTSEC-2026-0459 libsqlite3-sys: never compiled (sqlx-sqlite optional dep, Postgres-only). Guard fails if it enters the build graph. - RUSTSEC-2026-0543 chrono, -0555 chrono-tz, -0559 chrono-tz-build, -0441 pin-utils: unmaintained, informational, no fixed version. Guard fails once they stop being reported. Verified locally: cargo audit with CI's flags, the guard script and cargo deny check (advisories) all pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rmcp 3.0.1 has three advisories (RUSTSEC-2026-0461 unbounded tool schema cache in the Streamable HTTP server transport, which is the transport /mcp serves; -0462 unbounded response buffering in Streamable HTTP clients; -0457 OAuth client SSRF filter). The patched floor is 3.9.0, so the workspace requirement is raised to 3.9.0 and the lock takes 3.12.0. 3.9+ deprecates `model::ServerInfo` in favour of `ServerConfig` (same type), which fails CI's -D warnings, so the handler uses the new name. Verified on rustc 1.100.0: clippy -p logisticos-ai-layer --all-targets -D warnings -D clippy::all clean; cargo test -p logisticos-ai-layer 107 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reasons The 2026-11 advisory-db refresh left six findings that no in-range upgrade clears. Each is added to all three places that must agree (ci-rust.yml --ignore flags, deny.toml, scripts/check-audit-ignores.sh) with its reason and an expiry check the guard re-runs on every CI build: - RUSTSEC-2026-0387 crypto-bigint 0.5.5: compiled only via aws-sigv4's sigv4a (S3 multi-region access point signing), never called; fix is 0.7.6 and aws-sigv4 1.x pins 0.5. Guard walks the chain crypto-bigint <- elliptic-curve/ecdsa/primeorder <- p256 <- aws-sigv4 and fails if any link gains another consumer. - RUSTSEC-2026-0459 libsqlite3-sys: never compiled (sqlx-sqlite optional dep, Postgres-only). Guard fails if it enters the build graph. - RUSTSEC-2026-0543 chrono, -0555 chrono-tz, -0559 chrono-tz-build, -0441 pin-utils: unmaintained, informational, no fixed version. Guard fails once they stop being reported. Verified locally: cargo audit with CI's flags, the guard script and cargo deny check (advisories) all pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rmcp 3.0.1 has three advisories (RUSTSEC-2026-0461 unbounded tool schema cache in the Streamable HTTP server transport, which is the transport /mcp serves; -0462 unbounded response buffering in Streamable HTTP clients; -0457 OAuth client SSRF filter). The patched floor is 3.9.0, so the workspace requirement is raised to 3.9.0 and the lock takes 3.12.0. 3.9+ deprecates `model::ServerInfo` in favour of `ServerConfig` (same type), which fails CI's -D warnings, so the handler uses the new name. Verified on rustc 1.100.0: clippy -p logisticos-ai-layer --all-targets -D warnings -D clippy::all clean; cargo test -p logisticos-ai-layer 107 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reasons The 2026-11 advisory-db refresh left six findings that no in-range upgrade clears. Each is added to all three places that must agree (ci-rust.yml --ignore flags, deny.toml, scripts/check-audit-ignores.sh) with its reason and an expiry check the guard re-runs on every CI build: - RUSTSEC-2026-0387 crypto-bigint 0.5.5: compiled only via aws-sigv4's sigv4a (S3 multi-region access point signing), never called; fix is 0.7.6 and aws-sigv4 1.x pins 0.5. Guard walks the chain crypto-bigint <- elliptic-curve/ecdsa/primeorder <- p256 <- aws-sigv4 and fails if any link gains another consumer. - RUSTSEC-2026-0459 libsqlite3-sys: never compiled (sqlx-sqlite optional dep, Postgres-only). Guard fails if it enters the build graph. - RUSTSEC-2026-0543 chrono, -0555 chrono-tz, -0559 chrono-tz-build, -0441 pin-utils: unmaintained, informational, no fixed version. Guard fails once they stop being reported. Verified locally: cargo audit with CI's flags, the guard script and cargo deny check (advisories) all pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rmcp 3.0.1 has three advisories (RUSTSEC-2026-0461 unbounded tool schema cache in the Streamable HTTP server transport, which is the transport /mcp serves; -0462 unbounded response buffering in Streamable HTTP clients; -0457 OAuth client SSRF filter). The patched floor is 3.9.0, so the workspace requirement is raised to 3.9.0 and the lock takes 3.12.0. 3.9+ deprecates `model::ServerInfo` in favour of `ServerConfig` (same type), which fails CI's -D warnings, so the handler uses the new name. Verified on rustc 1.100.0: clippy -p logisticos-ai-layer --all-targets -D warnings -D clippy::all clean; cargo test -p logisticos-ai-layer 107 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reasons The 2026-11 advisory-db refresh left six findings that no in-range upgrade clears. Each is added to all three places that must agree (ci-rust.yml --ignore flags, deny.toml, scripts/check-audit-ignores.sh) with its reason and an expiry check the guard re-runs on every CI build: - RUSTSEC-2026-0387 crypto-bigint 0.5.5: compiled only via aws-sigv4's sigv4a (S3 multi-region access point signing), never called; fix is 0.7.6 and aws-sigv4 1.x pins 0.5. Guard walks the chain crypto-bigint <- elliptic-curve/ecdsa/primeorder <- p256 <- aws-sigv4 and fails if any link gains another consumer. - RUSTSEC-2026-0459 libsqlite3-sys: never compiled (sqlx-sqlite optional dep, Postgres-only). Guard fails if it enters the build graph. - RUSTSEC-2026-0543 chrono, -0555 chrono-tz, -0559 chrono-tz-build, -0441 pin-utils: unmaintained, informational, no fixed version. Guard fails once they stop being reported. Verified locally: cargo audit with CI's flags, the guard script and cargo deny check (advisories) all pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rmcp 3.0.1 has three advisories (RUSTSEC-2026-0461 unbounded tool schema cache in the Streamable HTTP server transport, which is the transport /mcp serves; -0462 unbounded response buffering in Streamable HTTP clients; -0457 OAuth client SSRF filter). The patched floor is 3.9.0, so the workspace requirement is raised to 3.9.0 and the lock takes 3.12.0. 3.9+ deprecates `model::ServerInfo` in favour of `ServerConfig` (same type), which fails CI's -D warnings, so the handler uses the new name. Verified on rustc 1.100.0: clippy -p logisticos-ai-layer --all-targets -D warnings -D clippy::all clean; cargo test -p logisticos-ai-layer 107 passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reasons The 2026-11 advisory-db refresh left six findings that no in-range upgrade clears. Each is added to all three places that must agree (ci-rust.yml --ignore flags, deny.toml, scripts/check-audit-ignores.sh) with its reason and an expiry check the guard re-runs on every CI build: - RUSTSEC-2026-0387 crypto-bigint 0.5.5: compiled only via aws-sigv4's sigv4a (S3 multi-region access point signing), never called; fix is 0.7.6 and aws-sigv4 1.x pins 0.5. Guard walks the chain crypto-bigint <- elliptic-curve/ecdsa/primeorder <- p256 <- aws-sigv4 and fails if any link gains another consumer. - RUSTSEC-2026-0459 libsqlite3-sys: never compiled (sqlx-sqlite optional dep, Postgres-only). Guard fails if it enters the build graph. - RUSTSEC-2026-0543 chrono, -0555 chrono-tz, -0559 chrono-tz-build, -0441 pin-utils: unmaintained, informational, no fixed version. Guard fails once they stop being reported. Verified locally: cargo audit with CI's flags, the guard script and cargo deny check (advisories) all pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Migration 0010 adds CHECK couriers_id_is_user_id, but the constructor still minted a random id. Registration overrode it by hand, so production rows were fine, while every other caller (the claim_race and ledger_period_idempotency integration tests) built a row the database refuses. The invariant now lives in the constructor, and registration no longer repeats it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tegrate/wire-gaps-nov27
…rate/wire-gaps-nov27
…into integrate/wire-gaps-nov27
…ue' into integrate/wire-gaps-nov27
…iggers' into integrate/wire-gaps-nov27
…livered' into integrate/wire-gaps-nov27
…behalf' into integrate/wire-gaps-nov27
…oad-on-behalf' into integrate/wire-gaps-nov27
…t-cancel' into integrate/wire-gaps-nov27
…ckend' into integrate/wire-gaps-nov27
…into integrate/wire-gaps-nov27
…bels' into integrate/wire-gaps-nov27
- carrier: #164 added MarketplaceRepository::transition_booking. #171's admin route test double predates it, so the lib tests stopped compiling. Give the double the same compare-and-set as the service tests' double. - order-intake: #173 wired tests/unit into Cargo, and its Shipment fixture predates #163's sla_due_at field. Add it as None. Checked locally on rustc 1.100: workspace clippy --all-targets -D warnings, the unwrap_used gate, the /health and OpenAPI route checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merges the twelve "wire the platform gaps" PRs into master in one step, so CI runs once on the combined tree and build-images rebuilds once.
Merged in this order, with no conflicts: #174, #169, #173, #168, #163, #165, #166, #167, #164, #171, #170, #172.
Checked on the merged tree:
Merge this with a merge commit, not a squash. Each PR's head is then an ancestor of master, and GitHub marks all twelve as merged.
🤖 Generated with Claude Code