core: expose running supplied cost in flow snapshots - #15
Merged
Conversation
pzhin
force-pushed
the
codex/flow-snapshot-running-cost
branch
from
August 22, 2026 18:40
18c18fd to
5a9ba5f
Compare
Let operators distinguish queued estimates, committed in-flight work, and historical dispatch totals without inspecting scheduler internals. Keep the gauge exact and atomic with dispatch and completion lifecycle transitions.
pzhin
force-pushed
the
codex/flow-snapshot-running-cost
branch
from
August 22, 2026 19:25
5a9ba5f to
2519b7a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
runningSuppliedCost()for the current in-flight supplied service estimatecompletedSuppliedCost()as dispatched supplied cost minus the running gaugeVerification
./mvnw --batch-mode --no-transfer-progress verify(re-run after rebase at2519b7a)./mvnw --batch-mode --no-transfer-progress -Pbenchmarks clean verify./mvnw --batch-mode --no-transfer-progress -Pjcstress clean verifyJMH before/after
Environment: Apple M4 Pro, macOS Darwin 25.5.0, OpenJDK 21.0.11. Baseline is
e49a621; the measured implementation is18c18fd. Current rebased head2519b7ahas identical core source and tests; the rebase integrated currentmaindocumentation and CI changes, with the formal-spec conflict resolved in English. Each point used 3 forks, 5 x 1 s warmups, 8 x 1 s measurement iterations, and the GC profiler.completeSteadydispatchOnesingleJobCycle,SKEWED_COSTSThe cycle measures
dispatch -> complete -> enqueuein steady state. These are machine-specific measurements, not a service-level claim.