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-21 06:39:19 +01:00
|
|
|
## This repository: Nostro
|
|
|
|
|
|
|
|
|
|
Nostro holds people's bank keys and moves their money. Its stated
|
feat: open payto links on the pay form, and take the checkout over D-Bus out
An app could have nostrod pay an order: it called Pay of
net.catcrafts.Nostro1.Checkout on the system bus, and nostrod paid from
an account the user had chosen, after a dialog of its own. On 2026-11-22
the owner decided that a link takes its place. The app registers for
payto links (RFC 8905), so that an app or a website can hand one to the
desktop, and shows a link as its pay form filled in.
The link:
- The app's desktop entry takes the scheme (Exec=nostro-app %u,
MimeType=x-scheme-handler/payto), and nostro-app takes an argument
that is no option as a link: it overwrites it in argv and hands it to
App::Open once the app has started.
- ReadPaymentLink (Nostro.App:Forms) reads payto://iban/<IBAN> with the
options amount, receiver-name and message, and refuses a link rather
than guess at it, in a sentence of the app's own with nothing of the
link in it. Among what it refuses: an IBAN whose check digits do not
hold, one of the three options given twice, instruction, a comma in
the amount, and a name or a message with a code point that is Unshown,
or Blank and no plain space.
- A link that is read waits until the accounts are read and
DefaultCheckoutAccount has answered or failed, with a line on the
accounts' page. Then App::TakeLink fills in the pay form, which says
in a banner that a link filled it in, and with more than one account
opens it under the choice of accounts that the form's From row has. A
link pays nothing: the form's button sends, and polkit's dialog
confirms as for any payment (design rule 12, and 14, which is new).
- Unshown and Blank are the two tables the worker's Shown() works from.
They move into Nostro:Utils, where the app's reader asks them too.
The move is within the library. The reader holds a link's name to
those two and to no more of Shown(): a name with an & is read, and
the dialog shows it with a + as it does any name.
The checkout:
- nostrod serves one interface under one bus name. Gone are
net.catcrafts.Nostro1.Checkout with its XML and its activation file,
the polkit action Checkout, the module Nostro.Checkout with
--product=checkout, and the worker's record of orders. That changes
the published contract after a release, 0.0.0, and design rule 10
records it as the owner's decision.
- DefaultCheckoutAccount and SetDefaultCheckoutAccount keep their names
and signatures. The account they keep is where a link's pay form
starts: nostrod's dialog for choosing it says "have pay links start
from", the app's setting reads "Pay links start from", and `nostro
checkout account` prints "pay links start from".
- The D-Bus policy still lets nostrod own the old name: the nostrod of
0.0.0 asks for it when it starts, and the system files can be newer
than the Flatpak it runs from. install.sh removes the old name's
activation file. A user's checkouts.cdb is read by nothing any more,
and is left where it is.
- The Arch package stops installing the checkout's two files, and its
pkgrel goes up to 2. Where makepkg -si finds a package of the version
already built it installs that one again, which would bring the
activation file back. The guide now says that pkgrel goes up with a
change to what the package installs.
- Bus::Interface goes too: the worker called it in two places, to tell
a call to the checkout from one to the main interface.
The review's own files follow. gate0 loses the build of
--product=checkout, and the three lens sections that named the checkout
no longer do, and ask about a link.
The README has "Pay links" in place of "Checkout for apps", and
AGENTS.consumer.md says what the app reads of a link. Its line on
lib/json.hpp no longer gives a release: the file is of none, and the
guide names its commit. The pay form and the accounts' page change only
by a banner each, shown while a link is in play, which
docs/screenshots/take.sh never has: the README's pictures stand.
Tests: ShouldValidateForms reads and refuses links and fills the form
from one. ShouldDriveTheApp opens links against a real nostrod on the
fake bus: before the accounts are known, with no account, with one and
with several, with the accounts known and the system bus gone, for a
second user whose first connection pays their own accounts only, one
that cannot be read, one whose name has an &, and through polkit's
dialog to the payment. It now counts nostrod's answers to hold that the
account pay links start from is read again once a connection is
removed: the check it had there passed without that.
ShouldHandleMoneyAndText holds the two tables at the ends of their
ranges. ShouldServeEveryUser holds that nostrod serves no checkout, that
the bus's policy lets an older nostrod own the old name, and the account
pay links start from. ShouldRunCommands holds the CLI's wording.
The review's gate0 passes at this commit: the version check, 17 tests,
the builds of the CLI, the library, nostrod, the fake system, the app
and its --debug-api build, and five lint runs that report nothing.
tests/coverage.sh reports lines, functions and regions at 100.00%.
Looked at on 2026-11-22 on the made-up system (run fake), on a desktop
(KWin at a scale of 1.85). At 420x760, at --scale 3 --size 360x760 and
at 1100x720 in the light look: a link's pay form under the choice of
accounts, the form after a tap beside that choice, and the accounts'
page while a link waits, its line above the rows that stand in for the
accounts (--bank-delay 10000). At 420x760: that line above what the
page says when the accounts cannot be read (--polkit deny) and above
the accounts themselves (--polkit slow, the link opened in the running
app), the settings' row and page for the account pay links start from,
the sheet for a link that cannot be read, and with --empty the sheet
for no account.
2026-11-22 13:35:51 +01:00
|
|
|
security model is `README.md` ("How Nostro runs", "Pay links",
|
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-21 06:39:19 +01:00
|
|
|
"Security"), the contributor guide `AGENTS.template.md` ("nostrod end
|
feat: open payto links on the pay form, and take the checkout over D-Bus out
An app could have nostrod pay an order: it called Pay of
net.catcrafts.Nostro1.Checkout on the system bus, and nostrod paid from
an account the user had chosen, after a dialog of its own. On 2026-11-22
the owner decided that a link takes its place. The app registers for
payto links (RFC 8905), so that an app or a website can hand one to the
desktop, and shows a link as its pay form filled in.
The link:
- The app's desktop entry takes the scheme (Exec=nostro-app %u,
MimeType=x-scheme-handler/payto), and nostro-app takes an argument
that is no option as a link: it overwrites it in argv and hands it to
App::Open once the app has started.
- ReadPaymentLink (Nostro.App:Forms) reads payto://iban/<IBAN> with the
options amount, receiver-name and message, and refuses a link rather
than guess at it, in a sentence of the app's own with nothing of the
link in it. Among what it refuses: an IBAN whose check digits do not
hold, one of the three options given twice, instruction, a comma in
the amount, and a name or a message with a code point that is Unshown,
or Blank and no plain space.
- A link that is read waits until the accounts are read and
DefaultCheckoutAccount has answered or failed, with a line on the
accounts' page. Then App::TakeLink fills in the pay form, which says
in a banner that a link filled it in, and with more than one account
opens it under the choice of accounts that the form's From row has. A
link pays nothing: the form's button sends, and polkit's dialog
confirms as for any payment (design rule 12, and 14, which is new).
- Unshown and Blank are the two tables the worker's Shown() works from.
They move into Nostro:Utils, where the app's reader asks them too.
The move is within the library. The reader holds a link's name to
those two and to no more of Shown(): a name with an & is read, and
the dialog shows it with a + as it does any name.
The checkout:
- nostrod serves one interface under one bus name. Gone are
net.catcrafts.Nostro1.Checkout with its XML and its activation file,
the polkit action Checkout, the module Nostro.Checkout with
--product=checkout, and the worker's record of orders. That changes
the published contract after a release, 0.0.0, and design rule 10
records it as the owner's decision.
- DefaultCheckoutAccount and SetDefaultCheckoutAccount keep their names
and signatures. The account they keep is where a link's pay form
starts: nostrod's dialog for choosing it says "have pay links start
from", the app's setting reads "Pay links start from", and `nostro
checkout account` prints "pay links start from".
- The D-Bus policy still lets nostrod own the old name: the nostrod of
0.0.0 asks for it when it starts, and the system files can be newer
than the Flatpak it runs from. install.sh removes the old name's
activation file. A user's checkouts.cdb is read by nothing any more,
and is left where it is.
- The Arch package stops installing the checkout's two files, and its
pkgrel goes up to 2. Where makepkg -si finds a package of the version
already built it installs that one again, which would bring the
activation file back. The guide now says that pkgrel goes up with a
change to what the package installs.
- Bus::Interface goes too: the worker called it in two places, to tell
a call to the checkout from one to the main interface.
The review's own files follow. gate0 loses the build of
--product=checkout, and the three lens sections that named the checkout
no longer do, and ask about a link.
The README has "Pay links" in place of "Checkout for apps", and
AGENTS.consumer.md says what the app reads of a link. Its line on
lib/json.hpp no longer gives a release: the file is of none, and the
guide names its commit. The pay form and the accounts' page change only
by a banner each, shown while a link is in play, which
docs/screenshots/take.sh never has: the README's pictures stand.
Tests: ShouldValidateForms reads and refuses links and fills the form
from one. ShouldDriveTheApp opens links against a real nostrod on the
fake bus: before the accounts are known, with no account, with one and
with several, with the accounts known and the system bus gone, for a
second user whose first connection pays their own accounts only, one
that cannot be read, one whose name has an &, and through polkit's
dialog to the payment. It now counts nostrod's answers to hold that the
account pay links start from is read again once a connection is
removed: the check it had there passed without that.
ShouldHandleMoneyAndText holds the two tables at the ends of their
ranges. ShouldServeEveryUser holds that nostrod serves no checkout, that
the bus's policy lets an older nostrod own the old name, and the account
pay links start from. ShouldRunCommands holds the CLI's wording.
The review's gate0 passes at this commit: the version check, 17 tests,
the builds of the CLI, the library, nostrod, the fake system, the app
and its --debug-api build, and five lint runs that report nothing.
tests/coverage.sh reports lines, functions and regions at 100.00%.
Looked at on 2026-11-22 on the made-up system (run fake), on a desktop
(KWin at a scale of 1.85). At 420x760, at --scale 3 --size 360x760 and
at 1100x720 in the light look: a link's pay form under the choice of
accounts, the form after a tap beside that choice, and the accounts'
page while a link waits, its line above the rows that stand in for the
accounts (--bank-delay 10000). At 420x760: that line above what the
page says when the accounts cannot be read (--polkit deny) and above
the accounts themselves (--polkit slow, the link opened in the running
app), the settings' row and page for the account pay links start from,
the sheet for a link that cannot be read, and with --empty the sheet
for no account.
2026-11-22 13:35:51 +01:00
|
|
|
to end", design rules 4, 9, 10, 12 and 14, "Security considerations";
|
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-21 06:39:19 +01:00
|
|
|
`AGENTS.md` is generated from it and is not in the tree) and the files
|
|
|
|
|
that are the model as shipped:
|
|
|
|
|
`packaging/system/net.catcrafts.Nostro1.policy` (each polkit action and
|
|
|
|
|
its defaults), `packaging/system/net.catcrafts.Nostro1.conf` (who may
|
|
|
|
|
own and call the two bus names), `packaging/system/nostrod.service`
|
|
|
|
|
(the user nostrod runs as and its hardening), the two Flatpaks'
|
|
|
|
|
permissions (nostrod's in `packaging/flatpak/net.catcrafts.Nostrod.yaml`,
|
|
|
|
|
the app's in `project.cpp`, and both again in
|
|
|
|
|
`packaging/flatpak/build-aarch64.sh`), `packaging/dbus/*.xml` (the
|
|
|
|
|
wire) and `.forgejo/workflows/flatpak.yaml`. These are the owner's
|
|
|
|
|
decisions: a range that weakens one without saying so is a finding;
|
|
|
|
|
whether one should change is the owner's call. Write the standard of
|
|
|
|
|
Method 1 from them as they are at HEAD, not from this section.
|
|
|
|
|
|
|
|
|
|
The charter's web classes (CORS, cookies, CSRF, headers, uploads) have
|
|
|
|
|
no counterpart here: "not here", with that reason. Their counterparts
|
|
|
|
|
are the bus policy, the polkit action, a Flatpak's permissions, the
|
|
|
|
|
unit's hardening and a file's mode.
|
|
|
|
|
|
|
|
|
|
The actors to write down, each with what the model above lets it do: a
|
|
|
|
|
local user, whom nostrod knows by the uid the bus gives for the caller;
|
|
|
|
|
any program that user runs, the CLI and the app among them, which
|
feat: open payto links on the pay form, and take the checkout over D-Bus out
An app could have nostrod pay an order: it called Pay of
net.catcrafts.Nostro1.Checkout on the system bus, and nostrod paid from
an account the user had chosen, after a dialog of its own. On 2026-11-22
the owner decided that a link takes its place. The app registers for
payto links (RFC 8905), so that an app or a website can hand one to the
desktop, and shows a link as its pay form filled in.
The link:
- The app's desktop entry takes the scheme (Exec=nostro-app %u,
MimeType=x-scheme-handler/payto), and nostro-app takes an argument
that is no option as a link: it overwrites it in argv and hands it to
App::Open once the app has started.
- ReadPaymentLink (Nostro.App:Forms) reads payto://iban/<IBAN> with the
options amount, receiver-name and message, and refuses a link rather
than guess at it, in a sentence of the app's own with nothing of the
link in it. Among what it refuses: an IBAN whose check digits do not
hold, one of the three options given twice, instruction, a comma in
the amount, and a name or a message with a code point that is Unshown,
or Blank and no plain space.
- A link that is read waits until the accounts are read and
DefaultCheckoutAccount has answered or failed, with a line on the
accounts' page. Then App::TakeLink fills in the pay form, which says
in a banner that a link filled it in, and with more than one account
opens it under the choice of accounts that the form's From row has. A
link pays nothing: the form's button sends, and polkit's dialog
confirms as for any payment (design rule 12, and 14, which is new).
- Unshown and Blank are the two tables the worker's Shown() works from.
They move into Nostro:Utils, where the app's reader asks them too.
The move is within the library. The reader holds a link's name to
those two and to no more of Shown(): a name with an & is read, and
the dialog shows it with a + as it does any name.
The checkout:
- nostrod serves one interface under one bus name. Gone are
net.catcrafts.Nostro1.Checkout with its XML and its activation file,
the polkit action Checkout, the module Nostro.Checkout with
--product=checkout, and the worker's record of orders. That changes
the published contract after a release, 0.0.0, and design rule 10
records it as the owner's decision.
- DefaultCheckoutAccount and SetDefaultCheckoutAccount keep their names
and signatures. The account they keep is where a link's pay form
starts: nostrod's dialog for choosing it says "have pay links start
from", the app's setting reads "Pay links start from", and `nostro
checkout account` prints "pay links start from".
- The D-Bus policy still lets nostrod own the old name: the nostrod of
0.0.0 asks for it when it starts, and the system files can be newer
than the Flatpak it runs from. install.sh removes the old name's
activation file. A user's checkouts.cdb is read by nothing any more,
and is left where it is.
- The Arch package stops installing the checkout's two files, and its
pkgrel goes up to 2. Where makepkg -si finds a package of the version
already built it installs that one again, which would bring the
activation file back. The guide now says that pkgrel goes up with a
change to what the package installs.
- Bus::Interface goes too: the worker called it in two places, to tell
a call to the checkout from one to the main interface.
The review's own files follow. gate0 loses the build of
--product=checkout, and the three lens sections that named the checkout
no longer do, and ask about a link.
The README has "Pay links" in place of "Checkout for apps", and
AGENTS.consumer.md says what the app reads of a link. Its line on
lib/json.hpp no longer gives a release: the file is of none, and the
guide names its commit. The pay form and the accounts' page change only
by a banner each, shown while a link is in play, which
docs/screenshots/take.sh never has: the README's pictures stand.
Tests: ShouldValidateForms reads and refuses links and fills the form
from one. ShouldDriveTheApp opens links against a real nostrod on the
fake bus: before the accounts are known, with no account, with one and
with several, with the accounts known and the system bus gone, for a
second user whose first connection pays their own accounts only, one
that cannot be read, one whose name has an &, and through polkit's
dialog to the payment. It now counts nostrod's answers to hold that the
account pay links start from is read again once a connection is
removed: the check it had there passed without that.
ShouldHandleMoneyAndText holds the two tables at the ends of their
ranges. ShouldServeEveryUser holds that nostrod serves no checkout, that
the bus's policy lets an older nostrod own the old name, and the account
pay links start from. ShouldRunCommands holds the CLI's wording.
The review's gate0 passes at this commit: the version check, 17 tests,
the builds of the CLI, the library, nostrod, the fake system, the app
and its --debug-api build, and five lint runs that report nothing.
tests/coverage.sh reports lines, functions and regions at 100.00%.
Looked at on 2026-11-22 on the made-up system (run fake), on a desktop
(KWin at a scale of 1.85). At 420x760, at --scale 3 --size 360x760 and
at 1100x720 in the light look: a link's pay form under the choice of
accounts, the form after a tap beside that choice, and the accounts'
page while a link waits, its line above the rows that stand in for the
accounts (--bank-delay 10000). At 420x760: that line above what the
page says when the accounts cannot be read (--polkit deny) and above
the accounts themselves (--polkit slow, the link opened in the running
app), the settings' row and page for the account pay links start from,
the sheet for a link that cannot be read, and with --empty the sheet
for no account.
2026-11-22 13:35:51 +01:00
|
|
|
neither polkit nor nostrod can tell apart; whoever wrote a link the app
|
|
|
|
|
is opened with; the
|
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-21 06:39:19 +01:00
|
|
|
bank; polkit and its agent; an administrator, and root; a build, which
|
|
|
|
|
runs each dependency's `project.cpp`; the workflow's two jobs.
|
|
|
|
|
|
|
|
|
|
The decision points, each with where to read it:
|
|
|
|
|
- Who the caller is, and whose data a call reaches: the front
|
|
|
|
|
(`implementations/Nostro-Daemon.cpp`) and a worker's start
|
|
|
|
|
(`RunWorker`).
|
|
|
|
|
- What needs polkit's yes, and what is read or asked of the bank
|
|
|
|
|
before it: the worker's `Handle`, `Gate`, `HandleLookup` and `Prompt`
|
|
|
|
|
(`implementations/Nostro-Daemon-Worker.cpp`), design rule 9 and the
|
|
|
|
|
policy file. For a hunk there: what does a caller that polkit refuses
|
|
|
|
|
learn from the answer or the error, and what did the bank see?
|
|
|
|
|
- What the dialog says against what is then done: the summary, and the
|
|
|
|
|
details a polkit rule reads, are built in the worker (`Prompt`,
|
|
|
|
|
`Shown()`, `Counterparty`). A new field, or a new way for text from a
|
|
|
|
|
caller or the bank to reach a summary, is an input to attack: markup,
|
|
|
|
|
a control or bidirectional character, a line break, a second amount
|
|
|
|
|
or payee. A detail that can differ from what the call then does is a
|
|
|
|
|
way past an administrator's rule.
|
feat: open payto links on the pay form, and take the checkout over D-Bus out
An app could have nostrod pay an order: it called Pay of
net.catcrafts.Nostro1.Checkout on the system bus, and nostrod paid from
an account the user had chosen, after a dialog of its own. On 2026-11-22
the owner decided that a link takes its place. The app registers for
payto links (RFC 8905), so that an app or a website can hand one to the
desktop, and shows a link as its pay form filled in.
The link:
- The app's desktop entry takes the scheme (Exec=nostro-app %u,
MimeType=x-scheme-handler/payto), and nostro-app takes an argument
that is no option as a link: it overwrites it in argv and hands it to
App::Open once the app has started.
- ReadPaymentLink (Nostro.App:Forms) reads payto://iban/<IBAN> with the
options amount, receiver-name and message, and refuses a link rather
than guess at it, in a sentence of the app's own with nothing of the
link in it. Among what it refuses: an IBAN whose check digits do not
hold, one of the three options given twice, instruction, a comma in
the amount, and a name or a message with a code point that is Unshown,
or Blank and no plain space.
- A link that is read waits until the accounts are read and
DefaultCheckoutAccount has answered or failed, with a line on the
accounts' page. Then App::TakeLink fills in the pay form, which says
in a banner that a link filled it in, and with more than one account
opens it under the choice of accounts that the form's From row has. A
link pays nothing: the form's button sends, and polkit's dialog
confirms as for any payment (design rule 12, and 14, which is new).
- Unshown and Blank are the two tables the worker's Shown() works from.
They move into Nostro:Utils, where the app's reader asks them too.
The move is within the library. The reader holds a link's name to
those two and to no more of Shown(): a name with an & is read, and
the dialog shows it with a + as it does any name.
The checkout:
- nostrod serves one interface under one bus name. Gone are
net.catcrafts.Nostro1.Checkout with its XML and its activation file,
the polkit action Checkout, the module Nostro.Checkout with
--product=checkout, and the worker's record of orders. That changes
the published contract after a release, 0.0.0, and design rule 10
records it as the owner's decision.
- DefaultCheckoutAccount and SetDefaultCheckoutAccount keep their names
and signatures. The account they keep is where a link's pay form
starts: nostrod's dialog for choosing it says "have pay links start
from", the app's setting reads "Pay links start from", and `nostro
checkout account` prints "pay links start from".
- The D-Bus policy still lets nostrod own the old name: the nostrod of
0.0.0 asks for it when it starts, and the system files can be newer
than the Flatpak it runs from. install.sh removes the old name's
activation file. A user's checkouts.cdb is read by nothing any more,
and is left where it is.
- The Arch package stops installing the checkout's two files, and its
pkgrel goes up to 2. Where makepkg -si finds a package of the version
already built it installs that one again, which would bring the
activation file back. The guide now says that pkgrel goes up with a
change to what the package installs.
- Bus::Interface goes too: the worker called it in two places, to tell
a call to the checkout from one to the main interface.
The review's own files follow. gate0 loses the build of
--product=checkout, and the three lens sections that named the checkout
no longer do, and ask about a link.
The README has "Pay links" in place of "Checkout for apps", and
AGENTS.consumer.md says what the app reads of a link. Its line on
lib/json.hpp no longer gives a release: the file is of none, and the
guide names its commit. The pay form and the accounts' page change only
by a banner each, shown while a link is in play, which
docs/screenshots/take.sh never has: the README's pictures stand.
Tests: ShouldValidateForms reads and refuses links and fills the form
from one. ShouldDriveTheApp opens links against a real nostrod on the
fake bus: before the accounts are known, with no account, with one and
with several, with the accounts known and the system bus gone, for a
second user whose first connection pays their own accounts only, one
that cannot be read, one whose name has an &, and through polkit's
dialog to the payment. It now counts nostrod's answers to hold that the
account pay links start from is read again once a connection is
removed: the check it had there passed without that.
ShouldHandleMoneyAndText holds the two tables at the ends of their
ranges. ShouldServeEveryUser holds that nostrod serves no checkout, that
the bus's policy lets an older nostrod own the old name, and the account
pay links start from. ShouldRunCommands holds the CLI's wording.
The review's gate0 passes at this commit: the version check, 17 tests,
the builds of the CLI, the library, nostrod, the fake system, the app
and its --debug-api build, and five lint runs that report nothing.
tests/coverage.sh reports lines, functions and regions at 100.00%.
Looked at on 2026-11-22 on the made-up system (run fake), on a desktop
(KWin at a scale of 1.85). At 420x760, at --scale 3 --size 360x760 and
at 1100x720 in the light look: a link's pay form under the choice of
accounts, the form after a tap beside that choice, and the accounts'
page while a link waits, its line above the rows that stand in for the
accounts (--bank-delay 10000). At 420x760: that line above what the
page says when the accounts cannot be read (--polkit deny) and above
the accounts themselves (--polkit slow, the link opened in the running
app), the settings' row and page for the account pay links start from,
the sheet for a link that cannot be read, and with --empty the sheet
for no account.
2026-11-22 13:35:51 +01:00
|
|
|
- A link (`ReadPaymentLink`, `App::Open`, `TakeLink`; design rule 14):
|
|
|
|
|
what does whoever wrote one decide that the pay form does not show
|
|
|
|
|
the user, and what does it learn back?
|
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-21 06:39:19 +01:00
|
|
|
- Secrets (design rule 4): where a key, a token or the private key is
|
|
|
|
|
read, kept and passed (`CreatePrivateFile`, `ReadSecret`, a `Secret`
|
|
|
|
|
field, the sensitive mark on a message), and where one could surface:
|
|
|
|
|
a `Note`, an exception's message, a D-Bus error, a formatter, a log,
|
|
|
|
|
a core dump, a command line.
|
|
|
|
|
- The bank's side (`BunqConnector::Call`, `EnsureServerPublicKey`,
|
|
|
|
|
`OnAddBunq`): what is verified before it is used, what decides
|
|
|
|
|
between production and the sandbox, and what is sent again. A path
|
|
|
|
|
that can pay twice, or pay what was not shown, is a finding here as
|
|
|
|
|
well as the bug-prover's.
|
|
|
|
|
- The app and its debug build (design rule 12, and what the guide's
|
|
|
|
|
"Security considerations" say of `--debug-api`): debug code reachable
|
|
|
|
|
in another build, a Flatpak made of the debug build, or a loosening
|
|
|
|
|
of what `Ui_Type` refuses, is a finding.
|
|
|
|
|
- What is built and shipped: a dependency the range has `project.cpp`
|
|
|
|
|
name without a commit (the guide's "Dev environment" says which still
|
|
|
|
|
follow a branch, and why), a pin moved without the range saying to
|
|
|
|
|
what and why, a `lib/json.hpp` that is not upstream's file (the guide
|
|
|
|
|
names the commit and the blob id, and `git hash-object` settles it),
|
|
|
|
|
a Flatpak permission added, a hardening option dropped from the unit,
|
|
|
|
|
a secret or an echo of the environment added to the workflow, a step
|
|
|
|
|
of `check` that reaches what `publish` mounts.
|
|
|
|
|
|
|
|
|
|
Stated limits are not findings. The README's "Security" and the guide's
|
|
|
|
|
"Security considerations" say what nostro does not protect against. A
|
|
|
|
|
range that leaves one as it is inherits it (`pre-existing`). One that
|
|
|
|
|
widens it, or builds on it, owns it. And one that changes what a user
|
|
|
|
|
is protected from changes the README's "Security" in the same range.
|
|
|
|
|
|
|
|
|
|
What the tests pin is evidence to read. `ShouldServeEveryUser` is where
|
|
|
|
|
the policy file, the published XML and what a refused caller is told
|
|
|
|
|
are held; the guide's table of tests says what else it covers. A
|
|
|
|
|
protection the range adds, without a check there that fails without
|
|
|
|
|
it, is the `pK:absent` slot's. The fake bus answers as polkit whatever
|
|
|
|
|
the test told it to: it shows what nostrod does with an answer, not
|
|
|
|
|
what polkit answers.
|
|
|
|
|
|
|
|
|
|
Semantics to read on disk rather than recall: libsystemd's headers
|
|
|
|
|
(`/run/host/usr/include/systemd/sd-bus.h`, `sd-bus-vtable.h`); the
|
|
|
|
|
format of a polkit policy
|
|
|
|
|
(`/run/host/usr/share/polkit-1/policyconfig-1.dtd`); OpenSSL's headers
|
|
|
|
|
(`/run/host/usr/include/openssl/`); Crafter.Network and Crafter.DB as
|
|
|
|
|
crafter-build cloned them
|
|
|
|
|
(`~/.cache/crafter.build/external/<Name>-<hash>/`, at the commit
|
|
|
|
|
`project.cpp` names for each outside the `--debug-api` build; a clone's
|
|
|
|
|
`.git/HEAD`, or the ref it names, says which commit it is at). A
|
|
|
|
|
crafter-build that runs as a Flatpak keeps its clones in that app's own
|
|
|
|
|
directory, which is not readable from here: a control that rests on a
|
|
|
|
|
dependency without a readable clone at the pinned commit is
|
|
|
|
|
`unverified`. Not on disk: what polkit answers and how each agent shows
|
|
|
|
|
a message (the guide's "Gotchas" record what was read and seen), what
|
|
|
|
|
systemd's options and Flatpak's permissions enforce, and bunq's API. A
|
|
|
|
|
control only they settle is `unverified`, with what would settle it.
|