{ "schemaVersion": 3, "kind": "pretrain-binary", "strategy": "isolated-worktree-offline-install-compile", "baseRef": "f8550e121ac64d13654887b8a845452f741c94bf", "sourceRecovery": { "remote": "origin", "ref": "f8550e121ac64d13654887b8a845452f741c94bf", "depth": 1 }, "sourceEntrypoints": [ "packages/coding-agent/src/cli.ts", "packages/coding-agent/src/notifications/telegram-daemon-cli.ts" ], "artifactPath": "packages/coding-agent/dist/skc-rollback", "artifactPathByPlatform": { "darwin": "packages/coding-agent/dist/skc-rollback", "linux": "packages/coding-agent/dist/skc-rollback", "win32": "packages/coding-agent/dist/skc-rollback.exe" }, "artifactSha256Scope": "SHA-256 of the freshly compiled, host-signed executable bytes named by artifactPathByPlatform for the host platform in the isolated pinned worktree, verified immediately before each invocation; no executable artifact is committed.", "supportedPlatforms": ["darwin", "linux", "win32"], "toolchain": { "runtime": "bun", "version": "1.3.14", "dependencyInstall": ["bun", "install", "--offline", "--frozen-lockfile"], "nativeBuild": ["bun", "--cwd=packages/natives", "run", "build"], "nativeEmbed": ["bun", "--cwd=packages/natives", "run", "embed:native"], "compile": ["bun", "build", "--compile", "--minify", "--no-compile-autoload-bunfig", "--no-compile-autoload-dotenv", "--no-compile-autoload-tsconfig", "--no-compile-autoload-package-json", "--keep-names", "--define", "process.env.PI_COMPILED=\"true\"", "--define", "process.env.SKC_BUILD_CHANNEL=\"dev\"", "--root", "../..", "--external", "mupdf", "./src/cli.ts", "./src/notifications/telegram-daemon-cli.ts", "--outfile", "dist/skc-rollback"], "sign": { "darwin": ["codesign", "--force", "--sign", "-", "dist/skc-rollback"], "linux": [], "win32": [] } }, "runtimeEnvironment": {"BUN_OPTIONS": "--preload {transportShim}"}, "productCommand": ["{executable}", "notify", "daemon-internal", "--owner-id", "{ownerId}", "--agent-dir", "{agentDir}"], "shutdownCommand": ["{executable}", "daemon", "stop", "telegram", "--json", "--graceful-timeout-ms", "5000"], "notes": "baseRef is sayknow-cli 0.3.16 on origin/main (2026-07-14): the newest fork commit before the SDK broker (Phase B, first shipped in v0.4.0) that still discovers v1 per-session endpoint records at /notifications/.json, honors SKC_CODING_AGENT_DIR, and exposes the daemon-internal and daemon stop CLI surface named above; it must stay reachable from origin/main so the depth-1 recovery fetch works on CI. The rollback proof creates an isolated detached worktree at baseRef, installs that tree's locked dependencies offline (bun 1.3.14 serves the pinned bun.lock from the shared install cache and fetches only cache misses), compiles the old CLI plus Telegram daemon entrypoint, resolves the host executable path (Bun appends .exe on Windows), applies host-appropriate signing (macOS ad-hoc codesign; no signing needed on Linux/Windows compiled binaries), hashes its exact executable bytes, and invokes only that executable. The preload deterministically intercepts only Telegram API fetches." }