@boardstate/server@1.0.0
·
39 commits
to main
since this release
Major Changes
-
af1df09- The capability broker (SPEC §17, M4b) — approval-gated data-source grants. Extends
the approval model from agent-authored widget CODE to DATA sources, per ADR
docs/decisions/0001-capability-broker.md.@boardstate/schema: a top-levelcapabilitiesRegistry(optional on input;
always present after validation) — grants keyed by connector name, each carrying
its allowlist-validated method/stream snapshot andrequested/granted/revoked
status. Import re-pends every grant and stripsgrantedBy/grantedAt(an imported
board carries no active capability).@boardstate/core:reconcileReplaceApprovalnow also forces any grant
self-elevated tograntedback torequestedin the write lock, so a
replace/import can never grant a capability.normalizeWorkspacecarries the
registry through the client read model.@boardstate/server(BREAKING):installConnectornow REQUIRESnameand
takesstore+description. On install a connector registers its grant
requested; its reads answercapability_pendingand its streams broadcast
nothing until an operator approves. New operator-only RPC
dashboard.capability.approve(inOPERATOR_ONLY_METHODS; never in the agent tool
catalog) grants/revokes; revocation stops all its bindings immediately. A connector
changing its declared shape re-requests. Omittingstorekeeps the pre-§17
behavior (serve immediately). The reference sidecar declares + auto-approves its
grant.
Migration: an existing
installConnector({ reads, streams })call becomes
installConnector({ name, store, reads, streams })and the operator (or the host at
boot, for a single-operator localhost) approves the connector's grant.
Patch Changes
- Updated dependencies [
af1df09]:- @boardstate/schema@1.0.0
- @boardstate/core@1.0.0