Inspiration

Every software team has had this conversation: "Wait, didn't we already decide this?" The decision exists, but it lives in comment 14 of a Jira issue from two months ago. A new teammate, someone in a hurry, or now a coding agent writing a patch, reverses it without seeing the reason. The team pays for the same debate, or the same outage, twice.

Codegeist asked for apps that use context so software teams can ship with confidence. The most expensive context to lose is what was already decided, and why. Decision Trail is for the people — and the agents — who are about to change a system, at the moment before the work starts.

What it does

Decision Trail is a Forge app that adds a panel to every Jira issue and the same capabilities to AI agents, so a change can be checked against the team's decisions before anyone (or any agent) undoes one.

  • Decision trail. Reads the issue description, every comment, and up to five linked issues, and lists each decision with who made it, when, and the reason. Each decision is marked active, contested (someone challenged it later in the thread) or superseded (a newer decision replaced it). Unanswered questions stay open.
  • Decision health score. One number per issue plus concrete tips: "1 decision was challenged later, confirm or record a new one", "1 decision has no recorded reason".
  • Decision ledger. One click pins a decision and its reason to a per-project ledger in Forge storage. The ledger tab can be searched by topic.
  • Check a change. Before starting work, describe the change ("Move checkout sessions from Redis to Postgres"). Decision Trail returns conflict, review or clear, with the decision it would undo, the reason behind it, and the person who made it. A conflict names a next step: talk to that person, or record a new decision, before starting.
  • Decision Keeper (Rovo agent). Ask "What was decided on this issue?", "Does this proposal contradict an earlier decision?" or "Record this as a decision".
  • MCP tools, for Rovo Studio agents and (as documented) external clients. The same four actions (get-issue-decisions, check-proposal, record-decision, search-decisions) are exposed through the rovo:mcp module. In Rovo Studio they appear under Add tools → Connected apps → Decision Trail; a custom Studio agent can call them (our demo shows one doing so). Official Forge docs also describe connecting the same tools to a third-party MCP client at https://mcp.atlassian.com/forge/<appId> after an admin enables external exposure — we have not completed that flow. We ship an open-source skill file (skills/decision-trail/SKILL.md) that third-party agents can load, as the Atlassian MCP bonus allows.

Detection is deterministic (no LLM call in our code), so a judge opening the panel on the same issue gets the same trail every time. The app only reads what the signed-in user can already see.

How we built it

This is one working Forge app, not a wrapper around a single demo path. The issue panel, the Rovo agent and the MCP tools all call the same service layer.

  • Forge for Jira: a Custom UI jira:issuePanel and jira:issueGlance, four action modules, a rovo:agent (Decision Keeper) and a rovo:mcp module ("Decision Trail MCP").
  • Jira REST API v3 through api.asUser(), so the app only shows text the viewer can already see. Comments arrive as Atlassian Document Format, which we convert to text, including native editor Decision blocks.
  • Detection is deterministic: patterns for decisions ("Decision:", "we agreed", "let's go with"…), reversals ("change of plan", "revert", "no longer"…), open questions and rationale ("because", "since"…), plus topic matching on stemmed key terms. Words that describe the whole thread (from the issue summary) and words that only signal a reversal are ignored, so "checkout" alone never links two unrelated decisions or raises a conflict.
  • The ledger lives in Forge Key-Value Store (@forge/kvs) with per-project keys and sequential IDs (ENG-D001…).
  • No external egress and no LLM calls from our code. Scopes are only read:jira-work and storage:app. The Decision Keeper agent uses Rovo's built-in model; our tools return structured JSON plus a plain-language why.
  • app.rovo metadata (tag: dtrail, description and keywords) is set so agents can discover the tools. Atlassian requires this field for rovo:mcp apps from 5 January 2027, which is the first day of judging.
  • Core logic is pure JavaScript with unit tests (npm test) that cover the sample thread, superseding, ADF decision blocks, conflict / clear / one-word-cap cases, unlinked reversals, and issue-key parsing for Rovo and MCP payloads. The UI is bundled with esbuild. A mock bridge lets the exact same UI run locally on a sample thread for screenshots.

Challenges we ran into

  • False links between decisions. In a thread about "checkout sessions", every decision mentions checkout. Early versions marked unrelated decisions as superseded. Ignoring summary terms and reversal signal words fixed it.
  • One-word matches. A proposal sharing a single word with a decision is now capped at low risk, so "checkout" alone never raises a conflict. The next step on a real conflict is a conversation, not a noisy false alarm.
  • One set of actions for three consumers. The panel, the Rovo agent and MCP clients all need the same behaviour. Each action reads the issue key from input, then falls back to the Rovo context or a browse URL, and returns structured JSON with a plain-language why. The open-source skill file teaches third-party agents when to call each tool, and never to invent a decision the tools did not return.
  • Showing the tools being used, not just declaring the module. A rovo:mcp module in the manifest is not enough for judges. The video shows a custom Rovo Studio agent, built in Studio with the Decision Trail tools added from Connected apps, calling check-proposal (the chat displays "Invoking tool" lines) and flagging the conflict with D001. It also shows the public skill file. We did not record a third-party MCP client; official Forge docs describe that path, and we have not completed it.

Accomplishments that we're proud of

  • A conflict check that names the decision, the reason and the owner, so the next step is a conversation, not a silent revert.
  • The same check can be used by a Rovo Studio agent before work starts, and — as Forge documents — by a third-party coding agent through the Rovo MCP module plus our open-source skill.
  • Zero extra cost to run: deterministic detection, Forge-hosted, no external services. A judge and a teammate see the same result on the same thread.
  • One codebase serving a Jira panel, a Rovo agent and MCP tools.

What we learned

  • Teams already write decisions down. They just never find them again. Capturing is not the hard part; resurfacing at the moment of change is.
  • MCP turns a Jira app into infrastructure for coding agents. The most useful time to check a decision is no longer a sidebar tab a human might forget to open — it is immediately before an agent writes the patch.

What's next

  • Confluence support (decision blocks in pages) using the same ledger.
  • Teamwork Graph: link decisions to the goals and people they affect.
  • An automation rule that runs check-proposal when an issue moves to In Progress and comments if it conflicts.
  • Publish to the Atlassian Marketplace.

AI disclosure

This project was built with substantial AI assistance: an AI coding agent wrote most of the code, tests, this description and the demo video script, under human direction and review. The demo narration is text-to-speech. The app's own logic is deterministic and makes no LLM calls; the Decision Keeper agent uses Rovo's built-in model.

Built With

Share this project:

Updates

Submission history