Inspiration

I build websites for small businesses. The hardest part is not the code. It is the "one more small change" from a client. The contract lives in one document, the request lives in a ticket, and nobody checks one against the other. Each small yes becomes free work.

What it does

Scope Guard is a Forge app with a Rovo agent for teams that build for clients in Jira.

  • One click from a Jira issue asks the Scope Guard agent to check the request against the client's contract (SOW) in Confluence.
  • Three clear answers: IN SCOPE, OUT OF SCOPE (with a price taken only from the contract's rate card), or NEEDS REVIEW when the contract is unclear.
  • Evidence, not guesses: every verdict quotes the contract word for word. The server checks every quote and price against the contract before saving, and OUT OF SCOPE is only allowed when the request matches the contract's exclusion list or a used-up revision limit.
  • A person approves every result. Nothing is sent to the client automatically.
  • Revisions are counted from records, not from what the client says. "This is just our first round" does not reset the count.
  • Project summary: every check is added up into "free work avoided" for each contract.
  • Contracts from PDF: a contract PDF attached in Confluence can be turned into a structured SOW page for a person to review. Scope Guard warns when the original PDF is visible to everyone.
  • Permissions respected: all reads run as the current user. No access to the contract means no answer.

How we built it

  • Atlassian Forge: Jira issue panel, Jira project page and project settings page, Confluence content action, Forge storage
  • Rovo agent with three actions: get-request, get-contract, record-verdict
  • All reads use asUser(), so Jira and Confluence permissions apply
  • PDF text extraction runs inside the Forge function
  • No external services and no Forge LLM calls. Rovo does the reasoning, and data stays in Atlassian
  • 47 automated tests for quotes, prices, revision limits, verdict rules and permissions

Challenges we ran into

  • AI agents tend to call anything not listed in a contract "out of scope". We added a strict rule and a server-side check so OUT OF SCOPE needs a real exclusion or a used-up revision limit; everything else becomes NEEDS REVIEW.
  • Counting revisions correctly when a request is re-checked, so one ticket is never counted twice.
  • Bundling a PDF parser so it works inside Forge.

Accomplishments that we're proud of

  • The agent cannot invent a quote or a price: the server rejects anything that is not in the contract.
  • The human stays in control, and the summary turns small decisions into a number a business owner understands.

What we learned

Context is what makes an agent trustworthy. The same model gives far better answers when it reads the real contract, the real ticket and the real history, and when the app checks its work.

What's next for Scope Guard

  • Change-request documents created in Confluence after approval
  • More contract formats and multiple contracts per project
  • Marketplace release
Share this project:

Updates

Submission history