Canonical execution runtime for orchestrating proteomics workflows through CLI, API, provider binding, and deterministic run control
Project description
bijux-proteomics-runtime
bijux-proteomics-runtime is the execution owner for provider binding,
deterministic replay, and operator-facing orchestration surfaces in
bijux-proteomics.
Within the suite, runtime owns execution, provider binding, deterministic replay, and operator entrypoints.
Use this package when you need supported CLI, HTTP API, provider wiring, runtime state handling, and replay-safe orchestration for the bounded flagship workflow chain.
Runtime owns execution control. It does not own the scientific workflow blueprint, evidence truth, ranking semantics, or lab progression logic that the wider proteomics engine still needs.
At a glance
- Use runtime when the concern is executable workflow control, provider binding, deterministic replay, or operator-facing handoff.
- Start with
bijux-proteomics-runtime --helpfor the live CLI surface, then open the runtime handbook when you need the end-to-end run path. - Route scientific truth to core, cited evidence memory to knowledge, recommendation posture to intelligence, and assay follow-up authority to lab.
Why teams pick this package
- one canonical runtime surface for CLI, API, orchestration, and providers
- deterministic replay and artifact shaping for repeatable execution outcomes
- typed run context, artifact ledger, replay contract, and local/container/scheduler/import run bundle outputs
- runtime-owned CLI and API operations that avoid private helper glue
- reviewable run and import paths that publish canonical downstream-facing manifests
- partial rerun planning, cache claims, cleanup plans, and failure-recovery audits for operational safety
- preflight and failure reports that fail early on missing execution requirements
- import traces, human-review resume checkpoints, and artifact-integrity reports for safe reuse
- runtime-owned control surfaces that consume lower-layer contracts without re-exporting their domain semantics
- explicit migration target for
agentic-proteinscompatibility forwarding
Typical use cases
- run the canonical proteomics workflow through CLI or HTTP entrypoints
- bind local or API-backed structure providers behind one orchestration layer
- enforce replay-safe runtime execution without moving domain semantics upward
- ingest third-party engine outputs while preserving external provenance honestly
- publish one useful run path from clean install to reviewable output
- publish one useful import-only path from third-party result to reviewable output
- integrate canonical runtime surfaces while legacy imports remain compat-only
0.3.8 Release Highlights
- Runtime now publishes advanced DIA-NN dry-run, resume, comparison, archive, and architecture-demo workflows as public owner surfaces.
- Workflow DAG typing, semantic cache fingerprints, partial rerun plans, workflow failure artifacts, and reviewable handoff archives now stay machine-readable instead of living in ad hoc runtime glue.
- Black-box rerun and reviewable sequence/import paths are now explicit parts of the runtime trust story rather than maintainer-only knowledge.
Installation
pip install bijux-proteomics-runtime
Quick start
Use the runtime CLI for end-to-end workflow execution, replay, and reviewable run outputs:
bijux-proteomics-runtime --help
Use exact owner modules for Python integrations:
from bijux_proteomics_runtime.api.app import AppConfig, create_app
from bijux_proteomics_runtime.runs.manager import RunManager
from bijux_proteomics_runtime.workflows.paths import (
run_reviewable_import_path,
run_reviewable_sequence_path,
)
The package root remains a stable external entrypoint surface, but runtime
maintainers and in-repo consumers should import the exact owner modules above
instead of widening bijux_proteomics_runtime into a convenience bucket.
Public APIs
The stable root API stays intentionally small:
AppConfigfor runtime app configurationcreate_app(...)for the canonical FastAPI assembly pathRunManagerfor execution coordinationapi.cli:clifor the supported operator command surface
Minimal executable example:
from pathlib import Path
from bijux_proteomics_runtime import AppConfig, create_app
base_dir = Path("artifacts/readme-runtime-app")
app = create_app(AppConfig(base_dir=base_dir, docs_enabled=False))
assert app.state.base_dir == base_dir
assert app.docs_url is None
assert any(route.path == "/health" for route in app.routes)
Package identity
- Distribution name:
bijux-proteomics-runtime - Import root:
bijux_proteomics_runtime - Flagship workflow CLI command:
bijux-proteomics-runtime - Stable entrypoints:
AppConfig,RunManager,create_app, andapi.cli:cli - Execution charter:
src/bijux_proteomics_runtime/governance/charter.py - First-level owner families:
api/,execution/,governance/,providers/,runs/,state/,support/, andworkflows/ - Compatibility forwarding lives in
agentic-proteins; the canonical runtime package keeps only owner paths
Package boundaries
This package owns runtime execution behavior and orchestration interfaces.
Domain meaning, evidence semantics, scoring policy, and lab planning semantics remain in their dedicated lower-layer packages.
What this package must not do
- it must not redefine scientific workflow truth, evidence truth, or recommendation policy
- it must not absorb knowledge curation or lab execution semantics into runtime transport
- it must not pretend container orchestration, scheduler policy, or external-engine provenance are runtime-owned science
Execution charter
governance/charter.pydefines the exact runtime-owned capability boundary and classifies every source module against it- runtime only owns canonical entrypoints, provider binding, workflow execution, replay and recovery, and reviewable run outputs
- modules that cannot be defended against that charter should move out of runtime or be deleted rather than hardening into generic infrastructure
Supported execution surfaces
Launch surfaces:
launch_surface="local"runs throughruns/manager.pyinside the current workspace and persists canonical review artifactslaunch_surface="container"emits container launch bundles and digest capture throughruns/launch_bundles.py; runtime does not build images or define container fleet policylaunch_surface="scheduler"emits scheduler submission bundles and replay-safe metadata throughruns/launch_bundles.py; runtime does not own queue policy, job priority rules, or cluster provisioninglaunch_surface="import"normalizes third-party outputs throughruns/import_lineage.py; runtime does not claim new scientific derivation for imported evidence
Execution modes:
execution_mode="auto"lets provider capability checks choose an allowed mode; runtime may degrade to CPU when provider support or configured budgets require itexecution_mode="cpu"forces CPU-compatible execution; runtime does not emulate GPU-only providers when a CPU path is unavailableexecution_mode="gpu"requires GPU-capable providers and an execution environment that can honor that request; runtime does not provision GPUs or schedule cluster policy
Non-goals for these surfaces:
- runtime does not define workflow truth, evidence truth, scoring truth, or lab truth
- runtime does not promise every provider on every launch surface
- runtime does not replace container orchestration, scheduler administration, or external-engine provenance
Canonical owner imports
bijux_proteomics_runtime.api.clifor CLI contracts and operator-safe command outputbijux_proteomics_runtime.api.appforAppConfig, FastAPI construction, and request-scoped runtime wiringbijux_proteomics_runtime.api.routes.runtime_executionfor runtime execution HTTP routesbijux_proteomics_runtime.runs.managerfor canonical execution coordinationbijux_proteomics_runtime.runs.preflightfor readiness and refusal reportsbijux_proteomics_runtime.runs.replay_decisionsandruns.execution_decisionsfor operator-visible reuse and degraded-mode reasoningbijux_proteomics_runtime.runs.import_lineagefor import traces and derived-artifact separationbijux_proteomics_runtime.workflows.pathsfor reviewable runtime path manifestsbijux_proteomics_runtime.providers.selectionandproviders.capabilitiesfor provider binding and capability gates
Operational review paths
run_reviewable_sequence_pathpublishes a runtime-owned manifest from canonical execution to reviewable outputrun_reviewable_import_pathpublishes a runtime-owned manifest from third-party evidence import to reviewable outputbuild_runtime_smoke_workflowsdeclares the supported smoke paths for sequence-to-digest, DDA import, DIA import, quant review, PTM review, analytical review, and lab handoffbuild_runtime_partial_rerun_planexposes dependency-graph rerun boundaries instead of leaving replay reuse implicitbuild_runtime_preflight_report,verify_runtime_artifact_integrity, andwrite_runtime_failure_reportkeep readiness, reuse safety, and failure classification on explicit run-owned support surfaces
Contract checkpoints
- runtime entrypoints must remain canonical while compat imports forward to them
- lower-layer meaning must stay below runtime owner families rather than being redefined here
- replay, artifact, and provider contracts must remain explicit and testable
- run context, artifact ledger, replay/import bundles, checkpoint artifacts, and preflight outputs must remain machine-readable and reviewable
- changes to canonical ownership should land in runtime before compat forwarding expands
Foundation-backed runtime contract examples
Runtime-owned examples that depend on shared foundation primitives stay here so the foundation package does not read like a workflow product.
Document metadata:
from bijux_proteomics_foundation import DocumentSchema
schema = DocumentSchema(
created_by="bijux-proteomics-runtime",
document_kind="artifact_bundle",
package_name="bijux-proteomics-runtime",
package_version="0.3.8",
)
Runtime refusal:
from bijux_proteomics_foundation.outcomes.refusals import OperationRefusal, RefusalKind
from bijux_proteomics_foundation.support.states import SupportState
refusal = OperationRefusal(
operation="mzidentml_ingestion",
kind=RefusalKind.UNSUPPORTED,
code="unsupported_construct",
reason="the source export cannot be normalized honestly",
support_state=SupportState.REFUSED,
)
Runtime error envelope:
from bijux_proteomics_foundation.support.error_models import (
ErrorCategory,
ErrorEnvelope,
)
envelope = ErrorEnvelope(
category=ErrorCategory.RUNTIME,
code="engine_timeout",
message="external engine did not complete before timeout",
)
Runtime operation result:
from bijux_proteomics_foundation.outcomes.results import OperationResult
result = OperationResult.success(
operation="hash_manifest",
summary="hash computed successfully",
output_fingerprint="a" * 64,
)
Choose this package when
- you need canonical CLI, API, provider binding, or replay-safe orchestration
- the change affects how canonical execution runs rather than what lower layers mean
- operator-facing entrypoints or runtime control helpers need to evolve without pushing runtime ownership downward
Route elsewhere when
- the change defines schema, lifecycle, evidence, ranking, or lab semantics
- the helper only exists to preserve historical imports instead of canonical runtime behavior
- the provider-specific rule would force lower packages to import runtime
Verification route
- check
testsfor runtime surface, provider, replay, and migration proof before treating a runtime change as safe - review
docs/BOUNDARIES.md,docs/CONTRACTS.md, anddocs/ARCHITECTURE.mdwhen canonical ownership or adapter law is part of the change - use
README.md,CHANGELOG.md, and packagedocs/*.mdwhen the change affects package publication, metadata, or release-readiness expectations
Review questions
- does the change preserve canonical operator entrypoints, provider binding, or replay-safe orchestration rather than lower-layer domain semantics
- would compat or lower packages start carrying shadow execution transport or adapter law if this behavior stayed outside runtime
- can the change be justified as runtime-local work instead of a missing lower package contract or a compat-only bridge
Escalation route
- route the change downward when the behavior actually defines schema, lifecycle, evidence, ranking, or lab semantics
- stop and review
docs/BOUNDARIES.mdanddocs/ARCHITECTURE.mdwhen the proposal starts looking like compatibility glue or provider-specific policy rather than canonical runtime orchestration - escalate before release when adopting the change would force lower packages or compat surfaces to mirror new runtime-local exceptions
Consumer impact signals
- expect cross-surface review when CLI, API, provider binding, replay behavior, or migration expectations change because operators consume them directly
- treat changes that alter canonical entrypoints, runtime control helpers, or compat expectations as high-impact even when import paths stay stable
- expect a narrower release burden when the change only improves internal orchestration without changing runtime-facing behavior
Explicit non-goals
- this package does not redefine schema, lifecycle, evidence, ranking, or lab semantics owned by lower layers
- this package does not serve as a dumping ground for compat-only exceptions or migration shims
- this package does not decide scientific truth, only how canonical execution runs over lower-layer contracts
- this package does not substitute for an end-to-end scientific workflow model across core, intelligence, knowledge, and lab
Source guide
src/bijux_proteomics_runtime/runsfor typed run contracts, canonical run operations, and execution ownershipsrc/bijux_proteomics_runtime/workflowsfor workflow planning, reproducibility, reviewable path manifests, and execution assurance ledgerssrc/bijux_proteomics_runtime/governance/charter.pyfor the machine-readable execution charter and module auditsrc/bijux_proteomics_runtime/api/cli.pyfor CLI contractssrc/bijux_proteomics_runtime/apifor HTTP entrypointssrc/bijux_proteomics_runtime/providersfor provider cataloging, capability gates, selection, and execution environment contractssrc/bijux_proteomics_runtime/supportfor execution primitives, artifact format contracts, and workspace supportartifacts/<run-id>for persisted runtime bundle, checkpoint, and integrity outputs at execution timetestsfor executable surface and migration expectations
Documentation
- Advanced DIA-NN Python API tutorial
- Execution overview
- Operator rerun journey
- Product architecture
- Cross-package ownership
- Public surfaces dossier
- Route ownership dossier
- Provider ownership dossier
- Artifact lineage dossier
- Benchmark rerun kits
- Package guide
- Runtime execution boundary
- Runtime environment contracts
- Runtime artifact stability
- Repository release and versioning
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bijux_proteomics_runtime-0.3.8.tar.gz.
File metadata
- Download URL: bijux_proteomics_runtime-0.3.8.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be3c9ea4c1c32b84a46058154e68de0ff3acfb0264d7738c409d0a66e97f80b0
|
|
| MD5 |
66534c7014ad96ce6932f9e9433e0550
|
|
| BLAKE2b-256 |
a821f17aa455964d02d57b4cec6302c571729a9ae73be2cc5f9b6c4b294ff49a
|
Provenance
The following attestation bundles were made for bijux_proteomics_runtime-0.3.8.tar.gz:
Publisher:
release-pypi.yml on bijux/bijux-proteomics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bijux_proteomics_runtime-0.3.8.tar.gz -
Subject digest:
be3c9ea4c1c32b84a46058154e68de0ff3acfb0264d7738c409d0a66e97f80b0 - Sigstore transparency entry: 2034547514
- Sigstore integration time:
-
Permalink:
bijux/bijux-proteomics@1c7da1b39cf1085afea9d94cbbe2ddf55fb1ed6c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/bijux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@1c7da1b39cf1085afea9d94cbbe2ddf55fb1ed6c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file bijux_proteomics_runtime-0.3.8-py3-none-any.whl.
File metadata
- Download URL: bijux_proteomics_runtime-0.3.8-py3-none-any.whl
- Upload date:
- Size: 355.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d3d9833caa764349cf4133a47a686730bb567119ad0d1e642c8532ae8a6147e
|
|
| MD5 |
5094e3cfb437fa13dfaafc9d15d1bedc
|
|
| BLAKE2b-256 |
13375847b019479682d294c36e3e45d51cb369088885a7ae0acbd00498f07b71
|
Provenance
The following attestation bundles were made for bijux_proteomics_runtime-0.3.8-py3-none-any.whl:
Publisher:
release-pypi.yml on bijux/bijux-proteomics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bijux_proteomics_runtime-0.3.8-py3-none-any.whl -
Subject digest:
8d3d9833caa764349cf4133a47a686730bb567119ad0d1e642c8532ae8a6147e - Sigstore transparency entry: 2034547758
- Sigstore integration time:
-
Permalink:
bijux/bijux-proteomics@1c7da1b39cf1085afea9d94cbbe2ddf55fb1ed6c -
Branch / Tag:
refs/heads/main - Owner: https://github.com/bijux
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@1c7da1b39cf1085afea9d94cbbe2ddf55fb1ed6c -
Trigger Event:
workflow_dispatch
-
Statement type: