{"record":{"id":"c610c66e92e1906a","repo":"paperclipai/paperclip","slug":"workspace-durable-seed-git-missing","errorCode":"workspace_durable_seed_git_missing","errorMessage":"workspace_durable_seed_git_missing","messagePattern":"workspace_durable_seed_git_missing","errorType":"error_code","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/adapter-utils/src/sandbox-managed-runtime.ts","lineNumber":1317,"sourceCode":"          // defaults to a no-op, so a caller with no injected runner keeps the\n          // current behavior and control flow.\n          await runStepSpan(\"pack\", async () => {\n            // 1. git-history tar (git-backed workspace only). Both tar targets live under\n            //    `runtimeRootDir` (`.paperclip-runtime/<adapterKey>`). The git extract\n            //    wipes the target tree EXCEPT `.paperclip-runtime`, so the overlay tar,\n            //    which sits under `.paperclip-runtime`, survives to run its own extract.\n            if (gitSnapshot) {\n              await emitRuntimeStatus(input.onRuntimeProgress, \"git_sync\", \"Syncing git history to environment\");\n              const gitTarPath = path.join(tempDir, \"git-workspace.tar\");\n              const remoteGitTar = path.posix.join(\n                runtimeRootDir,\n                \"git-workspace-upload.tar\",\n              );\n              if (workspaceInboundMode === \"durable_seed\") {\n                const durableGitArchive =\n                  input.workspaceDurableSeed?.gitArchivePath;\n                if (!durableGitArchive) {\n                  throw new Error(\"workspace_durable_seed_git_missing\");\n                }\n                await copyDurableSeedArchive({\n                  sourcePath: durableGitArchive,\n                  targetPath: gitTarPath,\n                  expectedSha256: input.workspaceDurableSeed?.gitArchiveSha256,\n                });\n              } else {\n                await withShallowGitWorkspaceClone(\n                  {\n                    localDir: input.workspaceLocalDir,\n                    snapshot: gitSnapshot,\n                  },\n                  async (cloneDir) => {\n                    await createTarballFromDirectory({\n                      localDir: cloneDir,\n                      archivePath: gitTarPath,\n                      exclude: [\".paperclip-runtime\"],\n                    });","sourceCodeStart":1299,"sourceCodeEnd":1335,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/packages/adapter-utils/src/sandbox-managed-runtime.ts#L1299-L1335","documentation":"Guard during the pack step in prepareSandboxManagedRuntime: the workspace is git-backed and a git-history tar was expected, but no usable git snapshot was available to pack. It fires when the git working tree or snapshot data required for the seed/history tarball is missing at pack time.","triggerScenarios":"Thrown at packages/adapter-utils/src/sandbox-managed-runtime.ts:1317 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the workspace has a valid git repository with at least one commit before preparing the runtime","Re-create or repair the git snapshot the runtime relies on","Run the workspace in non-git mode if git history is not required"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-09-10T03:14:50.855Z","contentChangedAt":"2026-09-10T03:14:50.855Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}