diff --git a/apps/docs/content/docs/ai/troubleshooting.mdx b/apps/docs/content/docs/ai/troubleshooting.mdx
index 6e1cd78b..dc5e6580 100644
--- a/apps/docs/content/docs/ai/troubleshooting.mdx
+++ b/apps/docs/content/docs/ai/troubleshooting.mdx
@@ -67,3 +67,13 @@ If the agent built against stale schema, or TypeScript errors reference fields t
ProofKit apps rely on generated metadata. If your FileMaker schema changes but the project still uses old generated files, the agent will confidently write code against the wrong shape.
Use the [TypeGen docs](/docs/typegen) when the issue is clearly about generated types, layouts, or config.
+
+## FileMaker says access privileges are damaged [#access-privileges-damaged]
+
+If FileMaker shows a warning that says **"The access privileges in this file have been damaged or possibly tampered with"**, and the file previously had **PROOFKIT** installed in it, contact us at [support@proof.sh](mailto:support@proof.sh).
+
+
+
+This issue only affected files where the ProofKit add-on was installed with **ProofKit 2.04**. We fixed the add-on in later versions, but in affected files the 2.04 add-on could fail to uninstall cleanly.
+
+We have a fix for affected files. Send us a note at [support@proof.sh](mailto:support@proof.sh), mention that the file had **PROOFKIT** installed, and we can help repair it.
diff --git a/apps/docs/public/screenshots/ai/filemaker-access-privileges-warning.png b/apps/docs/public/screenshots/ai/filemaker-access-privileges-warning.png
new file mode 100644
index 00000000..19156829
Binary files /dev/null and b/apps/docs/public/screenshots/ai/filemaker-access-privileges-warning.png differ
diff --git a/apps/docs/src/app/layout.config.tsx b/apps/docs/src/app/layout.config.tsx
index 3b6ee92e..007c7cc7 100644
--- a/apps/docs/src/app/layout.config.tsx
+++ b/apps/docs/src/app/layout.config.tsx
@@ -14,16 +14,16 @@ export const baseOptions = {
>
),
diff --git a/apps/docs/src/instrumentation-client.ts b/apps/docs/src/instrumentation-client.ts
index 60e9cb7d..e97b87e8 100644
--- a/apps/docs/src/instrumentation-client.ts
+++ b/apps/docs/src/instrumentation-client.ts
@@ -3,8 +3,9 @@ import { ENV } from "varlock/env";
const posthogToken = ENV.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN;
const posthogHost = "/api/posthog";
+const isPostHogEnabled = process.env.NODE_ENV === "production" && Boolean(posthogToken);
-if (posthogToken) {
+if (isPostHogEnabled) {
posthog.init(posthogToken, {
api_host: posthogHost,
autocapture: {
@@ -14,10 +15,5 @@ if (posthogToken) {
capture_pageview: true,
defaults: "2026-01-30",
disable_session_recording: true,
- loaded: (client) => {
- if (process.env.NODE_ENV === "development") {
- client.debug();
- }
- },
});
}
diff --git a/apps/docs/src/lib/analytics.ts b/apps/docs/src/lib/analytics.ts
index 74fb51c6..e2c04f33 100644
--- a/apps/docs/src/lib/analytics.ts
+++ b/apps/docs/src/lib/analytics.ts
@@ -5,7 +5,7 @@ import { ENV } from "varlock/env";
type AnalyticsProperties = Record;
-const isPostHogEnabled = Boolean(ENV.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN);
+const isPostHogEnabled = process.env.NODE_ENV === "production" && Boolean(ENV.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN);
export function captureEvent(event: string, properties: AnalyticsProperties = {}) {
if (!isPostHogEnabled) {