bijux-proteomics-runtime¶
bijux-proteomics-runtime is the canonical execution layer. It turns validated
workflow requests into inspectable runs with explicit configuration, provider
selection, lifecycle state, checkpoints, artifacts, comparison, replay, and
operator handoff.
Open the record that explains the symptom¶
Runtime failures and differences are diagnosable only when the operator starts from the record that owns the disputed transition.
| Symptom | Open first | Evidence that resolves it |
|---|---|---|
| work never started | preflight report | request validation, required capability, environment checks, provider availability, and typed refusal |
| a different provider or mode ran | provider decision | requested and selected capability, fallback reason, environment, and assurance result |
| execution stopped unexpectedly | lifecycle events and failure report | last accepted state, operation identity, diagnostics, partial artifacts, and recovery boundary |
| resume does not continue as expected | checkpoint history and state snapshot | checkpoint identity, compatibility, parent run, restored state, and resumed transitions |
| output is missing or changed | artifact ledger and comparison report | artifact identity, producer, hash, lineage, cache decision, stability class, and normalized difference |
| an imported result appears equivalent to native execution | provenance and execution-posture record | external engine, source file, version, custody, normalization, and explicit import ceiling |
| a rerun completed but cannot support reproduction | rerun closure record | source and rerun identities, environment and provider drift, comparison policy, differences, and disposition |
Do not infer the cause from the terminal label alone. Completed, failed, and
refused summarize a run; the owning records explain what happened and which
claim remains supportable.
Runtime lifecycle¶
stateDiagram-v2
state "rerun recorded" as RerunRecorded
state "replay compatible" as ReplayCompatible
[*] --> Preflight
Preflight --> Refused: invalid input or unavailable capability
Preflight --> Planned: contract and provider accepted
Planned --> Running
Running --> Checkpointed: interruption or review boundary
Checkpointed --> Running: resume
Running --> Failed: governed execution failure
Running --> Completed
Completed --> RerunRecorded: same declared request executed again
Completed --> ReplayCompatible: persisted state consumed under contract
Completed --> Compared: compare run records
Completed --> Archived: export and handoff
Runtime records execution truth: what was requested, selected, attempted, produced, refused, or failed. It does not convert operational success into a scientific or biological claim.
Run contract¶
| Stage | Runtime records | Review question |
|---|---|---|
| preflight | request identity, validation, capability and environment checks | was the work executable under declared conditions? |
| planning | resolved configuration, graph, tools, provider decision, fallbacks | what did Runtime intend to execute? |
| running | state transitions, structured logs, telemetry, checkpoints | what actually happened and where can it resume? |
| termination | completion, refusal, or governed failure | why did execution stop? |
| custody | artifact ledger, hashes, cache decisions, handoff archive | which bytes belong to this run? |
| review | comparison, rerun, replay, and provenance results | what is equivalent, different, or not reproducible? |
Operator surfaces¶
- The
bijux-proteomics-runtimeCLI starts, resumes, compares, reproduces, inspects, imports, and exports runs. create_app()exposes the FastAPI application and versioned route surface.RunManagerprovides the direct Python execution owner.AppConfigconfigures the HTTP application.agentic-proteinsforwards historical commands and imports to these canonical owners.
See the CLI reference for exact commands and examples.
Execution subsystems¶
| Subsystem | Responsibility |
|---|---|
api |
CLI, FastAPI application, v1 routes, request context, errors, logging, and command output |
execution |
agent and tool contracts, planning, compilation, graph validation, engine, evaluation, and validation |
providers |
capability discovery, selection, assurance, environment checks, and built-in, local, or remote implementations |
runs |
configuration, preflight, context, lifecycle, manager, ledger, artifacts, checkpoints, cache, telemetry, recovery, replay, and reruns |
state |
memory records, stores, schemas, and snapshots |
parallel and streaming |
controlled alternative execution modes |
rehydrate, resume, and diff |
recovery, continuation, and completed-run comparison |
handoff |
portable archive bundles |
Provider boundary¶
The built-in heuristic provider supports deterministic local behavior. Structure providers such as ESMFold, RoseTTAFold, ColabFold, and OpenProtein are opt-in and carry environment, dependency, network, hardware, and upstream service constraints. Provider selection and capability checks are recorded in the run. A fallback must remain visible; it cannot masquerade as the requested provider.
Run evidence¶
A reviewable run includes its request, normalized configuration, environment and version identity, provider decision, lifecycle transitions, structured logs, checkpoints, artifact hashes, failure or refusal information, and output summary. Replay verifies declared runtime behavior under a compatible environment; comparison identifies relevant differences between completed runs.
Imported results have a distinct provenance route. Supplying an external engine name, version, source file, and sequence creates an import-backed run record; it does not make the external computation native or independently reproducible.
Native, delegated, and imported work¶
| Execution posture | Runtime controls | Evidence ceiling |
|---|---|---|
| native | implementation, configuration, state, artifacts, and failures | rerun and replay claims within the recorded environment contract |
| delegated provider | request, selection, transport, custody, and returned artifacts | provider-conditioned execution; upstream service remains external |
| imported result | intake validation, provenance, normalization, and downstream custody | review of supplied outputs; no claim that Runtime executed the source engine |
These postures cannot be collapsed into a generic completed state. Provider fallbacks and imported sources remain visible in the run bundle and comparison record.
Read a run without overclaiming¶
flowchart TD
R["run bundle"] --> I["identity and configuration"]
R --> P["provider and environment"]
R --> S["state transitions"]
R --> A["artifact ledger"]
R --> F["failure or refusal"]
I --> E{"execution claim supported?"}
P --> E
S --> E
A --> E
F --> E
E -->|yes| X["bounded execution statement"]
E -->|no| N["rerun claim refused"]
Runtime can establish that a particular request executed under recorded conditions and produced identified artifacts. Core determines scientific acceptance. Knowledge determines evidential grounding. Intelligence determines recommendation posture. Lab determines readiness and records experimental consequence.
Reproduction levels¶
| Statement | Minimum evidence |
|---|---|
| rerunnable | inputs, environment contract, provider availability, configuration, and instructions are complete |
| rerun | a new run bundle records execution of the same declared request |
| replay-compatible | persisted state and events can be consumed under the declared compatibility contract |
| comparable | a comparison record explains relevant identity, configuration, environment, and artifact differences |
| scientifically reproduced | Core acceptance and domain evidence support equivalence; runtime equality alone is insufficient |
See artifact stability, environment contracts, and rerun refusals before using reproduction language.
Comparison semantics¶
A run comparison separates expected and consequential differences. Timestamps, generated identifiers, environment changes, provider versions, configuration, input digests, lifecycle events, and artifact digests are compared under named rules. Ignoring a field requires a declared normalization policy; it is not a license to discard inconvenient divergence.
flowchart TD
A["reference run"] --> N["normalize under declared policy"]
B["candidate run"] --> N
N --> D["identity · config · environment · events · artifacts"]
D --> E{"difference class"}
E -->|expected| X["record tolerated variance"]
E -->|consequential| C["comparison fails or narrows claim"]
E -->|unknown| U["refuse equivalence"]
Runtime comparison establishes operational equivalence only. Scientific equivalence still requires the Core acceptance contract and domain evidence.
Benchmark execution evidence¶
| Review surface | Question answered |
|---|---|
| Benchmark Rerun Kits | are the inputs, environment contract, entrypoint, and expected artifacts sufficient for another run? |
| Benchmark Comparability Matrix | which workflow families and execution postures can be compared under a declared rule? |
| Black-Box Benchmark Dashboard | did the public execution lane pass rerun, refusal, artifact, and comparison checks? |
| Flagship Run Registry | which run and artifact identities anchor the published evidence? |
These surfaces establish Runtime evidence only. Their verdicts constrain workflow claims but do not replace Core acceptance, grounding, recommendation challenge, or laboratory consequence.
Current execution ceiling¶
Runtime evidence is not uniformly strong across workflow families. Family execution posture and repository release readiness answer different questions: the first limits one workflow claim; the second requires every applicable release category to pass.
| Family | Black-box allowed posture | Execution evidence | Remaining ceiling |
|---|---|---|---|
| DDA | review_grade_bounded |
primary and companion lanes are import_only |
no repository-owned raw search execution; the stronger requested posture is blocked |
| DIA | outsider_auditable_bounded |
primary and companion lanes are raw-executable over checked reports | no chromatogram-native replay; library completeness and absent-peptide consequences remain bounded |
| LFQ | outsider_auditable_bounded |
primary and companion lanes are raw-executable over checked features | accuracy beyond repeatability and transfer beyond the current cohort package remain bounded |
| multiplex | internal_support_only |
both lanes are raw-executable, but companion transfer is fragile | collapsed companion claim, absent outsider decision route, and absent lab packet prevent promotion |
| PTM | outsider_auditable_bounded |
both lanes are raw-executable over checked localization inputs | occupancy, function, and regulatory consequence remain outside localization evidence |
| targeted | outsider_auditable_bounded |
both lanes are raw-executable over checked targeted QC | vendor parity, calibration transfer, matrix interference, and assay burden remain bounded |
The Black-Box Benchmark Dashboard owns installed-entrypoint execution language. The Workflow Families ledger owns product posture. The Release Readiness Matrix owns repository publication status. A DIA lane can therefore support bounded outsider execution language while repository black-box readiness remains blocked by the stronger chromatogram-native replay burden. That is a scope difference, not permission to choose the more convenient verdict. When two surfaces address the same scope and disagree, the narrower live verdict governs and the disagreement remains visible as release work.
The execution evidence can be audited from the boundary inward:
- Runtime Execution Boundary identifies the canonical manifest-producing routes;
- Black-Box Run Verification checks installed entrypoints and observable output;
- Raw Versus Import Execution separates native computation from external-result custody;
- Runtime Replay Challenges applies state, environment, and artifact pressure;
- Runtime Environment Contracts records provider and system assumptions;
- Runtime Artifact Stability defines identity and comparison guarantees;
- Runtime Rerun Refusals states when rerun language is unsupported.
Verify A Rerun Claim¶
A new terminal completed state is not enough to call work reproduced. Compare
the new run with the reference at the request, environment, provider, event,
artifact, and scientific-acceptance boundaries.
| Boundary | Evidence to compare | Refuse the rerun claim when |
|---|---|---|
| request | workflow contract, inputs, policy, expected artifacts | a required input or scientific policy changed without a declared comparison rule |
| environment | package, tool, model, hardware, service, and configuration versions | the effective environment is unknown or incompatible |
| provider | requested, selected, fallback, capability, and execution posture | fallback or import custody is presented as native execution |
| lifecycle | preflight, state transitions, checkpoints, retries, and terminal disposition | the event history cannot explain how completion was reached |
| artifacts | ledger membership, digests, lineage, cache decisions, and missing outputs | required output is absent or content identity diverges consequentially |
| science | Core acceptance, QC, ambiguity, and known limits | operational similarity does not satisfy the family-specific scientific contract |
flowchart TD
reference["reference run bundle"] --> compare["declared comparison policy"]
candidate["candidate run bundle"] --> compare
compare --> request["request and inputs"]
compare --> environment["environment and provider"]
compare --> events["events and checkpoints"]
compare --> artifacts["artifact identity"]
request --> verdict{"consequential divergence?"}
environment --> verdict
events --> verdict
artifacts --> verdict
verdict -->|yes or unknown| refuse["refuse or narrow equivalence"]
verdict -->|no| operational["operational rerun supported"]
operational --> core["Core scientific acceptance remains separate"]
The Workflow Families ledger still limits public posture, Benchmark Assets defines the scientific inputs, and Decision Support begins only after execution and scientific evidence are independently acceptable.
Continue By Execution Question¶
| Need | Read next | Review is complete when |
|---|---|---|
| understand the execution model and run record | execution overview | request, configuration, provider, state, artifacts, and terminal disposition resolve to one run identity |
| reopen a workflow from public evidence | operator rerun journey | another operator can resolve inputs, environment, entrypoint, expected artifacts, and comparison policy |
| execute and compare a benchmark lane | Benchmark Rerun Kits and the comparability matrix | reference and candidate runs have a declared equivalence result with every consequential difference retained |
| distinguish native execution from external-result custody | raw versus import execution | the selected provider, fallback, import source, and external responsibility are visible |
| assess persistence and comparison guarantees | artifact stability | identity, schema, lineage, digest, and tolerated variance are declared rather than inferred |
| reproduce provider and system assumptions | environment contracts | package, tool, model, hardware, service, and configuration requirements are resolvable |
| understand why a rerun claim is refused | rerun refusals | the missing contract, owner, evidence, and valid recovery route are named |
| migrate a historical caller | migration ledger | caller-specific observable parity supports direct use of the canonical Runtime owner |
Runtime does not own core scientific semantics, knowledge grounding, recommendation policy, or laboratory readiness.