Skip to main content
Glama
README.md
# CertGate MCP

**Deterministic Game Studio & LiveOps Platform Certification Guard for Atlassian Forge & Rovo MCP**

> **Codegeist 2026** (`Apps for Specialized Industries` · `Best App with Atlassian MCP` · `Best Agents`)
> 100% **Runs on Atlassian Forge** — zero external network egress, zero `@forge/llm` token billing, SHA-256 verifiable audit digests.

## What Problem It Solves

Failing a Sony PS5 TRC, Xbox XR (Series S parity), Nintendo Switch Lotcheck, or Steam Deck Verified submission resets the 4–7 business day platform certification queue—typically costing game studios **tens of thousands of dollars in extended QA/engineering crunch and missed launch windows (2–4 weeks of slip)**. Crossing Apple's **default 200 MB cellular OTA prompt threshold (`Ask If Over 200 MB`)** similarly triggers a Wi-Fi download wall that hurts mobile user-acquisition install conversion.

CertGate MCP brings deterministic certification gating directly into **Jira Cloud UI Kit**, **Rovo Agent (`Release Cert Producer`)**, **Rovo Skills (`rovo:skill`)**, and **external IDE coding agents via Atlassian Managed MCP (`rovo:mcp` + open-source `SKILL.md`)**.

## Core Deterministic Modules (`src/engine/` & `src/jira/`)

1. **Milestone Hardware & OTA Budget Guard (`audit-milestone-budgets`)**
   - Aggregates per-ticket `vramDeltaMb`, `ramDeltaMb`, `packageSizeDeltaMb`, and `shaderVariantDelta` across a Jira Fix Version (merging live Jira Cloud issues with Forge KVS).
   - Enforces **combined Unified Memory (`VRAM + RAM`) ceilings** for shared-pool hardware (**PS5 `13,500 MB`**, **Xbox Series S parity `8,000 MB`**, **Switch `3,200 MB`**, **Steam Deck `14,000 MB`**) alongside conservative VRAM/RAM sub-pool caps and Apple's **default `200 MB` cellular OTA prompt threshold**, ranking `topOffenders` tickets.
2. **Platform Certification Rule Matrix (`evaluate-platform-cert-checklist`)**
   - Evaluates 19 mandatory gates across **PS5 TRC**, **Xbox XR**, **Nintendo Lotcheck**, **iOS App Store**, and **Steam Deck Verified** against linked Jira QA evidence, Confluence sign-off URLs, and non-expired waivers.
3. **Localization Placeholder & UI Overflow Guard (`validate-localization-safety`)**
   - Validates `{0}`, `{name}`, `%s`, `%d`, `%1$s` placeholder multiset parity (ignoring `%%`), `\n` / `<br>` newline parity, balanced rich-text markup (`<color>...</color>`, `<b>...</b>`), hard `maxChars` ceilings, and `de`/`ru` `1.35x` UI expansion ratios.
4. **Immutable SHA-256 Waiver Hash Chain (`log-cert-waiver` & 1-Click UI Signing)**
   - Records executive producer exceptions in Forge KVS chained via `sha256(previousHash + canonicalPayload)` directly from Jira's `CertGate Readiness` page or Rovo/MCP and verifies tamper resistance on every audit.
5. **Live Jira Cloud REST v3 Sync (`POST /rest/api/3/search/jql`)**
   - Reads live Jira issues via `asApp().requestJira` with `nextPageToken` pagination, extracting budget labels (`vram:+160mb`, `ota:+92mb`), cert tags (`TRC-R4070:FAILED`, `LOT-002`), and Confluence sign-off URLs from Jira ADF descriptions with fail-closed KVS fallback.

## Documentation & Submission Assets

- [Open-Source IDE Skill (`SKILL.md`)](./SKILL.md) — Pre-merge workflow for Claude Code, Cursor, Codex, and Antigravity
- [External IDE MCP Setup Guide (`docs/02_external_mcp_guide.md`)](./docs/02_external_mcp_guide.md) — Connecting to `https://mcp.atlassian.com/v2/mcp` via OAuth 2.1
- [Codegeist 2026 4m 30s Demo Video Script (`docs/01_demo_video_script.md`)](./docs/01_demo_video_script.md)
- [Privacy Policy (`PRIVACY.md`)](./PRIVACY.md) · [Terms of Service (`TERMS.md`)](./TERMS.md) · [MIT License (`LICENSE`)](./LICENSE)

## Project Structure

```text
├── manifest.yml                             # app.rovo, rovo:mcp, rovo:agent, rovo:skill, action, jira:issuePanel, jira:projectPage
├── SKILL.md                                 # Open-source IDE Agent Skill (Claude Code / Cursor / Codex / Antigravity)
├── skills/certgate-release-guard/
│   ├── SKILL.md                             # Forge rovo:skill instruction manifest
│   └── references/platform-caps.md          # Hard hardware/OTA reference table
├── src/
│   ├── index.ts                             # Forge function entrypoint
│   ├── engine/                              # 100% pure deterministic TypeScript core + SHA-256 digests
│   ├── storage/certStore.ts                 # Forge KVS persistence
│   ├── actions/index.ts                     # Rovo Agent / Skill / MCP action handlers
│   ├── resolvers/index.ts                   # Forge UI Kit resolvers
│   └── frontend/                            # Native Forge UI Kit (issuePanel.tsx, projectPage.tsx)
└── tests/                                   # Vitest unit tests + @forge/manifest schema validation
```

## Prerequisites & Local Verification

- **Forge CLI (`@forge/cli@16.x`)** requires **Node.js `^22.23.4` or `^24.22.1`** (`nvm install 24 && nvm use 24 && npm install -g @forge/cli@latest`).
- Run local deterministic tests and official `@forge/manifest` schema verification:

```bash
npm install
npm run typecheck
npm test
```

## Deploying to a Free 90-Day Rovo Demo Site

```bash
forge login
forge register
forge site provision
forge deploy
forge install --demo-site
```