Skip to content

Sync main into milestone/next before the v1.12.0 release - #228

Merged
pviti merged 2 commits into
milestone/nextfrom
chore/sync-main-into-milestone
Nov 27, 2026
Merged

pviti merged 2 commits into
milestone/nextfrom
chore/sync-main-into-milestone

Conversation

@pviti

@pviti pviti commented Nov 27, 2026

Copy link
Copy Markdown
Member

Brings the merge commit of the v1.11.0 release (#215) from main into milestone/next, so the next release pull request holds only what is new and bin/release-prepare finds main contained in the branch.

No change of content beyond what main already has: the changelog and the version of v1.11.0. To be merged with a merge commit (a squash would lose the link to main).

pviti and others added 2 commits November 26, 2026 16:58
… transactions, sync errors, payment trace, write mode), refused in agent mode and 7 more (#215)

## Summary

The CLI gets its operator side: `rail0 admin`, for whoever runs the
gateway. The rest is maintenance.

- **Operator commands, `rail0 admin`** (#219, #220), new:
- `health`, `health --rpc`: the gateway's diagnostics and its view of
the chains; the exit code follows the verdict;
  - `transactions`: across every account, or only the stuck ones;
- `sync-errors`, `sync-errors clear`: the indexer callbacks the gateway
could not apply;
- `trace <payment>`: one payment's transactions, sync errors, webhook
deliveries, disputes and operator actions;
- `accounts`: search, the whole record, what an account has in motion,
switch it off or on;
- `wallets`: any account's wallets, what still names an address, the
switch;
  - `onboardings`: the requests, invite, correct, resend, cancel;
- `write-mode on|off`: an operator session reads; a write needs write
mode, which lasts an hour and is audited on the gateway.

None of these runs in agent mode, and agent mode never carries the
write-mode token.
- **Agent mode never acts with an operator's session** (#226), new. With
an operator's session the gateway widens the ordinary commands too
(`payments list --scope all`, `payments get` on anyone's payment,
`account get --account`, `wallets --account`). The CLI now keeps what
the gateway answers at sign-in, and in agent mode it does not carry a
stored session that is an operator's, and revokes at once a session
opened by `auth login` or by a command's `-p` key when it is one. New
error code `operator_session` (exit `4`); `auth status` says when the
session is an operator's.
- **Hint** for `transaction_in_flight` (#218).
- **Security updates** (#216): opentelemetry-go v1.47.0 and Go toolchain
1.26.11, for the two open advisories.
- **Dependency** (#213, #221): built against rail0-go v1.11.0, the
release that carries the operator service.

Nothing changes for a merchant's commands: no flag or output of an
existing command is different. One thing changes for an operator: a key
whose account holds the operator role no longer works in agent mode,
also for that account's own payments.

<!-- release:start -->
## rail0 CLI v1.11.0

<!-- release-notes:start -->
### Added

- **agent:** agent mode never acts with a gateway operator's session,
stored or opened on the spot (operator_session) (#226)
- **admin:** operator commands for accounts (search, exposure, switch
off and on), wallets (usage, switch) and onboarding requests (invite,
correct, resend, cancel) (#220)
- **admin:** operator commands under 'rail0 admin' (health, stuck
transactions, sync errors, payment trace, write mode), refused in agent
mode (#219)

### Changed

- Depend on the released rail0-go v1.11.0 instead of a milestone/next
pseudo-version (#221)
- Hint for transaction_in_flight: the other party's release is already
signed or sent (#218)
- Fix the opentelemetry-go and net/http advisories: otel v1.47.0, Go
toolchain 1.26.11 (#216)
- Sync main into milestone/next before the v1.10.1 release (#214)
- Build against rail0-go v1.10.2, the latest SDK release (#213)

**Full diff:**
v1.10.0...v1.11.0
<!-- release-notes:end -->

---

**Version:** **minor**, computed from the pull requests merged since
v1.10.0 (a breaking change → major, `feat` → minor, anything else →
patch). Decided by:

- feat(agent): agent mode never acts with a gateway operator's session,
stored or opened on the spot (operator_session) (#226)
- feat(admin): operator commands for accounts (search, exposure, switch
off and on), wallets (usage, switch) and onboarding requests (invite,
correct, resend, cancel) (#220)
- feat(admin): operator commands under 'rail0 admin' (health, stuck
transactions, sync errors, payment trace, write mode), refused in agent
mode (#219)


Merging this pull request also releases **v1.11.0**: its changes and the
version bump
ship together, under the one approval. On the push to `main`,
`.github/workflows/release.yml` re-runs CI on the merge commit, creates
the tag, and GoReleaser builds the binaries and publishes the GitHub
release, and
posts the release to Slack.

The release notes are the text between the `release-notes` markers
above, read from this
pull request when it merges: edit them here, before merging.

_Opened by `bin/release-prepare`._
<!-- release:end -->
@pviti
pviti merged commit 80f0abb into milestone/next Nov 27, 2026
1 check passed
@pviti
pviti deleted the chore/sync-main-into-milestone branch November 27, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant