Skip to content

Runtime Handbook

bijux-canon-runtime is the execution authority layer in bijux-canon. It decides when lower-package work becomes an acceptable, replayable, durable run instead of a merely successful execution trace.

The main failure this handbook prevents is treating runtime as a miscellaneous bucket for late-stage plumbing. Runtime exists to own acceptance, replay, persistence, and governed execution authority. If those decisions leak downward, no one can say why one run counts and another does not.

What The Reader Should See First

Runtime is where a run becomes governable. Lower packages can prepare, retrieve, reason, and orchestrate correctly, but runtime decides whether the combined execution satisfies policy, whether its artifacts can be persisted, and whether another reviewer can replay or compare it later.

flowchart LR
    trace["agent trace"]
    policy["runtime policy"]
    authority["authority check"]
    store["artifact store"]
    analysis["replay and drift analysis"]
    verdict["run verdict"]

    trace --> policy --> authority --> verdict
    authority --> store --> analysis --> verdict
    trace --> store

Runtime is the first layer allowed to say whether the whole run counts. The handbook should therefore emphasize authority, persistence, and replay over late-stage plumbing. If a reader cannot tell why one run is acceptable and another is only observable or replayable, the runtime story is still weak.

What This Package Owns

  • run acceptance and replay policy above the lower package family
  • runtime persistence boundaries and durable runtime-facing artifacts
  • execution authority that governs agent coordination rather than replacing it

What This Package Does Not Own

  • ingest, index, reasoning, or agent-specific semantics inside their own packages
  • repository-wide maintainer automation that belongs in the maintenance handbook
  • package-local convenience behavior that never affects governed runs

Boundary Test

If the issue is whether a run should be accepted, persisted, replayed, or rejected under explicit policy, it belongs here. If the issue is how a lower package produced its local result, runtime should consume that result rather than re-own the behavior.

First Proof Check

  • packages/bijux-canon-runtime/src/bijux_canon_runtime/application/execute_flow.py for governed execution entrypoints
  • packages/bijux-canon-runtime/src/bijux_canon_runtime/observability for durable replay and trace surfaces
  • packages/bijux-canon-runtime/src/bijux_canon_runtime/core/authority.py for explicit runtime authority rules
  • packages/bijux-canon-runtime/src/bijux_canon_runtime/model/execution for replay envelopes, traces, verdicts, and run modes
  • packages/bijux-canon-runtime/tests for acceptance, replay, and persistence evidence

Start Here

  • open Foundation when the question is why this package exists or where its ownership stops
  • open Architecture when you need module boundaries, dependency flow, or execution shape
  • open Interfaces when the question is about commands, APIs, schemas, imports, or artifacts that callers may treat as stable
  • open Operations when you need local workflow, diagnostics, release, or recovery guidance
  • open Quality when the question is whether the package has proved its promises strongly enough

Pages In This Package

Leave This Handbook When

  • the disputed behavior is really local to ingest, index, reason, or agent
  • the next step is a concrete interface, policy model, replay surface, or test
  • the issue belongs to repository-health automation rather than execution authority