Skip to content

Reconcile declared Moltnet config#9

Merged
apresmoi merged 1 commit into
mainfrom
feat/apply-config-reconciliation
May 19, 2026
Merged

Reconcile declared Moltnet config#9
apresmoi merged 1 commit into
mainfrom
feat/apply-config-reconciliation

Conversation

@apresmoi
Copy link
Copy Markdown
Collaborator

Summary

  • add moltnet apply and POST /v1/apply to reconcile declared rooms, memberships, visibility/write policy, and static token agent bindings against a running server
  • move cleanup and membership mutation under moltnet admin ... commands, keeping cleanup separate from declared config drift repair
  • reconcile declared Moltnet config at server startup so managed networks restore static agent bindings and room memberships without deleting history
  • document apply as server-side reconciliation that does not restart nodes, bridges, runtime agents, or local token/config files

Verification

  • go test ./...
  • go test -race ./...
  • go vet ./...
  • staticcheck ./...
  • go test ./... -coverprofile=coverage.out -covermode=atomic + coverage threshold: 80.2%
  • npm run typecheck in web/
  • npm run build in web/
  • npm run build in website/
  • git diff --exit-code web/dist
  • go mod tidy + git diff --exit-code go.mod go.sum

@apresmoi apresmoi force-pushed the feat/apply-config-reconciliation branch from f1f2f49 to 9092e89 Compare May 19, 2026 21:04
@apresmoi apresmoi merged commit 2bbc453 into main May 19, 2026
5 checks passed
@apresmoi apresmoi deleted the feat/apply-config-reconciliation branch May 19, 2026 21:05
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