Skip to content

site: upgrade Ora transmitter to 4.8.1 - #9018

Merged
gregory-boch-prisma merged 1 commit into
mainfrom
chore/ora-transmitter-4.8.1
Dec 2, 2026
Merged

gregory-boch-prisma merged 1 commit into
mainfrom
chore/ora-transmitter-4.8.1

Conversation

@gregory-boch-prisma

Copy link
Copy Markdown
Contributor

Summary

Upgrades the Agent Front transmitter in apps/site/src/agent-front.ts from nextjs-middleware/4.3.1 to nextjs-middleware/4.8.1, the file Ora's Studio serves under Agent Front → Connect → Next.js. The file is copied unchanged.

What 4.8.1 adds for us:

  • Passes the origin Link header (canonical, alternate, llms-txt) through on native .md pages, on GET and HEAD.
  • Sends Link: <https://www.prisma.io/pricing>; rel="canonical" on the /pricing agent views.
  • Default policy and ingest hosts move from *.agentfront.sh to edge.ora.ai / ingest.ora.ai (still overridable with the same ORA_* env vars).
  • An optional MCP gateway mode, inactive unless a path is saved in the Ora Portal.

Unchanged:

  • proxy.ts and its matcher. /mcp and the MCP OAuth discovery paths are still handled before Agent Front.
  • Env vars read (ORA_INGEST_KEY, ORA_SALT, ORA_DOMAIN_ID, and the optional overrides).
  • ASSET_EXTENSIONS and referer handling (origin only) are identical to 4.3.1.

Checks

  • src/lib/proxy-matcher.test.ts: 20/20 pass.
  • composer/gateway/agent-front.test.ts: passes (after building @prisma/proxy).
  • Full apps/site test run: same 7 failures as unmodified main in this local environment, none new.

After deploy: /__ora/status returns reporting: true, and .md pages keep the origin Link header for agent user agents.

🤖 Generated with Claude Code

Replace apps/site/src/agent-front.ts with Ora's Next.js transmitter
nextjs-middleware/4.8.1 from Studio (Agent Front > Connect > Next.js),
unchanged. Ora needs 4.8.1 to pass the origin Link header through on
native .md pages and to send a canonical on the /pricing views.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
blog Ready Ready Preview Dec 2, 2026 12:26pm UTC
docs Ready Ready Preview Dec 2, 2026 12:26pm UTC
eclipse Ready Ready Preview Dec 2, 2026 12:26pm UTC
site Ready Ready Preview Dec 2, 2026 12:26pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
handbook Skipped Skipped Dec 2, 2026 12:26pm UTC

Request Review

@prisma-gizmo

prisma-gizmo Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ Gizmo reviewed 3fd55cd — posted 0 inline comment(s) this pass.

Open findings: none

Change walkthrough

This PR upgrades the vendored Ora Agent Front transmitter in apps/site/src/agent-front.ts from nextjs-middleware/4.3.1 to nextjs-middleware/4.8.1, bringing the file back in sync with what Ora's Studio serves under Agent Front → Connect → Next.js.

What the new transmitter adds

  • Origin Link headers on .md twins: servingResponseHeaders now forwards the upstream link header (canonical/alternate/llms-txt) alongside x-agentfront-cache, and canonical-routed fetches also pass the visitor's query string through (serve), so agents see the same canonical links on served markdown as on origin pages.
  • Hosted-origin grants: a new security module (transmitter-query-security) validates an optional hostedOrigin grant in the policy (acceptsHostedGrant, DNS-label and suffix checks against .localhost/internal names). When granted, serving and query traffic must target exactly that origin and drops the Authorization header and credentials — hosted requests authenticate out of band. Legacy policies keep the old *.ora.sh/*.ora.run/*.localhost suffix behavior.
  • Delivery reporting: hosted page fetches get _ora_request/_ora_v markers (oraDeliveryRequest), recorded on the request via a WeakMap and merged into ingest events, plus a new request-only observation report mode.
  • MCP gateway mode (inactive): when a gateway path/key is saved in the Portal, requests carrying x-ora-gateway to that path short-circuit straight to the app (passesThrough, key compared in constant time), while visitor requests to the path are proxied to Ora's /mcp backend like /mcp itself. No gateway is configured for this site today.
  • Default hosts move from front/ingest.agentfront.sh to edge.ora.ai / ingest.ora.ai; the same ORA_* env overrides still win.

Repo integration: proxy.ts, its matcher, and the env-var contract are untouched; the existing matcher already covers any future gateway path. No other file in the repo references agentfront.sh or the old version string. The PR's cited tests (composer/gateway/agent-front.test.ts, src/lib/proxy-matcher.test.ts) exist and, per the description, pass with no new failures.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Add your request for automatic reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 5236c838-fa17-49dc-834a-dd40adae7bfe
Commits

Reviewing files that changed from the base of the PR and between ff35a0f and 3fd55cd.

Files selected for processing: 1

  • apps/site/src/agent-front.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@gregory-boch-prisma

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@gregory-boch-prisma

Copy link
Copy Markdown
Contributor Author

@prisma-gizmo review

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: none · trace

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Gizmo finding is open and the head commit has been reviewed. Approving.

@gregory-boch-prisma
gregory-boch-prisma merged commit 06e2a7d into main Dec 2, 2026
34 checks passed
@gregory-boch-prisma
gregory-boch-prisma deleted the chore/ora-transmitter-4.8.1 branch December 2, 2026 12:38

This branch was successfully deployed

5 active and 1 inactive deployments
Preview – docs — 3fd55cd8 Deployed Dec 2, 2026 by vercel[bot]
Preview – site — 3fd55cd8 Deployed Dec 2, 2026 by vercel[bot]
Preview – blog — 3fd55cd8 Deployed Dec 2, 2026 by vercel[bot]
Preview – eclipse — 3fd55cd8 Deployed Dec 2, 2026 by vercel[bot]
Preview – handbook — 3fd55cd8 Deployed Dec 2, 2026 by vercel[bot]
prisma-preview/chore/ora-transmitter-4.8.1 — 3fd55cd8 Deployed Dec 2, 2026 by gregory-boch-prisma via deploy #1975
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant