Add enforcement-grade verification for MGTP determinism and DecisionRecord surface isolation#8
Draft
Copilot wants to merge 3 commits intofeat/mgtp-scaffold-v0.1from
Draft
Conversation
Co-authored-by: LalaSkye <228581229+LalaSkye@users.noreply.github.com>
…ests, CI drift guard Co-authored-by: LalaSkye <228581229+LalaSkye@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add enforcement-grade verification and isolation checks for MGTP
Add enforcement-grade verification for MGTP determinism and DecisionRecord surface isolation
Feb 28, 2026
LalaSkye
approved these changes
Feb 28, 2026
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.
Adds verification layer for MGTP: golden determinism fixtures, fail-closed guard enforcement, cross-run stability, and surface isolation checks ensuring MGTP consumes—not redefines—authority contracts. Also adds a CI drift guard preventing modification of forbidden files in PRs.
mgtp/types.py—DecisionRecordartefactNew frozen dataclass with deterministic serialisation:
mgtp/evaluator.py— Fail-closed verdict resolverConsumes
AuthorityGatedirectly; does not shadow it. Two hard refusals:provided_evidence is None→REFUSED/ reason:missing_evidencedecision_timeoutside[request.timestamp, +1h]→REFUSED/ reason:decision_time_outside_authority_windowIrreversible or trust-boundary-crossing requests are always
SUPERVISED.tests/test_mgtp_enforcement.py— 17 enforcement testscanonical_bytes()anddecision_hashauthority_gatemodule not mutated post-import;mgtpcarries no parallelEvidence/Decision/AuthorityGatedefinitions.github/workflows/ci.yml— Forbidden-file drift guardNew
forbidden-file-drift-guardjob fails any PR that touchesauthority_gate.py,stop_machine.py, orcommit_gate/**. Permissions scoped tocontents: read.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.