GitHub, GitLab & Bitbucket MCP Pull Request Mutation, Branch Protection & Seal Drift Gate

Last updated Applies to version Article 14 & Article 15 | EU, DE, FR, US

What control does Mcp Git Cicd Pr Mutation Gate enforce and how is it verified?

Acta enforces verifiable technical controls for Mcp Git Cicd Pr Mutation Gate by capturing RFC 8785 canonical evidence digests, explicit NOT_CHECKED scope disclosures, and Article 14 human approval gates prior to seal activation. Primary legal and standards references: Regulation (EU) 2024/1689 (EU AI Act, EUR-Lex), NIST AI RMF 1.0 (nist.gov), ISO/IEC 42001:2023 AIMS Standard (iso.org). Acta supports governance and audit-readiness workflows and is not legal advice.

  • Control Enforced: Prohibits direct autonomous pushes to protected branches, enforces candidate PR isolation, and triggers `MANIFEST_HASH_DRIFT` checks in CI/CD. (Category: MCP & Agent Runtime Guardrails | Sector: Agent Execution & CI/CD Governance).
  • Legal & Framework Anchors: Article 14 & Article 15 (Post-Deployment Drift Control) -- EU AI Act (Regulation (EU) 2024/1689) (Regulation (EU) 2024/1689 Art. 14 & Art. 15, effective 2026-08-02) (Primary Jurisdiction: EU).
  • Estimated Verification Time: ~5 minutes to verify an endpoint passport via zero-debit MCP; full evidence room review available in 48h.

What works without an API key vs with an x402 token or Human Steward sign-off?

  • Works without: VOS API key or paid settlement when checking public Living Passports via acta_verify_living_passport on https://mcp.aiacts.app/mcp.
  • Optional: Target appId (e.g. studio-vantages-app) and RFC 8785 SHA-256 deployedManifestHash for drift comparison, plus internal @vos/core SDK if embedding locally.
  • Requires: Active VOS API key or x402 settlement header for governed write/attestation tools (acta_evaluate_rsi_proposal) and Human Steward (Role 50) sign-off for production seal issuance.

How does this control prevent silent drift compared to static checklists?

Dimension

Uncontrolled Agent

Governed Agent (This Runbook)

Failure Mode

Agent with write token automatically approved and merged malicious workflow modifications submitted via untrusted fork PR.

Boundary enforced prior to execution: Coding and DevOps agents must not merge or deploy unreviewed code changes without explicit Article 14 human approval and seal re-verification.

Evidence Left Behind

Ephemeral console logs or unverified screenshots with no canonical hash.

Structured receipt chain mapped to acta_evaluate_rsi_proposal with explicit NOT_CHECKED boundaries (Ephemeral runner cache poisoning persistence window.).

Regulator View

Unaddressed exposure under Article 14 & Article 15 (Post-Deployment Drift Control) -- EU AI Act (Regulation (EU) 2024/1689) (Regulation (EU) 2024/1689 Art. 14 & Art. 15, effective 2026-08-02).

Inspectable evidence trail aligned with Article 14 & Article 15 (Post-Deployment Drift Control) -- EU AI Act (Regulation (EU) 2024/1689) (Regulation (EU) 2024/1689 Art. 14 & Art. 15, effective 2026-08-02) and Human Steward (Role 50) oversight.

Drift Behavior

Prompt, model, or manifest changes ship silently without invalidating prior claims.

Manifest hash mismatch returns MANIFEST_HASH_DRIFT and triggers VOIDED_ON_DRIFT interlock until re-reviewed.

What is the statutory legal basis under EU AI Act and ISO 42001?

Prohibits direct autonomous pushes to protected branches, enforces candidate PR isolation, and triggers `MANIFEST_HASH_DRIFT` checks in CI/CD.

Core Statutory Obligation: Coding and DevOps agents must not merge or deploy unreviewed code changes without explicit Article 14 human approval and seal re-verification.

Legal Basis: Article 14 & Article 15 (Post-Deployment Drift Control) -- EU AI Act (Regulation (EU) 2024/1689) (Regulation (EU) 2024/1689 Art. 14 & Art. 15, effective 2026-08-02) | Primary Jurisdiction: EU

How do engineering teams implement Mcp Git Cicd Pr Mutation Gate step by step?

Baseline template (recipe-specific implementation steps NOT_CHECKED). Verify domain thresholds and sector-specific controls before production use.

Step 1: Extract & Pin Canonical Governance Manifest (RFC 8785)

Bind your application or MCP tool to EU AI Act Art. 14, EU AI Act Art. 15, ISO/IEC 42001 A.6.2.4 and declare negative-fact NOT_CHECKED boundaries (Compromised developer workstation GPG/SSH hardware YubiKey physical theft; Third-party npm/PyPI upstream registry mirror outage).

VOS internal SDK reference (for monorepo services; external teams should use the vendor-neutral MCP curl verification in Section 6).

reference-internal-sdk.ts
import { remixGovernanceRecipeWithCandidate } from '@vos/core';

const remixed = remixGovernanceRecipeWithCandidate({
  recipeSlug: 'recipe-mcp-git-cicd-pr-mutation-gate',
  appId: 'my-governed-ai-service',
  modelTargetId: 'qwen-self-hosted',
});
console.log('Manifest SHA-256:', remixed.manifestSha256);

Verification Method: Verify deterministic 64-character SHA-256 manifest digest via RFC 8785 JCS canonicalization.

Step 2: Enforce Runtime "A license to run AI that revokes itself" Admission Interlock

Verify the active Notary Seal against the deployed manifest hash before executing privileged tool calls or model inference.

VOS internal SDK reference (for monorepo services; external teams should use the vendor-neutral MCP curl verification in Section 6).

reference-internal-sdk.ts
import { verifyVoidDeploymentSeal } from '@vos/core';

export function assertRecipeSealValid(notarySeal: any, deployedManifestHash: string) {
  const check = verifyVoidDeploymentSeal({
    notarySeal,
    deployedManifestHash,
    nowIso: new Date().toISOString(),
  });
  if (check.verificationStatus !== 'VALID_NO_DRIFT') {
    throw new Error(`[RECIPE-EU-ART14-MCP-GIT-CICD-PR-MUTATION-GATE] Execution halted: ${check.reasonCode}`);
  }
  return check;
}

Verification Method: Confirm `verificationStatus === "VALID_NO_DRIFT"` and automatic block on `MANIFEST_HASH_DRIFT`.

How do autonomous agents and operators verify this control live via MCP?

Run the public zero-debit MCP tool `acta_verify_living_passport` against https://mcp.aiacts.app/mcp (no API key or x402 payment required).

verify-live-mcp.sh
curl -sS -X POST https://mcp.aiacts.app/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "verify-1",
    "method": "tools/call",
    "params": {
      "name": "acta_verify_living_passport",
      "arguments": {
        "appId": "mcp-git-cicd-pr-mutation-gate",
        "deployedManifestHash": "<your-64-char-rfc8785-sha256>"
      }
    }
  }'
expected-receipt.json
{
  "status": "verified_passport_lookup",
  "tool": "acta_verify_living_passport",
  "appId": "mcp-git-cicd-pr-mutation-gate",
  "registered": true,
  "entityCategory": "mcp",
  "sealStatus": "SEALED_VALID",
  "aveDecision": "ALLOW_SEALED_EXECUTION",
  "gatekeeperDecision": "ALLOW_EXECUTION",
  "aveChannel": "mcpJsonRpc",
  "verification": {
    "verificationStatus": "VALID_NO_DRIFT",
    "reasonCode": "SEAL_VALID",
    "gatewayAction": "ALLOW",
    "cicdGateAction": "PASS_CHECK",
    "opaAdmissionAction": "ALLOW",
    "requiresHumanReapproval": false
  },
  "sealStandard": "RFC-8785-JCS + NIST-FIPS-204-ML-DSA-65",
  "article14HumanOversightRequired": true,
  "disclaimer": "VOS provides governance evidence infrastructure. It is not legal advice and does not certify compliance by itself."
}

When code or manifest drifts without Human Steward re-review, the same verification call fails closed and demonstrates automatic revocation:

drift-revocation-receipt.json
{
  "status": "verified_passport_lookup",
  "tool": "acta_verify_living_passport",
  "appId": "mcp-git-cicd-pr-mutation-gate",
  "registered": true,
  "entityCategory": "mcp",
  "sealStatus": "DRIFT_OR_EXPIRED",
  "aveDecision": "REFUSE_UNSEALED_OR_DRIFT",
  "gatekeeperDecision": "BLOCK_EXECUTION_ISSUE_REFUSAL_RECEIPT",
  "aveChannel": "mcpJsonRpc",
  "verification": {
    "verificationStatus": "DRIFT_OR_EXPIRED",
    "reasonCode": "MANIFEST_HASH_DRIFT",
    "gatewayAction": "BLOCK_EXECUTION",
    "cicdGateAction": "FAIL_CHECK",
    "opaAdmissionAction": "DENY",
    "requiresHumanReapproval": true
  },
  "sealStandard": "RFC-8785-JCS + NIST-FIPS-204-ML-DSA-65",
  "article14HumanOversightRequired": true,
  "disclaimer": "VOS provides governance evidence infrastructure. It is not legal advice and does not certify compliance by itself."
}

Governed tools (API key or x402 required)

The recipe-specific governance tools below require an authenticated VOS API key or x402 settlement header and are listed for integration planning (not zero-debit anonymous curl):

Tool Name

Required Params

Governance Function

acta_evaluate_rsi_proposal

repo, baseSha, headSha, diffHash

Evaluate code diff (`urn:vos:evidence:diff:...`) and require human sign-off before merge.

Which admissible evidence artifacts and NOT_CHECKED boundaries apply?

Baseline evidence template (recipe-specific items NOT_CHECKED).

  • RFC 8785 Canonical Policy & Manifest Attestation (Required -- policy_hash_attestation): Cryptographic verification of EU AI Act Art. 14, EU AI Act Art. 15, ISO/IEC 42001 A.6.2.4 control bindings.
  • Tamper-Evident Runtime Telemetry Receipt (Required -- telemetry_log_receipt): Hash-chained execution telemetry confirming active runtime boundary enforcement.
  • Article 14 Human Oversight & Escalation Record (Required -- human_escalation_audit): Verified human reviewer approval and escalation queue audit log.
  • Zero-Debit Refusal / Containment Receipt (Required -- refusal_receipt): Immutable cryptographic receipt emitted when out-of-policy actions are halted.

Declared NOT_CHECKED Scope Boundaries

  • NOT_CHECKED: Ephemeral runner cache poisoning persistence window.
NON-LEGAL DISCLAIMER: This runbook provides technical evidence and process alignment for Article 14 & Article 15 (Post-Deployment Drift Control) -- EU AI Act (Regulation (EU) 2024/1689) (Regulation (EU) 2024/1689 Art. 14 & Art. 15, effective 2026-08-02). It does not constitute legal advice and does not guarantee statutory compliance or regulatory immunity.

How does this control map across EU, US Federal, Colorado, and ISO 42001?

Jurisdiction / Framework

Posture

Applicable Rules / Scope

Boundary / Reason

EU (EU_AI_ACT)

APPLICABLE

EU AI Act Article 14 Human Oversight & Article 12 Tamper-Evident Logging; Explicit NOT_CHECKED negative-fact boundary disclosure in Notarial Record

Direct EU Regulation (EU) 2024/1689 applicability across Union single market deployers and providers. Applied to GitHub, GitLab & Bitbucket MCP Pull Request Mutation, Branch Protection & Seal Drift Gate (EU AI Act Art. 14).

DE (DE_BSI_AIC4_BAFIN_BNETZA)

APPLICABLE

BSI AIC4 cryptographic execution boundary & telemetry retention proof; BetrVG Sec. 87(1) No. 6 employee monitoring & co-determination boundary record

German BSI AI Cloud Service Compliance Criteria Catalogue (AIC4), BaFin MaRisk AT 4.3.2, and BetrVG Sec. 87(1) No. 6 Works Council co-determination. Applied to GitHub, GitLab & Bitbucket MCP Pull Request Mutation, Branch Protection & Seal Drift Gate (EU AI Act Art. 14).

FR (FR_CNIL_AI_SYSTEMS_DGCCRF)

APPLICABLE

CNIL AI Training Corpus provenance & GDPR Art. 6 lawful basis record; DGCCRF / CSE algorithmic transparency & human intervention notice

French CNIL AI Action Plan & Training Data Recommendations, DGCCRF algorithmic transparency, and Code du travail Art. L2312-8 CSE consultation. Applied to GitHub, GitLab & Bitbucket MCP Pull Request Mutation, Branch Protection & Seal Drift Gate (EU AI Act Art. 14).

US (US_NIST_AI_RMF)

APPLICABLE

NIST AI RMF 1.0 GOVERN 1.1 / MAP 1.5 / MEASURE 2.5 / MANAGE 3.1 crosswalk receipt; FTC Section 5 substantiated technical claim & non-deceptive AI identity disclosure

US NIST AI Risk Management Framework (AI RMF 1.0 + NIST AI 600-1 GenAI Profile), FTC Act Section 5 deceptive practice guardrails, and OMB M-24-10. Applied to GitHub, GitLab & Bitbucket MCP Pull Request Mutation, Branch Protection & Seal Drift Gate (EU AI Act Art. 14).

UK (UK_DSIT_AISI_FCA_PRA_SS1_23)

APPLICABLE

UK DSIT 5-Principle Governance Attestation & ICO Data Protection Impact Assessment (DPIA) hook; PRA SS1/23 Principle 4 Model Tiering & Independent Validation Boundary

UK DSIT Pro-Innovation AI Regulatory Principles, UK AISI Frontier Model Safety, FCA Consumer Duty, Bank of England / PRA SS1/23 Model Risk Management, and ICO Guidance on AI & Data Protection. Applied to GitHub, GitLab & Bitbucket MCP Pull Request Mutation, Branch Protection & Seal Drift Gate (EU AI Act Art. 14).

GLOBAL (ISO_42001)

APPLICABLE

ISO/IEC 42001:2023 Clause 6.1.2 AI Risk Assessment & Clause 6.1.3 AI System Impact Assessment; Annex A.6 AI System Life Cycle, Annex A.7 Data for AI Systems, and Annex A.9 Use of AI Systems

ISO/IEC 42001:2023 Artificial Intelligence Management System (AIMS), OECD AI Principles, and Hiroshima Process International Code of Conduct. Applied to GitHub, GitLab & Bitbucket MCP Pull Request Mutation, Branch Protection & Seal Drift Gate (EU AI Act Art. 14).

What real-world precedent shows the operational failure mode?

Precedent Case: Autonomous PR Triage Agent `pull_request_target` Secret Exfiltration & Unreviewed Merge (GitHub Security Lab / CISA CI/CD Pipeline Hardening Advisory (2025)).

  • Established Fact: Agent with write token automatically approved and merged malicious workflow modifications submitted via untrusted fork PR.
  • Unknown / NOT_CHECKED: Ephemeral runner cache poisoning persistence window.

Governance Lesson: Isolate coding agents to candidate branches and enforce `void-seal-drift-gate.yml` human sign-off before merge.

Which ready-to-run prompt can your coding agent execute now?

guarded-agent-prompt.md
# TASK DIRECTIVE: IMPLEMENT GOVERNANCE RUNBOOK
Target Runbook: GitHub, GitLab & Bitbucket MCP Pull Request Mutation, Branch Protection & Seal Drift Gate (RECIPE-EU-ART14-MCP-GIT-CICD-PR-MUTATION-GATE)
CMS Canonical Reference: /docs/recipe-recipe-mcp-git-cicd-pr-mutation-gate
Primary Jurisdiction: EU (EU_AI_ACT)

## MANDATORY CONSTITUTIONAL GUARDRAILS (ZERO BYPASS)

1. PLAN-FIRST MANDATE:
Formulate an explicit step-by-step plan listing touched files and control gates before writing code. Wait for human review before applying changes.

2. ENVIRONMENT INSPECTION CLAUSE:
Inspect existing routes, configs, and dependencies before writing code. Never duplicate existing components or invent unverified paths.

3. HUMAN-APPROVAL BOUNDARY:
A strict Review-Before-Apply barrier is active. Autonomous agents prepare unsealed drafts only; production activation requires Human Steward (Role 50) approval.

4. NO support technical compliance alignment CLAIMS:
DISCLAIMER: This runbook provides technical evidence alignment for EU AI Act (Regulation (EU) 2024/1689) (Article 14 & Article 15 (Post-Deployment Drift Control)). It is not legal advice and does not support technical compliance alignment or regulatory immunity.

## IMPLEMENTATION CONTROLS
Core Obligation: Coding and DevOps agents must not merge or deploy unreviewed code changes without explicit Article 14 human approval and seal re-verification.
- Step 1: Extract & Pin Canonical Governance Manifest (RFC 8785) -- Bind your application or MCP tool to EU AI Act Art. 14, EU AI Act Art. 15, ISO/IEC 42001 A.6.2.4 and declare negative-fact NOT_CHECKED boundaries (Compromised developer workstation GPG/SSH hardware YubiKey physical theft; Third-party npm/PyPI upstream registry mirror outage).
- Step 2: Enforce Runtime "A license to run AI that revokes itself" Admission Interlock -- Verify the active Notary Seal against the deployed manifest hash before executing privileged tool calls or model inference.

## EXPECTED EVIDENCE & NOT_CHECKED BOUNDARIES
- RFC 8785 Canonical Policy & Manifest Attestation (EV-RECIPE-EU-ART14-MCP-GIT-CICD-PR-MUTATION-GATE-01, required: true)
- Tamper-Evident Runtime Telemetry Receipt (EV-RECIPE-EU-ART14-MCP-GIT-CICD-PR-MUTATION-GATE-02, required: true)
- Article 14 Human Oversight & Escalation Record (EV-RECIPE-EU-ART14-MCP-GIT-CICD-PR-MUTATION-GATE-03, required: true)
- Zero-Debit Refusal / Containment Receipt (EV-RECIPE-EU-ART14-MCP-GIT-CICD-PR-MUTATION-GATE-04, required: true)
Declared NOT_CHECKED Boundaries:
- NOT_CHECKED: Ephemeral runner cache poisoning persistence window.

## GOVERNED MCP TOOLS (API KEY OR X402 REQUIRED)
- acta_evaluate_rsi_proposal: Evaluate code diff (`urn:vos:evidence:diff:...`) and require human sign-off before merge.

Zero-Debit Endpoint Verification: https://mcp.aiacts.app/mcp (tool: acta_verify_living_passport)
Interactive URL Diagnostic: /scan

Scan Your Endpoint Against This Control

Run a live endpoint diagnostic directly on /scan by entering your AI application URL, or copy the prompt below into your coding agent:

scan-agent-prompt.txt
Inspect my AI system against GitHub, GitLab & Bitbucket MCP Pull Request Mutation, Branch Protection & Seal Drift Gate (Article 14 & Article 15 (Post-Deployment Drift Control) -- EU AI Act (Regulation (EU) 2024/1689) (Regulation (EU) 2024/1689 Art. 14 & Art. 15, effective 2026-08-02)) using Vantages at /scan and verify passport status at https://mcp.aiacts.app/mcp -- identify governance gaps, human sign-off checkpoints, and NOT_CHECKED boundaries.

Next steps: Run a free 1-Click Endpoint Scan, model exposure with our 41 Interactive AI Governance Calculators, inspect live Living Passports, train operators via AI Steward Courses, or request a 48h Evidence Review (EUR 850).

How is the RFC 8785 digest integrity of this cookbook recipe tracked?

recipe-integrity.json
{
  "schemaVersion": "vos_recipe_integrity.v1",
  "recipeId": "RECIPE-EU-ART14-MCP-GIT-CICD-PR-MUTATION-GATE",
  "docSlug": "recipe-recipe-mcp-git-cicd-pr-mutation-gate",
  "subcategory": "mcp-runtime-guardrails",
  "canonicalAlgorithm": "RFC-8785-JCS-SHA256",
  "contentSha256": "c3c0dfd84864b8d3ac5263faa0eac9ad5146dee6ce876bdbd8eef7a28feb1e11",
  "vos_notary_status": "DRAFT_UNSEALED",
  "note": "Seal issuance requires Human Steward (Role 50). No SEAL issued or HDFL write performed in candidate migration."
}

Related articles

Was this helpful?