Skip to content

About

Precedent, a Forge app for Jira and Confluence (Codegeist 2026): documentation, architecture and measurements. Code is private; access on request.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Precedent logo

Precedent

Forge Forge LLMs Rovo Runs on Atlassian Tests

Leer en español · Architecture · Arquitectura

Source code. The code is private during Codegeist 2026. This repository holds the public documentation: what Precedent does, its architecture, security model and measurements. To request access to the code, write to hugo.valer@gmail.com. Judges install Precedent from the installation link in the Devpost submission.

Your team already decided. Precedent remembers, and speaks up before you repeat history.

A Forge app for Jira and Confluence, built for Codegeist 2026 (Apps for Software Teams).

Teams decide things in Jira comments and Confluence pages, then forget them. Months later someone opens an issue that goes against a decision nobody remembers, and the same discussion starts again. Precedent reads where decisions are made, keeps each one with the exact quote it came from, and warns when new work contradicts one. Only a person turns a proposal into a decision, and every change is written to a tamper-evident log.

What it does

Where What you see
A comment is added in Jira Precedent reads it. If it states a decision (or revokes one), it becomes a proposal with the exact quote
An issue is created It is checked against the project's current decisions. A contradiction shows the decision, the sentence of the issue that conflicts and why, with three ways out: adjust the work, mark it as not a contradiction (with a reason), or revoke the decision (with a reason)
Every issue, right column A status lozenge: 1 contradiction, 2 to review, Resolved, Clear, Not checked
Issue panel Proposals from that issue's comments (confirm, dismiss, or confirm as a replacement of an earlier decision), contradictions and their resolution
Project page Decisions The register: what is waiting for review, current decisions with their source, and history (superseded, revoked, dismissed)
Project settings → Precedent Load sample data: a reporting team or a support desk (four synthetic issues each, to try the whole cycle), read the project's existing history once in the background, and link the Confluence space where the team writes decisions
Precedent agent in Rovo chat "What did we decide about X, and why?", "check this before I reply", "record a decision on this issue" (as the user's comment, so it is still a proposal)
MCP tools (rovo:mcp, Preview) The same three actions for external AI clients, once a site admin enables them; one client can ask several sites, each with the user's permissions there
Company-wide decisions A Jira admin can make a current decision apply to every project. Issues of other projects are checked against it and see where it was taken; it can only be revoked in its own project
Confluence space linked to the project Pages are read every few minutes. Native decision items marked as decided become proposals as they are; other paragraphs go through the same extraction. Proposals are reviewed in Jira
Precedent decisions macro in Confluence The project's current decisions, marking those that came from that page

Principles

  • No source, no decision. Every decision keeps the exact quote it came from. An extraction whose quote is not literally in the source is rejected.
  • People decide. Extracted items are proposals until someone confirms them. Dismissing, revoking and overriding a contradiction all require a written reason, and all of them are logged.
  • Tamper-evident log. Every change is an entry in a SHA-256 hash chain; each stored decision must match the state its last entry recorded. The panel and the register say whether the chain verifies.
  • Nobody sees more through Precedent than they could see without it. Comments restricted to a role or group and pages with read restrictions are never read. JSM internal notes are read and shown only to people who can open that note. If a source is later restricted or deleted, what came from it is withdrawn. Decisions are shown only to viewers who can open their source, checked as that user; a hidden decision still counts in checks, without its words.
  • Failures are never silent. A check that cannot be completed is shown as failed, never as "no contradiction".
  • Read-only in Confluence. The app asks for no Confluence write scope.

How it works

Precedent architecture: sources, Precedent on Forge, and where people see it

More diagrams (step-by-step check, decision lifecycle, hash chain, visibility) in docs/architecture.md.

Built with

Technology Used for
Atlassian Forge (Node.js 24 runtime) Hosting, functions, permissions, asUser() calls
Forge UI Kit (React) Issue panel, status lozenge, Decisions tab, settings page, Confluence macro
Forge LLMs (claude-sonnet-4-6) Decision extraction and contradiction check, on Atlassian infrastructure
Forge KVS Decisions, hash-chained log, check results, job state
Forge async events + scheduled trigger History read, sample data, Confluence sync every five minutes
Rovo agent + actions Ask, check and propose from Rovo chat
Rovo MCP (rovo:mcp, Preview) The same actions for external AI clients
Jira, Jira Service Management, Confluence REST APIs Comments, internal notes, issues, pages, visibility checks
Node.js crypto (SHA-256) Tamper-evident log
node:test 89 tests, no external test framework
  • Runtime: Forge (Node.js 24), UI Kit, Forge LLM (claude-sonnet-4-6), Forge KVS, Forge async events queue, scheduled trigger.
  • Modules: jira:issuePanel, jira:issueContext (status lozenge with dynamic properties), jira:projectPage, jira:projectSettingsPage, macro, trigger (Jira issue and comment events), consumer, scheduledTrigger, llm, rovo:agent, action, rovo:mcp.
  • Installation: Jira is required and Confluence is optional (app.compatibility), so a site with only Jira can install it and a site with both gets one installation. Data lives on the Jira side; the Confluence macro reads a copy of the current decisions that the Jira side publishes as Forge app properties.
  • Cost: comments are sent to the model in batches of up to ten from the same author, as JSON data under random references (so one comment cannot steer how another is read). Batching cut tokens per comment by about half with the same accuracy (see measurements).

The code (private) is organised as: app/src/domain (decision lifecycle and hash chain, pure), extraction and check (prompts and strict validation, pure), store (key-value interface: Forge KVS in the app, in memory in tests), actions.js (what Precedent does), confluence, backfill, resolvers, frontend.

Measurements

All data is synthetic. Details in docs/measurements.

What Set Result
Decision extraction Independent set written without seeing the prompts (45 comments, English and Spanish) precision 100 %, recall 100 % (one call per comment); 100 % / 94 % in batches of ten (the one miss is labelled ambiguous)
Decision extraction Project history (56 comments, 12 traps) precision 100 %, recall 100 % in batches; 0 of 12 traps extracted
Contradiction check Independent set (22 work items, 15 decisions incl. revoked and superseded) 22 / 22 correct in three runs
Contradiction check Project set (13 work items) 13 / 13
Cost Tokens per comment, input + output 339 + 102 one by one → 172 + 61 in batches

Limits: the sets are small and synthetic; real comment formatting (mentions, code, long threads) and projects with hundreds of decisions have not been measured.

Provenance

This repository was created from scratch on 2026-11-02 by its author, on personal time, equipment and accounts, for Codegeist 2026. It contains no code, designs, templates or prompts from any employer or third-party project. All demo data is synthetic.

About

Precedent, a Forge app for Jira and Confluence (Codegeist 2026): documentation, architecture and measurements. Code is private; access on request.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors