Inspiration

Modern software teams do not fail on release day because developers cannot write code — they fail because release context fractures across Confluence PRDs, Jira Acceptance Criteria, and multi-hop issue blocker chains:

  • Silent Spec & Numeric SLA Drift: A Confluence PRD tightens checkout latency to p95 <= 250ms with max 3 retries and an HTTP 409 Conflict idempotency clause, while the Jira ticket in review still reads <= 800ms, 5 retries, and drops HTTP 409 altogether.
  • Hidden Circular Blocker Deadlocks: Multi-hop Blocks / Is Blocked By links quietly form cycles like PAY-102 -> PAY-104 -> PAY-105 -> PAY-102, anchored by an unassigned, stale infrastructure ticket.
  • Unreviewed Mid-Sprint Scope Creep & Manual Rituals: Late-sprint endpoints (/api/v2/refunds/bulk) land without PRD review while release leads burn hours hand-compiling Go/No-Go checklists.

We built SpecDrift Guard to bring deterministic, verifiable release intelligence natively into Jira Cloud, Confluence Cloud, and Atlassian Rovo — running 100% on Atlassian Forge with zero external infrastructure.

What it does

  1. SpecDrift Control Tower (jira:projectPage): Computes a deterministic 5-Pillar Release Risk Score (0–100) across Spec & AC Drift (0–25), Blocker Chains & Cycles (0–25), Scope Creep Velocity (0–20), Verification & Rollback Gap (0–20), and Ownership & Staleness (0–10). Renders an interactive SVG Risk Gauge, a 3-Color DFS Dependency & Cycle Graph, a Sprint Spec Drift & Confluence Coverage Matrix, and 1-click Go/No-Go Checklists compiled to Jira ADF JSON, Confluence Storage XHTML (<ac:structured-macro> + <ac:task-list>), and Markdown.
  2. SpecDrift Jira Issue Panel (jira:issuePanel): Lives beside every Jira work item to compare Jira Acceptance Criteria against linked Confluence PRDs in real time. Flags 7 structured drift classes (NUMERIC_MISMATCH including cross-unit latency like 250ms vs 1s, MISSING_AC, ORPHAN_SCOPE, UNCHECKED_CRITICAL, INCOMPLETE_SUBTASKS, STALE_SPEC_SYNC, and MISSING_SPEC_LINK), supports inline AC editing with instant re-scoring, and posts formatted Jira ADF audit comments in one click.
  3. SpecDrift Release Guardian (rovo:agent + 4 Forge action modules): Brings conversational release triage to Atlassian Rovo without hallucinations. Every prompt routes through 4 deterministic Forge actions (audit-issue-drift [GET], analyze-release-graph [GET], generate-release-checklist [CREATE], and snapshot-release-gate [UPDATE]) with auditable JSON execution traces.
  4. Hourly Drift Sweep (scheduledTrigger + @forge/kvs): Runs hourly via asApp() across tracked projects, persists immutable Release Gate snapshots in Forge Key-Value Storage, and calculates Pre-Mortem Δ risk trends (IMPROVING / DEGRADING).

How we built it

  • 100% Runs on Atlassian (nodejs22.x): Built strictly with @forge/api, @forge/kvs, and @forge/resolver — zero external servers, zero external databases, and zero external LLM API keys.
  • Zero-Dependency Pure Deterministic Engine (src/engine/): Modular pure-JavaScript parsers and analyzers (adf.js, driftDetector.js, dependencyGraph.js, releaseScorer.js) shared identically between Forge backend handlers and our strict-CSP Custom UI (static/dashboard/).
  • Minimal Scopes & Graceful Degradation: Declares only 5 necessary scopes (read:jira-work, write:jira-work, read:page:confluence, write:page:confluence, storage:app) and degrades gracefully on Jira-only sites without Confluence links.
  • Dual-Mode Architecture: Runs natively inside Jira Cloud via @forge/bridge AND powers our zero-sign-in live sandbox on GitHub Pages executing the exact same deterministic engine in-browser.

Challenges we ran into

  • Cross-Format Specification Parsing: Jira Cloud REST API v3 returns structured Atlassian Document Format (ADF) JSON while Confluence REST API v2 returns Storage XHTML (<ac:task-list>). We built dedicated bidirectional parsers and generators (src/engine/adf.js) so checkbox states, headings, and numeric thresholds normalize identically across both products.
  • Cycle-Safe Critical-Path Analysis & Graph Rendering: Naive recursion infinite-loops on circular Jira blocker links. We implemented 3-color DFS cycle detection with safe critical-path extraction, and refined our deterministic SVG graph layout so both dense cyclic sprints (PAY-101..106) and compact healthy releases (CORE-401..403) render cleanly with zero node overlap.
  • Cross-Unit Numeric Drift Comparison: Catching real SLA divergence required normalizing heterogeneous units (e.g., 250ms vs 1s, 3 retries vs 5 retries) so subtle unit changes never slip past review.

Accomplishments that we're proud of

  • Official @forge/manifest v13.9.1 Validation: Passes Atlassian's full schema validator with 0 errors and 0 warnings across 5 Forge modules, 6 functions, 4 Rovo actions, and 5 scopes.
  • 12/12 Passing Automated Node Tests (1.97s): Full deterministic coverage across ADF/XHTML parsing, all 7 drift classes, circular deadlocks, critical-path bottlenecks, 5-pillar risk scoring (NO_GO -> GO), ADF/XHTML checklist compilation, all 4 Rovo actions, hourly asApp() sweeps, and live Forge manifest validation.
  • Zero-Defect Live Interactive Sandbox: Verified in headless Chromium at 1280x720 and 1920x1080 with 0 console errors, 0 page errors, and 0 horizontal overflow, letting any judge watch Payments Core v2.14.0 drop live from 83/100 NO GO to 37/100 CONDITIONAL GO in two clicks.

What we learned

  • Grounding Rovo Agents in strict, typed Forge action handlers (GET, CREATE, UPDATE) transforms conversational AI from speculative commentary into an auditable engineering release gate.
  • Sharing a pure, zero-dependency analysis engine across Forge serverless handlers and Custom UI keeps UI latency instantaneous while guaranteeing identical audit math everywhere.

What's next for SpecDrift Guard

  • Native Bitbucket Cloud & GitHub PR diff ingestion via Forge web triggers to correlate merged pull-request endpoints directly with Confluence PRDs.
  • Organization-wide multi-project Release Calendar & custom SLA threshold policy packs stored in @forge/kvs.
  • Automated Slack/Jira transition gate hooks that hold release transitions when circular deadlocks or critical SLA drift exceed team policy.

Built With

Share this project:

Updates

Submission history