Decision Trail
by frog81341
README.md
# Decision Trail for Jira
**Stop re-arguing what your team already decided.**
Decision Trail is an [Atlassian Forge](https://developer.atlassian.com/platform/forge/) app for Jira. It reads an issue thread, finds the decisions in it, flags the ones that were quietly reversed, and checks new proposals against a per-project decision ledger. The same capabilities are available to AI agents through a **Rovo agent** and a **Rovo MCP server**.
Built for [Codegeist 2026](https://codegeist2026.devpost.com/), category **Apps for Software Teams**.

## What it does
| Feature | Where |
|---|---|
| Finds decisions, reversals and open questions in the description, comments and up to 5 linked issues | Jira issue panel, `get-issue-decisions` action |
| Marks each decision **active**, **contested** (challenged later) or **superseded** (replaced by a newer decision) and scores decision health | Issue panel |
| Pins a decision and its reason to a per-project ledger in Forge storage | Issue panel, `record-decision` action |
| Checks a proposed change against the ledger: **conflict**, **review** or **clear**, with the matching decision, its reason and owner | "Check a change" tab, `check-proposal` action |
| Searches the ledger by topic | Ledger tab, `search-decisions` action |
| **Decision Keeper** Rovo agent that uses the four actions | `rovo:agent` |
| The four actions as MCP tools for Rovo Studio agents and external MCP clients | `rovo:mcp` |

## How it works
- Reads Jira **as the current user** (`asUser()`), so nobody sees text they could not already see.
- Detection is deterministic (patterns for decisions, reversals, questions and rationale, plus topic-term matching that ignores words shared by the whole thread). No LLM calls, no extra cost, and the same result every time.
- Data stays on Forge: the ledger lives in Forge Key-Value Store (`@forge/kvs`). No external egress.
- Scopes: `read:jira-work`, `storage:app`.
```
src/
core/ pure logic: ADF to text, detection, ledger matching (unit tested)
jira.js Jira REST calls (issue, comments, linked issues)
storage.js ledger in Forge KVS
service.js shared by the panel resolver and the Rovo actions
index.js Custom UI resolver + action handlers
static/panel Custom UI (vanilla JS, bundled with esbuild)
resource/agent/prompt.txt Decision Keeper prompt
demo/ sample thread, local mock bridge, demo stage used for screenshots and the video
```
## Install and run
Requirements: Node.js 22+, a free [Atlassian Cloud developer site](https://go.atlassian.com/cloud-dev), and the Forge CLI.
```bash
npm install -g @forge/cli
forge login # or set FORGE_EMAIL and FORGE_API_TOKEN
npm install
forge register # writes your own app id into manifest.yml
npm run build:panel
forge deploy
forge install --site <your-site>.atlassian.net --product jira
```
Open any Jira issue and choose **Decision Trail** in the issue's app panel. In Rovo chat, pick **Decision Keeper**.
Write decisions the way teams already do: `Decision: … because …`, `We agreed to …`, `Let's go with …`, or the editor's native Decision block.
## Tests and local preview
```bash
npm test # core logic tests
npm run build:demo # builds demo/site with a mock bridge and the sample thread
cd demo && python3 -m http.server 8765 # open http://127.0.0.1:8765/stage.html
```
The local preview runs the real UI and the real core logic on the sample thread in `demo/sample-data.js`. It does not call Jira.
## AI disclosure
This project was built with AI coding assistance (an AI agent wrote most of the code, tests, copy and the demo narration voice is text-to-speech) under human direction. The app itself does not call an LLM; Rovo provides the language model for the Decision Keeper agent.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues