Skip to content

Releases

Jayrun 0.4.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 10:27

Jayrun 0.4.0

Prepare and inspect a confirmed graph's inputs before starting an Engine. A Submission retains the effective bindings as the original builders change. Call submission.arguments() for each run, including concurrent runs. The same arguments work with a Controller's self.runtime.submit() under its normal authority rules. Artifact payloads stay shared by reference.

Extend an existing computation with graph.attach(), or join several input rows with graph.attach_many(). Confirm the resulting graph and use its own field handles. Graph compilation now orders artifact republication after earlier reads. Single-pass computations can complete when a known feedback mismatch would only matter on a later iteration or repeat.

When upgrading from 0.3.5, supply artifact values only at graph entries and update declaration-report consumers for jayrun.declaration/2. The new report represents exact numeric config defaults and effective component requirements. Editable configuration YAML distinguishes omitted values from explicit null.

Native submission · Flow attachment · Full changelog

Jayrun 0.3.5

Choose a tag to compare

@github-actions github-actions released this 26 Nov 10:45

Jayrun 0.3.5

An iterative context can now keep a rolling window of native history while it runs. Set ContextSettings(max_iterations=None, execution_history_limit=8) to retain detailed step reports for eight reported graph iterations. Snapshot and report totals cover the whole run, including evicted iterations. The default keeps full detail.

Breaking change for callers that set retention limits. Use ContextSettings(record_policy=RecordPolicy(history_per_key=4)) for application values. Use EngineSettings(terminal_history_policy=TerminalHistoryPolicy(max_entries=128)) for finalized summaries across contexts. All numerical defaults carry forward, and the engine’s lifetime admission budget remains independent. Upgrade snapshot-exchanging workers together. Existing SQLite history remains readable with its recorded fields.

Capacity and retention · Settings reference · Migration from the six flat settings

Jayrun 0.3.4

Choose a tag to compare

@github-actions github-actions released this 25 Nov 15:24

Jayrun 0.3.4 — follow a run through completion

The dashboard now keeps recently finished runs within reach. Open Contexts, search for a run, and select its ID to inspect the same run after it finishes. The active table and its detail panel stay aligned as other runs start and finish. The pager appears above 25 active matches.

Activity → Execution logs shows messages retained from self.execution.log(...) after finalization. Each message identifies its step, graph iteration, execution and attempt. Records holds values written with self.context.record(...).

The graph viewer keeps the camera and selection through finalization, fits larger graphs on small screens, and keeps the selected tab visible. History can find a displayed ID after a dashboard restart when its run was recorded in SQLite. Custom storage backends used for dashboard History should support the by_finish and identity_digest fields of HistoryQuery.

The README introduces the framework, links to its package and documentation, and walks through a completed graph you can explore. The manual includes corrected runnable examples and redirects for eight former chapters. Dashboard guide · First graph

Jayrun 0.3.3

Choose a tag to compare

@github-actions github-actions released this 22 Nov 22:13

Jayrun 0.3.3 — read the current graph iteration

An operator or resource setup hook can now read self.context.iteration directly.
It starts at 1 and advances with each graph iteration. An operator that repeats
twice in one graph pass sees the same iteration on all three executions.

For example, an operator can label a measurement with both the graph pass and
its execution number within that pass:

self.context.record("position", {
    "iteration": self.context.iteration,
    "execution": self.execution.number,
})

The property is read-only. Applications observing a run can continue using
run.iteration_count to see how many graph iterations have started.
Iteration guide

Jayrun 0.3.2

Choose a tag to compare

@github-actions github-actions released this 21 Nov 21:51

Jayrun 0.3.2 — native Windows memory pressure and history paths

Jayrun can now admit work and sample Engine.pressure on Windows using the
system's physical memory and the current process working set. This fixes an
AttributeError from the Unix memory fallback. Configured CPU memory limits
use the existing admission thresholds, so queued work can resume when memory
pressure subsides.

On Windows, Database() now uses LOCALAPPDATA even when the process has
no home directory. It uses the user profile's AppData/Local directory as
the fallback when LOCALAPPDATA is absent.

The fixes use the Python standard library. Existing graphs, settings and
history files work with this patch release.

Jayrun 0.3.1

Choose a tag to compare

@github-actions github-actions released this 17 Nov 18:11

Jayrun 0.3.1 — delegated workflows and graph declaration reports

A Controller workflow can now launch another Controller or Supervisor workflow
when the host explicitly enables delegation. For example, a coordinating agent
can launch an engineering agent, and that agent can construct, confirm and submit
its own processing graph to the same Engine.

This release also adds structured graph declarations for AI-assisted review and
reconstruction, integrates them into the graph viewer, and bounds owned-loop
startup readiness.

Describe and export a graph

Set name and description when constructing a GraphDefinition. After confirming
it, export its declaration:

payload = graph.report.to_dict()
text = graph.report.to_json()
graph.report.save("graph-declaration.json", format="json", compact=True)

The jayrun.declaration/1 report preserves authored descriptions, component type
references, ordered flows, fields, resource/serializer bindings and configuration
defaults. Reused declarations retain shared references. Missing construction details
and sensitive defaults are disclosed as limitations. Jayrun preserves supplied
intent; it does not infer algorithms or include operator source code.

New graph viewers display the authored name and purpose and offer Export
declaration report
separately from visualization data. Downloads preserve exact
JSON, including large integers. Registry selection downloads the selected graph's
report; captured dashboard graphs use the same action. Existing aggregate export
and capture bounds remain. Regenerate old HTML to add the declaration attachment.

See structured reports
and viewer exports.

Startup and viewer fixes

Owned Engine startup has a five-second boundary for loop initialization and a
cross-thread readiness acknowledgement. Timeout/failure cleanup is bounded
separately, so this is not a five-second limit for the entire start() call or a
future-health guarantee. External-loop ownership is unchanged.

Long descriptions now work within viewer export limits. Legacy viewer detail strings
use safe inspection metadata, closing a path that could bypass sensitive-default
redaction. Existing text reports and execution-report exports remain available.

Enable delegation

from jayrun import Engine
from jayrun.settings import ControllerPolicy, EngineSettings

engine = Engine(EngineSettings(controller_policy=ControllerPolicy.DELEGATED))

Inside a running Controller operator, with a confirmed agent_graph:

from jayrun import Controller
from jayrun.settings import ContextSettings

child = self.runtime.submit(
    agent_graph,
    settings=ContextSettings(max_iterations=1),
    authority=Controller(),
)

self.runtime.submit() now accepts the same arguments as engine.submit():
graph, artifact and configuration builders, context settings and authority.
Without a registry, a Controller can submit any confirmed graph it constructs.
With a registry configured, submitted graph objects must still be registered.

Default behavior and migration

  • ControllerPolicy.HOST_ONLY remains the default. Non-None runtime authority
    raises PermissionError; host engine.submit(..., authority=...) remains allowed.
  • Under DELEGATED, only live Controllers can submit children. Supervisors and
    ordinary contexts do not gain submission rights.
  • Change runtime.submit(graph_key=...) to runtime.submit(graph=...).
    Positional registered-identity calls remain compatible.
  • Children belong to the Engine and can continue after their parent finishes.
    Supervisor scope remains graph-wide; history access requires an explicit grant.
  • Waiting parents retain execution slots. Configure enough max_tasks and
    max_workers for the nesting depth. Delegation does not introduce a process
    sandbox or automatic parent-to-child cancellation.

See the Controller guide
and runtime API
for lifecycle, routing and history details.

Jayrun 0.3.0

Choose a tag to compare

@github-actions github-actions released this 28 Sep 00:10

Full Changelog: v0.2.0...v0.3.0

Jayrun 0.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Sep 12:53

Full Changelog: v0.1.0...v0.2.0

Jayrun 0.1.0

Choose a tag to compare

@masoudya masoudya released this 28 Aug 21:55
78d7b07

Jayrun 0.1.0 is the initial alpha release of the artifact-centric
execution framework.

Highlights:

  • Artifact-driven computational graphs
  • Synchronous and asynchronous operators
  • Controlled graph iteration and operator repetition
  • Runtime-managed shared resources
  • CPU, CUDA, and multi-device placement
  • Context supervision and lifecycle control
  • Graph validation and interactive plotting
  • Retry and coordinated failure handling

Documentation: https://jayrun.readthedocs.io/en/latest/