CAT-N7: the seat mesh-broker's reading verbs list, show, check and orphans, and nats_history

Served by the bus module's bundle from the keeper's own state asked and the
bus's monitoring endpoint (design 25 § 12.3): each entry's template, bus
names, settings asked and held and fill against its cap; check names each
object missing or differing; orphans what no accepted manifest asks for.
nats_history reads one entry's events, in order, from the bus module's own
stream BROKER_EVENTS on the tools' credential. The manifest test now holds
every tool and reading verb the manifest names to what the bundle serves.

Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
2026-11-04 12:34:59 +01:00
parent 905c34a537
commit 6be2e91da8
6 changed files with 398 additions and 5 deletions
+3 -3
View File
@@ -31,11 +31,11 @@ func (b JetStream) Held(ctx context.Context, o Object) (Settings, Fill, bool, er
if err != nil {
return Settings{}, Fill{}, false, retryable(err)
}
return settingsOf(o.Kind, info.Config), Fill{Bytes: info.State.Bytes, Messages: info.State.Msgs}, true, nil
return SettingsOf(o.Kind, info.Config), Fill{Bytes: info.State.Bytes, Messages: info.State.Msgs}, true, nil
}
// settingsOf reads a stream's configuration as the settings an object of kind is asked with.
func settingsOf(kind string, c jetstream.StreamConfig) Settings {
// SettingsOf reads a stream's configuration as the settings an object of kind is asked with.
func SettingsOf(kind string, c jetstream.StreamConfig) Settings {
s := Settings{MaxBytes: c.MaxBytes, MaxAgeSeconds: int64(c.MaxAge / time.Second), Discard: DiscardOld,
WorkQueue: c.Retention == jetstream.WorkQueuePolicy, DuplicatesSeconds: int64(c.Duplicates / time.Second)}
if c.Discard == jetstream.DiscardNew {