Skip to content

feat: show run outputs with I/O Schema hints - #156

Draft
uniqueg wants to merge 3 commits into
feat/io-schema-forms-proposalfrom
feat/io-schema-run-outputs
Draft

uniqueg wants to merge 3 commits into
feat/io-schema-forms-proposalfrom
feat/io-schema-run-outputs

Conversation

@uniqueg

@uniqueg uniqueg commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Part of #132

Note

Stacked on #155 (base feat/io-schema-forms-proposal); it gets retargeted to dev once #155 merges. Until the Cloud Components integration branch feat/io-schema holds cloud-components#613-#615, this branch vendors a local build of cloud-components#615's head (c24a517). It will be rebased onto #155's rebuilt tarballs.

Summary

The run view shows the outputs of runs started from an I/O Schema by the schema's titles and descriptions (#132, steps 1 and 3):

  • Provenance tags: a run that Krini starts from an I/O Schema records where the schema came from in its WES tags: io_schema.source (trs, url or upload), io_schema.trs_url, io_schema.tool_id, io_schema.version_id, io_schema.descriptor_type, and io_schema.url for a schema by URL. A provider wrapper (withRunTags) adds them to the run request, so the Cloud Components need no change. They override user tags of the same names.
  • Run view: the run details read the tags from the run log (ecc-run-log-changed) and find the schema again (loadRunSchema): through Krini's TRS route (only for tool registries of the service registry) or by its HTTPS URL, without credentials. They pass it as ioSchema to ecc-client-ga4gh-wes-run, which shows the normalised outputs, partial ones included.
  • Graceful degradation: runs from uploaded schemas show their outputs as the service reports them, with a notice saying why. So do schemas that can't be loaded, with the reason. Runs without the tags look as before.
  • Output provider hook: ECCClientGa4ghWesRunClient takes an optional outputProvider (WesOutputProvider) for viewers and downloads. None is passed yet (see below).
  • Docs: user guide, "Outputs of runs from I/O Schemas" (the tags, the fallbacks, the Conquest gap).

The tag names and the decision to record the schema URL only for URL sources are Claude's proposal. For TRS sources, the TRS tool version identifies the schema, and the TRS file URL isn't fetchable from the browser anyway (no CORS).

What's left of #132

  • Viewers and downloads (step 2): blocked on a Conquest design question. Conquest reports outputs as s3://<run bucket>/<prefix>/files/<path> (internal/runner/wdl.go, persistLocalOutputPath) and has no route for users to fetch output files: its storage gateway serves task capability URLs only. So on Conquest, Krini shows titles, descriptions and URIs, but no table or report viewers and no downloads. Once Conquest offers an owner-checked route for output files, Krini passes an outputProvider for it.
  • Screenshot (step 4): after the deployment, from a real run.

Depends on

  • The double-define fix in cloud-components#614/#615 (coming with the rebuilt tarballs). Until then, the Cloud Components lazily define ecc-client-ga4gh-wes-run-output without a guard after Krini's React wrappers have defined it, so the schema view falls back to the raw outputs. The e2e test see the outputs of a run by its I/O Schema fails for that reason until the fix lands.

Verification

  • bun run lint: clean. bunx tsc --noEmit: clean.
  • npx vitest run --coverage: 613 tests passed, 100% statements, branches, functions and lines (new: src/lib/run-schema.test.ts; schema-run records the provenance).
  • npx playwright test e2e/io-schema.spec.ts e2e/io-schema-outputs.spec.ts --project=chromium: 6 passed, 1 failed. The submit test checks the provenance tags. The upload notice passes. The output titles test fails on the Cloud Components double-define bug above.
  • Reviews and CI: pending (after the rebuild).

🤖 Generated with Claude Code

Summary by Sourcery

Show run outputs with I/O Schema context and retain clear fallbacks when the schema cannot be recovered.

New Features:

  • Show run outputs using the associated I/O Schema’s titles, descriptions and order, including marking outputs from incomplete runs as partial.
  • Record I/O Schema provenance in run tags and use it to reload schemas for run details, with explanatory fallbacks for uploaded or unavailable schemas.

Enhancements:

  • Keep runs without I/O Schema provenance displaying outputs as before.
  • Allow the run details component to accept an optional output provider for file viewers and downloads; no provider is configured in this change.

Build:

  • Update the vendored Cloud Components WES and design packages to the c24a517 build and refresh the lockfile.

Documentation:

  • Document I/O Schema output hints, provenance tags, fallback behavior, and the current Conquest limitation in the user guide.

Tests:

  • Add unit and end-to-end coverage for schema provenance, schema reloading, and displaying or falling back from output hints; extend the WES mock to return run requests and outputs.

uniqueg and others added 3 commits December 4, 2026 14:40
The run view of the I/O Schema run outputs (cloud-components#615,
c24a517, stacked on #614 and #613) replaces the f28c15c tarballs.
Temporary: they are rebuilt from the integration branch
feat/io-schema once it holds the stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Runs started from an I/O Schema get io_schema.* tags: the source
(trs, url or upload), the TRS tool version, the descriptor type and,
for schemas by URL, the URL. A provider wrapper adds them to the run
request, so the Cloud Components need no change. loadRunSchema finds
the schema again from the tags, through Krini's TRS route or by URL.
The mock WES keeps the run requests, with their tags, and takes
seeded runs for the run view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The run details read the run's provenance tags, load its schema and
pass it to the run view, which shows the outputs by their titles and
descriptions. Runs from uploaded schemas, and schemas that can't be
loaded, show the outputs as reported, with a notice. The wrapper takes
an optional output provider for viewers and downloads, which no WES
offers yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sourcery-ai

sourcery-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Define the I/O Schema provenance tags and reload logic, and extend schema-run results to retain the source information needed to record and find the schema again.

  • src/lib/run-schema.ts L1-177
  • src/lib/schema-run.ts L45-57, L78-83, L133-142 (+2 small edits)

Uses of the API

Apply provenance tags when submitting schema-backed runs, then read run-log tags to reload and supply the schema and optional output provider to the run view.

  • src/app/dashboard/workflows/_components/ecc-wes-create-run-wrapper.tsx L52-63 (+3 small edits)
  • src/app/dashboard/workflows/_components/ecc-wes-run-details-wrapper.tsx L2-11, L30-98, L115-119 (+4 small edits)

Documentation

Document provenance tags, schema-based output hints, fallback behaviour, and the current limitation on fetching output files.

  • docs/user-guide/index.md L103-129

Tests

Verify provenance encoding, schema reload behaviour, and the provider tag wrapper, and exercise submission tags and run-output hints through the mock WES service.

  • e2e/fixtures.ts L59-75, L180
  • e2e/io-schema-outputs.spec.ts L1-76
  • e2e/io-schema.spec.ts L70-77
  • e2e/mock/server.ts L180-187, L378-384, L593-613 (+2 small edits)
  • src/lib/run-schema.test.ts L1-207
  • src/lib/schema-run.test.ts L17-25, L187-190 (+3 small edits)

Lock files and vendored code

Replace the vendored Cloud Components build used for the run-output integration and update dependency lock data to match it.

  • bun.lock L10, L44, L137-141
  • package.json L18, L58
  • vendor/cloud-components/README.md L11-19
  • vendor/cloud-components/elixir-cloud-design-2.0.0-alpha.51-io.c24a517.tgz
  • vendor/cloud-components/elixir-cloud-design-2.0.0-alpha.51-io.f28c15c.tgz
  • vendor/cloud-components/elixir-cloud-wes-2.0.0-alpha.51-io.c24a517.tgz
  • vendor/cloud-components/elixir-cloud-wes-2.0.0-alpha.51-io.f28c15c.tgz

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@read-the-docs-community

Copy link
Copy Markdown

📖 4 files modified


Preview · build overview · krini · built Dec. 4, 2026, 1:44 p.m. UTC

This branch has not been deployed

No deployments
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