feat(usage): read cursor, opencode, and antigravity history #10409
Mergedmaria-rcksmerged 32 commits into
main fromrefs/pull/10409/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XL
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
- apps/server/src/usage/UsageService.ts line 593OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -483,0 +573,21 @@573+ volumeId: yield* Effect.promise(() => readDirectoryVolumeId(dir)),574+ files: !exists && !failed ? null : antigravity.files.filter((file) => file.root === dir),575+ status: failed ? "partial" : "ok",576+ ...(failed ? { message: "Some Antigravity history could not be read." } : {}),577+ });578+ }579+ const configHome = hostEnvironment["XDG_CONFIG_HOME"]?.trim();580+ const cursorHome =581+ platform === "darwin"582+ ? path.join(home, "Library", "Application Support")583+ : platform === "win32"584+ ? hostEnvironment["APPDATA"] || path.join(home, "AppData", "Roaming")585+ : configHome && path.isAbsolute(configHome)586+ ? configHome587+ : path.join(home, ".config");588+ const cursorAuthPath =589+ platform === "darwin"590+ ? path.join(home, ".cursor", "auth.json")591+ : path.join(cursorHome, platform === "win32" ? "Cursor" : "cursor", "auth.json");592+ const cursorUntilMs = yield* Clock.currentTimeMillis;593+ const account = yield* Effect.promise(() =>
- apps/server/src/usage/opencodeUsageReader.ts line 2OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +1 @@1+// @effect-diagnostics nodeBuiltinImport:offapps/server/src/usage/cursorUsageReader.ts line 2OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +1 @@1+// @effect-diagnostics nodeBuiltinImport:offapps/server/src/usage/antigravityUsageReader.ts line 2OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +1 @@1+// @effect-diagnostics nodeBuiltinImport:off
- apps/server/src/usage/UsageService.ts line 537OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -483,0 +517,21 @@517+ dir,518+ volumeId: yield* Effect.promise(() => readDirectoryVolumeId(dir)),519+ files: result.missing && !result.error ? null : result.files,520+ status: result.error ? "partial" : "ok",521+ ...(result.error ? { message: "Some OpenCode history could not be read." } : {}),522+ });523+ }524+ const antigravityRoots = envRoots("ANTIGRAVITY_DATA_DIR", [525+ ...["antigravity", "antigravity-cli", "antigravity-ide", "antigravity-backup"].map((name) =>526+ path.join(home, ".gemini", name),527+ ),528+ path.join(home, ".config", "antigravity"),529+ ]);530+ for (const [instanceId, instance] of Object.entries(settings.providerInstances)) {531+ if (instance.driver === "antigravity") {532+ const directories = yield* resolveAntigravityInstanceDirectories(533+ config.stateDir,534+ ProviderInstanceId.make(instanceId),535+ ).pipe(536+ Effect.provideService(Path.Path, path),537+ Effect.provide(NodeCrypto.layer),
- apps/server/src/usage/cursorUsageReader.ts line 86OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -0,0 +66,21 @@66+ records: [],67+ missing,68+ error: missing ? null : "Cursor credentials could not be read.",69+ };70+ }71+ if (typeof auth.accessToken !== "string" || !auth.accessToken) {72+ return { accountKey: null, records: [], missing: true, error: null };73+ }74+ let accountKey: string | null = null;75+ try {76+ const payload = auth.accessToken.split(".")[1];77+ const subject = object(78+ JSON.parse(Buffer.from(payload ?? "", "base64url").toString("utf8")),79+ ).sub;80+ if (typeof subject !== "string" || !subject) throw new Error("Invalid authentication");81+ const userId = subject.split("|").at(-1);82+ if (!userId) throw new Error("Invalid authentication");83+ accountKey = accountHash(subject);84+ if (!Number.isFinite(sinceMs) || !Number.isFinite(endDate) || sinceMs < 0 || sinceMs > endDate)85+ throw new Error("Invalid date window");86+ const signal = AbortSignal.timeout(10_000);apps/server/src/usage/UsageService.ts lines 509 to 524OutdatedResolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -483,0 +504,21 @@504+ (roots?.length ? roots : defaults).map((root) => path.resolve(expandHomePath(root))),505+ ),506+ ];507+ };508+ const dataHome = hostEnvironment["XDG_DATA_HOME"]?.trim();509+ for (const dir of envRoots("OPENCODE_DATA_DIR", [510+ path.join(511+ dataHome && path.isAbsolute(dataHome) ? dataHome : path.join(home, ".local", "share"),512+ "opencode",513+ ),514+ ])) {515+ const result = yield* Effect.promise(() => readOpenCodeUsage(dir, windowStartMs));516+ scanned.push({517+ provider: "opencode",518+ dir,519+ volumeId: yield* Effect.promise(() => readDirectoryVolumeId(dir)),520+ files: result.missing && !result.error ? null : result.files,521+ status: result.error ? "partial" : "ok",522+ ...(result.error ? { message: "Some OpenCode history could not be read." } : {}),523+ });524+ }@@ -6,10 +6,18 @@6677 ## Understand your usage889-**Usage** combines Codex, Claude Code, and Grok Build session history from your connected9+**Usage** combines Codex, Claude Code, Grok Build, OpenCode, Antigravity, and Cursor history from your connected1010 environments. It shows token use, cache savings, model breakdowns, and estimated API-equivalent1111 cost. These estimates are not your subscription bill.12121313 Totals depend on the history available on each server. Grok turns without a saved completed-turn1414 record are missing from the totals.151516+OpenCode reads its SQLite database and older JSON history. Antigravity reads local conversation17+databases, including T3-managed profiles. Set `OPENCODE_DATA_DIR` or `ANTIGRAVITY_DATA_DIR` on the18+server to read a different data directory; comma-separated paths read multiple directories.19+20+Cursor reads account usage from Cursor's dashboard API using the CLI login saved on the server.21+This includes headless T3 sessions and desktop usage across machines; the same account counts22+once across connected environments. Without an accessible file-based CLI login, T3 shows a23+notice instead of incomplete local totals. T3 does not estimate missing tokens from conversation text.
- apps/server/src/usage/cursorUsageReader.ts line 137OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +117,21 @@117+ }118+ if (!response.ok) throw new Error("Account usage request failed");119+ const parsed: unknown = await response.json();120+ if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {121+ throw new Error("Invalid account usage page");122+ }123+ const body = object(parsed);124+ const keys = Object.keys(body);125+ if ("error" in body || "message" in body || "code" in body)126+ throw new Error("Account usage error response");127+ const count = keys.length === 0 ? 0 : body.totalUsageEventsCount;128+ const events =129+ keys.length === 0 || (keys.length === 1 && keys[0] === "totalUsageEventsCount")130+ ? []131+ : body.usageEventsDisplay;132+ if (133+ (count !== undefined &&134+ (typeof count !== "number" ||135+ !Number.isSafeInteger(count) ||136+ count < 0 ||137+ count > pageSize * 100 ||apps/server/src/usage/UsageService.ts line 525Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -483,0 +504,21 @@504+ const resolved = path.resolve(expandHomePath(root));505+ canonical.add(506+ yield* fileSystem.realPath(resolved).pipe(Effect.orElseSucceed(() => resolved)),507+ );508+ }509+ return [...canonical];510+ });511+ const dataHome = hostEnvironment["XDG_DATA_HOME"]?.trim();512+ for (const dir of yield* envRoots("OPENCODE_DATA_DIR", [513+ path.join(514+ dataHome && path.isAbsolute(dataHome) ? dataHome : path.join(home, ".local", "share"),515+ "opencode",516+ ),517+ ])) {518+ const result = yield* Effect.promise(() => readOpenCodeUsage(dir, windowStartMs));519+ scanned.push({520+ provider: "opencode",521+ dir,522+ volumeId: yield* Effect.promise(() => readDirectoryVolumeId(dir)),523+ files: result.missing && !result.error ? null : result.files,524+ status: result.error ? "partial" : "ok",
- packages/shared/src/usageMerge.ts line 167Resolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -135,10 +135,6 @@135135 a.environmentId.localeCompare(b.environmentId),136136 );137137138- for (const environment of ordered) {139- for (const source of environment.summary.sources) {140- if (source.status === "missing") continue;141- const key = fingerprintKey(source.fingerprint);142- if (ownerByFingerprint.has(key)) {143- duplicates.push(`${environment.label}: ${source.fingerprint.resolvedHomePath}`);144- continue;138+ // A complete scan takes precedence over a newer partial scan of the same139+ // directory. Partial history still contributes when no complete copy exists.140+ for (const status of ["ok", "partial", "failed"] as const) {
- packages/shared/src/usageMerge.ts line 207OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -142,5 +195,18 @@142- if (ownerByFingerprint.has(key)) {143- duplicates.push(`${environment.label}: ${source.fingerprint.resolvedHomePath}`);195+ const owner = ownerScanByFingerprint.get(key);196+ if (197+ owner?.source.status !== "ok" ||198+ Date.parse(environment.summary.readAt) <= Date.parse(owner.environment.summary.readAt)199+ ) {144200 continue;145201 }146- ownerByFingerprint.set(key, environment.environmentId);202+ let seen = seenBucketKeysByFingerprint.get(key);203+ if (seen === undefined) {204+ seen = new Set(bucketsForSource(owner.environment.summary, owner.source).map(bucketKey));205+ seenBucketKeysByFingerprint.set(key, seen);206+ }207+ const supplemental =208+ supplementalBucketsByEnvironment.get(environment.environmentId) ?? new Set<UsageBucket>();209+ let added = false;210+ for (const bucket of bucketsForSource(environment.summary, source)) {211+ const cell = bucketKey(bucket);212+ if (seen.has(cell)) continue;packages/shared/src/usageMerge.ts lines 135 to 135OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -114,2 +115,21 @@114115 }115116117+function bucketsForSource(summary: UsageSummary, source: UsageSource): readonly UsageBucket[] {118+ const providerSources = summary.sources.filter(119+ (entry) => entry.fingerprint.provider === source.fingerprint.provider,120+ );121+ return summary.buckets.filter(122+ (bucket) =>123+ bucket.provider === source.fingerprint.provider &&124+ (bucket.sourcePath === source.fingerprint.resolvedHomePath ||125+ (bucket.sourcePath === undefined && providerSources.length === 1)),126+ );127+}128+129+function bucketKey(bucket: UsageBucket): string {130+ return JSON.stringify([131+ bucket.day,132+ bucket.hourStart ?? null,133+ bucket.provider,134+ bucket.model,135+ bucket.sourcePath ?? null,
- packages/shared/src/usageMerge.ts line 218OutdatedResolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -144,3 +199,20 @@199+ ) {144200 continue;145201 }146- ownerByFingerprint.set(key, environment.environmentId);202+ let selected = selectedBucketsByFingerprint.get(key);203+ if (selected === undefined) {204+ selected = new Map(205+ bucketsForSource(owner.environment.summary, owner.source).map((bucket) => [206+ bucketKey(bucket),207+ { bucket, environmentId: owner.environment.environmentId },208+ ]),209+ );210+ selectedBucketsByFingerprint.set(key, selected);211+ }212+ const supplemental =213+ supplementalBucketsByEnvironment.get(environment.environmentId) ?? new Set<UsageBucket>();214+ let added = false;215+ for (const bucket of bucketsForSource(environment.summary, source)) {216+ const cell = bucketKey(bucket);217+ const previous = selected.get(cell);218+ if (previous !== undefined && previous.bucket.records >= bucket.records) continue;
- apps/server/src/provider/cursorCredentialStore.ts lines 26 to 29Resolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -0,0 +9,21 @@9+ let pending: Promise<string | null> | null = null;10+ return () => {11+ if (cached && cached.until > now()) return Promise.resolve(cached.token);12+ if (pending) return pending;13+ pending = read()14+ .then((token) => {15+ cached = token ? { token, until: now() + CACHE_MS } : null;16+ return token;17+ })18+ .finally(() => {19+ pending = null;20+ });21+ return pending;22+ };23+}24+25+/** Read the Cursor CLI's default macOS credential without invoking the shared security binary. */26+export const readMacCursorAccessToken = makeCachedCursorAccessTokenReader(async () => {27+ const { Entry } = await import("@napi-rs/keyring");28+ return new Entry("cursor-access-token", "cursor-user").getPassword();29+});apps/server/src/provider/Layers/cursorUsageLimits.ts line 96OutdatedResolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -80,10 +81,16 @@80- (credentialStore === "memory" || (platform === "darwin" && credentialStore !== "file"))81- ) {82- // Cursor's default macOS login lives in the keychain; a leftover file may be another account.81+ if (!token && credentialStore === "memory") {8382 return makeUnavailableUsageLimits({8483 checkedAt,8584 reason: "unsupported",86- message: "Cursor usage requires a file-based login or CURSOR_AUTH_TOKEN.",85+ message: "Cursor usage requires a CLI login or CURSOR_AUTH_TOKEN.",8786 });8887 }89- if (!token) {88+ if (!token && platform === "darwin" && credentialStore !== "file") {89+ if (!allowKeychain) {90+ return makeUnavailableUsageLimits({91+ checkedAt,92+ reason: "unsupported",93+ message: "Enable Cursor account usage in T3 Code to read its Keychain login.",94+ });95+ }96+ token = (yield* Effect.promise(keychainToken))?.trim();apps/web/src/components/settings/settingsSearch.ts line 556Resolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -546,3 +546,9 @@546546 ],547547 providerSettingsOnly: true,548548 },549+ {550+ id: "cursor-keychain-usage",551+ title: "Cursor account usage",552+ to: "/settings/providers",553+ searchTerms: ["cursor macOS keychain usage tokens cost limits permission"],554+ providerSettingsOnly: true,
- apps/server/src/provider/Layers/cursorUsageLimits.ts line 106Resolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -80,10 +81,16 @@80- (credentialStore === "memory" || (platform === "darwin" && credentialStore !== "file"))81- ) {82- // Cursor's default macOS login lives in the keychain; a leftover file may be another account.81+ if (!token && credentialStore === "memory") {8382 return makeUnavailableUsageLimits({8483 checkedAt,8584 reason: "unsupported",86- message: "Cursor usage requires a file-based login or CURSOR_AUTH_TOKEN.",85+ message: "Cursor usage requires a CLI login or CURSOR_AUTH_TOKEN.",8786 });8887 }89- if (!token) {88+ if (!token && platform === "darwin" && credentialStore !== "file") {89+ if (!allowKeychain) {90+ return makeUnavailableUsageLimits({91+ checkedAt,92+ reason: "unsupported",93+ message: "Enable Cursor account usage in T3 Code to read its Keychain login.",94+ });95+ }96+ token = (yield* Effect.tryPromise(keychainToken))?.trim();
- apps/server/src/provider/Layers/cursorUsageLimits.ts line 101OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -80,10 +86,16 @@80- (credentialStore === "memory" || (platform === "darwin" && credentialStore !== "file"))81- ) {82- // Cursor's default macOS login lives in the keychain; a leftover file may be another account.86+ if (!token && credentialStore === "memory") {8387 return makeUnavailableUsageLimits({8488 checkedAt,8589 reason: "unsupported",86- message: "Cursor usage requires a file-based login or CURSOR_AUTH_TOKEN.",90+ message: "Cursor usage requires a CLI login or CURSOR_AUTH_TOKEN.",8791 });8892 }89- if (!token) {93+ if (!token && platform === "darwin" && credentialStore !== "file") {94+ if (!allowKeychain) {95+ return makeUnavailableUsageLimits({96+ checkedAt,97+ reason: "unsupported",98+ message: "Enable Cursor account usage in T3 Code to read its Keychain login.",99+ });100+ }101+ if (!endpoint.toLowerCase().startsWith("https://")) {
- apps/web/src/components/usage/UsagePage.tsx lines 784 to 785Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -638,0 +709,21 @@709+ });710+ const [pending, setPending] = useState(false);711+ const enable = async () => {712+ setPending(true);713+ try {714+ const result = await updateSettings({715+ environmentId,716+ input: { patch: { cursorKeychainUsageEnabled: true } },717+ });718+ if (result._tag === "Success") onEnabled();719+ } finally {720+ setPending(false);721+ }722+ };723+ return (724+ <div className="flex min-w-0 items-center justify-between gap-4">725+ <span className="flex min-w-0 items-center gap-2 text-sm text-foreground">726+ <span727+ aria-hidden728+ className="size-2 shrink-0 rounded-full"729+ style={{ backgroundColor: PROVIDER_PRESENTATION.cursor.color }}
- apps/server/src/usage/UsageService.ts line 629Resolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -483,0 +609,21 @@609+ !settings.cursorKeychainUsageEnabled610+ ) {611+ scanned.push({612+ provider: "cursor",613+ dir: cursorAuthPath,614+ volumeId: "",615+ files: null,616+ message: "Cursor account usage is off on this environment.",617+ action: "enableCursorKeychain",618+ });619+ return scanned;620+ }621+ const cursorUntilMs = yield* Clock.currentTimeMillis;622+ const account = loginUnavailable623+ ? {624+ accountKey: null,625+ records: [],626+ missing: true,627+ error: "Cursor account history needs a Cursor CLI login on this server.",628+ }629+ : yield* Effect.promise(() =>
- apps/mobile/src/features/usage/UsageRouteScreen.tsx line 107Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -97,3 +101,7 @@97101 );98102 const isFocused = useIsFocused();99103 const limits = useRefreshLimits(selectedEnvironmentIds, isFocused && tab === "limits");104+ const cursorAccessEnvironments = selectedEnvironments.filter((environment) =>105+ environment.summary?.sources.some((source) => source.action === "enableCursorKeychain"),106+ );107+ const refreshAfterCursorEnable = () => {
- apps/server/src/usage/antigravityUsageReader.ts line 199OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -0,0 +179,21 @@179+ };180+ const generations = tables.has("gen_metadata")181+ ? await readMetadata("SELECT data FROM gen_metadata ORDER BY idx", "data", false)182+ : [];183+ let trajectoryTimestamp: number | null = null;184+ if (tables.has("trajectory_metadata_blob")) {185+ for (const row of db.prepare("SELECT data FROM trajectory_metadata_blob").iterate()) {186+ trajectoryTimestamp ??= timestamp(nested(fields(blob(row.data)), 2));187+ }188+ }189+ const steps = tables.has("steps")190+ ? await readMetadata(191+ "SELECT metadata FROM steps WHERE metadata IS NOT NULL ORDER BY idx",192+ "metadata",193+ true,194+ )195+ : [];196+ const sessionId = NodePath.basename(path, ".db");197+ const records: UsageCandidate[] = [];198+ let currentModel = "";199+ const generationModel = generations.findLast((entry) => entry.model)?.model ?? "";
- apps/server/src/usage/UsageService.ts line 565Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -483,0 +545,21 @@545+ new UsageReadError({546+ reason: "scanFailed",547+ detail: "Antigravity profile directory could not be resolved.",548+ cause,549+ }),550+ ),551+ );552+ antigravityRoots.push(path.join(directories.profile, "antigravity-acp"));553+ }554+ }555+ const antigravityDirs = new Set<string>();556+ for (const root of antigravityRoots) {557+ const resolvedRoot = yield* fileSystem.realPath(root).pipe(Effect.orElseSucceed(() => root));558+ const nested = path.join(resolvedRoot, "conversations");559+ const dir = (yield* fileSystem560+ .exists(nested)561+ .pipe(Effect.catchCause(() => Effect.succeed(false))))562+ ? nested563+ : resolvedRoot;564+ antigravityDirs.add(yield* fileSystem.realPath(dir).pipe(Effect.orElseSucceed(() => dir)));565+ }
- apps/server/src/usage/antigravityUsageReader.ts lines 17 to 30Resolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -0,0 +10,21 @@10+type Fields = Map<number, Array<number | Uint8Array>>;11+12+/** Antigravity stores usage metadata as protobuf, independently of conversation text. */13+function fields(bytes: Uint8Array): Fields {14+ let offset = 0;15+ const result: Fields = new Map();16+ const varint = () => {17+ let value = 0n;18+ for (let shift = 0n; shift < 70n; shift += 7n) {19+ const byte = bytes[offset++];20+ if (byte === undefined || (shift === 63n && byte > 1)) {21+ throw new Error("Invalid Antigravity protobuf varint");22+ }23+ value |= BigInt(byte & 127) << shift;24+ if (byte < 128) {25+ if (value > BigInt(Number.MAX_SAFE_INTEGER)) throw new Error("Unsafe protobuf number");26+ return Number(value);27+ }28+ }29+ throw new Error("Invalid Antigravity protobuf varint");30+ };
- apps/server/src/provider/Layers/cursorUsageLimits.ts line 91Resolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -72,18 +78,14 @@7278 let token = environment.CURSOR_AUTH_TOKEN?.trim();7379 // An explicit API key can name a different account from the stored login.7480 if (!token && environment.CURSOR_API_KEY?.trim()) {7581 return makeUnavailableUsageLimits({ checkedAt, reason: "unsupported" });7682 }7783 const credentialStore = environment.AGENT_CLI_CREDENTIAL_STORE;78- if (79- !token &&80- (credentialStore === "memory" || (platform === "darwin" && credentialStore !== "file"))81- ) {82- // Cursor's default macOS login lives in the keychain; a leftover file may be another account.84+ if (!token && credentialStore === "memory") {8385 return makeUnavailableUsageLimits({8486 checkedAt,8587 reason: "unsupported",86- message: "Cursor usage requires a file-based login or CURSOR_AUTH_TOKEN.",88+ message: "Cursor usage requires a CLI login or CURSOR_AUTH_TOKEN.",8789 });8890 }89- if (!token) {91+ if (!token && platform === "darwin" && credentialStore !== "file") {apps/server/src/provider/Layers/cursorUsageLimits.ts line 66Resolvedby Yash-Singh1(GitHub profile, opens in a new tab)@@ -63,3 +62,5 @@6362 export const readCursorUsageLimits = Effect.fn("readCursorUsageLimits")(function* (6463 settings: Pick<CursorSettings, "apiEndpoint">,6564 environment: NodeJS.ProcessEnv = process.env,65+ allowKeychain = false,66+ keychainToken: () => Promise<string | null> = readMacCursorAccessToken,
Sign in to join this conversation.







Approvability#
Verdict: Not approved
Macroscope's review found this PR not approvable — This 43-file change adds substantial production capability across usage scanning, remote Cursor account access, macOS Keychain handling, aggregation, contracts, and web/mobile UI. It also introduces new static-analysis suppressions and product-default behavior, so the scope and risk require human review.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).