Skip to content

Review Process

Mohammad Rasoul Kazemi edited this page Nov 26, 2026 · 2 revisions

Review Process

A large part of KingresDB is checked by independent reviews. Each is a report in kingres/docs/reviews (119 files, dated 2026-11-14 to 2026-11-23). This page describes how the reviews work in practice, taken from the reports and from how kingres/README.md and the work log record them. There is no separate written review policy file in the repository: the format below is observed from the reports, not prescribed by a document, and the README of the reviews directory does not exist.

What a review is

  • Independent. The reviewer did not write the code. Reports state it ("Reviewer: independent (did not write the code)") together with the commit and extension version under review.
  • Read-only. Nothing in the tree under review is changed except the report file. Builds, experiments and mutants run in private copies of the installation and of the tree, with their own ports and work directories, bounded in time and disk, and without touching other jobs' processes.
  • Against the design. The reviewer reads the design document of the phase and the user-facing README, then the code, and checks each claim of the README. A README that claims more than the code does is itself a finding ("Is the README honest about the window, the refusals and the cost?").
  • On both majors. Builds are clean with warnings as errors on PostgreSQL 18 and 19, and the suites run on both.

Report format

The reports share a shape (they vary in detail):

  1. Title, reviewer statement, tree and version under review.
  2. Scope and method: what was read, in which order, what was run (per major), with the limits stated (an incomplete review says so, for example "This review is INCOMPLETE" with a "Not covered" section).
  3. Summary: a count by severity and the most serious findings.
  4. Answers to the questions put to the reviewer (for example whether an earlier finding is really fixed, whether the online engine is correct, a security round).
  5. What held under attack: attempts that failed to break a claim.
  6. Mutants: a table of one-line mutants with results.
  7. Findings, each with an ID, a severity word and a title.
  8. Not reproduced, Not examined and housekeeping notes (private work left behind, cleanup).

Findings

Severity words are critical, high, medium, low and note. Finding IDs are a short prefix of the review plus a number, such as P9B-01 (phase 9, second review), T13-01 (timepart conversion) or FO-01 (failover); a later round continues with a new prefix and says which earlier findings it checked. A finding gives the file and function, numbered steps (on which majors, how many nodes), the expected result, the actual result, the cause, and the precondition that makes it matter. A suspicion counts as a finding only when a script showed it; unreproduced ones go in "Not reproduced".

From finding to fix

  1. The author fixes each finding with a test that fails without the fix. The test is also tried against a one-line mutant that removes the fix.
  2. The fixes are committed and recorded in the work log entry of the day: what was done, how it was verified, what is still open.
  3. A fix is not trusted until a later review has attacked it. Review rounds are numbered in the file names (...-fixes, -second-fixes, -third-fixes and so on).
  4. A later round checks that earlier fixes hold and typically finds new defects in the fixes themselves. The README says plainly when the fixes of the latest round have not been reviewed again, so a statement about review state belongs to the README, not to this page.

How the README records the state

kingres/README.md is the single place for the state of each phase: a table of the phases with their status and a link to the design, and the limits of each extension in its own README. "Done" there means written, tested and reviewed where the work log says so; the work log and the reports in kingres/docs/reviews hold each review and what it found. The README is the authority over the wiki; where the two differ, the README is right (Status and Roadmap, Limitations and Known Issues).

Review requests

A review is requested for a delivered part (a phase increment or the fixes of a round). Typical questions: is a named earlier finding really fixed; is the engine correct under concurrency, crash and cancel; is there a privilege problem (a non-superuser's code run as superuser, an injection through names); do the documented limits match behaviour; do the tests kill their mutants. The reviews also compare generated statements with a single node and inject faults (Testing Strategy).

Other review-like checks

  • Check against the design. A phase can also be checked against its design document (for example the configuration work of phase 13, with its own reviews of 2026-11-22), with the findings recorded in the README and the work log.
  • Needs-verification items. An item the architecture document marks [Needs verification] is checked against the PostgreSQL source or documentation before code depends on it, with the result in the work log (Coding Standards).
  • Reviews of control-plane parts. The control plane is reviewed the same way (for example the review of the wiring of anchoring and the fixes of the publication, 2026-11-20).

Sources

Clone this wiki locally