8000 docs: sync #858 status and add the measured lane limits by adityamukho · Pull Request #921 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- **JVM/WASI nightly workflow support** (#858, core portion): 14 JVM and 3 WASI routes, pinned runtimes, measured-core/artifact provenance, strict raw-sample reporting and independent histories. The Java adapter exists in `minigraf-java` at `daf7b9c` (`feat/858-nightly-adapter`). Default-branch rollout and live baseline/notification evidence remain pending; mobile lanes remain excluded pending qualification. No runtime, file-format or Rust test inventory change. See [the adapter contract](docs/BINDING_BENCHMARKS.md).
- **JVM/WASI nightly lanes** (#858): 14 JVM and 3 WASI routes, pinned runtimes, measured-core/artifact provenance, strict raw-sample reporting and independent histories, live on both branches with the adapter merged in `minigraf-java`. The iOS simulator and Android emulator were qualified against matched Device Farm physical runs and rejected for every case, so no mobile lane is enabled ([report](docs/benchmarks/858-mobile-qualification/REPORT.md)). No runtime, file-format or Rust test inventory change. See [the adapter contract](docs/BINDING_BENCHMARKS.md).

- **OPFS-backed `BrowserDb` persistence and explicit close** (#441). `await BrowserDb.openOpfs(name)` opens one `<name>.graph` file through an exclusive sync access handle in a dedicated worker on a secure origin. It uses the default 256-page cache, reads pages on demand and commits by copy-on-write with data/meta flushes, without a WAL or a whole-file buffer. IndexedDB `open(name)` now also works in workers. The two modes have independent namespaces and no automatic fallback. OPFS starts at Tier 2 within the Tier 1 browser binding. All modes gain synchronous, idempotent `close()`, which saves nothing, discards an open transaction, invalidates dependents and immediately releases an OPFS lock. OPFS import admits an empty blob, a nonempty v8 image with a selectable meta and complete, verified contents (an empty v8 image included), or a supported v7 image that migrates completely, and rejects anything else (such as a torn or zero-filled initial image) before replacing anything; it validates the whole image, stages and publishes the complete old or new database across interruption, and invalidates earlier cursors/prepared queries after publication. Exports after interrupted initial creation fill an absent second meta slot with zeros and still propagate failed reads of existing pages. OPFS recovery accepts the sole valid meta; unlike native recovery this can silently fall back after later meta rot. A failed commit is unconfirmed (it may be stored), leaves reads working, and refuses later writes with STG-046 until reopen. New registered errors API-026 (unavailable OPFS context), API-027 (busy database) and STG-048 (browser operation and exception name); lock contention is STG-026. No file-format change or new crate dependency. See [durability](docs/DURABILITY.md#browser-storage-modes) and [measurement status](docs/benchmarks/441-opfs/README.md).

Expand Down
6 changes: 1 addition & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ verifies numeric comparisons for all 427 native and 26 binding IDs, at least thr
independent v3 runs per ID, preserved history after main advances, actual scheduled
routes and isolated live notification delivery/cleanup. Fixes #853/#854 are merged;
checksummed evidence outlives Actions retention. This changes no database runtime
behavior or Rust test counts. Core workflow support for 14 JVM and 3 WASI nightly IDs is implemented for #858
([contract](docs/BINDING_BENCHMARKS.md)); the Java adapter exists in `minigraf-java` at `daf7b9c`
(`feat/858-nightly-adapter`). Default-branch rollout
and live baseline/notification evidence remain pending. Mobile lanes remain
excluded pending qualification. Rust test counts are unchanged.
behavior or Rust test counts. The JVM (14 IDs) and WASI (3 IDs) nightly lanes are live for #858: core v3 #911 (`b0d2d014d`), the identical `main` workflow #912 and the `minigraf-java` v3 adapter (#28, `0a2d4d657`). The first scheduled v3 run (run 44623689870, 2026-11-19) reported to Bencher. The mobile qualification study (physical Device Farm against the iOS simulator and the Android emulator) ran on both platforms and rejected all 14 cases on each, so no mobile lane is enabled; see [the report](docs/benchmarks/858-mobile-qualification/REPORT.md). ([contract](docs/BINDING_BENCHMARKS.md)). Rust test counts are unchanged.

The [#842 semantic permutation map](docs/benchmarks/842-semantic-permutations/README.md)
ties the excluded numeric, bind, join and forced-plan permutations to 128
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ The [manual v7-to-v8 migration sweep](docs/benchmarks/838-migration/README.md) (
The [regression-history follow-up](docs/benchmarks/840-regression/completion.md) (#840)
verifies numeric comparisons for all 427 native and 26 binding IDs, independent v3
history, scheduled main/v3 routes and isolated live notification delivery with
cleanup. Raw evidence and offline verifiers are retained in Git. Core workflow support for 14 JVM and 3 WASI nightly IDs is implemented for #858
([contract](docs/BINDING_BENCHMARKS.md)); the Java adapter exists in `minigraf-java` at `daf7b9c`
(`feat/858-nightly-adapter`). Default-branch rollout
and live baseline/notification evidence remain pending. Mobile lanes remain
excluded pending qualification; Rust test counts are unchanged.
cleanup. Raw evidence and offline verifiers are retained in Git. The JVM (14 IDs) and WASI (3 IDs) nightly lanes are live for #858: core v3 #911 (`b0d2d014d`), the identical `main` workflow #912 and the `minigraf-java` v3 adapter (#28, `0a2d4d657`). The first scheduled v3 run (run 44623689870, 2026-11-19) reported to Bencher. The mobile qualification study (physical Device Farm against the iOS simulator and the Android emulator) ran on both platforms and rejected all 14 cases on each, so no mobile lane is enabled; see [the report](docs/benchmarks/858-mobile-qualification/REPORT.md). ([contract](docs/BINDING_BENCHMARKS.md)); Rust test counts are unchanged.

The [semantic permutation map](docs/benchmarks/842-semantic-permutations/README.md)
(#842) ties excluded numeric, bind, join and forced-plan permutations to
Expand Down
2 changes: 1 addition & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Scope — release-gate testing and documentation:
- Benchmarks at 100K–10M facts and a published performance envelope (#394; on `v3`: `examples/perf_envelope.rs`, results in `docs/BENCHMARKS.md`; follow-ups #528–#532, with #532 superseded by #551's removal of repeated committed-fact net-assert; [audit and measurements](docs/benchmarks/532-net-assert-audit.md))
- Acceptance evidence for memory/scaling (#837): named-test and Linux RSS gates, nonlinear/multistratum recursion and custom chunk bounds; [validation status](docs/benchmarks/837-acceptance-gaps.md)
- Regression-history/reporting evidence (#840) is complete: [all 453 numeric comparisons, preserved independent v3 history, scheduled routes and live notification/cleanup evidence](docs/benchmarks/840-regression/completion.md). Separate main/v3 fixes #853/#854 are merged; raw evidence is retained beyond artifact expiry.
- Nightly runtime expansion (#858): core workflow support for 14 Java/JVM and 3 WASI IDs is implemented ([contract](docs/BINDING_BENCHMARKS.md)); the Java adapter exists in `minigraf-java` at `daf7b9c` (`feat/858-nightly-adapter`). Default-branch rollout, live baselines/notifications and durable evidence remain pending. Swift/iOS simulator and Android emulator lanes stay excluded until qualification against physical-device workloads. The platform restriction from #839 applies only to that accepted manual evidence task.
- Nightly runtime expansion (#858): 14 Java/JVM and 3 WASI IDs run nightly ([contract](docs/BINDING_BENCHMARKS.md)). The Swift/iOS simulator and Android emulator were qualified against physical Device Farm runs and rejected for every case ([report](docs/benchmarks/858-mobile-qualification/REPORT.md)), so no mobile lane exists; a physical-device lane is costed there but not scheduled. The platform restriction from #839 applies only to that accepted manual evidence task.
- Manual migration evidence (#838): native v7-to-v8 through 200k facts; Chromium/Firefox/WebKit through 20k facts, with separate read-only/reopen controls and bounded post-migration cursor churn. [Results, frozen fixtures and exclusions](docs/benchmarks/838-migration/README.md); no new nightly route or sustained-pin bound.
- Semantic permutations (#842): [correctness-target map and control limits](docs/benchmarks/842-semantic-permutations/README.md) for X07. The exclusion stands; no nightly route or acceptance gate is added.
- Failure paths (#843): [correctness-target map](docs/benchmarks/843-failure-correctness/README.md) for X08. The exclusion stands; the heavy WAL replay test gap is #865.
Expand Down
11 changes: 6 additions & 5 deletions docs/BENCHMARKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

This document records reproducible local benchmark snapshots. Completed release-performance history belongs in the [CHANGELOG](../CHANGELOG.md); continuous CI history is available on [Bencher](https://bencher.dev/perf/minigraf/plots).

## JVM/WASI nightly workflow support (#858, unreleased)
## JVM/WASI nightly lanes (#858, unreleased)

The core workflow defines 14 JVM and 3 WASI routes with separate Ubuntu 24.04
histories, pinned runtimes, exact-result checks, raw sample medians and artifact
provenance. See [binding benchmarks](BINDING_BENCHMARKS.md) for timing boundaries
and the Java adapter contract. The adapter exists in `minigraf-java` at
`daf7b9c` (`feat/858-nightly-adapter`). Default-branch rollout and live
baselines/notifications remain pending. No mobile lane is enabled before
qualification, and no new runtime timings are claimed by this implementation.
and the Java adapter contract. The adapter is merged in `minigraf-java` (`0a2d4d657`).
Both lanes are live and reported on their first scheduled v3 run. The mobile
qualification rejected every case on the iOS simulator and the Android emulator, so no
mobile lane is enabled ([report](benchmarks/858-mobile-qualification/REPORT.md)). Absolute nightly
timings stay in Bencher; this file claims none.

## Failure paths (#843, unreleased)

Expand Down
45 changes: 39 additions & 6 deletions docs/BINDING_BENCHMARKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
The accepted [#839 manual evidence](benchmarks/839-bindings/README.md) remains
historical evidence. #858 adds core workflow support for JVM (14 IDs) and WASI
(3 IDs), alongside the existing 26 Python/browser/Node/C IDs. The Java nightly
adapter exists in `minigraf-java` at `daf7b9c` on `feat/858-nightly-adapter`;
it and the identical default-branch CI companion must land before rollout.
Three independent v3 runs (including a scheduled run), live notification checks,
durable evidence and measured lane costs are still pending. This change does
not complete #858 or activate a mobile simulator/emulator lane.
adapter is merged in `minigraf-java` v3 (`0a2d4d657`) and the identical default-branch
CI companion is merged (main `b2ad8c24f`). The first scheduled v3 run (2026-11-19) reported
both lanes; live notification checks and the evidence archive are in
[the evidence directory](benchmarks/858-binding-nightlies/). The mobile
simulator/emulator study rejected every case on both platforms and activates no mobile lane
([report](benchmarks/858-mobile-qualification/REPORT.md)). Measured lane limits are at the end of
this file.

The `bindings` matrix in `.github/workflows/bench.yml` measures the once-resolved
core SHA. JVM checks out `minigraf-java`; WASI has no binding repository. The
Expand Down Expand Up @@ -282,9 +284,40 @@ testbed version.

#839's maintainer acceptance applies to its recorded physical/dedicated-bench
evidence, not new nightly baselines. Android and Swift/iOS simulator/emulator
lanes remain excluded pending #858's matched physical B1/B2/V qualification.
lanes stay excluded: #858's matched physical B1/B2/V qualification rejected all 14 cases on
each platform.
Desktop macOS Swift remains excluded. JVM now has representative lifecycle,
options and log conversion routes; other bindings' unmeasured permutations,
wide values, scaling, RSS bounds and deliberate callback failures remain outside
this shortlist. WASI exposes no matching prepared-object or host-callback API.
Browser migration and pinned-reader churn remain manual.

## Operational limits (#858, measured)

Measured from the GitHub Actions and Device Farm records of the study. Anything not
measured is labelled an estimate.

| Lane or step | Runner | Queue | Duration |
| --- | --- | --- | --- |
| `binding_jvm` (scheduled v3 run 44623689870) | `ubuntu-24.04` | none | 4 min 28 s |
| `binding_wasi` (same run) | `ubuntu-24.04` | none | 1 min 23 s |
| iOS simulator qualification (14 cases x 18 runs) | `macos-15` | 10 min 25 s | 1 h 13 min |
| Android emulator qualification (same design) | `ubuntu-24.04` | about 2 s | 27 min |
| Device Farm physical Android series (23 attempts) | Pixel 7 / Android 14 | n/a | 53.6 device minutes |
| Device Farm physical iOS series (25 attempts) | iPhone 15 (iPhone15,4) / iOS 18.5 | n/a | 210.27 device minutes |

- The scheduled v3 run started about 8 hours after its 14:00 UTC slot, so a late
scheduled start is a normal observed behaviour and the lane does not assume punctuality.
- The first scheduled JVM run raised one alert (`binding/jvm/prepare/point`, 42,824 ns against an upper
limit of 38,991 ns) against a baseline of only three prior v3 points; it is a young-history signal, not a regression finding.
- Physical Android units differ: Device Farm may assign another Pixel 7 build; the collector
rejected four attempts that landed on a different build and retried them.
- Repeatability limits: the qualification gate requires a sample CV of at most 15% and at most twice the
physical CV, and both candidates failed it or the closeness bound for every case.
- Estimate: one clean physical series is about 40 device minutes on Android and about 150 on iOS (the
measured totals include retries and the wasted first iOS batch).
- Observed availability: the 2026-11-26 scheduled `binding_jvm` job failed in the Gradle configuration phase because
the plugin portal could not resolve the publishing plugin `com.gradleup.nmcp` 0.0.8 (the benchmark does not
need it). The lane failed closed (`executed 0/14; uploaded 0/14`, nothing reached Bencher) and the portal
resolved the plugin again afterwards. Reducing that exposure (a retry, or not resolving publishing plugins
for the benchmark build) is a possible follow-up, not part of #858.
11 changes: 6 additions & 5 deletions docs/TEST_COVERAGE.md
DDD7
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,12 @@ The initial four-run schedule archive and five new measurement runs are retained
Sixteen isolated live notification scenarios verify four actual deliveries and
cleanup of all 46 synthetic resources. Fresh extraction reproduces the evidence
reports, and removing delivery/comparison evidence is rejected. No Rust tests
are added; the inventory above is unchanged. The #858 core workflow adds 14 JVM and 3 WASI routes with raw-sample and
provenance checks ([contract](BINDING_BENCHMARKS.md)). The Java adapter exists
in `minigraf-java` at `daf7b9c` (`feat/858-nightly-adapter`). Default-branch
rollout and live baselines/notifications remain pending; mobile
lanes remain excluded pending qualification. No Rust tests are added.
are added; the inventory above is unchanged. The #858 workflow adds 14 JVM and 3 WASI routes with raw-sample and
provenance checks ([contract](BINDING_BENCHMARKS.md)); both lanes are live
(core `b0d2d014d`, `minigraf-java` `0a2d4d657`) and reported on their first
scheduled v3 run. The mobile qualification rejected all 14 cases on the iOS
simulator and on the Android emulator, so no mobile lane is enabled
([report](benchmarks/858-mobile-qualification/REPORT.md)). No Rust tests are added.

**#843 failure-path map**: [138 curated correctness tests](benchmarks/843-failure-correctness/README.md)
(35 cells; 5 tests exist only in the `test-hooks` build) cover the failure paths excluded from
Expand Down
9 changes: 5 additions & 4 deletions docs/bench-coverage-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ establishes numeric comparisons for all 427 native and 26 binding IDs with at
least three independent v3 runs each. Merged fixes #853/#854 preserve the v3 head
after a measured main advance. Actual scheduled routes, isolated live notification
delivery and cleanup are verified; complete evidence is archived beyond 30 days.
The #858 core workflow now defines 14 JVM and 3 WASI routes
([contract](BINDING_BENCHMARKS.md)); the Java adapter exists in `minigraf-java` at
`daf7b9c` (`feat/858-nightly-adapter`). Default-branch rollout and live baselines/notifications remain pending. No mobile lane is
enabled before qualification. The original validation snapshot below is retained unchanged; its null
The #858 workflow runs 14 JVM and 3 WASI routes
([contract](BINDING_BENCHMARKS.md)) on their own Bencher histories; the first scheduled
v3 run reported. The mobile simulator/emulator qualification rejected all 14 cases on each
platform, so no mobile lane is enabled
([report](benchmarks/858-mobile-qualification/REPORT.md)). The original validation snapshot below is retained unchanged; its null
baselines and X05 open status describe that earlier snapshot.

Audit date: 2026-11-03. P01–P17 are merged. This closes out the implementation
Expand Down
Loading
0