Skip to content

feat(adaptors): add a Casework adaptor and pin the published Registry client 0.32.0 - #9

Merged
jeremi merged 3 commits into
mainfrom
feat/registry-casework-adaptor
Sep 15, 2026
Merged

jeremi merged 3 commits into
mainfrom
feat/registry-casework-adaptor

Conversation

@jeremi

@jeremi jeremi commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds a Registry Casework adaptor and moves the Evidence and BREG adaptors to the published @registrystack/client@0.32.0.

Casework adaptor (@openfn/language-registry-casework)

  • Requester operations over the client's casework namespace: create and read the caller's own hosted items, add and read notes, cancel an item, and poll the caller's terminal feed.
  • Task operations: read the source inbox and current item, preview grant templates, read grants, and explicitly approve or revoke a grant.
  • The adaptor never claims, releases or decides a human work item, and never places a task assertion in workflow state. Casework enforces ownership and authorization from the token identity, the configured profile and the source profile; workflow data cannot choose a token or profile.
  • Nested inputs built inside the OpenFn VM are materialized before native validation.
  • Example jobs for creating a request and polling terminal results, plus unit tests and a native test against a synthetic HTTP server.

Evidence and BREG adaptors

  • Pin @registrystack/client to 0.32.0.
  • Accept the client's authorization: { exchange: ... } configuration (BREG explicit clients; Evidence explicit and profile clients), mutually exclusive with a static token or private key.
  • BREG private-key JWT configuration accepts resource and scopes.
  • Progressive Evidence success returns retained_verification, base64 of the native verification snapshot, for callers that retain audit material alongside the signed bytes.

Verification

  • npm run check: Evidence 17, BREG 13, Casework 13, event services 30, pilot 33 Node tests and 16 Python tests, all passing against the published 0.32.0 client.
  • npm run pack:dry-run for all three adaptors.
  • Linux pilot acceptance: the worker image asserts the pinned 0.32.0 client. The pilot's BREG, Evidence and Mint images and bootstrap tools stay at 0.27.0, so this job exercises the 0.32.0 client against those 0.27.0 services; moving the pilot services to 0.32.0 is separate work.

The adaptors are not published by this PR.

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

…image

Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
@jeremi
jeremi merged commit e8ac2ed into main Sep 15, 2026
2 checks passed
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