Skip to content

fix(runtime): round 50 core/jni/inprocess findings - #572

Merged
owjs3901 merged 1 commit into
mainfrom
fix/runtime-round50
Nov 29, 2026
Merged

owjs3901 merged 1 commit into
mainfrom
fix/runtime-round50

Conversation

@owjs3901

Copy link
Copy Markdown
Contributor

Round 50 runtime (core / jni / inprocess) findings. All five pending findings were verified against the code and fixed; none refuted.

  • R50-CJ0-L1 (crates/vespera/src/multipart/mod.rs): the MeteredField and TryFromFieldWithState docs claimed non-cooperative metering. The aggregate count is a task-local of the extractor's task, so reads moved off that task are not counted. Both docs now state the cooperative contract. Doc only; the owner-approved option of making counting non-cooperative was not taken.
  • R50-CJ-L1 (crates/vespera/tests/validated_form_query_path.rs): the inline comment claimed a 60,000-byte segment echoes past the 64 KiB hoist cap. It does not; the real bound is MAX_ENVELOPE_MESSAGE_CHARS (256). Comment corrected.
  • R50-CJ2-L1 (crates/vespera_jni/src/daemon_env.rs): the module doc said a resuming worker finds an empty TLS cell. It may hold its own earlier record. Reworded.
  • R50-CJ2-L2 (crates/vespera_core/src/route.rs): the Reference Object module doc omitted Link Objects, which keep a $ref as raw JSON. Added.
  • R50-JNI3-L1 (crates/vespera_jni/src/jni_impl_runtime_config_tests.rs): the first-set worker-count assertion was order-dependent in-process. It now runs in a child process, following the shared-runtime test pattern.

Verification: cargo test -p vespera_jni --lib runtime_config_tests passes; RUSTDOCFLAGS=-D warnings cargo doc -p vespera_core -p vespera --no-deps is clean; cargo clippy -p vespera_jni --all-targets -- -D warnings is clean; cargo fmt applied. No new executable lines in vespera or vespera_core (doc and comment changes only), and vespera_jni is outside tarpaulin. Changepack: .changepacks/changepack_log_runtime_round50.json (all seven packages at Patch).

🤖 Generated with Claude Code

- multipart: MeteredField and TryFromFieldWithState docs now describe the
  cooperative aggregate count (reads on the extractor task are counted;
  reads moved off that task are not), matching register_multipart_bytes.
- vespera_core: the Reference Object module doc lists Link Objects as
  accepting a $ref (kept as raw JSON).
- vespera tests: the oversized path value comment states the real bound
  (MAX_ENVELOPE_MESSAGE_CHARS), not the 64 KiB hoist cap.
- vespera_jni daemon_env: the module doc says a resuming worker finds its
  own thread-local cell (empty or holding its own record).
- vespera_jni runtime-config test: the first-set worker-count assertion
  runs in a child process, so it no longer depends on test order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@owjs3901
owjs3901 merged commit 8b117e1 into main Nov 29, 2026
27 of 28 checks passed
@owjs3901
owjs3901 deleted the fix/runtime-round50 branch November 29, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant