⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
fix(integrations): verify resume handoff and bind rule impact
Tin4812b8fa8cfe
diff --git a/apps/api/src/integration-sync/controllers/preview-rules.ts b/apps/api/src/integration-sync/controllers/preview-rules.tsindex 13b319b82..ad3666dfd 100644--- a/apps/api/src/integration-sync/controllers/preview-rules.ts+++ b/apps/api/src/integration-sync/controllers/preview-rules.ts@@ -96,12 +96,16 @@ export async function previewSyncRules().orderBy(asc(scope.id)).limit(26);+ const selectedLabelIds =+ rules.outgoing.mode === "labels" ? rules.outgoing.labels : [];const previewToken = createHash("sha256").update(JSON.stringify({integration: [integration.id, integration.config, integration.isActive],rules,- labels: proposed.labels,+ labels: proposed.labels+ .filter((label) => selectedLabelIds.includes(label.id))+ .map(({ id, name }) => [id, name]),revision: impact!.revision,}),)diff --git a/apps/api/src/integration-sync/controllers/resume-sync.ts b/apps/api/src/integration-sync/controllers/resume-sync.tsindex adb6efe37..664f8c0de 100644--- a/apps/api/src/integration-sync/controllers/resume-sync.ts+++ b/apps/api/src/integration-sync/controllers/resume-sync.ts@@ -8,6 +8,7 @@ import { publishTaskMutation } from "../../task/controllers/task-mutation-effectimport { applySyncResume } from "./apply-resume";import { lockResumeScope } from "./lock-resume-scope";import { reviewSyncResume } from "./review-resume";+import { verifyResumeProvider } from "./verify-resume-provider";import type { ResumeProviderSnapshot } from "./resume-provider-snapshot";export async function resumeSync(@@ -112,6 +113,24 @@ async function resumeWithLease(}throw error;}+ let verificationError: unknown;+ if (source === "provider") {+ // An edit's only webhook may have been discarded while the link was paused.+ // Read after unpausing: earlier edits are detected, and later webhooks run.+ try {+ await verifyResumeProvider(snapshot);+ } catch (error) {+ verificationError = error;+ console.error("Sync resume provider verification failed", {+ projectId,+ provider,+ linkId,+ });+ await updateExternalLink(linkId, {+ metadata: { syncFilterPaused: true },+ });+ }+ }if (adoption)await publishTaskMutation(adoption.before, adoption.after, undefined, {fields: ["title", "description", "status"],@@ -119,5 +138,6 @@ async function resumeWithLease(});await publishEvent("task.updated", { projectId, taskId: initial.task.id });await publishEvent("project.updated", { projectId });+ if (verificationError) throw verificationError;return { success: true };}diff --git a/apps/api/src/integration-sync/controllers/verify-resume-provider.ts b/apps/api/src/integration-sync/controllers/verify-resume-provider.tsnew file mode 100644index 000000000..e2717ac56--- /dev/null+++ b/apps/api/src/integration-sync/controllers/verify-resume-provider.ts@@ -0,0 +1,22 @@+import { HTTPException } from "hono/http-exception";+import type { ResumeProviderSnapshot } from "./resume-provider-snapshot";++export async function verifyResumeProvider(snapshot: ResumeProviderSnapshot) {+ let current: ResumeProviderSnapshot["remoteIssue"];+ try {+ current = await snapshot.access.read();+ } catch {+ throw new HTTPException(502, {+ message: "External issue could not be verified; sync remains paused",+ });+ }+ if (+ current.title !== snapshot.remoteIssue.title ||+ current.description !== snapshot.remoteIssue.description ||+ current.state !== snapshot.remoteIssue.state+ )+ throw new HTTPException(409, {+ message:+ "External issue changed while resuming; review the comparison again",+ });+}diff --git a/apps/docs/core/integrations/index.mdx b/apps/docs/core/integrations/index.mdxindex 8966bbb84..4ecd82aab 100644--- a/apps/docs/core/integrations/index.mdx+++ b/apps/docs/core/integrations/index.mdx@@ -34,6 +34,8 @@ Resuming leaves priority, detailed status, and custom labels unchanged. Later reKaneo rereads the issue when you resume and rejects a changed comparison. Local edits remain available while the repository responds; a task, rule, label, or link change during a resume write keeps synchronization paused for another review. When adopting a different open/closed state, resume uses the project's configured issue close or reopen workflow target. Gitea's content version, when available, also protects the body write from concurrent edits. Provider APIs do not offer an atomic version check for every issue field, so an edit made after the final read can still conflict with a resume write. Avoid editing the repository issue while resuming it. A rejected provider write leaves synchronization paused for another review.+When keeping repository values, Kaneo checks the issue again after adopting them. A changed issue or failed verification pauses the link again for another review. The adopted values remain visible in the next comparison.+An issue creation request already sent to a repository may finish after its task stops matching. Kaneo keeps the returned issue link paused and stops further updates. Local edits remain available while the repository responds.If creating an issue succeeds but its initial state, labels, or linking comment fails, **Export matching tasks** retries the unfinished steps using the existing issue link.diff --git a/apps/web/src/components/settings/advanced-settings-switch.tsx b/apps/web/src/components/settings/advanced-settings-switch.tsxindex 4e2cbe985..315248ec9 100644--- a/apps/web/src/components/settings/advanced-settings-switch.tsx+++ b/apps/web/src/components/settings/advanced-settings-switch.tsx@@ -16,12 +16,18 @@ export function AdvancedSettingsSwitch() {return (<div className="flex items-center justify-between gap-4 rounded-xl border border-border bg-card p-4">- <Label htmlFor={id} className="text-sm font-medium">- {t("settings:advancedSettings")}- </Label>+ <div className="space-y-1">+ <Label htmlFor={id} className="text-sm font-medium">+ {t("settings:advancedSettings")}+ </Label>+ <p id={`${id}-description`} className="text-xs text-muted-foreground">+ {t("settings:advancedSettingsDescription")}+ </p>+ </div><Switchid={id}aria-label={t("settings:advancedSettings")}+ aria-describedby={`${id}-description`}checked={advancedSettings}onCheckedChange={setAdvancedSettings}/>diff --git a/i18n/az-AZ.json b/i18n/az-AZ.jsonindex 038cf4ce9..8f52204ca 100644--- a/i18n/az-AZ.json+++ b/i18n/az-AZ.json@@ -1931,7 +1931,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex 16a945ff1..cdf0b9df3 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -1931,7 +1931,8 @@"inactiveHint": "Diese Integration ist pausiert. Aufgaben werden erst nach ihrer Reaktivierung exportiert.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/el-GR.json b/i18n/el-GR.jsonindex 884d78692..8861fbfa6 100644--- a/i18n/el-GR.json+++ b/i18n/el-GR.json@@ -1931,7 +1931,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex b7b70c042..237784719 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -424,6 +424,7 @@},"settings": {"advancedSettings": "Advanced settings",+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces.","syncRules": {"title": "Sync scope","filteredBadge": "Filtered by labels",diff --git a/i18n/es-ES.json b/i18n/es-ES.jsonindex 932141c9d..eb519be04 100644--- a/i18n/es-ES.json+++ b/i18n/es-ES.json@@ -1939,7 +1939,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/fr-FR.json b/i18n/fr-FR.jsonindex 77ee9b005..7e21d203f 100644--- a/i18n/fr-FR.json+++ b/i18n/fr-FR.json@@ -1939,7 +1939,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/hi-IN.json b/i18n/hi-IN.jsonindex bcda8c66d..e42ac0fe9 100644--- a/i18n/hi-IN.json+++ b/i18n/hi-IN.json@@ -1931,7 +1931,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/id-ID.json b/i18n/id-ID.jsonindex 5697a5ca4..580c0664a 100644--- a/i18n/id-ID.json+++ b/i18n/id-ID.json@@ -1923,7 +1923,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/it-IT.json b/i18n/it-IT.jsonindex 5664424cf..8f8223a9e 100644--- a/i18n/it-IT.json+++ b/i18n/it-IT.json@@ -1939,7 +1939,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/ja-JP.json b/i18n/ja-JP.jsonindex d985f2341..6a1b8e5b8 100644--- a/i18n/ja-JP.json+++ b/i18n/ja-JP.json@@ -1923,7 +1923,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/ko-KR.json b/i18n/ko-KR.jsonindex 48b6bc730..1976eef69 100644--- a/i18n/ko-KR.json+++ b/i18n/ko-KR.json@@ -1923,7 +1923,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/mk-MK.json b/i18n/mk-MK.jsonindex 55322fe10..691704c6a 100644--- a/i18n/mk-MK.json+++ b/i18n/mk-MK.json@@ -1931,7 +1931,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/nl-NL.json b/i18n/nl-NL.jsonindex 755321001..bf7ce9260 100644--- a/i18n/nl-NL.json+++ b/i18n/nl-NL.json@@ -1931,7 +1931,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/pl-PL.json b/i18n/pl-PL.jsonindex 143292077..4d2041386 100644--- a/i18n/pl-PL.json+++ b/i18n/pl-PL.json@@ -2504,7 +2504,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"tasks": {"title": "Zadania",diff --git a/i18n/pt-BR.json b/i18n/pt-BR.jsonindex e1575bb38..07ca30164 100644--- a/i18n/pt-BR.json+++ b/i18n/pt-BR.json@@ -1939,7 +1939,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/ru-RU.json b/i18n/ru-RU.jsonindex f3304e0fd..c0809e912 100644--- a/i18n/ru-RU.json+++ b/i18n/ru-RU.json@@ -1955,7 +1955,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/schema.json b/i18n/schema.jsonindex d00489b38..c41a6d4a3 100644--- a/i18n/schema.json+++ b/i18n/schema.json@@ -1689,6 +1689,9 @@"advancedSettings": {"type": "string"},+ "advancedSettingsDescription": {+ "type": "string"+ },"syncRules": {"type": "object","additionalProperties": false,@@ -7779,6 +7782,7 @@},"required": ["advancedSettings",+ "advancedSettingsDescription","syncRules","account","administration",diff --git a/i18n/tr-TR.json b/i18n/tr-TR.jsonindex 3c9c0ffba..59cea84d3 100644--- a/i18n/tr-TR.json+++ b/i18n/tr-TR.json@@ -1931,7 +1931,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/uk-UA.json b/i18n/uk-UA.jsonindex e527d74c4..c58e48d35 100644--- a/i18n/uk-UA.json+++ b/i18n/uk-UA.json@@ -1947,7 +1947,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/vi-VN.json b/i18n/vi-VN.jsonindex 103b76699..e718d354c 100644--- a/i18n/vi-VN.json+++ b/i18n/vi-VN.json@@ -1923,7 +1923,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/i18n/zh-CN.json b/i18n/zh-CN.jsonindex 8a5a90fa5..e473f8252 100644--- a/i18n/zh-CN.json+++ b/i18n/zh-CN.json@@ -1923,7 +1923,8 @@"inactiveHint": "This integration is paused. No tasks will be exported until it is reactivated.","loadSavedRules": "Load saved rules","rulesChanged": "The saved rules changed while you were editing. Your draft is preserved. Review the current rules above before applying it, or load the saved rules."- }+ },+ "advancedSettingsDescription": "A personal display preference for this browser across all your workspaces."},"navigation": {"commandPalette": {diff --git a/tests/api-integration/integration-sync-rules.test.ts b/tests/api-integration/integration-sync-rules.test.tsindex 988b33f2e..8020d3dfd 100644--- a/tests/api-integration/integration-sync-rules.test.ts+++ b/tests/api-integration/integration-sync-rules.test.ts@@ -43,13 +43,15 @@ vi.mock("../../apps/api/src/plugins/sync/provider-issue", () => ({beforeEach(async () => {await resetTestDatabase();vi.clearAllMocks();- provider.read.mockResolvedValue({+ provider.read.mockReset().mockResolvedValue({title: "Repository title",description: "Repository body",state: "closed",updatedAt: "2026-01-01T00:00:00Z",});- provider.write.mockResolvedValue({ updatedAt: "2026-01-02T00:00:00Z" });+ provider.write+ .mockReset()+ .mockResolvedValue({ updatedAt: "2026-01-02T00:00:00Z" });});async function setup(role = "owner") {@@ -289,6 +291,71 @@ describe("integration label policies", () => {).toEqual(defaultSyncRules);});+ it.each(["unrelated rename", "unrelated color", "selected color"])(+ "saves a reviewed label rule after an %s change",+ async (change) => {+ const f = await setup();+ await f.assign();+ const [other] = await db+ .insert(schema.labelTable)+ .values({+ workspaceId: f.workspace.id,+ name: "Unrelated",+ color: "#123456",+ })+ .returning();+ const preview = await f.preview();+ await db+ .update(schema.labelTable)+ .set(+ change === "unrelated rename"+ ? { name: "Renamed" }+ : { color: "#654321" },+ )+ .where(+ eq(+ schema.labelTable.id,+ change === "selected color" ? f.label.id : other.id,+ ),+ );+ expect(+ (+ await f.request("", "PATCH", {+ rules: f.rules,+ previewToken: preview.previewToken,+ })+ ).status,+ ).toBe(200);+ expect(+ readSyncRules((await getSyncIntegration(f.project.id, "gitea")).config),+ ).toEqual(f.rules);+ },+ );++ it("rejects a selected label rename even when task eligibility is unchanged", async () => {+ const f = await setup();+ await f.assign();+ const preview = await f.preview();+ await db+ .update(schema.labelTable)+ .set({ name: "Renamed" })+ .where(+ and(+ eq(schema.labelTable.workspaceId, f.workspace.id),+ eq(schema.labelTable.name, f.label.name),+ ),+ );+ expect((await f.preview()).matching).toBe(preview.matching);+ expect(+ (+ await f.request("", "PATCH", {+ rules: f.rules,+ previewToken: preview.previewToken,+ })+ ).status,+ ).toBe(409);+ });+it("rejects labels belonging to another workspace", async () => {const f = await setup();const other = await createWorkspaceMember();@@ -862,6 +929,90 @@ describe("reviewed sync resume", () => {expect(await canSyncTask(f.task.id, f.integration.id)).toBe(false);});+ it("pauses again when a repository edit's webhook was discarded during resume", async () => {+ const f = await paused();+ const review = await reviewSyncResume(f.project.id, "gitea", f.link.id);+ let remote = review.snapshot.remoteIssue;+ const ignoredWebhook = vi.fn(async () => {+ await db+ .update(schema.taskTable)+ .set({ title: "Edited after read" })+ .where(eq(schema.taskTable.id, f.task.id));+ });+ const publish = vi+ .spyOn(events, "publishEvent")+ .mockResolvedValue(undefined);+ provider.read.mockImplementation(async () => remote);+ provider.read.mockImplementationOnce(async () => {+ const snapshot = remote;+ remote = {+ ...remote,+ title: "Edited after read",+ updatedAt: "new-provider-version",+ };+ await withIntegrationLink(f.link, f.integration, ignoredWebhook);+ return snapshot;+ });+ await expect(+ resumeSync(f.project.id, "gitea", f.link.id, review.token, "provider"),+ ).rejects.toMatchObject({ status: 409 });+ expect(ignoredWebhook).not.toHaveBeenCalled();+ expect(await canSyncTask(f.task.id, f.integration.id)).toBe(false);+ expect(provider.write).not.toHaveBeenCalled();+ expect(publish).toHaveBeenCalledWith(+ "task.updated",+ expect.objectContaining({ taskId: f.task.id }),+ );+ const followUp = await reviewSyncResume(f.project.id, "gitea", f.link.id);+ expect(followUp.local.title).toBe(review.remote.title);+ expect(followUp.remote.title).toBe("Edited after read");+ });++ it("verifies adopted repository values outside locks without replaying labels", async () => {+ const f = await paused();+ const review = await reviewSyncResume(f.project.id, "gitea", f.link.id);+ provider.read.mockResolvedValueOnce(review.snapshot.remoteIssue);+ provider.read.mockImplementationOnce(async () => {+ expect(await canSyncTask(f.task.id, f.integration.id)).toBe(true);+ const activity = await db.execute<{ count: number }>(sql`+ select count(*)::int as count from pg_stat_activity+ where datname = current_database() and state = 'idle in transaction'+ `);+ expect(activity.rows[0]!.count).toBe(0);+ return {+ ...review.snapshot.remoteIssue,+ labels: ["Changed label"],+ updatedAt: "new-version",+ };+ });+ await expect(+ resumeSync(f.project.id, "gitea", f.link.id, review.token, "provider"),+ ).resolves.toEqual({ success: true });+ expect(provider.read).toHaveBeenCalledTimes(3);+ expect(+ await db.query.labelTable.findMany({+ where: eq(schema.labelTable.taskId, f.task.id),+ }),+ ).toEqual([expect.objectContaining({ name: f.label.name })]);+ });++ it("keeps adoption paused if the verification read fails without exposing provider secrets", async () => {+ const f = await paused();+ const review = await reviewSyncResume(f.project.id, "gitea", f.link.id);+ const log = vi.spyOn(console, "error").mockImplementation(() => {});+ provider.read.mockResolvedValueOnce(review.snapshot.remoteIssue);+ provider.read.mockRejectedValueOnce(+ new Error("private-provider-token-and-response"),+ );+ await expect(+ resumeSync(f.project.id, "gitea", f.link.id, review.token, "provider"),+ ).rejects.toMatchObject({ status: 502 });+ expect(await canSyncTask(f.task.id, f.integration.id)).toBe(false);+ expect(JSON.stringify(log.mock.calls)).not.toContain(+ "private-provider-token-and-response",+ );+ });+it("records an uncertain provider write when the dispatch transaction fails", async () => {const f = await paused();const review = await reviewSyncResume(f.project.id, "gitea", f.link.id);