Repository navigation
Guardrails sweep a pattern's stored matches and hold the org's extraction rules; Settings lists memory webhooks - #371
Merged
Conversation
zlareb1
force-pushed
the
feat/dashboard-guardrails-settings
branch
3 times, most recently
from
November 8, 2026 00:50
0b68046 to
b86da34
Compare
Signed-off-by: zlareb1 <[email protected]>
…tion rules; Settings lists memory webhooks Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… deliveries show their states; the webhook client is its own module Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…failed, and the guardrail panels name their fields and guard a late save Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ere read for, the reason field has the server's cap, and the missing confirmations and races are tested Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…eason is plain text Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ason first, the webhooks section is keyed by namespace, and sweep and rules toasts name their scope Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…-call toasts name the org, and the scoped toasts and the keyed section are tested Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…d and holds while it runs, and the remaining toasts and the lock case are tested Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… on its keyed mount Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…h mounts Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…s ops Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
feat/dashboard-guardrails-settings
branch
from
November 8, 2026 01:31
b86da34 to
3a3d7e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
Guardrails can delete the stored memories a pattern already matches, and an org admin sets the org's and a namespace's extraction rules and switches the org's model calls off or on there; Settings → Memory lists, adds and removes the namespace's memory webhooks and shows their deliveries.
Why
blacklist.sweep,extraction_policy.get/set/clear,org.model_calls,org.set_model_callsandwebhook.list/register/remove/deliveriesare configuration a person sets; each was callable only over HTTP or the SDKs, andserver/operations/dashboard.pylisted them as pending a dashboard control.Scope and risk
blacklist.sweep), offered by the handler's rule: a namespace pattern to a writer of the namespace, an org or global one to an org admin claim (it sweeps the whole org). The confirmation says where it deletes and that the memories can be restored for 14 days from Recently deleted (in each namespace they were in, for a wider pattern); the item says it is deleting while the sweep runs, and the answer counts what was deleted, says nothing matched, says when more remain, or says the sweep failed.server/identity/app/model_calls.pydecides; Extraction rules for the org and the namespace's own additions, each field named by its scope, saved or removed (removal asks first), capped at the server's 4,096 characters; each panel is keyed by the org or namespace it reads, so a switch mounts a fresh one and a late answer, draft or busy save never reaches another scope.LOOM_WEBHOOK_SECRET_<org>__, encoded as the server encodes it), removed from the row's menu after a confirmation (a remove that finds nothing says so), and its Deliveries in a dialog: the newest 50 of the last three days, each failure's reason as text beside its badge (the worker's reason when it gave one, else the receiver's last HTTP status; none once delivered), pending ones in a neutral badge. A namespace switch does not show the previous namespace's list; every list shows its loading and error states.frontend/src/api/guardrails.ts,frontend/src/api/webhooks.ts) are imported directly, not throughapi.ts;npm run budgetpasses (index chunk 119.9 kB of 120 kB).blacklist.sweepis hidden from MCP and has no SDK wrapper; its census reach is nowdashboardinstead ofhttp_only, andtest_op_reach_census.pysays so.DASHBOARD_PENDING, and the reach manifest is regenerated.Compatibility, rollout and rollback
Tests
Blacklist.sweep.test.tsx(a writer sweeps a namespace pattern and not an org one; an org admin sweeps an org pattern; a failed sweep, one that matched nothing and one with more left; a declined confirmation; global patterns; an org admin's sweep of an org pattern across the org; the org's guardrails shown to an org admin claim only),OrgGuardrails.test.tsx(save the namespace's rules and remove the org's, switch model calls off only after a confirmation, the platform admin's lock for an org admin and for a platform admin, a failed read with Retry, a declined rules removal, a save that lands after a namespace switch),WebhooksSection.test.tsx(list with a missing secret, add for the checked events, remove after a confirmation, deliveries, failed list and deliveries reads with Retry, the secret prefix, a namespace switch, a refused registration, a declined removal, a removal that finds nothing, a failure's HTTP status or transport error and none once delivered),Setup.blacklist.test.tsx(Webhooks hidden from a viewer, shown to an admin).tsc -b, the build andnpm run budgetclean; biome format and lint clean.tests/unit/test_op_surfaces.py,tests/unit/test_op_reach_census.py,op_reach_census --check.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. I checked each control's role gate against its op's declaration and handler.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
npm --prefix frontend run build) and its tests pass, iffrontend/changed.git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code