Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

style(studio): replace em dashes in doc comments with commas, colons or full stops

FABIOTESS62a840c85956
diff --git a/studio/src-tauri/sidecars/agent/acl.ts b/studio/src-tauri/sidecars/agent/acl.ts
index 2a456af2..1cfc2fa9 100644
--- a/studio/src-tauri/sidecars/agent/acl.ts
+++ b/studio/src-tauri/sidecars/agent/acl.ts
@@ -109,10 +109,10 @@ const DENIED_ROLE: Role = {
/**
* Resolve a role id.
*
- * `undefined` means "no role was selected" — the legitimate default state of
- * a fresh session — and resolves to the unrestricted role, matching the UI's
- * own default. Any OTHER string that does not match a known id is treated as
- * a bad or spoofed value, not a missing selection, and is denied rather than
+ * `undefined` means "no role was selected", the legitimate default state of a
+ * fresh session, and resolves to the unrestricted role, matching the UI's own
+ * default. Any OTHER string that does not match a known id is treated as a
+ * bad or spoofed value, not a missing selection, and is denied rather than
* silently granted the unrestricted role.
*/
export function roleById(id: string | undefined): Role {
@@ -131,7 +131,7 @@ export function isUnrestricted(role: Role): boolean {
* Returns an empty string for the unrestricted role so the caller's query is
* unchanged rather than wrapped in a tautology, which keeps the unrestricted
* path byte-identical to the behaviour before access control existed. Every
- * other role — including one with an empty `groups` list — gets a `VALUES`
+ * other role, including one with an empty `groups` list, gets a `VALUES`
* clause; an empty `VALUES {}` matches nothing, which is what denies a role
* that has not been assigned to any group.
*/
diff --git a/studio/src-tauri/src/mcp.rs b/studio/src-tauri/src/mcp.rs
index 69d4357d..e6756f7f 100644
--- a/studio/src-tauri/src/mcp.rs
+++ b/studio/src-tauri/src/mcp.rs
@@ -23,7 +23,7 @@ pub async fn mcp_call(
// Try the call; if the session has expired, reinitialize and retry once
match do_mcp_call(&method, &params, &state).await {
Err(ref e) if e.contains("Session not found") || e.contains("Not Found") => {
- // Session expired — reinitialize and retry
+ // Session expired, reinitialize and retry
reinitialize(&state).await?;
do_mcp_call(&method, &params, &state).await
}
@@ -90,7 +90,7 @@ async fn do_mcp_call(
}
}
- // Notifications get 202 with empty body — that's success
+ // Notifications get 202 with empty body, that's success
if is_notification {
return Ok(serde_json::Value::Null);
}
diff --git a/studio/src/components/PropertyInspector.tsx b/studio/src/components/PropertyInspector.tsx
index 20e6c5fc..59c45742 100644
--- a/studio/src/components/PropertyInspector.tsx
+++ b/studio/src/components/PropertyInspector.tsx
@@ -451,7 +451,7 @@ export function PropertyInspector({ node, onGraphChanged }: Props) {
/>
</div>
- {/* Language tag input — only for literals */}
+ {/* Language tag input, only for literals */}
{newValType === 'literal' && (
<div>
<div style={{ color: 'var(--text-secondary)' }} className="mb-1">Language tag <span style={{ color: 'var(--text-secondary)', opacity: 0.6 }}>(optional)</span></div>
diff --git a/studio/src/components/TreeView.tsx b/studio/src/components/TreeView.tsx
index b0b71aaf..f96743d3 100644
--- a/studio/src/components/TreeView.tsx
+++ b/studio/src/components/TreeView.tsx
@@ -428,7 +428,7 @@ SELECT ?prop ?propLabel ?target ?targetLabel ?dir WHERE {
return () => { delete (window as unknown as Record<string, unknown>).__refreshGraph; };
}, [loadTree]);
- // Relabel tree when language filter changes — no re-query needed
+ // Relabel tree when language filter changes, no re-query needed
useEffect(() => {
// Ahead of the early return: a language picked before the first load must
// still be the one `loadTree` reads when it arrives.
@@ -680,7 +680,7 @@ SELECT ?prop ?propLabel ?target ?targetLabel ?dir WHERE {
// Tree connector lines
const lines: React.ReactNode[] = [];
// Run up to indent-2: the direct-parent column (lvl = indent-1) is handled
- // by the own connector below — mixing both draws a phantom T on last children.
+ // by the own connector below: mixing both draws a phantom T on last children.
for (let lvl = 0; lvl < indent - 1; lvl++) {
// Vertical continuation line for ancestors that are NOT the last child.
// Column `lvl` belongs to the ancestor at indent `lvl + 1`, not `lvl`:
diff --git a/studio/src/hooks/useEngine.ts b/studio/src/hooks/useEngine.ts
index 56515c09..dacc5441 100644
--- a/studio/src/hooks/useEngine.ts
+++ b/studio/src/hooks/useEngine.ts
@@ -22,7 +22,7 @@ export const useEngine = create<EngineStore>((set, get) => ({
for (let i = 0; i < 10; i++) {
try {
- // Use REST API for connectivity check — no MCP session needed
+ // Use REST API for connectivity check, no MCP session needed
const stats = await mcp.getStats();
if (stats) {
set({ status: 'connected' });
diff --git a/studio/src/lib/mcp-client.ts b/studio/src/lib/mcp-client.ts
index ecd53150..5a242db5 100644
--- a/studio/src/lib/mcp-client.ts
+++ b/studio/src/lib/mcp-client.ts
@@ -39,7 +39,7 @@ async function mcpCall(method: string, params: Record<string, unknown> = {}): Pr
}
}
-// Sessionless REST API — direct access to shared graph store, no MCP session required
+// Sessionless REST API: direct access to shared graph store, no MCP session required
async function apiBase(): Promise<string> {
return `http://127.0.0.1:${await enginePort()}/api`;
}
diff --git a/studio/src/lib/roles.ts b/studio/src/lib/roles.ts
index 963656e9..e88584be 100644
--- a/studio/src/lib/roles.ts
+++ b/studio/src/lib/roles.ts
@@ -13,7 +13,7 @@
* document, so the two lists cannot silently drift into one filtering and the
* other not. Defaulting either side to full access on a mismatch would still
* "work" in the sense of not crashing, which is exactly what makes it
- * dangerous — it would visibly stop filtering while looking like it was.
+ * dangerous: it would visibly stop filtering while looking like it was.
*/
export interface RoleOption {
@@ -71,7 +71,7 @@ export const ROLE_OPTIONS: RoleOption[] = [
*
* `roleId === undefined` is the one case treated as "no selection made" and
* resolves to the unrestricted role, matching the dropdown's own default
- * state — a different situation from a role name that was supplied but not
+ * state, a different situation from a role name that was supplied but not
* recognised.
*/
export function resolveVisibility(