Design 39 bus-and-switch: the licence manager keeps its data on the bus and switches on its own usage #557

Merged
mesh-tools merged 2 commits from design/39-licence-switch into main 2026-11-11 21:36:26 +00:00
Member

Issue 1409. The operator, 2026-11-11 ~21:10-22:20 CET: switch every node to a licence with room when usage reaches 99% (configurable), done by the licence manager itself; its Postgres database replaced by the bus's own storage; useful tools and as much state as possible.

  • New milestone part 03-DESIGN/01-to-be/39-milestones/bus-and-switch.md (§1-§52): kept data by template (state licences, bindings, leases, offered, carried, conditions; logs usage, audit), the carry-over of today's rows at first start (this delivery moves data), grants and tokens in the vault (new verb licence-put), the automatic switch and its settings (default 99%), conditions no-room / near-limit / usage-unread, the tools, adding a licence (the team seat).
  • The lead's answers A1-A4 by 00-META/principles.md (the operator's way of working since 2026-11-11 21:15): vault serves the tool runner's account (principle 6); the switch is the operator's word replacing ADR 0183 §21 and ADR 0206 §16, §18 for this module; the store database stays one milestone as the carry-over's source (principle 7); no dependency on design 47 G.
  • Main file refreshed; glossary gains room and carry-over.

Checks: go test ./... at hq's root passes. No four-reviewer round (the operator's way of working tonight).

Pushed-by: fix-1965@shanks

https://claude.ai/code/session_01NcbgfHb9d4T9nq5Q6WqdiJ

Issue 1409. The operator, 2026-11-11 ~21:10-22:20 CET: switch every node to a licence with room when usage reaches 99% (configurable), done by the licence manager itself; its Postgres database replaced by the bus's own storage; useful tools and as much state as possible. - New milestone part `03-DESIGN/01-to-be/39-milestones/bus-and-switch.md` (§1-§52): kept data by template (state licences, bindings, leases, offered, carried, conditions; logs usage, audit), the carry-over of today's rows at first start (this delivery moves data), grants and tokens in the vault (new verb `licence-put`), the automatic switch and its settings (default 99%), conditions no-room / near-limit / usage-unread, the tools, adding a licence (the team seat). - The lead's answers A1-A4 by `00-META/principles.md` (the operator's way of working since 2026-11-11 21:15): vault serves the tool runner's account (principle 6); the switch is the operator's word replacing ADR 0183 §21 and ADR 0206 §16, §18 for this module; the store database stays one milestone as the carry-over's source (principle 7); no dependency on design 47 G. - Main file refreshed; glossary gains *room* and *carry-over*. Checks: `go test ./...` at hq's root passes. No four-reviewer round (the operator's way of working tonight). Pushed-by: fix-1965@shanks https://claude.ai/code/session_01NcbgfHb9d4T9nq5Q6WqdiJ
mesh-tools added 2 commits 2026-11-11 21:31:05 +00:00
The operator, 2026-11-11: the licence manager itself moves every consumer off a
licence at 99 % of its session or weekly window to the licence with the most
room, configurable, with its Postgres database replaced by bus state and tools
for all it keeps and does. That night a session meant to switch missed the
readings, so no session does it any more. The new milestone part writes every
line it builds (kept data, the one carry-over of today's rows, the vault move
of ADR 0550 §3, bindings and holdings as events, the switch, its warning and
condition, the tools, adding a licence), and names the three questions no
record settles; the main file is put in the shape a builder reads whole.

Claude-Session: https://claude.ai/code/session_01NcbgfHb9d4T9nq5Q6WqdiJ
Answer design 39 bus-and-switch's questions by the principles, so it can ship on main as it is
mesh/check being carried to 8d772ad40c95 on 18639c73921a | from e1819e0a0d08
mesh/delivery merged: source.main moved to novox/hq@18639c73921a
8d772ad40c
The lead answered the four open questions against hq's principles on
2026-11-11: the vault serves licence secrets to the tool runner's account
(principle 6), the operator's word replaces ADR 0183 §21 and ADR 0206 §16, §18
with no record, the store database stays one milestone as the carry-over's
read-only source (principle 7, the delivery gap named), and the milestone no
longer waits for design 47's G: its conditions are said on the operator
channel as any module does today.

Claude-Session: https://claude.ai/code/session_01NcbgfHb9d4T9nq5Q6WqdiJ
Author
Member

Delivery novox/hq@8d772ad40c95 — merged since 2026-11-11T21:36:29Z

Source — source.main moved to novox/hq@18639c7392. Whether it reached the machines is mesh-delivery-view's, derived from source.main, the wants and the haves.

Transitions

  • 2026-11-11 21:31 (new) → proposed (announced): novox/hq#557's head announced
  • 2026-11-11 21:31 proposed → ready (accepted): a verdict names this commit and the trunk's head as its trunk commit, the gate passed or warned, and the repository's own check did not fail; or the check gates no merge (check-gates-merge false)
  • 2026-11-11 21:36 ready → merged (merged): on the trunk its modules follow: merged there

The commit's note under refs/notes/mesh-plan keeps every transition of this change up to its merge: git log --notes=mesh-plan.

<!-- mesh-delivery:view --> **Delivery** `novox/hq@8d772ad40c95` — **merged** since 2026-11-11T21:36:29Z **Source** — source.main moved to novox/hq@18639c73921a. Whether it reached the machines is `mesh-delivery-view`'s, derived from `source.main`, the wants and the haves. **Transitions** - 2026-11-11 21:31 (new) → proposed (announced): novox/hq#557's head announced - 2026-11-11 21:31 proposed → ready (accepted): a verdict names this commit and the trunk's head as its trunk commit, the gate passed or warned, and the repository's own check did not fail; or the check gates no merge (check-gates-merge false) - 2026-11-11 21:36 ready → merged (merged): on the trunk its modules follow: merged there The commit's note under `refs/notes/mesh-plan` keeps every transition of this change up to its merge: `git log --notes=mesh-plan`.
mesh-tools merged commit 18639c7392 into main 2026-11-11 21:36:26 +00:00
mesh-tools deleted branch design/39-licence-switch 2026-11-11 21:36:26 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/hq#557