Dashboard

Catch issues before they reach production. Every pull request reviewed against what's live, not just the diff.

Join the waitlist

The warning lands before the merge. The mechanism, the evidence, and the fix: right where you review.

github.com/coreplane/orders-api/pull/482

Add trigram index for order search #482

Open rvidal wants to merge 1 commit into main from order-search-trgm
Conversation 1 Commits 1 Checks 2 Files changed 1
polylane bot commented 2 minutes ago ···
Caution

Merging this pull request may degrade production (high impact).

Merging this blocks every write to orders while the index builds. migrations/0114_order_search_trgm.sql:3 adds CREATE INDEX … USING gin (search_text gin_trgm_ops) without CONCURRENTLY, and a plain CREATE INDEX takes a full write lock on orders for the whole build. Checkout sustains ~38 writes/s on that table; each one queues behind the lock until the build finishes.

To make this safe: build the index with CREATE INDEX CONCURRENTLY outside the transactional migration.

orders-db · writes per second · last 48h projected lock window
02040
-48h -24h now
every one of these writes blocks while the index builds

Polylane analysed de91b47 for production impact.

Some checks were not successful 1 failing and 1 successful check
ci / test Successful in 2m 4s Details
Polylane production impact Non-concurrent index build locks writes on orders Details
Merging is blocked

It improves the code, not just gates it. Missing instrumentation gets added right on your branch.

Clouds prod-cloudflare Key queries

Key queries

31 active · 2 telemetry gaps

Generated from your telemetry and your connected code, judged on observed data: every candidate ran against a day of real data before it was kept.

Did any payment capture fail? code answered
logs: "payment capture failed for order {orderId}"
declared in apps/api/src/payments.ts
Is the checkout webhook retrying more than usual? telemetry answered
metric: webhook.delivery.retries · rate over 5m
baseline 0.4/min over the observed day
Is the nightly reconciliation completing? code answered
logs: "reconciliation complete" · count over 24h
quiet all day: healthy. Kept because the code provably emits it
Are D1 writes hitting rate limits? telemetry unanswerable
no series found for this question
kept as a telemetry gap
Re-confirmed on every discovery run: one thin run cannot wipe a good set.

And it keeps watching after the merge. Whatever slips through gets caught in production.

Issues Critical latency degradation in checkout-edge worker Overview

Critical latency degradation in checkout-edge worker

Critical Active ·Detected 3 hours ago
OverviewMetricsLogsTracesTimelineProperties
checkout-edge
Cloudflare Worker
Open
View triggering check View incident

Critical latency degradation detected in checkout-edge worker: 18x+ P99 latency spikes sustained for 12 minutes

Request Duration
414 ms ▲ 43.1σ
Wall Time
416 ms ▲ 43.0σ
Request Duration
131 ms ▲ 2.6σ
Blast radius
Search your cloud resources...
Graph Table
edge-gateway Cloudflare Worker ··· checkout-edge Cloudflare Worker ··· hd-prod Hyperdrive ··· payments-db PlanetScale ··· cart-svc Cloudflare Worker ···

How Polylane works. It learns your system, watches it, investigates, and acts.

  • It learns your system first

    The context graph maps every resource and dependency across your clouds, repos, and observability providers. Agents reason over real topology, not guesses.

  • Detection without thresholds

    Built-in checks for every provider, plus checks generated from your own saved queries and dashboards. A statistical pass and an agent decide together, and an improvement never raises an issue.

  • Investigations that show receipts

    Every claim links back to the query, log line, or change record behind it. A verdict without evidence falls back to inconclusive.

  • Writes are earned, never assumed

    Accounts connect read-only. Rollbacks are off by default, rate-limited, and on the record. Code changes go through your normal review.

  • It gets sharper every week

    Memories, daily notes, and monitoring queries re-confirmed against real data: July's investigation learns from June's.

It plugs into what you already run. Connect read-only and start.

AWS
Cloudflare
Vercel
Render
Fly.io
Kubernetes
PlanetScale
Supabase
Modal
GitHub
Slack
Datadog
Honeycomb
Axiom
Sentry
Better Stack
Devin
Cursor
Factory
MCP Server
Every integration

Questions.

How does AI pull request review work?

Polylane connects to GitHub as an app and reviews each pull request against the live infrastructure it deploys to: the context graph, current telemetry, and recent changes. The verdict lands as a comment plus a 'Polylane production impact' check.

Will it block my merges?

Only if you want it to. Require the 'Polylane production impact' check through branch protection and risky merges are blocked; leave it optional and the verdict is advisory.

Is this for AI-generated code?

It's for all code. It just matters most when nobody read the change closely: the safety net for AI-generated code is the same review that catches the hand-written mistake.

How is this different from CI?

CI runs your tests against the code. Polylane reviews the change against production: the config, capacity, and dependencies it lands on, and the telemetry they emit right now. It shows up as a check in the same list, answering a different question.

Will it ever merge or deploy on its own?

No. Changes reach your default branch only through your review, and rollbacks to a previous known-good deploy stay off until you enable them.

More use cases

Ship at agent speed. Reviewed against production, every time.