fix(gate): provenance line reflects envelope-mode thresholds - #48
Merged
Conversation
Deploying agentdiff with
|
| Latest commit: |
60b617a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8cddb4c4.agentdiff.pages.dev |
| Branch Preview URL: | https://fix-envelope-gate-provenance.agentdiff.pages.dev |
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.
What
The G7
Gate: …provenance line now describes the gate that actually judged the run. In statistical-envelope mode it renders the scenario tolerances + envelope identity:Strict/v1 baselines keep the legacy
max_divergence/max_loops/max_cost_deltaline unchanged.Why
Found on agentdiff-demo: in envelope mode the line reported the legacy knobs (0.3 / 0 / 10%) while
compare_envelopeactually judged with the scenario tolerances (0.35 / 20% / 2σ). G7's whole point is that a green check is auditable against the rules that produced it — the line was misdescribing envelope runs.How
provenance_line()gains optionalscenario_cfg/envelopeparams; when the envelope is statistical (N ≥ 2) it renders scenario tolerances +[statistical envelope: <name>, N=<n>]prefix.cli.py: the provenance call moved afterload_baseline()(mode is only known there) and passes both; removed the now-dead early call.Testing
Checklist
make lintpassesuv run python -m pytestis greenCHANGELOG.mdentry added under[Unreleased](if feat/fix)type(scope): summaryRoadmap link: WS-G G7 gate provenance — 0.5.0 polish.