Repository navigation
Conversation
TEMPORARY, for the I/O Schema proposal (#47): @elixir-cloud/wes and @elixir-cloud/design come from tarballs in vendor/cloud-components/, built with npm pack from the cloud-components proposal branches (#613, #614, head f28c15c), as those versions aren't released. The version is 2.0.0-alpha.51-io.f28c15c, so that it can't be mistaken for the published alpha.51. The design package is pinned through overrides, so that the TES package uses the same one. The Dockerfile copies vendor/ before installing. Swap back to released versions as docs/development/index.md describes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of #47. Two routes for the workflow form in schema mode: /api/workflows/get-trs-servers lists the TRS services of the service registry, and /api/workflows/trs-tool-version reads a tool version from one of them on the server (tool registries need not allow cross-origin requests): its descriptor type, the TRS tool version reference of the Cloud Components and its I/O Schema, found as the profile proposes (findSchemaFile). Only registry entries over https are read, with timeouts, size limits and no redirects. src/lib/schema-run.ts takes the user's choice in the browser: the schema from the tool registry, an upload or an https URL (fetched without credentials), with tool and version defaulting to those the schema names. src/lib/io-schema.ts picks the engine profile (Conquest by its service-info name) and the allowed URI schemes (the service's supported_filesystem_protocols). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of #47. The panel "Workflow from a tool registry" above the workflow form loads a tool version and its I/O Schema (from the tool registry, an upload or a URL) and switches the form to the schema mode of ecc-client-ga4gh-wes-run-create: the inputs as a form, the run request built from the values and the TRS tool version, with the Conquest engine profile for Conquest and the service's URI schemes for file inputs. "Use the plain form" goes back; without a schema the plain WES form is used. "Use the demo workflow" enters the I/O Schema demo (ga4gh-io-schema-demo 1.0.0, WDL 1.1). End-to-end tests against a mock tool registry with the word count example of the I/O Schema: a run from the schema form, and an error for a missing tool version. Docs: user guide, examples, operator config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the user uploads a schema or names one by URL, the TRS lookup only needs the tool version and its descriptor. The route takes schema=0 and the loader no longer fetches the registry's schema file, so a broken registry schema can't block a user's own one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The demo button points at a tool in our own registry, so it only makes sense where Krini shows its built-in workflow examples. The page reads ioSchemaDemo() on the server, which returns the demo only while WORKFLOW_EXAMPLES is unset, and the panel renders the button only when it gets one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Operators learn how Krini finds tool registries, which outbound requests it makes for them, how schema URLs relate to the CSP and when the demo shows. The vendor folder gets a README with the provenance of the Cloud Components tarballs and how to remove them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A member uploads a schema file and gets the form for the tool and version it names; a file that isn't JSON shows why it can't be used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewer's GuideAPIExpose endpoints for listing registered TRS services and loading a tool version, descriptor metadata, and its I/O Schema.
Uses of the APIConnect the workflow page and WES form to the schema-loading flow, pass service-specific run settings, and retain the plain-form fallback.
ImplementationImplement schema parsing and source validation, browser-side schema-run loading, registered-TRS discovery, and secure TRS tool-version and schema retrieval.
UIProvide the tool-registry, upload, and URL controls, including schema-loading errors, the optional demo, and switching back to the plain form.
ConfigurationUse the proposal Cloud Components tarballs during dependency installation and document the temporary Docker build input.
DocumentationExplain how to develop with the vendored proposal dependencies and configure tool registries and schema-based workflow submissions.
TestsVerify registered-TRS discovery, TRS tool-version loading, schema parsing and source handling, and end-to-end form submission and fallback.
Lock files and vendored codeRecord the updated dependency resolution and include the proposal Cloud Components packages as vendored tarballs.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
📖 4 files modified
Preview · build overview · krini · built Dec. 4, 2026, 12:29 p.m. UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev #155 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 30 36 +6
Lines 1040 1205 +165
Branches 301 353 +52
==========================================
+ Hits 1040 1205 +165 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Tool and version IDs "." and ".." are refused, because the HTTP client would resolve them to other paths of the tool registry. A missing files list, descriptor or schema file now says which one is missing instead of claiming that the tool version doesn't exist. A regression test pins that schema files with ".." in their path are ignored. Found by the adversarial review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An uploaded schema file over 1 MiB is refused by its size, before the browser reads it, so a large file picked by mistake can't freeze the tab. Found by the adversarial review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of #47
Important
Proposal, not for merge. This branch builds on the unreleased Cloud Components proposals elixir-cloud-aai/cloud-components#613 (I/O Schema form) and elixir-cloud-aai/cloud-components#614 (run request from a schema), at f28c15c. They are vendored as npm tarballs under
vendor/cloud-components/until Cloud Components releases them. Nothing here merges before anuragxxd has answered the open design questions in elixir-cloud-aai/cloud-components#444 and reviewed the Cloud Components side, and Krini's maintainer has reviewed this side.Summary
The workflow page can now build its form from a GA4GH I/O Schema, so users fill in typed inputs and no longer write
workflow_paramsJSON by hand (#47, How 1-3):ga4gh-io.schema.jsonof typeOTHER, or anIO_SCHEMAfile), by upload, or by URL. With an uploaded or linked schema, Krini still reads the tool version from the registry the schema names. It skips the registry's own schema then.ioSchema,trsToolVersion). Its values becomeworkflow_params, andworkflow_urlandworkflow_type/_versioncome from the TRS tool version. On Conquest, Krini passes the built-inconquestEngineProfile(detected by the service-info name).allowedSchemesfollows the service'ssupported_filesystem_protocols.GET /api/workflows/trs-tool-versionreads the tool version and the schema from the TRS on the server, because TRS-Filer sends no CORS headers. It only talks to TRS URLs that the service registry lists (otherwise 400). It uses https only, no redirects, a 10 s timeout and a 2 MiB limit, and maps TRS errors to 404/422/502.GET /api/workflows/get-trs-serverslists the registry's TRS services.ga4gh-io-schema-demo1.0.0 from the registered TRS-Filer. It is shown only with the built-in examples (WORKFLOW_EXAMPLESunset).vendor/cloud-components/README.mdsay how to swap the tarballs out.The example workflow and why
ga4gh-io-schema-demo1.0.0 (WDL 1.1) in the TRS-Filer at trs-filer.rahtiapp.fi (registry entry EJW598), meant to run on Conquest at CERIT:OTHER), so no new registry content is needed.conquestEngineProfilemaps to what Conquest accepts.greetings-nextflowandexample_workfloware Nextflow (Conquest's Nextflow support waits on Conquest: Nextflow runs fail without main.nf at the repo root generic-issues#194), Conquest doesn't listreport-snakemake's Snakemake version 8, andword-count-cwlis CWL, which none of our listed WES runs.The run itself is not verified live yet (see Open questions).
Design questions this depends on (cloud-components#444)
'unsafe-eval', so the form must validate without code generation (the hyperjump-based validator in #613, not Ajv's compiled mode). A choice that needsunsafe-evalwould break this page.findSchemaFile,conquestEngineProfileand friends from@elixir-cloud/wes/utils. If they move or are renamed, the imports insrc/lib/io-schema.tsandsrc/lib/trs.tsfollow.conquestEngineProfile. A profile registry or an operator setting would replaceengineProfileFor's detection by service-info name.What changes once Cloud Components releases
file:entries inpackage.json(@elixir-cloud/wes, and the@elixir-cloud/designoverride) with the released versions, runbun install, and commitbun.lock.vendor/and theCOPY vendor ./vendorline (marked TEMPORARY) in theDockerfile.docs/development/index.mdand the "proposal" markers in the user and operator guides.Verification
Run locally on the branch head (Bun 1.4.4):
bun run lint(Biome): clean.bunx tsc --noEmit: clean.npx vitest run --coverage: 583 tests passed, 100% statements, branches, functions and lines.npx playwright test: 72 passed (Chromium and Firefox). These include the newe2e/io-schema.spec.ts: a form loaded from the mock TRS and submitted with the expectedworkflow_url, type, version andworkflow_params; an uploaded schema; a file that isn't JSON; an unknown tool; and the way back to the plain form.next build(as part of the e2e run): passed.mkdocs build --strictwithdocs/requirements.txt: passed.Declined review findings
src/lib/trs.tsandsrc/lib/io-schema.ts. Left as they are for the proposal; they get tidied when this is split into mergeable PRs.Open questions
🤖 Generated with Claude Code
Summary by Sourcery
Add proposal-stage support for creating workflow runs from GA4GH I/O Schemas while preserving the existing plain workflow form.
New Features:
Enhancements:
Build:
Documentation:
Tests:
Chores: