Describe the app once, then run it locally or render cluster YAML - #187
patrickleet wants to merge 5 commits into
Conversation
Remove the copied CLI protocol fingerprint, add deployment validate/render for kubernetes/knative/hops-xr from one manifest+plan pair, and compile e2e-ui clients without constructing a Service. Implements remaining [[tasks/contract-lifecycle-tooling-1]] apply work.
Route GraphQL mutations through CommandDispatcher, emit parseable Hops XR YAML, compare inventories from shipped files, and start e2e-ui via RuntimeHost::realize_local. Implements [[tasks/contract-lifecycle-tooling-1]]
|
Warning Review limit reached
Next review available in: 35 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (36)
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. Comment |
Publish tags own the crate major. Do not rewrite Cargo.toml to 1.0.0.
Publish tags own the released major. Mainline Cargo.toml is a pre-release placeholder so it cannot be mistaken for v4.
Replace Writer/Full with Commands/All. Keep QueryApi and Projector.
|
Closing. We should not generate Kubernetes/Knative manifests from this layer, and the hops-xr target was a fake XR (no XRD, no reconcile). The goal is to make the existing Service startup simpler, not add a second host/plan/render model. |
What you write
You list the app’s pieces in Rust (modules, commands, models, projections). Then you say how to cut them into processes.
That’s the whole description. You do not write “if postgres, connect, migrate, spawn outbox, attach GraphQL to Service…”.
What you run
Start it (same as the demo app now):
# app binary still just calls the framework DATABASE_URL=sqlite:./app.db BIND=127.0.0.1:8791 cargo runUnder the hood that is:
Turn the same plan into deploy files:
Hops YAML is real structured mounts, not debug text:
Check contracts:
Before → after
Service, outbox/consumer loops, GraphQL wired toServiceApplication/DeploymentPlan. Framework starts the processRuntimeHost::realize_local(plan, …)Projector { id: "project_todos" }dctlstill showed updistributedWhy that’s better
Not in this PR
distributed dev(watch Cargo + Vite), live cluster apply, a new Hops package repo.Workspace version on this branch is
0.0.0-dev. Publish tags (v4, …) still own the released crate version.