Commit graph

13 commits

Author SHA1 Message Date
8dd31e2bb9
build(packaging): make the release 1.0.0
All checks were successful
Flatpak / check (push) Has been skipped
Flatpak / publish (push) Successful in 5m55s
1.0.0
The release after 0.0.0 is 1.0.0, by the owner's word of 2026-11-22:
the commit before this one takes away the checkout over D-Bus that
0.0.0 published, and a break of what was published is a new major
version. NOSTRO_VERSION in project.cpp and the newest <release> of the
app's metainfo say so, the entry dated today. The comment in
nostro-app.cpp that quoted the version gives an example in its place,
which a release does not have to change.

The entry is the release notes, in two sections: "New" has the payto
links and the question which account pays, and "Breaking" the checkout's
removal in favour of those links.

packaging/flatpak/release-version.sh prints 1.0.0 for the tree and
renders the notes with a heading for each section, and appstreamcli
validates the metainfo. The review's gate0 passes at this commit, and
the app's settings read "Nostro 1.0.0".
2026-11-22 13:45:00 +01:00
b43ab124a6
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
25d991658f
docs: cut the README down to what a reader needs first
The README had grown to 2,940 words (`wc -w README.md`): a table of the
app's screens with a list of notes on how the app behaves under it, the
checkout's method with its rules, errors and examples, and a subsection
on polkit rules with one written out. It is 1,170 words now.

What stays is what a reader needs to choose, install and use Nostro,
and what they must know for their money's sake: how nostrod keeps the
bank connections, the app's pictures with four notes under them,
installing, the CLI's commands, a paragraph on the checkout that points
at the interface's XML, and "Security" as a list whose last line points
at the polkit policy.

The README's warning against a rule that keeps an authorization moves
into the comment of that policy file, which already describes the rule
the README wrote out.

The guide's commit guidelines now say that the README is kept short,
and where what does not go into it goes. Two of the guide's sentences
spoke of what the README says of each screen: the one is gone, the
other no longer names the README. A third cited the README for what an
app with access to the checkout can learn of an order, which the
README no longer says: it stands without the citation.
2026-11-22 13:31:18 +01:00
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
d35c486424
build(packaging): make the first release 0.0.0
All checks were successful
Flatpak / check (push) Has been skipped
Flatpak / publish (push) Successful in 6m51s
0.0.0
The first release, which is also the first run of the workflow's publish
job, goes out as 0.0.0 and not as 0.1.0, as imsd-messages' first did.
NOSTRO_VERSION in project.cpp and the newest <release> of the app's
metainfo say so, the entry dated today, and the comment in nostro-app.cpp
that quotes the define follows.

packaging/flatpak/release-version.sh prints 0.0.0 for the tree and renders
the entry's notes, appstreamcli validates the metainfo, and the app builds
with the version in it. The Arch package of the system files keeps its own
pkgver.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 06:10:36 +01:00
3cf9e091a9
build(shell): name Crafter.Graphics at a commit of its master, and answer a compositor's resize with a frame
The app was built against a checkout of Crafter.Graphics given with
--graphics=, because the text-input purposes it asks the input method for
were uncommitted work in one checkout. They are on Crafter.Graphics' master
since a9ce1a0, so project.cpp names the library as a GitProject at that
commit, as it names Crafter.Network and Crafter.DB. --graphics= is gone, and
with it $NOSTRO_GRAPHICS in build-aarch64.sh and the workflow's step that
cloned the branch claude/nostro-app, which the forge never had: neither job
of the workflow could have built the app.

That master also has 89111e0, which the window was not written against. A
size the compositor configures is no longer taken in the configure's
listener. The listener keeps it and fires onFrameOwed, and the next Render()
makes the swapchain again, fires onResize from inside itself, and answers
the configure with that frame's buffer. The window draws on demand, so:

- Shell::Window asks for a frame from onFrameOwed. Without it nothing draws
  the frame that answers the configure, and the window keeps its old size
  until something else changes on it.
- Canvas::Reconcile no longer turns the compositor's sizes into
  Resize(pixels). The library takes the size asked for last, whoever asked,
  so that call took the configured size's place, and with it came back the
  surface a dp larger than configured that 89111e0 had ended
  (Crafter.Graphics #201). It now sizes the window only where the library
  does not: the app's own size (--size, SetSize, --scale); the size that
  comes with a new window (#166), handed over in deferredLogicalWidth, where
  the library's listener keeps every later one; and a scale the display
  changes to by itself (#165), through RebuildSwapchain. The last two reach
  into the library's own state, and go once the library does them.

The text-input API on master is the one the app was written against:
nothing changed there.

Looked at on 2026-11-20 on the made-up system, on a desktop (KWin at a
scale of 1.85), with WAYLAND_DEBUG=1 on the app:

- The accounts at 420x760: the start, and resize:600,800 from --poke, the
  app's own size. Each size reaches the surface once, with the first buffer
  drawn for it.
- The same window given 760x532 by the compositor (a KWin script that sets
  its frameGeometry): the configure is kept, a frame is asked for, and
  set_destination(760, 532), the acknowledgement and the first buffer of
  1406x985 go out together. A temporary probe had that frame's draw list
  reach 1406x985: it is laid out for the new size.
- 421x761, whose pixels at 1.85 are no whole number: it opens as 422x762,
  since the app's own size goes through Resize in pixels. The notes say so.
- --scale 2 --size 360x760, the cards and the pay form filled in from
  --poke, with resize:400,700: the compositor's sizes are passed over.
- The --debug-api build driven with crafter-debug: Window_Resize, Ui_Tap,
  ui.texts and a screenshot.

The two paths that are a phone's, a size in the first configure and a scale
named after the first frames, were tried only with the values put in by
hand in a temporary probe. Nothing was looked at on a phone, and what the
input method is told was not read off the wire: the test window never had
the keyboard.

17 tests pass and the four lint passes report nothing. The app, its
--debug-api build, the fake system, the x86_64 Flatpak bundle and both
aarch64 Flatpaks (build-aarch64.sh) build.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 06:00:54 +01:00
490ea995e4
docs(packaging): say what a run of the workflow needs since the move to Catcrafts/Nostro
The workflow's head and the notes' "Releasing" said a job would wait for a
runner: the repository had been pushed to jorijnvdgraaf/Nostro, which the
organisation's `flatpak` runner does not serve. It was moved to
Catcrafts/Nostro the same day, 2026-11-19, so both now say that it has one.

What the move left open is new in both. The repository became private with
it, and for a tag the release checks read the forge without a login
(packaging/flatpak/release-version.sh, as imsd-messages' do), which a
private repository answers with a 404: it has to be public by the time a
tag is pushed. On 2026-11-21 the forge still answered 404 for it without a
login.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 06:00:32 +01:00
1292a6eef1
build(packaging): add the Forgejo workflow that tests and releases
.forgejo/workflows/flatpak.yaml, after imsd-messages' workflow, of whose
packaging scripts make-aarch64-sysroot.sh and build-aarch64.sh are the
counterparts. `check` runs the version check, the tests, the lint and
the aarch64 build of both Flatpaks for a pull request or a run by hand.
`publish` does the same but the lint for a pushed tag X.Y.Z, then
commits the service and the app into the Catcrafts Flatpak repository,
signed with the key on the runner's host, and makes the release on the
forge. A push without a tag runs nothing, so this push does not.

packaging/flatpak/release-version.sh is that app's script for Nostro:
NOSTRO_VERSION in project.cpp against the newest <release> of the app's
metainfo, and for a tag that it is that version, annotated, signed by
the owner as Forgejo verifies it, on master and newer than every
release.

Both files are after ones of imsd-messages, which are Catcrafts' own
and GPL-3.0-only, and are LGPL-3.0-only here, as nostro's packaging is
(design rule 13): a move between licences.

Not run: no runner has had the workflow. It parses as YAML and each of
its steps as shell. release-version.sh was run on this tree without a
tag, where it prints 0.1.0 and renders the notes, and with a tag that
is no version, which it refuses; what it checks of a real tag needs the
forge.

What a first run needs, and did not have on 2026-11-19, is in
AGENTS.template.md under "Releasing": a runner labelled `flatpak` for
this repository, the cache volume allowed in that runner's config, and
Crafter.Graphics' text-input change on the forge as the branch
claude/nostro-app. That change was uncommitted work in one local
checkout that day, so the app could be built nowhere else: the notes
on --graphics= now say so.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-19 16:14:33 +01:00
2e3739ff7a
fix: close what the security review before the first release found
A review of the tree and its history before they are published found no
key and no bank data in them. It did find these, each closed here.

The password dialog could be emptied (daemon). Shown(), which makes a
payee's name fit for polkit's dialog, let an & through. GNOME's older
agent (polkit-gnome) and MATE's put the message into Pango markup
unescaped, where a bare & fails to parse and leaves the dialog without
a message: paying "Tom & Jerry", or an order an app names so at
checkout, asked for the password and showed no amount and no payee.
Line and paragraph separators passed too. Shown() now shows & as +,
leaves out what draws nothing or places text (control and format
characters, the separators, what Unicode ignores by default, private
use) and makes any run of spaces one space. An address is held to it
instead of made fit: an e-mail address the dialog could not show
unchanged is refused before anyone is asked, since "a&b@..." shown as
"a+b@..." is somebody else's address.

A refused caller could look (daemon). A call that names an account, a
card, a request, a draft or a connector had it looked up, at the bank
where that takes it, before polkit was asked. So a caller polkit
refused was told whether it was there ("no account is called ..."),
and had the bank asked. Such a call now asks for View first
(HandleLookup), a call that only sees looks its account up after its
yes, and the connectors are read, which refreshes the accounts at the
bank, on the first yes instead of on the first call.

An app at checkout was told too much (checkout). The refusal of an
order's reference with another amount named the amount on record, and
a refusal by the bank carried the call it answered, whose path has the
user's and the account's ids at bunq. Neither does now.

A key typed by hand could be read off the screen (app). The line under
a key field showed how the key begins and its last four characters,
which is every character of it as it is typed. It shows how the key
begins and how long it is.

Every change asks for the password (packaging, app). Change, the
action for what changes something and pays nobody, passed without a
password in an active session, so any program of the user's could
cancel a scheduled payment, ask for money in their name or freeze a
card. It asks now (auth_self), a draft saved and a card frozen
included: only View passes as shipped, and loosening is an
administrator's rule, of which the README has an example. The app says
of every change where it is confirmed (AsksPassword is gone), and the
request form sends on its button as the pay form does: its review
sheet would be a second confirmation of what the dialog confirms.

What is built is what was tested (build). Crafter.Network, Crafter.DB
and Crafter.LintRules are named at the commits the tests ran against.
Crafter.Thread still follows its branch, which Crafter.Network's own
project file names, and so does Crafter.Network in the app's debug
build, where Crafter.Debug names it too and crafter-build refuses a
module built twice. lib/json.hpp was nlohmann/json's develop branch at
95e9a593 less its last newline, and called 3.12.0: it is that file
byte for byte now, and called what it is.

The published contract changes with this, before any release (design
rule 10): an e-mail address the dialog cannot show as it is is
refused, a call that looks something up needs View as well as its own
action, the checkout's errors say less, and the policy asks for the
password for Change. The XML, the policy and ShouldServeEveryUser,
which now holds the policy to its defaults, change together.

Reproduced and verified on the fake bus and the fake bunq. The new
checks of ShouldServeEveryUser fail on the worker of before (50 of
them: the & shown, the lookups answered, the bank asked) and pass now.
crafter-build test (17 tests), lint for the library, the app and the
fake system, and tests/coverage.sh (every line, function and region)
pass. Looked at on the made-up system, 360x760 dp at scale 2, dark, on
KDE Wayland: the key form with a key typed, the request form with its
wait and its result, a card frozen, and About. No picture in the
README shows a screen that changed.

Not tried: bunq's sandbox, a real polkit agent, the Flatpak builds.
The README's example rule ran against a stand-in for polkit's rule
engine only.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
2026-11-19 16:09:48 +01:00
5b4037955b feat(app): add the Nostro app, a window for phones and desktops
Linux phones have no banking apps, and a command line is no answer on a
phone. The app does everything the nostro command does and, like it, only
talks to nostrod: it holds no key and no token.

- Nostro.Ui, a toolkit whose screens are functions that fill a frame, ported
  from imsd-messages ca5cd72d; Nostro.App, the app's state, forms and screens;
  Nostro.Ui.Shell, which puts them on a Wayland window with Crafter.Graphics;
  nostro-app; and Nostro.DebugCommands for the --debug-api build.
- Client: every method also in an asynchronous form for an sd-event loop,
  with DaemonMissing and OutcomeUnknown.
- nostrod's Flatpak is net.catcrafts.Nostrod now and the app takes
  net.catcrafts.Nostro; install.sh moves the state. The app's Flatpak, both
  Flatpaks cross-built for aarch64, and the licence texts they carry.
- nostro-fake-system, a made-up bus and bank with a real nostrod on them, to
  look at the app against. The README's screenshots are taken on it.
- The nostro command: an API key's environment is the key's own to say, so
  --sandbox is for bunq-oauth alone, and a virtual card is listed as VIRTUAL.

The published contract changes in three places, before any release (design
rule 10):
- Transactions' query takes `stored`: answered from what nostrod has stored,
  without asking the bank. The app searches with it; before, every search was
  a call to bunq.
- AddBunq's `environment` no longer chooses over what the key says of itself:
  a key of the other environment is refused.
- SetCardStatus refuses to freeze or unfreeze a virtual card. bunq reports one
  as DEACTIVATED however well it pays, and leaves it as it is when asked,
  without an error.

The app is GPL-3.0-only, the library stays LGPL-3.0-only, and no code moved
from one to the other (design rule 13). Transaction's schema is unchanged.

Verified: the 17 tests pass with every line, function and region of what they
link run, and the five lint runs are clean. Every screen was looked at on the
made-up system, at a phone's and a desktop's sizes in the light and the dark
look, on Plasma under Wayland. What is said of bunq's cards comes from its
sandbox, with throwaway users, and from one real virtual card. Known to have
been used against production: connecting, and reading accounts, payments and
cards. Not known to have been tried: a payment from the app against bunq,
OAuth against bunq, and anything on a phone.

Building the app takes --graphics=, a Crafter.Graphics checkout on its branch
claude/nostro-app, until that branch is merged and pinned here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 12:27:14 +01:00
1ea50c50bc cli MVP 2026-11-01 18:35:23 +01:00
367c19386c pre-ai 2026-10-31 20:50:57 +01:00
be13205ffd initial commit 2026-10-06 15:39:17 +02:00