feat: add deterministic receipt-based promotion gate - #37
Merged
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
divo12
force-pushed
the
stack/v2-02-candidate
branch
from
September 3, 2026 12:25
6de892f to
1e56f29
Compare
divo12
force-pushed
the
stack/v2-03-gate-v2
branch
from
September 3, 2026 12:29
c5e6a34 to
bd36934
Compare
divo12
force-pushed
the
stack/v2-03-gate-v2
branch
from
September 4, 2026 05:34
bd36934 to
4ba81a4
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
decide_promotion(policy, accepted_run, candidate_run)over PR2EvaluatedRunReceiptScope
Pure gate only: no Git, Harbor, Langfuse, filesystem, MCP, clock, randomness, runtime, registry, factory, or dependency changes. This PR is a fresh replacement for the paused observation-based PR36 and targets
stack/v2-02-candidateonly.Verification
uv run ruff check src tests plugins/openflywheel/scripts/mcp_server.py— cleanuv run mypy src tests plugins/openflywheel/scripts/mcp_server.py— cleanuv run pytest --cov=ofw --cov-report=term-missing --cov-fail-under=90 -q— 340 passed, 2 skipped, 95.27%uvx --from radon radon cc -s -a ...— changed production functions CC <= 5Do not merge before PR2 remains accepted and reviewed.
Summary by cubic
Adds a pure, deterministic promotion gate that decides whether a candidate run should replace the accepted run based on evaluated run receipts.
Gate behavior
Written for commit 4ba81a4. Summary will update on new commits.