Skip to content

feat(server): serve statements, landings and events over HTTP - #122

Open
PiquelChips wants to merge 1 commit into
feat/server-httpfrom
feat/server-http-landing
Open

PiquelChips wants to merge 1 commit into
feat/server-httpfrom
feat/server-http-landing

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

The HTTP API could only move records and read targets. Clients also need to read what's known about a change, land it, and react to what happens.

This adds the remaining routes, each one SDK line: the statements about a record, a change's revisions, creating a target, landing, the landings that wait, and the events long-poll (GET /api/v1/repos/<repo>/events?cursor=<n>&wait=30s). Their HTTP tests land changes and targets, wait for evidence and poll events through the SDK.

Benchmarks (just bench, the new server benchmarks):

Time
Put 1 / 100 / 1,000 statements 6 / 14 / 33 ms
Long-poll wakeup after a put about 0.7 ms
Landing with 200k statements, index kept open 15.6 ms
Same, index re-read per landing 93 ms

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review 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: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cdb3fef3-87b6-47bd-aa19-c516e87c013f
Commits

Reviewing files that changed from the base of the PR and between 0686170 and dc90bc7.

Files selected for processing: 7

  • AGENTS.md
  • apps/origin-src/Cargo.toml
  • apps/origin-src/benches/server.rs
  • apps/origin-src/src/http.rs
  • apps/origin-src/tests/http.rs
  • crates/origin-client/src/lib.rs
  • docs/openapi.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/server-http-landing branch 2 times, most recently from abf83e8 to 849e67f Compare November 22, 2026 16:40
@PiquelChips
PiquelChips force-pushed the feat/server-http-landing branch from 849e67f to 12e845a Compare November 22, 2026 18:54
The HTTP API could only move records and read targets. Clients also
need to read what is known about a change, land it, and react to what
happens.

The remaining routes, each one line of the SDK: the statements about a
record, a change's revisions, creating a target, landing a change or a
target, the landings that wait, and the events long-poll, which answers
as soon as there are events after the cursor.

The new `server` benchmarks time a batch of records put and fetched
over HTTP, a long-poll woken by a put from the server's process or
from another, and a landing in a repository of 200,000 statements
through a service that keeps its index open, against one that reads it
per landing.
@PiquelChips
PiquelChips force-pushed the feat/server-http-landing branch from 12e845a to dc90bc7 Compare November 22, 2026 19:20
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