Skip to content

PowerBridge 0.12.0

Choose a tag to compare

@hudsonwa hudsonwa released this 30 Oct 14:39
7ef76a7

Highlights:

  • Strategy Print output is shown: on stderr, in a file with --print FILE, or as prints from run_el / run_oracle, the same on both engines.
  • Each GitHub Release carries a SHA256SUMS file and a build provenance attestation per file, and the release workflow tests the built wheels before attaching them.
  • pl_examples also writes the example configs and hand_written.py, so the documented commands work after a wheel install.
  • When the native kernel cannot run a program, the fallback note is one line saying the Python engine ran and why.

Added

  • Each GitHub Release now carries a SHA256SUMS file over every sdist and wheel and a build provenance attestation for each file, so a download can be checked with sha256sum -c and gh attestation verify; see SECURITY.md (#251).
  • Print output is shown: pl_run and pl_oracle write a strategy's Print lines to stderr, or to a file with the new --print FILE, and run_el / run_oracle return them as prints. The native kernel prints the same lines as the Python engine. Fills, digests and stdout are unchanged. Generated Python calls pl_print(...) instead of print(...) (#254).
  • pl_examples also writes examples/configs/ES.json, examples/configs/NQ.json and examples/hand_written.py, so the USAGE.md and PYTHON_STRATEGIES.md commands work after a wheel install; CI now runs the documented commands from an empty directory against the built wheel, and the docs mark unreleased features new in the next release (#N), checked against this section (#258).

Changed

  • When the native kernel is installed but cannot run a program, the note on stderr is now one line saying the Python engine ran and why ([pl_oracle] note: ran on the Python engine because the native kernel does not support bar_ref series yet; ...); -v adds the kernel's own refusal text (#254).
  • The release workflow now tests the built wheels before anything is attached or published: the powerbridge wheel runs the public tier from a clean venv, and each powerbridge-accel wheel runs a native-vs-Python digest check on the examples on its own platform runner (#246).
  • run_el no longer takes the private _python_path_notify keyword; pl_run uses an internal helper instead (#242).
  • The maintainer-only capture reader analyze_capture.py moved from pl_transpiler/tools/ to the repository's tools/, so the wheel no longer ships it; the unused tools/measure_audit_packet.py is gone, and ground_truth/captures/MANIFEST.md is now a short data card (#248).
  • Internal: strict mode and the unimplemented-call counts are kept per run, and the EL emitter's comment maps per call, so two run_el / run_oracle runs with different strictness no longer interfere. (Emits in threads could still mix up comments until #256.) The engine's trade-stat trace hook is FillEngine(capture_stats=...) / set_capture_stats() instead of a fixture-named private flag. Output and digests are unchanged (#244).

Fixed

  • Mirror-dialect output (pl_transpile --dialect mirror) no longer reads _state when a Variable is passed to CrossesAbove / CrossesBelow or another series function; it passes the bare variable, as the docs say. el_emit gives the same EasyLanguage as before, and runnable output is unchanged (#242).
  • pl_run / pl_oracle --help no longer point at examples/configs/ES.json or csv_to_pbar, which a wheel install does not have (#242).
  • docs/API.md shows the full run_el / run_oracle signatures (drawings, drawing_case_id, drawing_tape, use_native), says why seed_warmup defaults to True in run_el and False in run_oracle, and a test now fails when a documented signature drifts from the code. USAGE.md and PYTHON_STRATEGIES.md use --dialect mirror and drop the redundant --max-bars-back auto (#242).
  • LIMITATIONS.md and USAGE.md no longer call MaxBarsBack opt-in or say the default stays 0: they describe auto as the default and 0 as the opt-out, and the USAGE.md section is shorter. ACCEL.md no longer lists Print as refused by the native kernel. A test now fails if those stale phrases return (#250).
  • emit_el, parse and transpile called from several threads at once no longer mix up comments between sources: the lexer returns comments with its tokens (tokenise_with_comments) instead of through the module-level lexer.last_comments list, which is gone, and the parser's shared lex/parse cache is locked. Output is unchanged (#256).