Skip to main content

oka_update 0.12.0 copy "oka_update: ^0.12.0" to clipboard
oka_update: ^0.12.0 copied to clipboard

Authoring and planner surface for declarative patch units (ADR-0031): unit specs, revision manifests, and computed patch eligibility. The kernel-graph machinery lives in oka_dart_kernel (ADR-0032). Ex [...]

oka_update #

Authoring and planner surface for ADR-0031 — declarative patch units: unit specs, revision manifests, computed eligibility.

The kernel-graph machinery (partitioning, deferred-ization transforms, frontend_server protocol) lives in oka_dart_kernel / ADR-0032. The full API design (generator, pointer delivery, UpdateClient, verify gating) is tracked in the design record referenced from ADR-0031's evidence.

Status #

  • UnitSpec / PatchUnit — declared authoring surface (units are declared values, never code annotations).
  • planRevisions — computed eligibility between two revision manifests: unit-body-only diffs are patchable; contract, structural, or core diffs produce an explicit alternative ("full release via store lane"). Verified against the spike (see evidence §"Generated declarative path"); contract fingerprints there are a regex prototype — production requires the analyzer.
  • lib/src/live/ — the live session API (2026-10-02, ADR-0034 P3 progressed): a declarative LivePatchSpec (unit, find/replace patches, targets, probes) applied to running programs through composable LivePatchTargets — vm (stock VM / DDS / flutter devices via DevFS push), web (dwds reloadSources + optional CDP page probes), staged (AOT next-launch, never implied live). LivePatchSession streams a LivePatchEvent per step and returns a LivePatchReceipt; the delta compiler is injected (oka's gate_pipeline --delta is the reference impl). Proven on last_answer across macOS VM, linux/amd64, android emulator, and Chrome — gate: oka_dart_kernel/tool/gate_live_e2e.sh, matrix in the evidence doc §"Live patching across platforms".

Known limits (recorded, not hidden) #

  • Expression-bodied (=>) declarations are invisible to the prototype fingerprint — the analyzer is mandatory before this ships.
  • A manifest's coreFingerprint must pin the compiled core: dart2js part filenames are stable across revisions while content changes, and a stale core rejects fresh chunks (mixed-revision hazard, evidence §9).

The path from this prototype to a production API — typed manifests, analyzer-grade fingerprints, generator + UpdateClient, CI-grade gates — is the gap analysis and ladder in ADR-0034 (P0–P5). Nothing here is production-ready yet, by design of that record.

0
likes
140
points
62
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Authoring and planner surface for declarative patch units (ADR-0031): unit specs, revision manifests, and computed patch eligibility. The kernel-graph machinery lives in oka_dart_kernel (ADR-0032). Experimental.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

crypto, cryptography, from_json_to_json, universal_automation_interface

More

Packages that depend on oka_update