Skip to main content
Glama
Greenlight Readiness

Greenlight Readiness

by cosycookie
README.md
# Greenlight

**A release readiness gate for Jira, with an explainable score, a Rovo agent, and MCP tools.**

Codegeist 2026 entry. Category: **Apps for Software Teams**.
Bonus targets: **Best Agents (Rovo)**, **Best app with Atlassian MCP**.

---

## The problem

Teams do not fail to ship because nobody wrote code. They fail because a release is
declared "ready" while three subtasks are open, the only test evidence is a
thumbs-up emoji, and the one issue that blocks everything is still in review.

Dashboards do not fix this. They show status counts. Status counts do not tell a
release manager **why** an issue is not ready, or **which** single action would
unblock it.

Greenlight answers one question, with evidence:

> Is this issue - and this project - actually ready to ship, and what exactly is missing?

## What it does

**Issue panel.** Every open Jira issue gets a readiness score from 0 to 100, a
level (ready / caution / blocked), a component breakdown, the evidence behind
every point lost, and the next actions. Nothing is written to Jira.

**Project page.** The highest-risk open issues in a project are scored and rolled
up into a release decision: **go**, **conditional** or **no-go**. Any issue with an
unresolved blocker link makes the decision a no-go.

**Rovo agent - Greenlight Release Analyst.** Ask in natural language: "Is PAY-101
ready to ship?", "Which issues are blocking this release?", "Draft the go/no-go
brief for project PAY". The agent calls the actions and explains the result. It
cannot invent a score, because it never computes one.

**MCP server.** The same four actions are exposed as MCP tools
(`check-readiness`, `list-blockers`, `draft-release-brief`, `explain-score`). Any
custom Rovo Studio agent - or an external MCP client, once an admin enables it -
can add them. That means a customer's own agent can ask Jira "what is blocking
the release?" using the same deterministic engine.

## How the score works

The engine is deterministic. It starts at 100 and subtracts points. A language
model never produces the number.

| Component | Max | What it checks |
|---|---:|---|
| **Delivery** | 25 | Open subtasks, unresolved "is blocked by" links, 14+ days idle, not started but assigned to an unreleased version |
| **Verification** | 25 | Unchecked acceptance items, no code change linked, no QA/test evidence, unresolved "is tested by" links, no assignee |
| **Stability** | 20 | Reopens (Done -> active), status churn, late comment spikes, age over 30 days, past due date |
| **Risk** | 15 | Priority, blast radius (components + labels), large open neighbourhood of related issues |
| **Traceability** | 15 | Thin description, no rollback/monitoring plan, no release note, no docs link |

Every deduction produces an evidence record with a source, severity, weight,
detail and a concrete fix. The UI and the agent only ever show those records.

Hard rule: an unresolved blocker link forces the level to **blocked**, whatever
the numeric score says.

## Architecture

```
Jira issue / project
        |
        v
 src/jira.js        read-only Jira REST v3, asUser with asApp fallback
        |
        v
 src/readiness.js   pure scoring engine, no I/O, no LLM
        |
        +--> src/index.js    @forge/resolver handlers -> bridge invoke
        |                    -> issue panel, project page
        +--> src/actions.js  Rovo actions            -> agent + MCP tools
                                     |
                          manifest.yml (rovo:agent, rovo:mcp)
```

- `src/readiness.js` - the engine. Pure functions, unit-testable without Forge.
- `src/jira.js` - normalises Jira payloads (ADF to text, issue links, changelog)
  into the flat shape the engine expects.
- `src/index.js` - registers `getIssueReadiness` and `getProjectReadiness` with
  `@forge/resolver` and exports `handler`, the function both UI modules point at.
- `src/frontend/IssuePanel.jsx`, `src/frontend/ProjectPage.jsx` - call those
  handlers through `invoke()` from `@forge/bridge`, then call
  `ForgeReconciler.render(...)`.
- `src/frontend/ui.jsx` - shared UI Kit components.
- `src/actions.js` - four actions, shared by the Rovo agent and the MCP server.

Scopes: `read:jira-work` only. The app never writes to Jira.

## Run it

Requirements: Node.js 20+ and an Atlassian Cloud site where you are an admin.

Node is already unpacked on this machine at
`../.tools/node-v24.22.3-darwin-x64`. Add it to the path for the session:

```bash
export PATH="/Users/mac/Downloads/PycharmProjects/.tools/node-v24.22.3-darwin-x64/bin:$PATH"
node -v   # v24.22.3
```

Then:

```bash
cd greenlight
npm install

# 0. Log in (opens a browser).
npx forge login

# 1. Register the app. This creates the app and writes its real id into
#    manifest.yml, replacing the placeholder.
npx forge register

# If register refuses because an id is already present, delete the `id:` line
# under `app:` in manifest.yml and run it again.

# 2. Deploy and install
npx forge deploy
npx forge install
```

Install on Jira. Open any issue - the Greenlight panel appears. Open a project -
the release gate page appears.

For the agent and MCP tools, Rovo must be activated on the site:
**Atlassian Administration -> Rovo**. Then use **Ask Rovo -> Create agent ->
Add tools -> Connected apps -> Greenlight Readiness** to attach the tools to a
custom agent, or chat with the bundled **Greenlight Release Analyst**.

To expose the tools to an external MCP client, enable them under
**Administration -> Apps -> Sites -> Connected apps**, then connect to
`https://mcp.atlassian.com/forge/<appId>`.

## Demo data

To create six scoring-friendly issues in one project (one blocked, one clean,
plus fillers), with your own Jira API token:

```bash
export JIRA_BASE_URL="https://your-site.atlassian.net"
export JIRA_EMAIL="you@example.com"
export JIRA_API_TOKEN="..."
export JIRA_PROJECT_KEY="PAY"
node scripts/seed-jira.mjs
```

Only run this against a demo project. Revoke the token afterwards. It uses your
token, not the Forge app, and does not touch the app's read-only scope.

## Verify without deploying

Four local checks, none of which need an Atlassian login:

```bash
node scripts/check-engine.mjs        # scoring fixtures
node scripts/check-resolvers.mjs     # resolver wiring against a fake Jira
node scripts/check-ui-imports.mjs    # every @forge/react import exists; entries render
node scripts/validate-manifest.mjs   # manifest against the Forge CLI's own JSON Schema
```

- `check-engine` runs three fixtures: a blocked issue (scores in the twenties),
  a clean issue (100, ready) and a shipped one.
- `check-resolvers` stubs `@forge/api` and `@forge/resolver`, then calls the real
  handlers: context extraction, project-id fallback, the search fallback and the
  error paths.
- `check-ui-imports` catches the class of bug where a UI Kit 1 component no
  longer exists in UI Kit 2 (for example `Table`/`Cell`), and asserts that both
  entry points call `ForgeReconciler.render`.
- `validate-manifest` uses the JSON Schema shipped inside `@forge/manifest`, so it
  catches structural mistakes before `forge deploy`. It cannot check server-side
  rules; `forge lint` still needs your login.

## What is real and what is not

- Real: Jira REST reads, issue links, subtasks, changelog, ADF parsing, scoring,
  Rovo agent wiring, MCP tools, the UI.
- Not included: any write-back to Jira, any external CI integration, any LLM call
  inside the app. The prose comes from Rovo, not from a paid API.

## Judging criteria, addressed

- **Technological implementation** - real Jira data, real changelog analysis,
  deterministic engine, four working tools, one codebase behind UI + agent + MCP.
- **Design** - one score, one level, one decision, evidence under each point.
- **Potential impact** - release readiness is a weekly, expensive, cross-team
  decision. This makes it auditable.
- **Innovation** - the anti-hallucination design: the model narrates, the engine
  decides. Most "AI for Jira" apps do the opposite.
- **Presentation** - one blocked issue, one project roll-up, one agent question,
  one MCP call. Under three minutes.