@ttsc/unplugin 0.31.3 → 0.31.5

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 (98) hide show
  1. package/lib/core/transform/session/claimSharedCompile.js +6 -4
  2. package/lib/core/transform/session/claimSharedCompile.js.map +1 -1
  3. package/lib/core/transform/session/claimSharedCompile.mjs +6 -4
  4. package/lib/core/transform/session/claimSharedCompile.mjs.map +1 -1
  5. package/lib/core/transform/session/openTtscTransformSession.d.cts +1 -1
  6. package/lib/core/transform/session/openTtscTransformSession.d.mts +1 -1
  7. package/lib/core/transform/session/openTtscTransformSession.d.ts +1 -1
  8. package/lib/core/transform/session/openTtscTransformSession.js +7 -3
  9. package/lib/core/transform/session/openTtscTransformSession.js.map +1 -1
  10. package/lib/core/transform/session/openTtscTransformSession.mjs +7 -3
  11. package/lib/core/transform/session/openTtscTransformSession.mjs.map +1 -1
  12. package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.d.cts +6 -6
  13. package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.d.mts +6 -6
  14. package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.d.ts +6 -6
  15. package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.js +9 -7
  16. package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.js.map +1 -1
  17. package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.mjs +9 -7
  18. package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.mjs.map +1 -1
  19. package/lib/core/transform/tracker/broker/watchBrokerSource.js +14 -0
  20. package/lib/core/transform/tracker/broker/watchBrokerSource.js.map +1 -1
  21. package/lib/core/transform/tracker/broker/watchBrokerSource.mjs +14 -0
  22. package/lib/core/transform/tracker/broker/watchBrokerSource.mjs.map +1 -1
  23. package/lib/core/transform/tracker/createHostInputMutationTracker.js +20 -0
  24. package/lib/core/transform/tracker/createHostInputMutationTracker.js.map +1 -1
  25. package/lib/core/transform/tracker/createHostInputMutationTracker.mjs +20 -0
  26. package/lib/core/transform/tracker/createHostInputMutationTracker.mjs.map +1 -1
  27. package/lib/core/transform/tracker/createProjectMutationTracker.d.cts +6 -5
  28. package/lib/core/transform/tracker/createProjectMutationTracker.d.mts +6 -5
  29. package/lib/core/transform/tracker/createProjectMutationTracker.d.ts +6 -5
  30. package/lib/core/transform/tracker/createProjectMutationTracker.js +57 -36
  31. package/lib/core/transform/tracker/createProjectMutationTracker.js.map +1 -1
  32. package/lib/core/transform/tracker/createProjectMutationTracker.mjs +57 -36
  33. package/lib/core/transform/tracker/createProjectMutationTracker.mjs.map +1 -1
  34. package/lib/core/transform/tracker/settleProjectMutationEvents.d.cts +23 -29
  35. package/lib/core/transform/tracker/settleProjectMutationEvents.d.mts +23 -29
  36. package/lib/core/transform/tracker/settleProjectMutationEvents.d.ts +23 -29
  37. package/lib/core/transform/tracker/settleProjectMutationEvents.js +25 -37
  38. package/lib/core/transform/tracker/settleProjectMutationEvents.js.map +1 -1
  39. package/lib/core/transform/tracker/settleProjectMutationEvents.mjs +25 -37
  40. package/lib/core/transform/tracker/settleProjectMutationEvents.mjs.map +1 -1
  41. package/lib/core/transform/tracker/verifyGenerationLocations.d.cts +41 -0
  42. package/lib/core/transform/tracker/verifyGenerationLocations.d.mts +41 -0
  43. package/lib/core/transform/tracker/verifyGenerationLocations.d.ts +41 -0
  44. package/lib/core/transform/tracker/verifyGenerationLocations.js +54 -0
  45. package/lib/core/transform/tracker/verifyGenerationLocations.js.map +1 -0
  46. package/lib/core/transform/tracker/verifyGenerationLocations.mjs +52 -0
  47. package/lib/core/transform/tracker/verifyGenerationLocations.mjs.map +1 -0
  48. package/lib/core/transform/utils/isZombieProcess.d.cts +26 -0
  49. package/lib/core/transform/utils/isZombieProcess.d.mts +26 -0
  50. package/lib/core/transform/utils/isZombieProcess.d.ts +26 -0
  51. package/lib/core/transform/utils/isZombieProcess.js +46 -0
  52. package/lib/core/transform/utils/isZombieProcess.js.map +1 -0
  53. package/lib/core/transform/utils/isZombieProcess.mjs +44 -0
  54. package/lib/core/transform/utils/isZombieProcess.mjs.map +1 -0
  55. package/lib/core/transform/validation/TtscGenerationProof.d.cts +12 -4
  56. package/lib/core/transform/validation/TtscGenerationProof.d.mts +12 -4
  57. package/lib/core/transform/validation/TtscGenerationProof.d.ts +12 -4
  58. package/lib/core/transform/validation/TtscGenerationProof.js +13 -4
  59. package/lib/core/transform/validation/TtscGenerationProof.js.map +1 -1
  60. package/lib/core/transform/validation/TtscGenerationProof.mjs +13 -4
  61. package/lib/core/transform/validation/TtscGenerationProof.mjs.map +1 -1
  62. package/lib/core/transform/validation/matchesCachedExternalInputs.d.cts +2 -2
  63. package/lib/core/transform/validation/matchesCachedExternalInputs.d.mts +2 -2
  64. package/lib/core/transform/validation/matchesCachedExternalInputs.d.ts +2 -2
  65. package/lib/core/transform/validation/matchesCachedExternalInputs.js +26 -5
  66. package/lib/core/transform/validation/matchesCachedExternalInputs.js.map +1 -1
  67. package/lib/core/transform/validation/matchesCachedExternalInputs.mjs +26 -5
  68. package/lib/core/transform/validation/matchesCachedExternalInputs.mjs.map +1 -1
  69. package/lib/core/transform/validation/matchesCompleteInputSnapshot.js +1 -1
  70. package/lib/core/transform/validation/matchesCompleteInputSnapshot.js.map +1 -1
  71. package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs +1 -1
  72. package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs.map +1 -1
  73. package/lib/core/transform/validation/matchesUniversalHostInputProbes.d.cts +15 -8
  74. package/lib/core/transform/validation/matchesUniversalHostInputProbes.d.mts +15 -8
  75. package/lib/core/transform/validation/matchesUniversalHostInputProbes.d.ts +15 -8
  76. package/lib/core/transform/validation/matchesUniversalHostInputProbes.js +29 -20
  77. package/lib/core/transform/validation/matchesUniversalHostInputProbes.js.map +1 -1
  78. package/lib/core/transform/validation/matchesUniversalHostInputProbes.mjs +29 -20
  79. package/lib/core/transform/validation/matchesUniversalHostInputProbes.mjs.map +1 -1
  80. package/lib/core/transform/validation/matchesUniversalHostInputs.js +1 -1
  81. package/lib/core/transform/validation/matchesUniversalHostInputs.js.map +1 -1
  82. package/lib/core/transform/validation/matchesUniversalHostInputs.mjs +1 -1
  83. package/lib/core/transform/validation/matchesUniversalHostInputs.mjs.map +1 -1
  84. package/package.json +3 -3
  85. package/src/core/transform/session/claimSharedCompile.ts +6 -4
  86. package/src/core/transform/session/openTtscTransformSession.ts +7 -3
  87. package/src/core/transform/tracker/broker/sweepAbandonedWatchProbes.ts +8 -7
  88. package/src/core/transform/tracker/broker/watchBrokerSource.ts +14 -0
  89. package/src/core/transform/tracker/createHostInputMutationTracker.ts +18 -0
  90. package/src/core/transform/tracker/createProjectMutationTracker.ts +61 -40
  91. package/src/core/transform/tracker/settleProjectMutationEvents.ts +25 -36
  92. package/src/core/transform/tracker/verifyGenerationLocations.ts +53 -0
  93. package/src/core/transform/utils/isZombieProcess.ts +39 -0
  94. package/src/core/transform/validation/TtscGenerationProof.ts +20 -4
  95. package/src/core/transform/validation/matchesCachedExternalInputs.ts +28 -5
  96. package/src/core/transform/validation/matchesCompleteInputSnapshot.ts +1 -1
  97. package/src/core/transform/validation/matchesUniversalHostInputProbes.ts +27 -16
  98. package/src/core/transform/validation/matchesUniversalHostInputs.ts +1 -1
@@ -3,6 +3,7 @@
3
3
  var crypto = require('node:crypto');
4
4
  var fs = require('node:fs');
5
5
  var path = require('node:path');
6
+ var isZombieProcess = require('../utils/isZombieProcess.js');
6
7
 
7
8
  /** How often a lock holder proves it is still working. */
8
9
  const HEARTBEAT_MS = 1_000;
@@ -284,16 +285,17 @@ function owns(lock, token) {
284
285
  }
285
286
  }
286
287
  /**
287
- * Whether no process with this id exists on this machine, which the store's
288
- * locks and partial writes name their writer by. An id that is not a positive
289
- * integer names nothing this can tell, and counts as alive.
288
+ * Whether no process with this id runs on this machine, which the store's locks
289
+ * and partial writes name their writer by. An id that is not a positive integer
290
+ * names nothing this can tell, and counts as alive. An exited process its
291
+ * parent never collected is gone too.
290
292
  */
291
293
  function processGone(pid) {
292
294
  if (!Number.isInteger(pid) || pid <= 0)
293
295
  return false;
294
296
  try {
295
297
  process.kill(pid, 0);
296
- return false;
298
+ return isZombieProcess.isZombieProcess(pid);
297
299
  }
298
300
  catch (error) {
299
301
  return error.code === "ESRCH";
@@ -1 +1 @@
1
- {"version":3,"file":"claimSharedCompile.js","sources":["../../../../src/core/transform/session/claimSharedCompile.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAOA;AACA,MAAM,YAAY,GAAG,KAAK;AAE1B;;;;AAIG;AACH,MAAM,YAAY,GAAG,MAAM;AAE3B;AACA,MAAM,WAAW,GAAG,GAAG;AAEvB;AACA,MAAM,iBAAiB,GAAG,CAAC;AAE3B;;;;;AAKG;AACH,MAAM,uBAAuB,GAAG,EAAE;AAElC;AACA,MAAM,gBAAgB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGG;AACI,eAAe,kBAAkB,CACtC,KAAa,EACb,QAAgB,EAChB,KAAa,EACb,OAAyD,EAAA;AAEzD,IAAA,MAAM,IAAI,GAAG,CAAA,EAAG,QAAQ,CAAA,CAAA,EAAI,KAAK,EAAE;AACnC,IAAA,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,KAAA,CAAO,CAAC;AACpD,IAAA,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,KAAA,CAAO,CAAC;IAC7C,IAAI,IAAI,GAAG,EAAE;AACb,IAAA,IAAI;AACF,QAAA,SAAS;AACP,YAAA,IAAI,OAAO,CAAC,KAAK,EAAE;AACjB,gBAAA,MAAM,SAAS,GAAG,MAAM,e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,SAAS;AAC9B,SAAC,CAAC,mBAAmB,CAAC,KAAK,CAAC,UAAU,CAAC;AACrC,YAAA,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAEjE,QAAA,OAAO,KAAK;AACd,IAAA,OAAO,IAAI;AACb;AAEA;AACA,SAAS,sBAAsB,CAAC,KAAc,EAAA;AAC5C,IAAA,IACE,CAAC,mBAAmB,CAAC,KAAK,CAAC;QAC3B,KAAK,CAAC,OAAO,KAAK,CAAC;AACnB,QAAA,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;AAClC,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;AAC7B,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,OAAO,MAAM,KAAK,QAAQ,CAAC;AAC5D,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AAC3B,QAAA,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ,CAAC;AACtD,SAAC,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,OAAO,KAAK,CAAC,UAAU,KAAK,QAAQ,CAAC;AAExE,QAAA,OAAO,KAAK;AACd,IAAA,QACE,KAAK,CAAC,cAAc,KAAK,SAAS;AAClC,SAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC;YAClC,KAAK,CAAC,cAAc,CAAC,KAAK,CACxB,CAAC,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,CAC1D,CAAC;AAER;;;;"}
1
+ {"version":3,"file":"claimSharedCompile.js","sources":["../../../../src/core/transform/session/claimSharedCompile.ts"],"sourcesContent":[null],"names":["isZombieProcess"],"mappings":";;;;;;;AAQA;AACA,MAAM,YA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K,CAAC;QAC3B,KAAK,CAAC,OAAO,KAAK,CAAC;AACnB,QAAA,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;AAClC,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;AAC7B,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,OAAO,MAAM,KAAK,QAAQ,CAAC;AAC5D,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AAC3B,QAAA,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ,CAAC;AACtD,SAAC,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,OAAO,KAAK,CAAC,UAAU,KAAK,QAAQ,CAAC;AAExE,QAAA,OAAO,KAAK;AACd,IAAA,QACE,KAAK,CAAC,cAAc,KAAK,SAAS;AAClC,SAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC;YAClC,KAAK,CAAC,cAAc,CAAC,KAAK,CACxB,CAAC,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,CAC1D,CAAC;AAER;;;;"}
@@ -1,6 +1,7 @@
1
1
  import crypto from 'node:crypto';
2
2
  import fs from 'node:fs';
3
3
  import path from 'node:path';
4
+ import { isZombieProcess } from '../utils/isZombieProcess.mjs';
4
5
 
5
6
  /** How often a lock holder proves it is still working. */
6
7
  const HEARTBEAT_MS = 1_000;
@@ -282,16 +283,17 @@ function owns(lock, token) {
282
283
  }
283
284
  }
284
285
  /**
285
- * Whether no process with this id exists on this machine, which the store's
286
- * locks and partial writes name their writer by. An id that is not a positive
287
- * integer names nothing this can tell, and counts as alive.
286
+ * Whether no process with this id runs on this machine, which the store's locks
287
+ * and partial writes name their writer by. An id that is not a positive integer
288
+ * names nothing this can tell, and counts as alive. An exited process its
289
+ * parent never collected is gone too.
288
290
  */
289
291
  function processGone(pid) {
290
292
  if (!Number.isInteger(pid) || pid <= 0)
291
293
  return false;
292
294
  try {
293
295
  process.kill(pid, 0);
294
- return false;
296
+ return isZombieProcess(pid);
295
297
  }
296
298
  catch (error) {
297
299
  return error.code === "ESRCH";
@@ -1 +1 @@
1
- {"version":3,"file":"claimSharedCompile.mjs","sources":["../../../../src/core/transform/session/claimSharedCompile.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAOA;AACA,MAAM,YAAY,GAAG,KAAK;AAE1B;;;;AAIG;AACH,MAAM,YAAY,GAAG,MAAM;AAE3B;AACA,MAAM,WAAW,GAAG,GAAG;AAEvB;AACA,MAAM,iBAAiB,GAAG,CAAC;AAE3B;;;;;AAKG;AACH,MAAM,uBAAuB,GAAG,EAAE;AAElC;AACA,MAAM,gBAAgB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGG;AACI,eAAe,kBAAkB,CACtC,KAAa,EACb,QAAgB,EAChB,KAAa,EACb,OAAyD,EAAA;AAEzD,IAAA,MAAM,IAAI,GAAG,CAAA,EAAG,QAAQ,CAAA,CAAA,EAAI,KAAK,EAAE;AACnC,IAAA,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,KAAA,CAAO,CAAC;AACpD,IAAA,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,KAAA,CAAO,CAAC;IAC7C,IAAI,IAAI,GAAG,EAAE;AACb,IAAA,IAAI;AACF,QAAA,SAAS;AACP,YAAA,IAAI,OAAO,CAAC,KAAK,EAAE;AACjB,gBAAA,MAAM,SAAS,GAAG,MAAM,eAAe,CAAC,WAAW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AAC,CAAC,mBAAmB,CAAC,KAAK,CAAC,UAAU,CAAC;AACrC,YAAA,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;AAEjE,QAAA,OAAO,KAAK;AACd,IAAA,OAAO,IAAI;AACb;AAEA;AACA,SAAS,sBAAsB,CAAC,KAAc,EAAA;AAC5C,IAAA,IACE,CAAC,mBAAmB,CAAC,KAAK,CAAC;QAC3B,KAAK,CAAC,OAAO,KAAK,CAAC;AACnB,QAAA,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;AAClC,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;AAC7B,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,OAAO,MAAM,KAAK,QAAQ,CAAC;AAC5D,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AAC3B,QAAA,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ,CAAC;AACtD,SAAC,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,OAAO,KAAK,CAAC,UAAU,KAAK,QAAQ,CAAC;AAExE,QAAA,OAAO,KAAK;AACd,IAAA,QACE,KAAK,CAAC,cAAc,KAAK,SAAS;AAClC,SAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC;YAClC,KAAK,CAAC,cAAc,CAAC,KAAK,CACxB,CAAC,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,CAC1D,CAAC;AAER;;;;"}
1
+ {"version":3,"file":"claimSharedCompile.mjs","sources":["../../../../src/core/transform/session/claimSharedCompile.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAQA;AACA,MAAM,YAAY,GAAG,KAAK;AAE1B;;;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OAAO,KAAK,CAAC;AACnB,QAAA,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ;AAClC,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;AAC7B,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,OAAO,MAAM,KAAK,QAAQ,CAAC;AAC5D,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;AAC3B,QAAA,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,QAAQ,CAAC;AACtD,SAAC,KAAK,CAAC,UAAU,KAAK,SAAS,IAAI,OAAO,KAAK,CAAC,UAAU,KAAK,QAAQ,CAAC;AAExE,QAAA,OAAO,KAAK;AACd,IAAA,QACE,KAAK,CAAC,cAAc,KAAK,SAAS;AAClC,SAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC;YAClC,KAAK,CAAC,cAAc,CAAC,KAAK,CACxB,CAAC,MAAM,KAAK,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,CAC1D,CAAC;AAER;;;;"}
@@ -41,7 +41,7 @@
41
41
  * @evidence contracts/common.md#clear-and-simple-design New directory ownership stays in userStateDirectory, claiming in claimSharedCompile and adoption proof in generation capture; this operation declares the address and reclaims recognized legacy children.
42
42
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Optional store failure leaves real local compilation in place, rather than reusing unproven output or suppressing compiler failure.
43
43
  * @evidence contracts/common.md#meaningful-documentation The prose explains worker inheritance, persistent versus obsolete process storage, and why sharing failures return undefined.
44
- * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live; this classification is not a general proof of death under every process-probe failure.
44
+ * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live, and a success naming a Linux zombie as not live; this classification is not a general proof of death under every process-probe failure.
45
45
  * @evidence contracts/performance.md#efficient-algorithms An inherited path performs native path/stat work and avoids the root scan. Cold opening materializes N child names, matches their text and probes recognized PIDs, with provider realpath/create/stat work and recursive deletion of selected subtrees. Cost depends on name bytes, removed descendants and native operations, not just N; persistent shared-store contents are not scanned here.
46
46
  * @evidence contracts/performance.md#reuse-equivalent-work Parent and worker processes retain the inherited store capability, while compile identity, state proof and publication reuse remain with the claim/adoption owners.
47
47
  * @evidence contracts/performance.md#bound-retention-and-release-resources Recognized clock and legacy children classified not live are recursively reclaimed. Inherited, live and unrecognized children bypass reclamation; a failed removal aborts opening, so no count or byte bound is enforced here. The environment retains the current address; claimSharedCompile owns best-effort publication pruning. Synchronous operations leave no open handle.
@@ -41,7 +41,7 @@
41
41
  * @evidence contracts/common.md#clear-and-simple-design New directory ownership stays in userStateDirectory, claiming in claimSharedCompile and adoption proof in generation capture; this operation declares the address and reclaims recognized legacy children.
42
42
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Optional store failure leaves real local compilation in place, rather than reusing unproven output or suppressing compiler failure.
43
43
  * @evidence contracts/common.md#meaningful-documentation The prose explains worker inheritance, persistent versus obsolete process storage, and why sharing failures return undefined.
44
- * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live; this classification is not a general proof of death under every process-probe failure.
44
+ * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live, and a success naming a Linux zombie as not live; this classification is not a general proof of death under every process-probe failure.
45
45
  * @evidence contracts/performance.md#efficient-algorithms An inherited path performs native path/stat work and avoids the root scan. Cold opening materializes N child names, matches their text and probes recognized PIDs, with provider realpath/create/stat work and recursive deletion of selected subtrees. Cost depends on name bytes, removed descendants and native operations, not just N; persistent shared-store contents are not scanned here.
46
46
  * @evidence contracts/performance.md#reuse-equivalent-work Parent and worker processes retain the inherited store capability, while compile identity, state proof and publication reuse remain with the claim/adoption owners.
47
47
  * @evidence contracts/performance.md#bound-retention-and-release-resources Recognized clock and legacy children classified not live are recursively reclaimed. Inherited, live and unrecognized children bypass reclamation; a failed removal aborts opening, so no count or byte bound is enforced here. The environment retains the current address; claimSharedCompile owns best-effort publication pruning. Synchronous operations leave no open handle.
@@ -41,7 +41,7 @@
41
41
  * @evidence contracts/common.md#clear-and-simple-design New directory ownership stays in userStateDirectory, claiming in claimSharedCompile and adoption proof in generation capture; this operation declares the address and reclaims recognized legacy children.
42
42
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Optional store failure leaves real local compilation in place, rather than reusing unproven output or suppressing compiler failure.
43
43
  * @evidence contracts/common.md#meaningful-documentation The prose explains worker inheritance, persistent versus obsolete process storage, and why sharing failures return undefined.
44
- * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live; this classification is not a general proof of death under every process-probe failure.
44
+ * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live, and a success naming a Linux zombie as not live; this classification is not a general proof of death under every process-probe failure.
45
45
  * @evidence contracts/performance.md#efficient-algorithms An inherited path performs native path/stat work and avoids the root scan. Cold opening materializes N child names, matches their text and probes recognized PIDs, with provider realpath/create/stat work and recursive deletion of selected subtrees. Cost depends on name bytes, removed descendants and native operations, not just N; persistent shared-store contents are not scanned here.
46
46
  * @evidence contracts/performance.md#reuse-equivalent-work Parent and worker processes retain the inherited store capability, while compile identity, state proof and publication reuse remain with the claim/adoption owners.
47
47
  * @evidence contracts/performance.md#bound-retention-and-release-resources Recognized clock and legacy children classified not live are recursively reclaimed. Inherited, live and unrecognized children bypass reclamation; a failed removal aborts opening, so no count or byte bound is enforced here. The environment retains the current address; claimSharedCompile owns best-effort publication pruning. Synchronous operations leave no open handle.
@@ -3,6 +3,7 @@
3
3
  var fs = require('node:fs');
4
4
  var path = require('node:path');
5
5
  var userStateDirectory = require('../filesystem/userStateDirectory.js');
6
+ var isZombieProcess = require('../utils/isZombieProcess.js');
6
7
  var TTSC_TRANSFORM_SESSION_ENV = require('./TTSC_TRANSFORM_SESSION_ENV.js');
7
8
  var readTtscTransformSession = require('./readTtscTransformSession.js');
8
9
 
@@ -49,7 +50,7 @@ var readTtscTransformSession = require('./readTtscTransformSession.js');
49
50
  * @evidence contracts/common.md#clear-and-simple-design New directory ownership stays in userStateDirectory, claiming in claimSharedCompile and adoption proof in generation capture; this operation declares the address and reclaims recognized legacy children.
50
51
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Optional store failure leaves real local compilation in place, rather than reusing unproven output or suppressing compiler failure.
51
52
  * @evidence contracts/common.md#meaningful-documentation The prose explains worker inheritance, persistent versus obsolete process storage, and why sharing failures return undefined.
52
- * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live; this classification is not a general proof of death under every process-probe failure.
53
+ * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live, and a success naming a Linux zombie as not live; this classification is not a general proof of death under every process-probe failure.
53
54
  * @evidence contracts/performance.md#efficient-algorithms An inherited path performs native path/stat work and avoids the root scan. Cold opening materializes N child names, matches their text and probes recognized PIDs, with provider realpath/create/stat work and recursive deletion of selected subtrees. Cost depends on name bytes, removed descendants and native operations, not just N; persistent shared-store contents are not scanned here.
54
55
  * @evidence contracts/performance.md#reuse-equivalent-work Parent and worker processes retain the inherited store capability, while compile identity, state proof and publication reuse remain with the claim/adoption owners.
55
56
  * @evidence contracts/performance.md#bound-retention-and-release-resources Recognized clock and legacy children classified not live are recursively reclaimed. Inherited, live and unrecognized children bypass reclamation; a failed removal aborts opening, so no count or byte bound is enforced here. The environment retains the current address; claimSharedCompile owns best-effort publication pruning. Synchronous operations leave no open handle.
@@ -84,11 +85,14 @@ function openTtscTransformSession() {
84
85
  }
85
86
  /** The store's name below the per-user root, which names no process. */
86
87
  const SHARED_STORE = "shared";
87
- /** Whether a process with this id exists, as far as this process can tell. */
88
+ /**
89
+ * Whether a process with this id runs, as far as this process can tell. An
90
+ * exited process its parent never collected does not.
91
+ */
88
92
  function processAlive(pid) {
89
93
  try {
90
94
  process.kill(pid, 0);
91
- return true;
95
+ return !isZombieProcess.isZombieProcess(pid);
92
96
  }
93
97
  catch (error) {
94
98
  // EPERM: it exists and belongs to another user.
@@ -1 +1 @@
1
- {"version":3,"file":"openTtscTransformSession.js","sources":["../../../../src/core/transform/session/openTtscTransformSession.ts"],"sourcesContent":[null],"names":["readTtscTransformSession","userStateDirectory","TTSC_TRANSFORM_SESSION_ENV"],"mappings":";;;;;;;;AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CG;SACa,wBAAwB,GAAA;AACtC,IAAA,MAAM,SAAS,GAAGA,iDAAwB,EAAE;AAC5C,IAAA,IAAI,SAAS,KAAK,SAAS,EAAE;AAC3B,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,IAAI;AACF,QAAA,MAAM,IAAI,GAAGC,qCAAkB,EAAE;QACjC,IAAI,IAAI,KAAK,SAAS;AAAE,YAAA,OAAO,SAAS;QACxC,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YACxC,MAAM,KAAK,GAAG,0CAA0C,CAAC,IAAI,CAAC,KAAK,CAAC;AACpE,YAAA,MAAM,KAAK,GAAG,KAAK,KAAK,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC3D,IACE,KAAK,KAAK,SAAS;AACnB,gBAAA,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;AAC3B,gBAAA,CAAC,YAAY,CAAC,KAAK,CAAC,EACpB;gBACA,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;YACrE;QACF;AACA,QAAA,MAAM,KAAK,GAAGA,qCAAkB,CAAC,YAAY,CAAC;QAC9C,IAAI,KAAK,KAAK,SAAS;AAAE,YAAA,OAAO,SAAS;AACzC,QAAA,OAAO,CAAC,GAAG,CAACC,qDAA0B,CAAC,GAAG,KAAK;AAC/C,QAAA,OAAO,KAAK;IACd;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,SAAS;IAClB;AACF;AAEA;AACA,MAAM,YAAY,GAAG,QAAQ;AAE7B;AACA,SAAS,YAAY,CAAC,GAAW,EAAA;AAC/B,IAAA,IAAI;AACF,QAAA,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AACpB,QAAA,OAAO,IAAI;IACb;IAAE,OAAO,KAAK,EAAE;;AAEd,QAAA,OAAQ,KAA+B,CAAC,IAAI,KAAK,OAAO;IAC1D;AACF;;;;"}
1
+ {"version":3,"file":"openTtscTransformSession.js","sources":["../../../../src/core/transform/session/openTtscTransformSession.ts"],"sourcesContent":[null],"names":["readTtscTransformSession","userStateDirectory","TTSC_TRANSFORM_SESSION_ENV","isZombieProcess"],"mappings":";;;;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CG;SACa,wBAAwB,GAAA;AACtC,IAAA,MAAM,SAAS,GAAGA,iDAAwB,EAAE;AAC5C,IAAA,IAAI,SAAS,KAAK,SAAS,EAAE;AAC3B,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,IAAI;AACF,QAAA,MA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import path from 'node:path';
3
3
  import { userStateDirectory } from '../filesystem/userStateDirectory.mjs';
4
+ import { isZombieProcess } from '../utils/isZombieProcess.mjs';
4
5
  import { TTSC_TRANSFORM_SESSION_ENV } from './TTSC_TRANSFORM_SESSION_ENV.mjs';
5
6
  import { readTtscTransformSession } from './readTtscTransformSession.mjs';
6
7
 
@@ -47,7 +48,7 @@ import { readTtscTransformSession } from './readTtscTransformSession.mjs';
47
48
  * @evidence contracts/common.md#clear-and-simple-design New directory ownership stays in userStateDirectory, claiming in claimSharedCompile and adoption proof in generation capture; this operation declares the address and reclaims recognized legacy children.
48
49
  * @evidence contracts/common.md#prohibited-implementation-shortcuts Optional store failure leaves real local compilation in place, rather than reusing unproven output or suppressing compiler failure.
49
50
  * @evidence contracts/common.md#meaningful-documentation The prose explains worker inheritance, persistent versus obsolete process storage, and why sharing failures return undefined.
50
- * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live; this classification is not a general proof of death under every process-probe failure.
51
+ * @evidence contracts/portability.md#os-neutral-implementation Native joins and user-state capability checks provide new storage; inherited addresses receive only current directory checks. process.kill(pid, 0) treats success and EPERM as live, other failures as not live, and a success naming a Linux zombie as not live; this classification is not a general proof of death under every process-probe failure.
51
52
  * @evidence contracts/performance.md#efficient-algorithms An inherited path performs native path/stat work and avoids the root scan. Cold opening materializes N child names, matches their text and probes recognized PIDs, with provider realpath/create/stat work and recursive deletion of selected subtrees. Cost depends on name bytes, removed descendants and native operations, not just N; persistent shared-store contents are not scanned here.
52
53
  * @evidence contracts/performance.md#reuse-equivalent-work Parent and worker processes retain the inherited store capability, while compile identity, state proof and publication reuse remain with the claim/adoption owners.
53
54
  * @evidence contracts/performance.md#bound-retention-and-release-resources Recognized clock and legacy children classified not live are recursively reclaimed. Inherited, live and unrecognized children bypass reclamation; a failed removal aborts opening, so no count or byte bound is enforced here. The environment retains the current address; claimSharedCompile owns best-effort publication pruning. Synchronous operations leave no open handle.
@@ -82,11 +83,14 @@ function openTtscTransformSession() {
82
83
  }
83
84
  /** The store's name below the per-user root, which names no process. */
84
85
  const SHARED_STORE = "shared";
85
- /** Whether a process with this id exists, as far as this process can tell. */
86
+ /**
87
+ * Whether a process with this id runs, as far as this process can tell. An
88
+ * exited process its parent never collected does not.
89
+ */
86
90
  function processAlive(pid) {
87
91
  try {
88
92
  process.kill(pid, 0);
89
- return true;
93
+ return !isZombieProcess(pid);
90
94
  }
91
95
  catch (error) {
92
96
  // EPERM: it exists and belongs to another user.
@@ -1 +1 @@
1
- {"version":3,"file":"openTtscTransformSession.mjs","sources":["../../../../src/core/transform/session/openTtscTransformSession.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CG;SACa,wBAAwB,GAAA;AACtC,IAAA,MAAM,SAAS,GAAG,wBAAwB,EAAE;AAC5C,IAAA,IAAI,SAAS,KAAK,SAAS,EAAE;AAC3B,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,IAAI;AACF,QAAA,MAAM,IAAI,GAAG,kBAAkB,EAAE;QACjC,IAAI,IAAI,KAAK,SAAS;AAAE,YAAA,OAAO,SAAS;QACxC,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YACxC,MAAM,KAAK,GAAG,0CAA0C,CAAC,IAAI,CAAC,KAAK,CAAC;AACpE,YAAA,MAAM,KAAK,GAAG,KAAK,KAAK,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC3D,IACE,KAAK,KAAK,SAAS;AACnB,gBAAA,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;AAC3B,gBAAA,CAAC,YAAY,CAAC,KAAK,CAAC,EACpB;gBACA,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;YACrE;QACF;AACA,QAAA,MAAM,KAAK,GAAG,kBAAkB,CAAC,YAAY,CAAC;QAC9C,IAAI,KAAK,KAAK,SAAS;AAAE,YAAA,OAAO,SAAS;AACzC,QAAA,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,GAAG,KAAK;AAC/C,QAAA,OAAO,KAAK;IACd;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,SAAS;IAClB;AACF;AAEA;AACA,MAAM,YAAY,GAAG,QAAQ;AAE7B;AACA,SAAS,YAAY,CAAC,GAAW,EAAA;AAC/B,IAAA,IAAI;AACF,QAAA,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AACpB,QAAA,OAAO,IAAI;IACb;IAAE,OAAO,KAAK,EAAE;;AAEd,QAAA,OAAQ,KAA+B,CAAC,IAAI,KAAK,OAAO;IAC1D;AACF;;;;"}
1
+ {"version":3,"file":"openTtscTransformSession.mjs","sources":["../../../../src/core/transform/session/openTtscTransformSession.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CG;SACa,wBAAwB,GAAA;AACtC,IAAA,MAAM,SAAS,GAAG,wBAAwB,EAAE;AAC5C,IAAA,IAAI,SAAS,KAAK,SAAS,EAAE;AAC3B,QAAA,OAAO,SAAS;IAClB;AACA,IAAA,IAAI;AACF,QAAA,MAAM,IAAI,GAAG,kBAAkB,EAAE;QACjC,IAAI,IAAI,KAAK,SAAS;AAAE,YAAA,OAAO,SAAS;QACxC,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YACxC,MAAM,KAAK,GAAG,0CAA0C,CAAC,IAAI,CAAC,KAAK,CAAC;AACpE,YAAA,MAAM,KAAK,GAAG,KAAK,KAAK,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC3D,IACE,KAAK,KAAK,SAAS;AACnB,gBAAA,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;AAC3B,gBAAA,CAAC,YAAY,CAAC,KAAK,CAAC,EACpB;gBACA,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;YACrE;QACF;AACA,QAAA,MAAM,KAAK,GAAG,kBAAkB,CAAC,YAAY,CAAC;QAC9C,IAAI,KAAK,KAAK,SAAS;AAAE,YAAA,OAAO,SAAS;AACzC,QAAA,OAAO,CAAC,GAAG,CAAC,0BAA0B,CAAC,GAAG,KAAK;AAC/C,QAAA,OAAO,KAAK;IACd;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,SAAS;IAClB;AACF;AAEA;AACA,MAAM,YAAY,GAAG,QAAQ;AAE7B;;;AAGG;AACH,SAAS,YAAY,CAAC,GAAW,EAAA;AAC/B,IAAA,IAAI;AACF,QAAA,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AACpB,QAAA,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC;IAC9B;IAAE,OAAO,KAAK,EAAE;;AAEd,QAAA,OAAQ,KAA+B,CAAC,IAAI,KAAK,OAAO;IAC1D;AACF;;;;"}
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * Attempt removal of recognized probe-name entries below `parent` when their
3
- * named process reports ESRCH.
3
+ * named process reports ESRCH or has exited uncollected.
4
4
  *
5
5
  * A process removes its own probe directory when it exits, but a killed process
6
6
  * may not. Only a namespace entry named with a process id that the operating
7
- * system reports as gone (`ESRCH`) is removed: a live owner, one this process
8
- * may not signal, and a name without an id are left alone. Names follow the
9
- * adapter's probe convention; this scan does not separately stat entry kind or
10
- * prove filesystem ownership, and liveness/deletion are not one atomic
11
- * operation.
7
+ * system reports as gone (`ESRCH`), or as a zombie its parent never collected,
8
+ * is removed: a live owner, one this process may not signal, and a name without
9
+ * an id are left alone. Names follow the adapter's probe convention; this scan
10
+ * does not separately stat entry kind or prove filesystem ownership, and
11
+ * liveness/deletion are not one atomic operation.
12
12
  *
13
13
  * @param parent The tool cache the broker is about to name its own probe
14
14
  * directory in.
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * Attempt removal of recognized probe-name entries below `parent` when their
3
- * named process reports ESRCH.
3
+ * named process reports ESRCH or has exited uncollected.
4
4
  *
5
5
  * A process removes its own probe directory when it exits, but a killed process
6
6
  * may not. Only a namespace entry named with a process id that the operating
7
- * system reports as gone (`ESRCH`) is removed: a live owner, one this process
8
- * may not signal, and a name without an id are left alone. Names follow the
9
- * adapter's probe convention; this scan does not separately stat entry kind or
10
- * prove filesystem ownership, and liveness/deletion are not one atomic
11
- * operation.
7
+ * system reports as gone (`ESRCH`), or as a zombie its parent never collected,
8
+ * is removed: a live owner, one this process may not signal, and a name without
9
+ * an id are left alone. Names follow the adapter's probe convention; this scan
10
+ * does not separately stat entry kind or prove filesystem ownership, and
11
+ * liveness/deletion are not one atomic operation.
12
12
  *
13
13
  * @param parent The tool cache the broker is about to name its own probe
14
14
  * directory in.
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * Attempt removal of recognized probe-name entries below `parent` when their
3
- * named process reports ESRCH.
3
+ * named process reports ESRCH or has exited uncollected.
4
4
  *
5
5
  * A process removes its own probe directory when it exits, but a killed process
6
6
  * may not. Only a namespace entry named with a process id that the operating
7
- * system reports as gone (`ESRCH`) is removed: a live owner, one this process
8
- * may not signal, and a name without an id are left alone. Names follow the
9
- * adapter's probe convention; this scan does not separately stat entry kind or
10
- * prove filesystem ownership, and liveness/deletion are not one atomic
11
- * operation.
7
+ * system reports as gone (`ESRCH`), or as a zombie its parent never collected,
8
+ * is removed: a live owner, one this process may not signal, and a name without
9
+ * an id are left alone. Names follow the adapter's probe convention; this scan
10
+ * does not separately stat entry kind or prove filesystem ownership, and
11
+ * liveness/deletion are not one atomic operation.
12
12
  *
13
13
  * @param parent The tool cache the broker is about to name its own probe
14
14
  * directory in.
@@ -2,19 +2,20 @@
2
2
 
3
3
  var fs = require('node:fs');
4
4
  var path = require('node:path');
5
+ var isZombieProcess = require('../../utils/isZombieProcess.js');
5
6
  var WATCH_PROBE_DIRECTORY_PREFIX = require('./WATCH_PROBE_DIRECTORY_PREFIX.js');
6
7
 
7
8
  /**
8
9
  * Attempt removal of recognized probe-name entries below `parent` when their
9
- * named process reports ESRCH.
10
+ * named process reports ESRCH or has exited uncollected.
10
11
  *
11
12
  * A process removes its own probe directory when it exits, but a killed process
12
13
  * may not. Only a namespace entry named with a process id that the operating
13
- * system reports as gone (`ESRCH`) is removed: a live owner, one this process
14
- * may not signal, and a name without an id are left alone. Names follow the
15
- * adapter's probe convention; this scan does not separately stat entry kind or
16
- * prove filesystem ownership, and liveness/deletion are not one atomic
17
- * operation.
14
+ * system reports as gone (`ESRCH`), or as a zombie its parent never collected,
15
+ * is removed: a live owner, one this process may not signal, and a name without
16
+ * an id are left alone. Names follow the adapter's probe convention; this scan
17
+ * does not separately stat entry kind or prove filesystem ownership, and
18
+ * liveness/deletion are not one atomic operation.
18
19
  *
19
20
  * @param parent The tool cache the broker is about to name its own probe
20
21
  * directory in.
@@ -68,7 +69,8 @@ function sweepAbandonedWatchProbes(parent) {
68
69
  }
69
70
  try {
70
71
  process.kill(owner, 0);
71
- continue;
72
+ if (!isZombieProcess.isZombieProcess(owner))
73
+ continue;
72
74
  }
73
75
  catch (error) {
74
76
  if (error.code !== "ESRCH")
@@ -1 +1 @@
1
- {"version":3,"file":"sweepAbandonedWatchProbes.js","sources":["../../../../../src/core/transform/tracker/broker/sweepAbandonedWatchProbes.ts"],"sourcesContent":[null],"names":["WATCH_PROBE_DIRECTORY_PREFIX"],"mappings":";;;;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CG;AACG,SAAU,yBAAyB,CAAC,MAAc,EAAA;AACtD,IAAA,IAAI,OAAiB;AACrB,IAAA,IAAI;AACF,QAAA,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC;IAClC;AAAE,IAAA,MAAM;QACN;IACF;AACA,IAAA,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;AAC3B,QAAA,IAAI,CAAC,KAAK,CAAC,UAAU,CAACA,yDAA4B,CAAC;YAAE;QACrD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAACA,yDAA4B,CAAC,MAAM,CAAC;AAC/D,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;YAAE;AAChC,QAAA,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;AAC5B,QAAA,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,OAAO,CAAC,GAAG,EAAE;YACzD;QACF;AACA,QAAA,IAAI;AACF,YAAA,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;YACtB;QACF;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,IAAK,KAA+B,CAAC,IAAI,KAAK,OAAO;gBAAE;QACzD;AACA,QAAA,IAAI;YACF,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QACvE;AAAE,QAAA,MAAM;;QAER;IACF;AACF;;;;"}
1
+ {"version":3,"file":"sweepAbandonedWatchProbes.js","sources":["../../../../../src/core/transform/tracker/broker/sweepAbandonedWatchProbes.ts"],"sourcesContent":[null],"names":["WATCH_PROBE_DIRECTORY_PREFIX","isZombieProcess"],"mappings":";;;;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CG;AACG,SAAU,yBAAyB,CAAC,MAAc,EAAA;AACtD,IAAA,IAAI,OAAiB;AACrB,IAAA,IAAI;AACF,QAAA,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC;IAClC;AAAE,IAAA,MAAM;QACN;IACF;AACA,IAAA,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;AAC3B,QAAA,IAAI,CAAC,KAAK,CAAC,UAAU,CAACA,yDAA4B,CAAC;YAAE;QACrD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAACA,yDAA4B,CAAC,MAAM,CAAC;AAC/D,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;YAAE;AAChC,QAAA,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;AAC5B,QAAA,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,OAAO,CAAC,GAAG,EAAE;YACzD;QACF;AACA,QAAA,IAAI;AACF,YAAA,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;AACtB,YAAA,IAAI,CAACC,+BAAe,CAAC,KAAK,CAAC;gBAAE;QAC/B;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,IAAK,KAA+B,CAAC,IAAI,KAAK,OAAO;gBAAE;QACzD;AACA,QAAA,IAAI;YACF,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QACvE;AAAE,QAAA,MAAM;;QAER;IACF;AACF;;;;"}
@@ -1,18 +1,19 @@
1
1
  import fs from 'node:fs';
2
2
  import path from 'node:path';
3
+ import { isZombieProcess } from '../../utils/isZombieProcess.mjs';
3
4
  import { WATCH_PROBE_DIRECTORY_PREFIX } from './WATCH_PROBE_DIRECTORY_PREFIX.mjs';
4
5
 
5
6
  /**
6
7
  * Attempt removal of recognized probe-name entries below `parent` when their
7
- * named process reports ESRCH.
8
+ * named process reports ESRCH or has exited uncollected.
8
9
  *
9
10
  * A process removes its own probe directory when it exits, but a killed process
10
11
  * may not. Only a namespace entry named with a process id that the operating
11
- * system reports as gone (`ESRCH`) is removed: a live owner, one this process
12
- * may not signal, and a name without an id are left alone. Names follow the
13
- * adapter's probe convention; this scan does not separately stat entry kind or
14
- * prove filesystem ownership, and liveness/deletion are not one atomic
15
- * operation.
12
+ * system reports as gone (`ESRCH`), or as a zombie its parent never collected,
13
+ * is removed: a live owner, one this process may not signal, and a name without
14
+ * an id are left alone. Names follow the adapter's probe convention; this scan
15
+ * does not separately stat entry kind or prove filesystem ownership, and
16
+ * liveness/deletion are not one atomic operation.
16
17
  *
17
18
  * @param parent The tool cache the broker is about to name its own probe
18
19
  * directory in.
@@ -66,7 +67,8 @@ function sweepAbandonedWatchProbes(parent) {
66
67
  }
67
68
  try {
68
69
  process.kill(owner, 0);
69
- continue;
70
+ if (!isZombieProcess(owner))
71
+ continue;
70
72
  }
71
73
  catch (error) {
72
74
  if (error.code !== "ESRCH")
@@ -1 +1 @@
1
- {"version":3,"file":"sweepAbandonedWatchProbes.mjs","sources":["../../../../../src/core/transform/tracker/broker/sweepAbandonedWatchProbes.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CG;AACG,SAAU,yBAAyB,CAAC,MAAc,EAAA;AACtD,IAAA,IAAI,OAAiB;AACrB,IAAA,IAAI;AACF,QAAA,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC;IAClC;AAAE,IAAA,MAAM;QACN;IACF;AACA,IAAA,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;AAC3B,QAAA,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,4BAA4B,CAAC;YAAE;QACrD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,4BAA4B,CAAC,MAAM,CAAC;AAC/D,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;YAAE;AAChC,QAAA,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;AAC5B,QAAA,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,OAAO,CAAC,GAAG,EAAE;YACzD;QACF;AACA,QAAA,IAAI;AACF,YAAA,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;YACtB;QACF;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,IAAK,KAA+B,CAAC,IAAI,KAAK,OAAO;gBAAE;QACzD;AACA,QAAA,IAAI;YACF,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QACvE;AAAE,QAAA,MAAM;;QAER;IACF;AACF;;;;"}
1
+ {"version":3,"file":"sweepAbandonedWatchProbes.mjs","sources":["../../../../../src/core/transform/tracker/broker/sweepAbandonedWatchProbes.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CG;AACG,SAAU,yBAAyB,CAAC,MAAc,EAAA;AACtD,IAAA,IAAI,OAAiB;AACrB,IAAA,IAAI;AACF,QAAA,OAAO,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC;IAClC;AAAE,IAAA,MAAM;QACN;IACF;AACA,IAAA,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;AAC3B,QAAA,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,4BAA4B,CAAC;YAAE;QACrD,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,4BAA4B,CAAC,MAAM,CAAC;AAC/D,QAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC;YAAE;AAChC,QAAA,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;AAC5B,QAAA,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,OAAO,CAAC,GAAG,EAAE;YACzD;QACF;AACA,QAAA,IAAI;AACF,YAAA,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;AACtB,YAAA,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC;gBAAE;QAC/B;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,IAAK,KAA+B,CAAC,IAAI,KAAK,OAAO;gBAAE;QACzD;AACA,QAAA,IAAI;YACF,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QACvE;AAAE,QAAA,MAAM;;QAER;IACF;AACF;;;;"}
@@ -120,6 +120,8 @@ const registrations = new Map();
120
120
  const DROPPED = 0x1 | 0x2 | 0x4 | 0x8 | 0x20 | 0x40 | 0x80;
121
121
  const MODIFIED = 0x400 | 0x1000 | 0x2000 | 0x4000 | 0x8000;
122
122
  const RENAMED = 0x100 | 0x200 | 0x800;
123
+ const CREATED = 0x100;
124
+ const MOVED = 0x200 | 0x800;
123
125
  const fsevents = load();
124
126
  let probeSequence = 0;
125
127
 
@@ -204,6 +206,8 @@ function stream(location, deliver, registration) {
204
206
  const root = probe === undefined ? directory : probe.root;
205
207
  const within = (parent, file) => file === parent || file.startsWith(parent.endsWith("/") ? parent : parent + "/");
206
208
  const opened = { close: undefined, location: location.directory, pending: new Map(), probe, proven: probe === undefined };
209
+ // Anything born before this instant was not created in this stream.
210
+ const openedAt = Date.now();
207
211
  const stop = fsevents.watch(root, (file, flags) => {
208
212
  // Loss authority is independent of the path, including our own probe.
209
213
  if ((flags & DROPPED) !== 0) {
@@ -233,6 +237,16 @@ function stream(location, deliver, registration) {
233
237
  }
234
238
  const filename = file.slice(directory.length + 1);
235
239
  if (location.recursive !== true && filename.includes("/")) return;
240
+ // FSEvents keeps ItemCreated on later writes to a path it saw created, so a
241
+ // plain edit of a file older than this stream arrived as a rename, a
242
+ // membership change that replaced generations for an unrelated write. An
243
+ // object born before the stream opened was not created in it; its other
244
+ // flags decide. A removal or a rename keeps the event structural.
245
+ if ((flags & CREATED) !== 0 && (flags & MOVED) === 0 && (flags & MODIFIED) !== 0) {
246
+ try {
247
+ if (fs.lstatSync(file).birthtimeMs < openedAt) flags &= ~CREATED;
248
+ } catch {}
249
+ }
236
250
  deliver((flags & MODIFIED) !== 0 && (flags & RENAMED) === 0 ? "change" : "rename", filename);
237
251
  });
238
252
  opened.close = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"watchBrokerSource.js","sources":["../../../../../src/core/transform/tracker/broker/watchBrokerSource.ts"],"sourcesContent":[null],"names":["WATCH_PROBE_TIMEOUT_MS"],"mappings":";;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGG;AACG,SAAU,iBAAiB,CAAC,QAAwB,EAAA;IACxD,OAAO,CAAA,qBAAA,EAAwB,QAAQ,KAAK,SAAS,GAAG,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,6BAA6BA,6CAAsB,CAAA,GAAA,EAAM,oBAAoB,CAAA,CAAE;AAC/K;AAEA;;;AAGG;AACH,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoQtC;;;;"}
1
+ {"version":3,"file":"watchBrokerSource.js","sources":["../../../../../src/core/transform/tracker/broker/watchBrokerSource.ts"],"sourcesContent":[null],"names":["WATCH_PROBE_TIMEOUT_MS"],"mappings":";;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGG;AACG,SAAU,iBAAiB,CAAC,QAAwB,EAAA;IACxD,OAAO,CAAA,qBAAA,EAAwB,QAAQ,KAAK,SAAS,GAAG,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,6BAA6BA,6CAAsB,CAAA,GAAA,EAAM,oBAAoB,CAAA,CAAE;AAC/K;AAEA;;;AAGG;AACH,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkRtC;;;;"}
@@ -118,6 +118,8 @@ const registrations = new Map();
118
118
  const DROPPED = 0x1 | 0x2 | 0x4 | 0x8 | 0x20 | 0x40 | 0x80;
119
119
  const MODIFIED = 0x400 | 0x1000 | 0x2000 | 0x4000 | 0x8000;
120
120
  const RENAMED = 0x100 | 0x200 | 0x800;
121
+ const CREATED = 0x100;
122
+ const MOVED = 0x200 | 0x800;
121
123
  const fsevents = load();
122
124
  let probeSequence = 0;
123
125
 
@@ -202,6 +204,8 @@ function stream(location, deliver, registration) {
202
204
  const root = probe === undefined ? directory : probe.root;
203
205
  const within = (parent, file) => file === parent || file.startsWith(parent.endsWith("/") ? parent : parent + "/");
204
206
  const opened = { close: undefined, location: location.directory, pending: new Map(), probe, proven: probe === undefined };
207
+ // Anything born before this instant was not created in this stream.
208
+ const openedAt = Date.now();
205
209
  const stop = fsevents.watch(root, (file, flags) => {
206
210
  // Loss authority is independent of the path, including our own probe.
207
211
  if ((flags & DROPPED) !== 0) {
@@ -231,6 +235,16 @@ function stream(location, deliver, registration) {
231
235
  }
232
236
  const filename = file.slice(directory.length + 1);
233
237
  if (location.recursive !== true && filename.includes("/")) return;
238
+ // FSEvents keeps ItemCreated on later writes to a path it saw created, so a
239
+ // plain edit of a file older than this stream arrived as a rename, a
240
+ // membership change that replaced generations for an unrelated write. An
241
+ // object born before the stream opened was not created in it; its other
242
+ // flags decide. A removal or a rename keeps the event structural.
243
+ if ((flags & CREATED) !== 0 && (flags & MOVED) === 0 && (flags & MODIFIED) !== 0) {
244
+ try {
245
+ if (fs.lstatSync(file).birthtimeMs < openedAt) flags &= ~CREATED;
246
+ } catch {}
247
+ }
234
248
  deliver((flags & MODIFIED) !== 0 && (flags & RENAMED) === 0 ? "change" : "rename", filename);
235
249
  });
236
250
  opened.close = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"watchBrokerSource.mjs","sources":["../../../../../src/core/transform/tracker/broker/watchBrokerSource.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGG;AACG,SAAU,iBAAiB,CAAC,QAAwB,EAAA;IACxD,OAAO,CAAA,qBAAA,EAAwB,QAAQ,KAAK,SAAS,GAAG,WAAW,GAAG,IAAI,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkRtC;;;;"}
@@ -342,6 +342,18 @@ scopes) {
342
342
  * an event the backend could not attribute to a name may concern any input
343
343
  * below the watched directory, so it always counts.
344
344
  */
345
+ // Whether a path names an existing object that no other name can reach:
346
+ // not a link, and not a file with a second hard link, whose writes could
347
+ // land on a tracked input without an event on its name.
348
+ const distinctExistingObject = (location) => {
349
+ try {
350
+ const stats = filesystem.lstat(location);
351
+ return !stats.isSymbolicLink() && !(stats.isFile() && stats.nlink > 1n);
352
+ }
353
+ catch {
354
+ return false;
355
+ }
356
+ };
345
357
  const classify = (directory, filename, eventType) => {
346
358
  // An event the backend could not attribute to a name is its notice that
347
359
  // events may have been lost below the directory, as a Windows buffer
@@ -402,6 +414,14 @@ scopes) {
402
414
  return "mutation";
403
415
  }
404
416
  }
417
+ // An object that exists now resolves to its own identity under every alias,
418
+ // so one that is neither a link nor a second name of a file, and resolves
419
+ // to nothing tracked above, is a different object. A recursive backend
420
+ // (macOS, Windows) hears every write below the project root, and
421
+ // withdrawing authority for each sent every later delivery past its
422
+ // notifications.
423
+ if (distinctExistingObject(changed))
424
+ return undefined;
405
425
  // A missing native alias cannot be recovered by current realpath. Neither
406
426
  // ASCII spelling nor OS name proves this event unrelated to a tracked path.
407
427
  // Keep exact metadata validation without inventing a membership mutation.