Meridian · Sample review

A real review, of real code, with nothing removed that matters.

This is a full Meridian review of seda-bus-java, an open-source message library of about 2,600 lines of Java that I wrote. The project began as a README, a design document and code. Meridian helped turn it into a defined architecture, then reviewed the code against it. Below is that review, shortened, with the findings quoted as the service wrote them.

The score

One number to push toward 100%, in four areas.

AreaScoreWhat it counted
Stakeholder alignment86%12 of 14 stated needs traced to a decision or measured
Design quality44%41 findings across the rules checked
Implementation95%19 of 20 decisions shown as designed in the code
Review coverage73%80 of 110 applicable rules checked
Overall alignment75%21 to fix now, 28 that could cause problems later, 3 minor

Each finding is a task. Fix it, run the review again, and the tick marks and the score move. The review lists what it could not check and why: here, 46 checks waited on five questions about the project that the owner had not yet confirmed.

The findings

Each one names what is wrong, where, and what to do about it.

These are quoted from the report. Findings are judged against the needs and decisions the owner defined, so what the owner marked as high priority decides what comes first.

Need not delivered: no envelope lost or delivered twice

High priority. Only partly delivered: an acknowledgement follows hand-over, but a pub/sub retry duplicates to subscribers and queued at-most-once envelopes are dropped at shutdown.

Fix: Fix the fan-out retry; report envelopes abandoned at shutdown.

No failure is silent

giveUp ignores the false that deadLetter returns on an I/O error, then acknowledges the message and deletes the persisted copy. A message can disappear with no record.

Fix: Check the dead-letter result and notify the listener on failure.

Delivery guarantees match the implementation

In fanOut, a partial subscriber failure retries every subscriber, so the ones that already succeeded receive the envelope twice.

Fix: Track hand-over per subscriber and retry only the failed ones.

Every queue and buffer is bounded

deadLetter.json grows without bound, and Block uses queue.put with no timeout.

Fix: Rotate the dead-letter file and add a Block timeout.

A test that cannot catch the bug it is named for

The test for many concurrent producers proves every envelope arrives, not that none arrives twice.

Fix: Assert no duplicate ids.

Documentation contradicts the code

TODO.md says retries are immediate, but the code backs off; a recorded decision says to leave a flaky test alone, but the changelog says it was fixed.

Fix: Update TODO.md, DESIGN.md and retire the stale decision.

Build is not reproducible and the target is untested

CI builds a dependency from HEAD rather than its pinned tag, and tests only on Java 17 while the target is Java 11.

Fix: Pin the tag and add Java 11 to the CI matrix.

Key-person risk is not recorded

One maintainer holds seven language ports in lockstep, and the cross-port conformance suite is still a TODO.

Fix: Record the risk and a mitigation; automate conformance before adding scope.

The full report has 58 open tasks. These eight are the ones the owner would read first. Every report ends with what it cost: this one cost 14 credits, about $7.00.

Did anyone act on it?

Yes, and it shows in the commits.

  • Six findings from three reviews match fixes committed within nine days.
  • Three loss paths found in the 23 November review were not raised again in any of nine later reviews.
  • Between consecutive reviews the report showed 5 tasks done, 4 new, and the alignment score up two points.

The review-to-fix trail shows the same defect in the review and in the commit. It does not prove one caused the other.

What we have not shown

The limits, stated plainly.

  • It does not find more defects than an open-ended expert review. A model given only the code found 5 verified defects Meridian never reported in five runs. What Meridian adds is that its findings are weighed against the architecture you defined.
  • It does not give the same result every time. Across five runs on unchanged code the score ranged from 67 to 73, and any one run reported 6 to 10 of the 11 verified defects the five found together. The structure and counts did not vary; the judged findings did.
  • This is one project, whose owner is also the author of the product.

How we know it works  ·  What it costs