Repository navigation
Conversation
This was referenced Dec 5, 2026
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
…wers Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
This branch has not been deployed
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.
This PR adds general service functions at
2a242a1c61. You can call them from a signed-in page, a machine client or a Coordinator workflow. The same service declaration controls what runs inrstack devand what the Compose reference deployment or Helm chart serves.Service functions
A single application host serves the page and the functions in the bundle. Each function exports a handler through
defineFunction. Registry Session authorises calls and supplies a short-lived pass for declared product calls. The binding exposes typed clients for the signed-in person or for a declared service role.What changes
service.yaml, name the service inservice.publicServiceand define functions in a map keyed by function ID. Set the allowed page, machine and Coordinator callers for each function.rstack dev export-previewto build the page and function modules. The manifest carries caller rules and each function's limits, secret names and connections.postgresortcpconnections in the service and list the connections a function uses. Set the destinations in the deployment. PostgreSQL also needs a database and a secret reference. The generated binding gives the function a PostgreSQL URL or TCP address throughctx.connections. The reference deployments give each mapping its own relay.Idempotency-Key.rstack function callcan generate the key and prints it for reuse. The binding derives product write keys from the incoming key, the function and the verified caller. It also uses the operation and its position within the call. Give a write an explicit stable label if the order of writes can change.Registry-Function-Outcome: unknownto an error answer when a write may have taken effect. The gateway carries the response marker. A page attempt retains its key through later failed retries. Only a successful replay with the same method, path and key settles the earlier attempt.Tests
rstack devpreviews in Chromium.Local verification at this head passed 994 TypeScript tests, 27 route parity cases and 11 installed Chromium preview proofs. Three opt-in TypeScript cases were skipped in that suite.
CI at this head passed every job it ran. The deployment checks, reference host smokes and installed previews took 5:11 more total job time than the median of comparable main runs, within the 10-minute allowance. The longest smoke took 4:13.
Intended differences from main
service.yamlnow selects the functions and callers. Removepreview.functionsandpreview.coordinatorFunctionsfromdev.yaml. Userstack service session-functionsto generate and check the Session functions block.Deployment boundaries
Functions in a service share an application process and network. The deployed connection relays are separate from the local development setup. In development,
rstack devstarts disposable PostgreSQL databases and uses TCP destinations fromdev.yaml.The v0.53.0 notes record two limits to the chart test coverage:
Follow-up work