Inspiration

Software teams increasingly delegate ticket implementation to AI coding agents like Cursor, Claude Code, and Rovo. When those agents start coding, they treat a Jira ticket's description as absolute truth, even if a linked Confluence RFC was quietly updated yesterday, a security review tightened a rate limit from 100 req/min to 20 req/min, or a sibling sprint ticket is already rewriting the exact same OAuth module.

By the time a human catches the mismatch in code review, hours of work and tokens are wasted. We built DriftLock as an automated Pre-Flight Gate inside Atlassian Forge so neither humans nor AI agents take off on stale context.

What it does

DriftLock bridges Jira, Confluence, Rovo, and external MCP coding agents with five core capabilities:

  1. Spec Drift & Numeric Contradiction Detection: Compares a Jira ticket's description and comments against linked Confluence pages and a locked baseline snapshot in Forge Key-Value Storage (@forge/kvs). It flags silent numeric contradictions (rate limits, TTLs, timeouts, retry limits), Confluence version updates, and unpromoted scope creep in comment threads.
  2. Sibling Sprint Collision Radar: Scans active project tickets by components, API routes, and canonical technical entities to catch two engineers or AI agents about to modify the same subsystem concurrently.
  3. AI-Agent Readiness Gate (CLEAR / WARN / HOLD): Computes a 0-100 Readiness Score and 5-point engineering checklist inside a native jira:issuePanel, plus a full jira:projectPage Command Radar with a What-If Spec Change Blast Radius Simulator.
  4. Rovo Agent & Atlassian MCP Server (rovo:agent + rovo:mcp): Exposes 6 deterministic Forge actions so Rovo Studio and external MCP clients (Cursor, Claude Desktop) can query readiness, lock baselines, check collisions, simulate blast radius, map Teamwork Graph context, and record pre-flight audit checks before writing a single line of code.
  5. Teamwork Graph Context (requestTeamworkGraph): For any Jira issue, DriftLock asks the Atlassian Teamwork Graph which Confluence pages and sibling work items are related to it, then flags hidden context: pages the graph connects to the ticket that the ticket never links to. The same result is exposed to Rovo and MCP clients through the map-teamwork-context action. When the live graph query is not configured or the admin has not granted the graph scopes, DriftLock falls back to an equivalent locally derived graph and labels it clearly in the UI.

How we built it

  • Atlassian Forge Platform (nodejs22.x): Built with @forge/api, @forge/resolver, and @forge/kvs. Customer data stays inside Atlassian.
  • Deterministic Spec Analysis Engine (src/engine/): Shared pure TypeScript modules performing spec fingerprinting, clause extraction, unit-normalized numeric constraint comparison (req/min vs rps, hours vs minutes, s vs ms), entity-based collision detection, and blast-radius ranking. No external LLM keys are required.
  • Rovo & MCP Integration (manifest.yml): Combines rovo:agent, rovo:mcp, and 6 typed action modules backed by Forge functions.
  • Custom UI (static/frontend/): React + TypeScript + Vite interface with an SVG Confluence-to-Jira dependency graph, a 1-click Demo Scenario mode for instant evaluation on fresh sites, and live Atlassian REST integration.
  • AI assistance: This project was built with the help of Claude (an AI assistant). The demo video narration is AI-generated.

Challenges we ran into

  • Cross-unit specification drift: Teams often write 24 hours in Jira and 1440 minutes or 15m in Confluence, or 100 req/min vs 2 req/sec. Normalizing units inside the deterministic parser was essential to prevent false positives while catching real contradictions.
  • Teamwork Graph is a Preview API that runs only as the current user: The graph needs per-object read:graph:* scopes and a saved query, and returns empty results rather than errors when scopes are missing. We wrapped the call so every failure degrades to a labeled local graph instead of a blank panel.
  • Judge evaluation on clean sites: Fresh Forge test sites often lack linked Confluence RFCs and active sprint history, so we built a toggleable Demo Scenario (Payments & Auth Core v2.4) backed by the exact same analysis engine alongside live Jira/Confluence API fetching.

Accomplishments that we're proud of

  • Dual Rovo + Atlassian MCP architecture: All 6 pre-flight tools are designed to work identically whether invoked from the Jira UI, Rovo Chat, or an external MCP client, with every check written to a persistent Pre-Flight Audit Log.
  • 10-second clarity: Developers see an immediate HOLD or CLEAR stamp, highlighted before/after diff snippets, and an interactive blast-radius graph without wading through cluttered dashboards.

What we learned

Atlassian's unified action module makes it clean to share deterministic engineering guardrails between human-facing Rovo Agents and IDE-facing MCP clients while keeping customer specs inside Forge storage.

What's next for DriftLock

  • Webhook triggers on Confluence page_updated events to automatically re-score linked Jira tickets in the background.
  • Bitbucket / GitHub PR status checks gated on DriftLock's CLEAR clearance.

How to test

Install via the installation link, open any Jira project, and open the DriftLock Radar tab in the project navigation. Click Switch to Demo Scenario to see the Payments & Auth Core v2.4 scenario (6 tickets, 3 on HOLD, 7 spec drifts, 1 sprint collision). On any work item, open the app menu next to the issue title and choose DriftLock Pre-Flight Radar for the per-issue panel.

Privacy policy: https://17291856.github.io/driftlock-legal/privacy Terms of service: https://17291856.github.io/driftlock-legal/terms

Built With

Share this project:

Updates

Submission history