In one line: a Jira issue panel that says which acceptance criteria are still proven after a pull request, and the fewest tests to rerun to get the rest back.

  • Per criterion, on the issue. Each criterion is proven, needs a rerun, needs confirming, failing, or has no proof, from the lines its tests actually ran.
  • Only tests a change can affect rerun. On express, 79% fewer test runs on the 9 code and test changes, 28% across all 33 changes that needed runs (dependency updates still rerun the suite); the selected tests caught all 105 injected faults the full suite caught.
  • AI helps, code decides, people confirm. The Rovo agent, and MCP clients such as Claude Code, explain states, suggest links and draft tests; only a recorded CI run can prove a criterion, no link an agent suggests and no test it drafts is applied until a person approves it, and every link, approval and run is kept with who and when.
  • The loop, end to end: an edited line no test runs → the agent drafts a test for it and a person approves it → CI records it running that line, links it, and its own result decides.

Inspiration

Teams treat a Jira issue's acceptance criteria as done once the tests linked to them pass. Then a pull request changes the code. Are those passes still evidence? Usually nobody knows. Teams either rerun everything or trust results that may no longer describe the code. Neither tells you which criterion is actually at risk.

The people who sign an issue off are rarely the ones who read the CI log. A product owner accepting a story, QA deciding what to retest, an auditor asking what was verified and when: each needs the answer per acceptance criterion, on the issue, with a record of who linked which test and which run proved it. Evidence Gate gives that answer. Its proof history shows when each upload arrived, from which repository, commit and CI run, and who linked, approved or confirmed what in Jira. For teams with formal release sign-offs, that is a per-criterion execution and approval trail on the issue, rather than one buried in per-build CI logs.

Who Before With Evidence Gate
Product owner signing off Asks the team whether the passes still hold Reads it per criterion on the issue, or asks Rovo
QA deciding what to retest Reruns everything, or guesses Copies a command for the affected tests only
Reviewer of a pull request Sees a green build Sees which criteria the change put at risk, and any edited line no test runs
Auditor Searches CI logs Reads the issue's history: each run, link and approval, with who and when

What it does

Evidence Gate answers one question on the Jira issue: which acceptance criteria lost their proof after this change, and what is the least you have to rerun to get it back?

Five pull requests on the bundled sample service (seven tests, five criteria), each run both ways:

Pull request Rerun the whole suite Evidence Gate
late-status: one line in the late-refund branch 7 tests, 1 fails 1 test reruns and fails; AC-4 is marked failing, with the edited line and the assertion
format-only: formatting and comments 7 tests, all pass nothing reruns; nothing loses proof
cap-bug: a shared calculation 7 tests, 1 fails 4 tests rerun; AC-2 fails, the other three are proven again
zero-refund: a line no test runs 7 tests, all pass: green nothing reruns, every proof holds, and the edit is named as run by no test
zero-refund-tested: the same edit, plus the test drafted for it, in a new test file 8 tests, 1 fails only the new test runs; it ran the edited line, so it is linked to AC-2, and AC-2 fails with its assertion

The issue panel opens with one sentence, such as "1 criterion lost its proof", and a Copy rerun command button that names only the tests that need to run, for example 1 test of 7. The criteria are the ones written in the Jira issue. If someone rewords one after its tests passed, the old proof stops counting until a person confirms the tests still cover the new wording, so a changed requirement can't ride through on yesterday's green run.

Below the summary, criteria that need a person come first (failing, then needing a rerun, then without proof), and each shows its state, the reason in plain language, and the tests and functions behind it. When a change puts a criterion at risk, the panel shows the changed function line by line: which lines its tests ran, and the line the change edited. When a rerun fails, the assertion that failed sits under the test. When a criterion has no proof and CI has recorded a test nobody linked, the panel offers that test; linking it makes its recorded run the proof, without rerunning anything.

State Meaning
Proven Every linked test passed, and none of the code it ran has changed since
Needs rerun The change edited a line one of its tests actually executed
Failing A linked test failed on the recorded code
Needs confirming The criterion was reworded in Jira after its proof was recorded; a person confirms its tests still cover the new wording
No proof No test is linked, a test has no recorded run, or every linked test runs no product code at all

One more case is easy to miss: a pull request that edits a line no test runs. No criterion depended on that line, so nothing loses proof, and a coverage-blind tool would show all green. Evidence Gate names the edit in the panel, and on the pull request's status, which stays green because no criterion's proof changed but lists the edit in its description. The Rovo agent can draft a test that runs it. A drafted test then goes the whole way through the gate. Once you approve it, the agent records it as expected for a criterion; on the next push, CI records it on the pull request too, because tests the base never had run alongside the affected ones; and the link is made only if its recorded run executed one of the edited lines, not merely the function that holds them. Its own result decides. In the sample, the test drafted for the zero-refund edit fails on that pull request, so AC-2 fails and the issue cannot move to Done until the edit is fixed.

Under the criterion, a short trail shows how that test was linked and what its run found: the edited lines the test was drafted for, who approved it and when, the CI run that recorded it running those lines, and its result. A test a person linked by hand shows who linked it and when.

The "No proof" state catches something similar. In the sample, a criterion about notice language is linked to a test that only checks a header colour. That test passes, but it runs no product code at all, so Evidence Gate refuses to call it proof. The guarantee is about execution, not assertion quality: a test that runs the edited line but asserts nothing useful still counts as having run it. What Evidence Gate rules out is a test that never touched the code being called proof of it.

How it works

  1. The criteria live in the Jira issue.
    • Write them in the description, one per line, such as AC-4: Refunds requested after 30 days need a manager's approval. Or keep the list a team already writes: with no AC- labels, the list under an "Acceptance criteria" heading becomes AC-1, AC-2 and so on.
    • No custom field, project template or Jira admin change. A criterion can sit in a paragraph, a bullet or task list, a table cell or a panel.
    • Tests are linked in the issue's panel, by picking from the tests CI has recorded; recorded tests whose names closely match a criterion are suggested first. A test can also name its criterion in its title, [AC-4] ..., or be linked in an optional requirements.json. Links add up, and a link made in Jira survives later uploads for as long as the test exists.
    • One repository serves many issues: a pull request is checked for every issue its branch names (feature/EG-2-..., or feature/EG-2-EG-3-... for one change that serves two), each set up from the base's proof with its own upload and build status (tested).
    • Tests that never run product code in the test process, such as end-to-end tests against a deployed app, show as No proof for the criteria they are linked to; by default that does not hold the issue, so they can sit beside the unit and integration tests that do prove criteria.
    • A reworded criterion stops counting as proven until a person confirms its tests still cover it. Case, spacing or punctuation alone is not a rewording.
  2. CI records proof.
    • Each test's own coverage: Node's test runner and Mocha with V8 block coverage, Jest in one ordinary run with istanbul counters, Vitest with its V8 provider, Python with the interpreter's line events.
    • Evidence Gate keeps the exact source ranges each test executed, and the message of any failure, against the criteria's wording at that moment.
    • Only the first recording runs every test. After that, main's CI records only tests whose executed code, test file or configuration changed, plus new tests, and carries the rest forward. In a file that changed, a carried-forward run falls back to the function-level rule until it runs again, so it can only rerun more, never miss a test.
  3. A pull request is compared line by line.
    • JavaScript, TypeScript and Python are fingerprinted from the syntax tree, so formatting and comments do not count. (TypeScript tests are recorded through Vitest.)
    • Changed lines are taken in the base file's own line numbers, the coordinates the coverage was recorded in, and matched against the ranges each test executed. A pure insertion counts as an edit to the line above it.
    • An edited test file invalidates its own tests; a new test file only adds its tests, which run on the pull request. A dependency or configuration change invalidates everything; linter, formatter and editor settings and package.json metadata do not.
  4. Only affected tests rerun, and the result gates the work.
    • CI reruns exactly those tests and uploads the results.
    • Each pull request gets Evidence Gate's own build status per issue: red while a criterion fails, in progress while a rerun is owed, green otherwise. An edited line no test runs is named in it (red with EVIDENCE_GATE_UNTESTED=fail). A branch restriction on passing builds makes it a merge check.
    • A Jira workflow validator keeps the issue from moving to Done while a criterion fails, needs a rerun or needs confirming, and, if an admin turns it on, while one has no proof.
    • The same check runs locally before pushing, without uploading anything.
    • Every upload carries an HMAC with the site's secret, or a repository's own secret that signs only as that repository, optionally only for named projects, and is revoked on its own.
  5. Rovo and MCP explain and help close gaps.
    • Three tools, as Forge Rovo actions and through the app's Atlassian MCP module (rovo:mcp): read the proof state, link a recorded test, expect a drafted test. On the deployed site, Claude Code read the proof state over MCP and got the same states the panel shows.
    • For one criterion, the status tool returns its wording, its tests and failure messages, the changed function line by line with the lines edited and the lines run, and how the test file starts, so a draft follows the project's style. For a reworded criterion it returns both wordings.
    • From that, the agent explains why a criterion lost its proof, names what a new wording asks that the tests may not check, drafts a test aimed at the edited lines, and, after you agree, links a recorded test or expects a drafted one. It cannot mark anything proven.
    • A fresh install can store the bundled sample on an issue, so anyone can try the agent and the MCP tools without CI.

Adopting it can start small: point it at one package with --src and --tests, keep every test name as it is, and leave criteria a team accepts by hand without proof (by default they don't hold the issue). Connecting a repository takes one command from the app's settings page, checked against the SHA-256 the page shows. It writes the tools into the repository, detects the test runner and writes the pipeline for Bitbucket Pipelines, or a GitHub Actions workflow. Running it again upgrades the tools and leaves requirements.json and the pipeline as they are.

The work is divided so that each part does what it is reliable at

We call the pattern Tessera, after the Roman token broken in two so that the halves could later prove an agreement. Every Proven state in Evidence Gate rests on a recorded run of the code as it is now.

Step In Evidence Gate
Input The issue's criteria and the proof CI recorded
Model proposes Rovo explains states, drafts tests, suggests links and expected tests
Code decides Line-level matching of changes against executed code
Person confirms Linking a recorded test, approving a drafted test as expected, confirming a reworded criterion, deciding what to merge
Record keeps Every upload and link in the issue's history

How it differs from what Jira already shows

Rovo's code review helps judge whether a pull request's code meets the acceptance criteria on its work item, and the development panel shows whether a build passed on a commit. Evidence Gate adds a runtime record neither keeps: which lines each criterion's tests actually ran, and whether this change touched them. It complements them rather than replacing them.

Does it actually work on real code?

We tested it on expressjs/express, with rules written down before running. express uses Mocha, which records every test's coverage in a single run. express has no Jira criteria, so we measured the part that decides them: for each change, which tests Evidence Gate selects to rerun, against rerunning the whole suite.

Replaying real history. We replayed 60 consecutive changes on express's main branch (February to November 2026, about 1,250 tests each). 27 of them touched only documentation or CI files, so neither rule reran anything. Rerunning the full suite for each of the other 33 would have taken 41,513 test runs; Evidence Gate needed 30,065, 28% fewer. Most of that total is the 22 dependency or configuration changes, which rerun everything under our conservative rule (27,706 runs either way). On the 9 changes that touched code or tests it needed 2,359 runs instead of 11,286, 79% fewer, and the 2 changes to files that cannot affect behaviour needed none. A one-line trimRight() to trimEnd() fix needed 3 tests instead of 1,251. No test whose result changed was left unselected.

Injecting real faults. Because express's history rarely breaks a test, we also injected 150 single-operator faults into its source (flipped comparisons, swapped && and ||, inverted booleans). The full suite caught 105 of them. Running only the tests Evidence Gate selected caught all 105. None of the 3,084 failing tests was left out, and the selected set was a median of 6.3% of the suite.

Raw data, the frozen rules and two bugs found and fixed during the evaluation are in the evidence folder that comes with this write-up (evidence/evaluation/).

Python too. The same sample service, ported to Python, gives the same result under unittest and under pytest (where each test ran the same functions, and plain pytest test functions are recorded too): on its late-status pull request only AC-4 needs a rerun, the rerun fails with 'pending-approval' != 'needs-approval', and a comment or docstring edit counts as no change. Setup recognises a Python project, picks pytest when the project names it, and writes a workflow that installs Python; the tools themselves stay standard-library only and use the project's own pytest.

What we learned while building it

  • Function-level matching was not enough. Almost every test calls the main refund function, so any change would invalidate everything. Moving to line-level matching is what made "only one criterion changes" possible.
  • The first replay over-selected after comment-only edits, because anonymous functions were identified by line number. Identifying them by position within their parent fixed it.
  • Recording coverage per test inside one Mocha run was noisy until each test waited for its own asynchronous work to finish. After that fix, two recordings of the same code were identical in our checks.
  • Vitest writes no coverage report when a test fails unless told to. We found it when a deliberately failing test came back with no proof at all; a failing test's coverage is now recorded like any other.

Limits

  • Runners: Node's test runner, Mocha, Jest and Vitest for JavaScript (TypeScript through Vitest), unittest and pytest for Python, all tested. Python needs only Python 3 and the project's own runner (ast and sys.monitoring, or sys.settrace before 3.12). Mocha in CI reads lib/ by default.
  • Jest records every test in one ordinary run with coverage. On 67 tests it matched one process per test on every result and function, and on run lines for 66 (the other differs only on two method signatures that test never called), in 7 s instead of 105 s (evidence/jest-one-run.log).
  • Vitest still records each test in its own process, a few seconds per test, one per CPU core at a time. That full cost is paid on the first recording and when a dependency or configuration change could affect any test (22 of express's 33 non-documentation changes); otherwise only the tests a change can affect are recorded (in the sample, 1 of 7, with the same results as recording all seven; a test checks this). main --full records everything, for a nightly run.
  • On a pull request, CI reuses the proof main's CI uploaded for the commit it compares against, fetched with a request signed like an upload. The site keeps main's proofs for the last 10 commits of each repository, once for all issues, so pull requests opened before main moved on still find their base (tested: a pull request from an earlier main commit is compared against that commit's proof). Only a branch older than that, or a base main's CI never ran on, has its base recorded again before comparing.
  • What a recording costs, estimated from our measured times (Vitest about 3.9 s per test, each in its own process; Node's test runner, Mocha, Jest and Python record a whole suite in one run), for a 200-test project on a 4-core CI runner:

| Runner | A code change (a few affected tests) | A dependency change, or the first and nightly runs (every test) | |---|---|---| | Node's test runner, Mocha, Python | about as long as running those tests | about as long as one normal run of the suite | | Vitest | seconds | about 3 to 4 minutes | | Jest | about as long as running those tests | about one normal run with coverage: a 67-test suite took 7 s, against 105 s one process per test on 4 cores |

A team on Vitest that updates dependencies daily pays the full recording once a day; we would point it at its highest-risk package first (--src, --tests).

  • Size. Uploads, stored proof and the proof CI fetches back are gzipped. A proof modelled on express's suite (1,250 tests over 6 source files; our real express recordings were about 3 MB each, the model is larger on purpose) is 8.0 MB as JSON and 1.1 MB as uploaded (3.0 MB in a worst case where no executed range repeats), under Forge's 5 MB payload limit; storage splits it into keys under the 240 KiB value limit, and the panel receives full line data only for linked tests, 332 KB instead of 8 MB. A test checks each of these limits. A proof holds at most 2,000 tests.
  • One package at a time: --src and --tests scope the analysis, for example to one package of a monorepo.
  • CI: Bitbucket Pipelines is tested end to end on the sample repository. GitHub Actions uses the same tools through a workflow the setup command writes and GitHub's commit status API; the workflow and the status call are covered by tests, not yet by a run on GitHub.
  • The merge check needs Bitbucket's branch restriction on passing builds, which depends on the Bitbucket plan (on GitHub, a required status check).
  • Changes are matched by line, so an unexecuted branch on an executed line still counts as affected. This errs towards rerunning more.
  • A recorded run is as trustworthy as the CI that holds its secret. Evidence Gate verifies the HMAC, not the CI machine; a repository secret limits what a compromised pipeline can sign to its own repository and projects.
  • Unlabelled criteria are numbered by their place in the list. Inserting one in the middle renumbers those after it; their wording then differs from what was proven, so they wait for a person's confirmation rather than keep proof they may not have. AC- labels keep the numbers fixed.

What's next

The same one-run recording for Vitest, finer-than-line matching, and a dependency rule that only reruns tests whose packages actually changed.

Share this project:

Updates

Submission history