Execution model¶
agentic-proteins does not execute an independent workflow. A historical CLI,
HTTP, Python, provider, state, or tool entrypoint crosses the compatibility
namespace and then runs the canonical runtime implementation.
sequenceDiagram
participant C as Legacy consumer
participant B as agentic_proteins bridge
participant R as bijux_proteomics_runtime
participant P as Provider or tool
participant A as Runtime artifact store
C->>B: import, CLI, or HTTP request
B->>R: forward canonical object or call
R->>R: validate request and execution graph
R->>P: invoke selected capability
P-->>R: result or governed failure
R->>A: persist state, telemetry, and artifacts
R-->>B: canonical response
B-->>C: compatibility-visible response
Entry behavior¶
agentic_proteins.AppConfig,RunManager,cli, andcreate_appare loaded from runtime at attribute access.- The
agentic-proteinsexecutable resolves toagentic_proteins.interfaces.cli:cli, which forwards runtime's CLI surface. - Historical HTTP modules forward the application factory, dependencies, middleware, errors, versioned routes, endpoint handlers, and schemas.
- Historical execution and orchestration modules forward runtime graph, compiler, engine, evaluation, run manager, state machine, artifacts, telemetry, and recovery behavior.
Every entrypoint follows one of three compatibility paths:
| Path | Allowed bridge behavior | Required evidence |
|---|---|---|
| identity forwarding | expose the canonical object unchanged | object identity, signature, validation, and exception parity |
| declared adaptation | translate only a documented historical calling convention | input/output mapping, loss statement, parity cases, migration route |
| refusal | reject behavior that has no safe canonical equivalent | stable failure, affected surface, canonical alternative or explicit absence |
A hidden fourth path—independent legacy execution—is a boundary violation.
State and artifact ownership¶
Runtime creates and owns run identifiers, state transitions, snapshots, telemetry, logs, result artifacts, retries, resume behavior, and provider selection. The bridge exposes historical paths to those objects; it does not maintain a second state store or translate canonical failures into legacy-only success states.
Failure propagation¶
Import errors identify missing runtime or optional provider dependencies. Request validation, graph validation, provider failures, execution failures, and artifact errors retain runtime's exception or response semantics. A bridge that catches and weakens these failures would violate compatibility by making the old surface less auditable than the canonical one.
Proving equivalence¶
Compatibility tests need to exercise more than import success. High-value checks compare object identity, function signatures, CLI help and exits, HTTP schemas and status codes, provider capability reports, state transitions, and serialized artifacts across the historical and canonical paths.
flowchart TD
case["same governed test case"] --> legacy["legacy entrypoint"]
case --> canonical["canonical entrypoint"]
legacy --> compare{"compare contract"}
canonical --> compare
compare --> identity["object and schema identity"]
compare --> behavior["return, exception, exit, status"]
compare --> effects["state transitions and provider calls"]
compare --> artifacts["serialized artifacts and fingerprints"]
Parity does not require identical log wording or undocumented private names. It does require that a preserved public contract cannot silently weaken validation, change side effects, or produce a differently interpretable artifact merely because the caller used the historical path.
Use the canonical runtime documentation for execution features. Use this section when deciding whether an old entrypoint still forwards correctly and whether it is safe to retire.