@indigoai-us/hq-cloud 6.16.68 → 6.16.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/bin/sync-runner-company.d.ts.map +1 -1
  2. package/dist/bin/sync-runner-company.js +14 -0
  3. package/dist/bin/sync-runner-company.js.map +1 -1
  4. package/dist/bin/sync-runner-company.test.js +64 -0
  5. package/dist/bin/sync-runner-company.test.js.map +1 -1
  6. package/dist/bin/sync-runner-events.test.js +19 -0
  7. package/dist/bin/sync-runner-events.test.js.map +1 -1
  8. package/dist/bin/sync-runner.d.ts +5 -0
  9. package/dist/bin/sync-runner.d.ts.map +1 -1
  10. package/dist/bin/sync-runner.js.map +1 -1
  11. package/dist/cli/share.d.ts +18 -1
  12. package/dist/cli/share.d.ts.map +1 -1
  13. package/dist/cli/share.js +135 -120
  14. package/dist/cli/share.js.map +1 -1
  15. package/dist/cli/sync.d.ts +181 -1
  16. package/dist/cli/sync.d.ts.map +1 -1
  17. package/dist/cli/sync.js +63 -27
  18. package/dist/cli/sync.js.map +1 -1
  19. package/dist/cli/sync.test.js +105 -0
  20. package/dist/cli/sync.test.js.map +1 -1
  21. package/dist/journal-decode-window.d.ts +42 -0
  22. package/dist/journal-decode-window.d.ts.map +1 -0
  23. package/dist/journal-decode-window.js +60 -0
  24. package/dist/journal-decode-window.js.map +1 -0
  25. package/dist/journal-decode-window.test.d.ts +2 -0
  26. package/dist/journal-decode-window.test.d.ts.map +1 -0
  27. package/dist/journal-decode-window.test.js +99 -0
  28. package/dist/journal-decode-window.test.js.map +1 -0
  29. package/dist/journal-row-store.d.ts +4 -0
  30. package/dist/journal-row-store.d.ts.map +1 -1
  31. package/dist/journal-row-store.js +64 -2
  32. package/dist/journal-row-store.js.map +1 -1
  33. package/dist/journal-streaming.heap.test.d.ts +2 -0
  34. package/dist/journal-streaming.heap.test.d.ts.map +1 -0
  35. package/dist/journal-streaming.heap.test.js +190 -0
  36. package/dist/journal-streaming.heap.test.js.map +1 -0
  37. package/dist/journal.d.ts +1 -11
  38. package/dist/journal.d.ts.map +1 -1
  39. package/dist/journal.js +4 -53
  40. package/dist/journal.js.map +1 -1
  41. package/dist/journal.test.js +13 -7
  42. package/dist/journal.test.js.map +1 -1
  43. package/dist/lib/net-errors.d.ts +12 -0
  44. package/dist/lib/net-errors.d.ts.map +1 -1
  45. package/dist/lib/net-errors.js +22 -0
  46. package/dist/lib/net-errors.js.map +1 -1
  47. package/dist/lib/net-errors.test.js +35 -1
  48. package/dist/lib/net-errors.test.js.map +1 -1
  49. package/dist/lib/s3-content-checksum.d.ts +16 -0
  50. package/dist/lib/s3-content-checksum.d.ts.map +1 -0
  51. package/dist/lib/s3-content-checksum.js +91 -0
  52. package/dist/lib/s3-content-checksum.js.map +1 -0
  53. package/dist/lib/s3-content-checksum.test.d.ts +2 -0
  54. package/dist/lib/s3-content-checksum.test.d.ts.map +1 -0
  55. package/dist/lib/s3-content-checksum.test.js +26 -0
  56. package/dist/lib/s3-content-checksum.test.js.map +1 -0
  57. package/dist/object-io.d.ts +2 -0
  58. package/dist/object-io.d.ts.map +1 -1
  59. package/dist/object-io.js +37 -19
  60. package/dist/object-io.js.map +1 -1
  61. package/dist/object-io.test.js +89 -2
  62. package/dist/object-io.test.js.map +1 -1
  63. package/dist/sync/candidate-uploader.d.ts.map +1 -1
  64. package/dist/sync/candidate-uploader.js +6 -1
  65. package/dist/sync/candidate-uploader.js.map +1 -1
  66. package/dist/sync/multipart-uploader.d.ts.map +1 -1
  67. package/dist/sync/multipart-uploader.js +2 -1
  68. package/dist/sync/multipart-uploader.js.map +1 -1
  69. package/package.json +1 -1
  70. package/dist/journal-row-cache.d.ts +0 -102
  71. package/dist/journal-row-cache.d.ts.map +0 -1
  72. package/dist/journal-row-cache.heap.test.d.ts +0 -2
  73. package/dist/journal-row-cache.heap.test.d.ts.map +0 -1
  74. package/dist/journal-row-cache.heap.test.js +0 -102
  75. package/dist/journal-row-cache.heap.test.js.map +0 -1
  76. package/dist/journal-row-cache.js +0 -549
  77. package/dist/journal-row-cache.js.map +0 -1
  78. package/dist/journal-row-cache.test.d.ts +0 -2
  79. package/dist/journal-row-cache.test.d.ts.map +0 -1
  80. package/dist/journal-row-cache.test.js +0 -155
  81. package/dist/journal-row-cache.test.js.map +0 -1
@@ -4,9 +4,11 @@
4
4
  * Pulls all files the caller's STS session policy permits.
5
5
  * Never auto-overwrites local changes — prompts on conflict.
6
6
  */
7
- import type { VaultServiceConfig } from "../types.js";
7
+ import { type SpooledRemoteFiles } from "../sync/remote-file-spool.js";
8
+ import type { VaultServiceConfig, SyncJournal } from "../types.js";
8
9
  import { type SyncMode } from "../vault-client.js";
9
10
  import { type TelemetryClaims } from "../telemetry-events.js";
11
+ import type { RemoteFile } from "../s3.js";
10
12
  import { type ScopePrefixInput } from "../prefix-coalesce.js";
11
13
  import { type TransferSemaphore } from "../sync-core.js";
12
14
  import type { ConflictDecision, ConflictStrategy, ConflictResolution } from "./conflict.js";
@@ -541,6 +543,24 @@ export type SyncProgressEvent = {
541
543
  path: string;
542
544
  /** Fixed remediation text (a program is holding the file open). */
543
545
  remedy: string;
546
+ } | {
547
+ /**
548
+ * Emitted by the PULL leg (download install OR conflict-convergence
549
+ * probe) once per vault key that was in the LIST and gone by the GET —
550
+ * the LIST→GET race on short-lived inbox files such as
551
+ * `inbox/pending/jobrun-*.json`. Like `skip-symlink-privilege` this is
552
+ * deliberately NOT `type: "error"` (policy
553
+ * hq-sync-deliberate-skip-not-fatal-error-exit2): treating a vanished
554
+ * object as an error lands the company in the runner's `errors[]`,
555
+ * forces PARTIAL_SYNC_EXIT (2), and the fleet monitor pages
556
+ * `component-sync: degraded` even though the next pass simply no longer
557
+ * lists the key. The object is left UNJOURNALED so a later pass that
558
+ * still lists it retries with no manual reset. `message` is the
559
+ * describeError surface of the NoSuchKey/404.
560
+ */
561
+ type: "skip-vanished-remote";
562
+ path: string;
563
+ message: string;
544
564
  } | {
545
565
  /**
546
566
  * Push-side twin of the pull planner's `skip-archived-session-log`: the
@@ -876,6 +896,7 @@ export declare const _testing: {
876
896
  disableCooperativeRowVisits: typeof disableCooperativeRowVisits;
877
897
  cooperativeRowVisits: typeof snapshotCooperativeRowVisits;
878
898
  cooperativePhase: () => "list" | "plan" | "download" | null;
899
+ computePullPlan: typeof computePullPlan;
879
900
  };
880
901
  /**
881
902
  * Best-effort report of the files that were new to this drive during the sync,
@@ -902,6 +923,164 @@ export declare function reportNewFilesToNotify(vaultConfig: VaultServiceConfig,
902
923
  * Sync (pull) all allowed files from the entity vault.
903
924
  */
904
925
  export declare function sync(options: SyncOptions): Promise<SyncResult>;
926
+ /**
927
+ * List the remote objects the current pull can actually materialize.
928
+ *
929
+ * Historically this was ALWAYS a full-bucket `listRemoteFiles(ctx)` — even for
930
+ * a `shared`/`custom` membership whose effective scope is a handful of
931
+ * prefixes — so every pull materialized the entire remote listing (tens of
932
+ * thousands of RemoteFile objects on large vaults) only for `computePullPlan`
933
+ * to discard most of it as `skip-out-of-scope`. Scoped pulls now list ONLY the
934
+ * in-scope prefixes via `listRemoteForScope` (per-prefix ListObjectsV2 calls,
935
+ * bounded parallel, deduped), which bounds the listing's memory to the scope's
936
+ * actual footprint.
937
+ *
938
+ * `all` mode spools one paged LIST to private temporary storage and collects
939
+ * directory-overlay ancestors. Classification replays that snapshot only after
940
+ * the journal refresh above. This preserves freshness even for a row listed
941
+ * early whose watcher delete commits during a later page.
942
+ *
943
+ * An empty `listedPrefixSet` in a scoped mode means "nothing in scope" —
944
+ * issue zero LIST calls. Consumers already treat an empty listing correctly:
945
+ * the deletion sweep in `computePullPlan` only considers journal keys covered
946
+ * by the LISTED scope, so keys absent because they were never listed can never
947
+ * be mistaken for remote deletes.
948
+ */
949
+ type RemoteFileSource = RemoteFile[] | SpooledRemoteFiles;
950
+ /**
951
+ * Stage-1 classification for a single remote object. Each remote file falls
952
+ * into exactly one bucket; the executor in `sync()` switches on `action` to
953
+ * decide what to do. `localHash` is carried on `conflict` items so the
954
+ * executor can hand it to `resolveConflict` without re-hashing.
955
+ */
956
+ type LocalSnapshot = {
957
+ kind: "absent" | "directory" | "other";
958
+ } | {
959
+ kind: "file" | "symlink";
960
+ hash: string;
961
+ };
962
+ /**
963
+ * Why a remote key was classified `skip-out-of-scope`. The two causes look
964
+ * identical in the count but have OPPOSITE remedies, so they must never be
965
+ * reported as one: `membership-scope` is fixed by raising the membership's
966
+ * access level to `all`; `push-only` is not fixed by that at all.
967
+ */
968
+ type OutOfScopeReason = "membership-scope" | "push-only";
969
+ type PullPlanItem = {
970
+ action: "download";
971
+ remoteFile: RemoteFile;
972
+ localPath: string;
973
+ isNew: boolean;
974
+ localSnapshot: LocalSnapshot;
975
+ } | {
976
+ action: "skip-ignored";
977
+ remoteFile: RemoteFile;
978
+ localPath: string;
979
+ } | {
980
+ action: "skip-archived-session-log";
981
+ remoteFile: RemoteFile;
982
+ localPath: string;
983
+ } | {
984
+ action: "skip-personal-mode";
985
+ remoteFile: RemoteFile;
986
+ localPath: string;
987
+ } | {
988
+ action: "skip-unchanged";
989
+ remoteFile: RemoteFile;
990
+ localPath: string;
991
+ } | {
992
+ action: "skip-local-only";
993
+ remoteFile: RemoteFile;
994
+ localPath: string;
995
+ } | {
996
+ action: "skip-unreadable-link";
997
+ remoteFile: RemoteFile;
998
+ localPath: string;
999
+ } | {
1000
+ action: "skip-stale-overlay-marker";
1001
+ remoteFile: RemoteFile;
1002
+ localPath: string;
1003
+ } | {
1004
+ action: "skip-overlay-marker-with-children";
1005
+ remoteFile: RemoteFile;
1006
+ localPath: string;
1007
+ } | {
1008
+ action: "skip-excluded-policy";
1009
+ remoteFile: RemoteFile;
1010
+ localPath: string;
1011
+ } | {
1012
+ action: "skip-out-of-scope";
1013
+ remoteFile: RemoteFile;
1014
+ localPath: string;
1015
+ reason: OutOfScopeReason;
1016
+ } | {
1017
+ action: "skip-junk-key-spelling";
1018
+ remoteFile: RemoteFile;
1019
+ localPath: string;
1020
+ journaledKey: string;
1021
+ } | {
1022
+ action: "tombstone-delete";
1023
+ remoteFile: RemoteFile;
1024
+ localPath: string;
1025
+ localSnapshot: LocalSnapshot;
1026
+ } | {
1027
+ action: "conflict";
1028
+ remoteFile: RemoteFile;
1029
+ localPath: string;
1030
+ localHash: string;
1031
+ localMtime: Date;
1032
+ localSize: number;
1033
+ localSnapshot: LocalSnapshot;
1034
+ };
1035
+ interface PullPlan {
1036
+ items: PullPlanItem[];
1037
+ /** Ordinary streamed skips omitted from `items`; seed executor counters. */
1038
+ preplannedFilesSkipped: number;
1039
+ /** Streamed out-of-scope skips omitted from `items`; seed executor counters. */
1040
+ preplannedFilesOutOfScope: number;
1041
+ filesToDownload: number;
1042
+ bytesToDownload: number;
1043
+ filesToSkip: number;
1044
+ filesToConflict: number;
1045
+ /** Files classified as new (no local counterpart at classification time). */
1046
+ newFiles: Array<{
1047
+ path: string;
1048
+ bytes: number;
1049
+ }>;
1050
+ newFilesCount: number;
1051
+ /** Count of remote keys refused by ephemeral-mirror policy. */
1052
+ filesExcludedByPolicy: number;
1053
+ /** Count of remote keys skipped because they fall outside the sync scope. */
1054
+ filesOutOfScope: number;
1055
+ /**
1056
+ * Journal-known keys missing from the remote LIST. The executor will
1057
+ * apply each as a local delete (file or symlink) + journal removal,
1058
+ * propagating the peer's push-side delete cross-machine (Bug #9).
1059
+ * Carried on the plan so the executor can iterate without re-walking.
1060
+ */
1061
+ tombstones: Array<{
1062
+ key: string;
1063
+ localPath: string;
1064
+ localSnapshot: LocalSnapshot;
1065
+ }>;
1066
+ /**
1067
+ * Count of `tombstone-delete` items — remote keys present in the LIST but
1068
+ * suppressed by a FILE_TOMBSTONE (delete-resync). Surfaced on the plan event's
1069
+ * `filesToDelete` axis; the per-item executor applies the local delete.
1070
+ */
1071
+ filesToTombstoneDelete: number;
1072
+ /**
1073
+ * Remote keys skipped because the server will never presign them. Counted in
1074
+ * `filesExcludedByPolicy`; carried with the server-compatible error code so
1075
+ * the caller can log one warning per key and emit telemetry. Healthy
1076
+ * baseline is an empty array (policy
1077
+ * hq-alert-baseline-calibration: zero expected, any occurrence is signal).
1078
+ */
1079
+ invalidRemoteKeys: Array<{
1080
+ path: string;
1081
+ errorCode: string;
1082
+ }>;
1083
+ }
905
1084
  /**
906
1085
  * win32 only: true when an existing local symlink's TARGET exists but the
907
1086
  * link cannot be traversed as that target's type — the file-flavor-link-at-
@@ -911,5 +1090,6 @@ export declare function sync(options: SyncOptions): Promise<SyncResult>;
911
1090
  * false off win32.
912
1091
  */
913
1092
  export declare function win32SymlinkFlavorBroken(localPath: string, win32?: boolean): boolean;
1093
+ declare function computePullPlan(remoteFiles: RemoteFileSource, journal: SyncJournal, companyRoot: string, shouldSync: (filePath: string, isDir?: boolean) => boolean, personalMode: boolean, teamSyncedSlugs: ReadonlySet<string> | null, prefixSet: readonly ScopePrefixInput[], fileTombstones?: ReadonlyMap<string, CompanyTombstone>, excludePrefixes?: readonly ScopePrefixInput[], propagateDeletePolicy?: "currency-gated" | "owned-only" | "all", onHeartbeat?: () => void, journalRowCount?: number, cooperativeCheckpoint?: () => Promise<void | boolean>, onCooperativeHandoff?: () => void, deleteDenominatorKeys?: ReadonlySet<string>): Promise<PullPlan>;
914
1094
  export {};
915
1095
  //# sourceMappingURL=sync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../src/cli/sync.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAEV,kBAAkB,EAEnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAA+B,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAUhF,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,wBAAwB,CAAC;AAiEhC,OAAO,EAML,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAML,KAAK,iBAAiB,EAEvB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,gBAAgB,EAA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,IAAI,GAAG,OAAO,CAAC,EACrD,oBAAoB,CAAC,EAAE,MAAM,IAAI,EACjC,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC1C,OAAO,CAAC,QAAQ,CAAC,CAsgCnB"}
package/dist/cli/sync.js CHANGED
@@ -13,7 +13,7 @@ import { describeError } from "../lib/describe-error.js";
13
13
  import { isRetryableIdentityRefusal, isTerminalIdentityRefusal, } from "../cognito-auth.js";
14
14
  import { RateLimitedError } from "../object-io.js";
15
15
  import { recoverHqRootLocalState } from "../hq-root-recovery.js";
16
- import { isTransientHttpStatusError } from "../lib/net-errors.js";
16
+ import { isRemoteObjectGoneError, isTransientHttpStatusError } from "../lib/net-errors.js";
17
17
  import { emitCloudTelemetry, } from "../telemetry-events.js";
18
18
  import { resolveEntityContext, isExpiringSoon, refreshEntityContext } from "../context.js";
19
19
  import { ensureCompanyVaultTransport } from "../company-vault-transport.js";
@@ -21,7 +21,7 @@ import { createSyncProgressRecorder } from "../sync-progress.js";
21
21
  import { canonicalVaultKeySpelling, localPathForVaultKey, vaultKeyForLocalPath, } from "../local-path-codec.js";
22
22
  import { SKILLS_KEY_PREFIX } from "./doctor.js";
23
23
  import { downloadFile, streamRemoteFiles, streamRemoteFilePages, headRemoteFile, primeObjectTransport, toPosixKey, classifyVaultKey, DanglingSymlinkParentError, WindowsSymlinkPrivilegeError, WINDOWS_SYMLINK_PRIVILEGE_REMEDY, WindowsRenameBlockedError, WINDOWS_RENAME_BLOCKED_REMEDY, renameOrRaiseWindowsBlocked, } from "../s3.js";
24
- import { readJournalForPass, writeJournal, getStateDir, openJournalStoreSession, buildJournalBaseline, journalDeltaFromBaseline, hashFile, hashSymlinkTarget, journalRows, journalEntryMatchesStat, updateEntry, removeEntry, getEntry, normalizeEtag, migrateToV2, gcTombstones, isTombstone, tombstoneEntry, lastPullRecord, appendPullRecord, generatePullId, PERSONAL_VAULT_JOURNAL_SLUG, migratePersonalVaultJournal, } from "../journal.js";
24
+ import { readJournalForPass, writeJournal, getStateDir, openJournalStoreSession, buildJournalBaseline, journalDeltaFromBaseline, hashFile, hashSymlinkTarget, journalRows, journalEntryMatchesStat, dropJournalDecodeWindow, JOURNAL_DECODE_WINDOW, updateEntry, removeEntry, getEntry, normalizeEtag, migrateToV2, gcTombstones, isTombstone, tombstoneEntry, lastPullRecord, appendPullRecord, generatePullId, PERSONAL_VAULT_JOURNAL_SLUG, migratePersonalVaultJournal, } from "../journal.js";
25
25
  import { isGeneratedCoreMirrorKey, PERSONAL_VAULT_MANIFEST_KEY, } from "../personal-vault.js";
26
26
  import { isPersonalVaultExcluded } from "../personal-vault-exclusions.js";
27
27
  import { buildScopeShrinkPlan, applyScopeShrink, ScopeShrinkBlockedError, ScopeShrinkLargePruneError, } from "../scope-shrink.js";
@@ -323,6 +323,7 @@ export const _testing = {
323
323
  disableCooperativeRowVisits,
324
324
  cooperativeRowVisits: snapshotCooperativeRowVisits,
325
325
  cooperativePhase: () => cooperativePhaseForTest,
326
+ computePullPlan,
326
327
  };
327
328
  /**
328
329
  * Server cap on files per `/v1/notify/file-added` report. The endpoint rejects
@@ -1183,6 +1184,20 @@ async function executeConflictItem(run, plan, scopeRun, counters, downloadItems,
1183
1184
  });
1184
1185
  return null;
1185
1186
  }
1187
+ if (isRemoteObjectGoneError(probeErr)) {
1188
+ // Same LIST→GET race as downloadOne: a short-lived inbox file was
1189
+ // listed (or planned as a conflict) and deleted before this probe GET.
1190
+ // Skip (never type:"error") so the company stays complete and the
1191
+ // runner exits 0; leave unjournaled so a later pass converges if the
1192
+ // key is still listed (policy hq-sync-deliberate-skip-not-fatal-error-exit2).
1193
+ counters.filesSkipped++;
1194
+ run.emit({
1195
+ type: "skip-vanished-remote",
1196
+ path: remoteFile.key,
1197
+ message: describeError(probeErr),
1198
+ });
1199
+ return null;
1200
+ }
1186
1201
  run.emit({
1187
1202
  type: "error",
1188
1203
  path: remoteFile.key,
@@ -1651,6 +1666,22 @@ async function downloadOne(run, downloadItem, counters, deferJournalCheckpoint =
1651
1666
  message: err.message,
1652
1667
  });
1653
1668
  }
1669
+ else if (isRemoteObjectGoneError(err)) {
1670
+ // LIST→GET race: a short-lived inbox file (e.g. inbox/pending/jobrun-*.json)
1671
+ // was present in the vault LIST and gone by the time the GET ran. The
1672
+ // next pass simply no longer lists the key. Per-object, not a transfer
1673
+ // failure. Downgrade to a deliberate skip (never type:"error") so the
1674
+ // company settles `complete` and the one-shot runner exits 0 instead of
1675
+ // PARTIAL_SYNC_EXIT (policy hq-sync-deliberate-skip-not-fatal-error-exit2).
1676
+ // Deliberately does NOT journal the key: the success path below
1677
+ // (updateEntry) never runs, so a later pass that still lists it retries.
1678
+ counters.filesSkipped++;
1679
+ run.emit({
1680
+ type: "skip-vanished-remote",
1681
+ path: remoteFile.key,
1682
+ message: describeError(err),
1683
+ });
1684
+ }
1654
1685
  else {
1655
1686
  // A vault 100/hr throttle (or 429/502/503/504) is a deferral the
1656
1687
  // next sync will retry. Emitting a hard `type: "error"` here used
@@ -2212,36 +2243,33 @@ excludePrefixes = [],
2212
2243
  // callers preserve the pre-policy, watcher-intent-only behavior.
2213
2244
  propagateDeletePolicy = "owned-only", onHeartbeat, journalRowCount = journalRows(journal).size, cooperativeCheckpoint, onCooperativeHandoff, deleteDenominatorKeys) {
2214
2245
  const items = [];
2215
- const streaming = isStreamingRemoteFileSource(remoteFiles);
2216
2246
  const listedFiles = isStreamingRemoteFileSource(remoteFiles) ? remoteFiles.files : remoteFiles;
2217
2247
  let preplannedFilesSkipped = 0;
2218
2248
  let preplannedFilesOutOfScope = 0;
2219
2249
  let preplannedFilesExcludedByPolicy = 0;
2220
- if (streaming) {
2221
- const retain = items.push.bind(items);
2222
- items.push = (...next) => {
2223
- for (const item of next) {
2224
- // These actions still need the executor for an event or a state change.
2225
- if (item.action === "download" ||
2226
- item.action === "conflict" ||
2227
- item.action === "tombstone-delete" ||
2228
- item.action === "skip-junk-key-spelling" ||
2229
- item.action === "skip-unreadable-link") {
2230
- retain(item);
2231
- }
2232
- else if (item.action === "skip-out-of-scope") {
2233
- preplannedFilesOutOfScope++;
2234
- }
2235
- else if (item.action === "skip-excluded-policy") {
2236
- preplannedFilesExcludedByPolicy++;
2237
- }
2238
- else {
2239
- preplannedFilesSkipped++;
2240
- }
2250
+ const retain = items.push.bind(items);
2251
+ items.push = (...next) => {
2252
+ for (const item of next) {
2253
+ // These actions still need the executor for an event or a state change.
2254
+ if (item.action === "download" ||
2255
+ item.action === "conflict" ||
2256
+ item.action === "tombstone-delete" ||
2257
+ item.action === "skip-junk-key-spelling" ||
2258
+ item.action === "skip-unreadable-link") {
2259
+ retain(item);
2241
2260
  }
2242
- return items.length;
2243
- };
2244
- }
2261
+ else if (item.action === "skip-out-of-scope") {
2262
+ preplannedFilesOutOfScope++;
2263
+ }
2264
+ else if (item.action === "skip-excluded-policy") {
2265
+ preplannedFilesExcludedByPolicy++;
2266
+ }
2267
+ else {
2268
+ preplannedFilesSkipped++;
2269
+ }
2270
+ }
2271
+ return items.length;
2272
+ };
2245
2273
  // Remote keys the server will never presign — collected so the caller can
2246
2274
  // warn + emit telemetry without allowing one poison object to fail a pull.
2247
2275
  const invalidRemoteKeys = [];
@@ -2332,10 +2360,14 @@ propagateDeletePolicy = "owned-only", onHeartbeat, journalRowCount = journalRows
2332
2360
  plannedRows++;
2333
2361
  if (cooperativeCheckpoint &&
2334
2362
  plannedRows % FULL_PULL_COOPERATIVE_CHECKPOINT_BATCH_SIZE === 0) {
2363
+ dropJournalDecodeWindow();
2335
2364
  if (await yieldToCooperativeCheckpoint(cooperativeWork, cooperativeCheckpoint, true, plannedRows)) {
2336
2365
  onCooperativeHandoff?.();
2337
2366
  }
2338
2367
  }
2368
+ else if (plannedRows % JOURNAL_DECODE_WINDOW === 0) {
2369
+ dropJournalDecodeWindow();
2370
+ }
2339
2371
  const posixRemoteKey = toPosixKey(remoteFile.key);
2340
2372
  // S3 object keys are POSIX. Match the old delete-sweep membership check:
2341
2373
  // a legacy backslash journal entry counts as present only when its POSIX
@@ -2946,6 +2978,7 @@ propagateDeletePolicy = "owned-only", onHeartbeat, journalRowCount = journalRows
2946
2978
  localSnapshot: plannedLocalSnapshot,
2947
2979
  });
2948
2980
  }
2981
+ dropJournalDecodeWindow();
2949
2982
  if (cooperativeCheckpoint &&
2950
2983
  plannedRows > FULL_PULL_COOPERATIVE_CHECKPOINT_BATCH_SIZE &&
2951
2984
  plannedRows % FULL_PULL_COOPERATIVE_CHECKPOINT_BATCH_SIZE !== 0) {
@@ -3301,6 +3334,9 @@ function defaultConsoleLogger(event) {
3301
3334
  else if (event.type === "skip-rename-blocked") {
3302
3335
  console.warn(` ! ${event.path} skipped — another program on this PC is holding the file open, so HQ could not replace it yet. ${event.remedy}`);
3303
3336
  }
3337
+ else if (event.type === "skip-vanished-remote") {
3338
+ console.warn(` ! ${event.path} skipped — the vault object disappeared before it could be downloaded (${event.message})`);
3339
+ }
3304
3340
  else if (event.type === "not-shipped") {
3305
3341
  if (event.reason === "unreachable-path") {
3306
3342
  console.warn(` ! ${event.count} named path${event.count === 1 ? "" : "s"} could NOT be pushed — the file exists but is not reachable under the company folder (nothing was uploaded for ${event.count === 1 ? "it" : "them"}):`);