Critical-risk tools in Stable Baseline
31 of the 196 tools in Stable Baseline are classified as critical risk. This page profiles those tools specifically, with recommended policy actions and the attack patterns that target them.
Every operation listed below is an action PolicyLayer recommends controlling at the transport layer. Open any tool to see the full profile, risk score, and YAML policy snippet.
Tools at critical risk
-
cancelAllKgInScopeDestructiveEmergency stop for KG ingestion: cancels queued/running build runs, queued/running rebuild batches, demotes still-eager unfinished chunks. Optionally narrowed to one project. Re...
-
cancelKgBuildBatchDestructiveCancel a single KG rebuild batch. Queued runs flip to 'cancelled' immediately; running runs finish naturally. Requires can_manage_kg. Rate limit 5/min.
-
deleteDiagramInDocumentDestructiveDelete a diagram: removes the database record AND every reference to it in the document body — the current marker format plus legacy forms (markers without an embedded diagramId...
-
deleteDocumentDestructiveDelete a document.
-
deleteFolderDestructiveDelete a folder recursively, including all nested folders and documents.
-
deleteImageInDocumentDestructiveDelete an image from a document and storage.
-
deleteImprovementDestructiveDelete an improvement and all associated evidence and activity.
-
deleteImprovementCategoryDestructiveDelete an improvement category. Cannot delete system categories.
-
deleteImprovementCommentDestructiveDelete a comment from an improvement.
-
deletePlanDestructiveDelete a plan, all its phases, and all tasks/improvements within it. This is a destructive operation that cannot be undone.
-
deletePlanCommentDestructiveDelete a comment from a plan.
-
deletePlanPhaseDestructiveDelete a plan phase and all tasks/improvements within it. This is a destructive operation that cannot be undone.
-
deleteResourcePermissionDestructiveDelete a resource_permissions row. Refuses if the row is the LAST admin grant on the resource. Rate limit 30/min. Use when the user asks to revoke access, remove access, take aw...
-
deleteTaskDependencyDestructiveRemove a task-dependency edge. Neither item's dates are changed.
-
deleteTeamDestructiveDelete a team. Cascades: team members and team-granted resource permissions are removed automatically. Destructive; rate limit 5/min.
-
deleteVegaDataFileDestructiveDelete a data file attachment from a document.
-
deleteWhiteboardDestructiveDelete a whiteboard (the host document and its canvas).
-
removeMemberDestructiveHard-remove a member from an organisation, cascading to workspace and team memberships and resource permissions. Refuses self-removal and last-owner removal. Stripe seat downgra...
-
removeTeamMemberDestructiveRemove a user from a team. Idempotent — returns removed=false if not on the team.
-
removeWorkspaceMemberDestructiveRemove a member from a workspace. Caller must be a workspace owner or admin. Refuses to remove the last remaining workspace owner.
-
resetDocumentInBrainDestructiveWipe + re-ingest a single document in the KG. Drops chunks/mentions/entities, clears pending lazy-extraction, and enqueues a fresh extract pass. Requires can_manage_kg + documen...
-
revokeTeamWorkspaceAccessDestructiveRevoke a team's workspace access. Idempotent — returns revoked=false if no grant exists.
-
applySubscriptionChangeFinancialApply a previously previewed subscription change. Same-tier seat changes update Stripe in place; cross-tier upgrades from Free return a hosted Checkout URL. Refuses target=free ...
-
cancelSubscriptionFinancialApply a previewed soft cancellation (cancel_at_period_end=true). Customer keeps full access until period end. Rate limit 5/h. Use only AFTER previewSubscriptionCancellation and ...
-
getCustomerPortalLinkFinancialMint a single-use Stripe Customer Portal URL for self-serve billing changes. return_url defaults to https://app.stablebaseline.io/settings/billing and must be on a stablebaselin...
-
previewSubscriptionCancellationFinancialPreview the consequences of cancelling. Returns confirmation_token plus summary {remaining_credits, prepaid_days, prepaid_value_aud, feature_loss[], at_risk_seats}. Soft cancel ...
-
previewSubscriptionChangeFinancialPreview a subscription tier or seat change. Returns confirmation_token (10-min TTL) plus proration and next-invoice math. Cross-tier upgrades from Free return requires_checkout=...
-
purchaseCreditPackageFinancialApply a credit-package quote by creating a hosted Stripe Checkout session. Returns checkout_url + session_id. Refuses if catalogued price has drifted. Rate limit 5/h. Use only A...
-
quoteCreditPackageFinancialQuote a credit-package purchase (first half of the human-in-the-loop ritual). Returns quote_token (10-min TTL) plus package + total_aud. Caller must invoke purchaseCreditPackage...
-
reactivateSubscriptionFinancialReactivate a subscription that was scheduled to cancel at period end (clears cancel_at_period_end). Rate limit 5/h. Use when the user asks to reactivate, uncancel, restore, or k...
-
updateBillingEmailFinancialUpdate the org's billing email. Validates format, writes private.organizations.billing_email, syncs to Stripe customer. Rate limit 30/h.
Attacks that target this class
Critical-risk tools in any server share these documented attack patterns. Each links to the full case and the defensive policy.