Nostro/.review-gates/lenses/repo-better-solution.md
Jorijn van der Graaf 564fcdfe0e
build: add the pre-push review's configuration
.review-gates/config.json configures Crafter.Review's pre-push review
for this repository. Its commits mode lists four lenses:
repo-better-solution, repo-bug-prover, repo-security and repo-facts.
For each it names a section of this repository's own, under
.review-gates/lenses/. It sets requireSigned, forbids AI attribution
trailers, and lists fourteen gate0 commands: the version check, the
tests, a build of each product and five lint runs. It names no
authors: a patch that came by mail, as the README asks for one, keeps
its author.

One of the five lint runs is new to the guide: the daemon's, whose
sources list implementations/nostrod.cpp, which the other four's do
not. "Code style" and the command list name it.

.gitignore gains the review's two generated directories.

AGENTS.template.md gains the directory in its table and two commit
guidelines about the review, puts the review into the release recipe
before the tag, names the two generated directories among what is never
committed, and loses the sentence that asked for a Co-Authored-By
trailer on a commit an agent wrote.
2026-11-22 08:30:35 +01:00

3.2 KiB

This repository: Nostro

A banking client for Linux that holds people's bank keys and moves their money. The stated design is README.md (the manual), AGENTS.template.md (the contributor guide; AGENTS.md is written from it and the dependencies' notes by every crafter-build run, and is not in the tree), AGENTS.consumer.md (the notes agents in a consumer of the library get) and the contracts the guide names: the interfaces under interfaces/, Transaction for the bytes on disk, packaging/dbus/*.xml and packaging/system/net.catcrafts.Nostro1.policy for the system bus. The guide's "Design rules" and "Security considerations" are the owner's decisions: a range that departs from one without saying so is a finding; whether one should change is the owner's call, not a defect of the range.

The layers are the guide's "Project overview": the library and its connectors, nostrod's front and its workers, the CLI, Nostro.Checkout, the toolkit, the app, the window, project.cpp, the packaging and the one workflow. Read there, and in design rules 1, 8, 11, 12 and 13, what belongs in which before judging where a change sits. The questions this repository adds to the charter's:

  • Does a client decide what nostrod should (design rule 8)? The guide has the app's own checks only spare the user a round trip.
  • Does logic sit in a main, or twice, in the CLI and in the app, where design rule 8 wants it in a partition of the library?
  • Does the window (Nostro.Ui.Shell, implementations/nostro-app.cpp, Nostro.DebugCommands) decide something that design rule 11 wants in the toolkit or the app, as a function a test can call?
  • Does anything of the library, nostrod, the CLI or Nostro.Checkout import or include anything of the app (design rule 13)?
  • Does a bank's own code sit where the guide's "Adding a bank" puts it?

Search first:

  • The partitions' own helpers, which the guide's "Project overview" lists partition by partition, before a new one beside them.
  • What the tree already depends on, before a hand-rolled copy: Crafter.Network, Crafter.DB, Crafter.Graphics, libsystemd's sd-bus and sd-event, OpenSSL and the vendored lib/json.hpp.
  • The system's own mechanisms, before one of nostro's: polkit's policy and an administrator's rules, D-Bus activation and systemd, Flatpak's permissions. The guide's "The app end to end" says which confirmations of the app's own were taken out and which are the design: a range that puts one of the former back is a finding.

Commit shape here: the guide's "Commit and PR guidelines", its "Testing instructions" and design rule 5 say what a change brings with it. A range that leaves one of those things behind is a finding.

Compatibility: the guide's "Dev environment" says what an install keeps on disk and where, design rule 5 what may change in the transaction tables, and design rule 10 what may change on the bus. Judge a range against an install that is not fresh: files an earlier release wrote under nostrod's state directory, a client and a nostrod a release apart, system files (packaging/system/) older than the Flatpaks, a consumer built against AGENTS.consumer.md as it was. A range that works only on a fresh install, or breaks one of these without documenting it where its users read, is a finding.