@ttsc/unplugin 0.31.3 → 0.31.4
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.
- package/lib/core/transform/session/claimSharedCompile.js +6 -4
- package/lib/core/transform/session/claimSharedCompile.js.map +1 -1
- package/lib/core/transform/session/claimSharedCompile.mjs +6 -4
- package/lib/core/transform/session/claimSharedCompile.mjs.map +1 -1
- package/lib/core/transform/session/openTtscTransformSession.d.cts +1 -1
- package/lib/core/transform/session/openTtscTransformSession.d.mts +1 -1
- package/lib/core/transform/session/openTtscTransformSession.d.ts +1 -1
- package/lib/core/transform/session/openTtscTransformSession.js +7 -3
- package/lib/core/transform/session/openTtscTransformSession.js.map +1 -1
- package/lib/core/transform/session/openTtscTransformSession.mjs +7 -3
- package/lib/core/transform/session/openTtscTransformSession.mjs.map +1 -1
- package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.d.cts +6 -6
- package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.d.mts +6 -6
- package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.d.ts +6 -6
- package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.js +9 -7
- package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.js.map +1 -1
- package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.mjs +9 -7
- package/lib/core/transform/tracker/broker/sweepAbandonedWatchProbes.mjs.map +1 -1
- package/lib/core/transform/tracker/settleProjectMutationEvents.d.cts +23 -29
- package/lib/core/transform/tracker/settleProjectMutationEvents.d.mts +23 -29
- package/lib/core/transform/tracker/settleProjectMutationEvents.d.ts +23 -29
- package/lib/core/transform/tracker/settleProjectMutationEvents.js +25 -37
- package/lib/core/transform/tracker/settleProjectMutationEvents.js.map +1 -1
- package/lib/core/transform/tracker/settleProjectMutationEvents.mjs +25 -37
- package/lib/core/transform/tracker/settleProjectMutationEvents.mjs.map +1 -1
- package/lib/core/transform/tracker/verifyGenerationLocations.d.cts +41 -0
- package/lib/core/transform/tracker/verifyGenerationLocations.d.mts +41 -0
- package/lib/core/transform/tracker/verifyGenerationLocations.d.ts +41 -0
- package/lib/core/transform/tracker/verifyGenerationLocations.js +54 -0
- package/lib/core/transform/tracker/verifyGenerationLocations.js.map +1 -0
- package/lib/core/transform/tracker/verifyGenerationLocations.mjs +52 -0
- package/lib/core/transform/tracker/verifyGenerationLocations.mjs.map +1 -0
- package/lib/core/transform/utils/isZombieProcess.d.cts +26 -0
- package/lib/core/transform/utils/isZombieProcess.d.mts +26 -0
- package/lib/core/transform/utils/isZombieProcess.d.ts +26 -0
- package/lib/core/transform/utils/isZombieProcess.js +46 -0
- package/lib/core/transform/utils/isZombieProcess.js.map +1 -0
- package/lib/core/transform/utils/isZombieProcess.mjs +44 -0
- package/lib/core/transform/utils/isZombieProcess.mjs.map +1 -0
- package/lib/core/transform/validation/TtscGenerationProof.d.cts +12 -4
- package/lib/core/transform/validation/TtscGenerationProof.d.mts +12 -4
- package/lib/core/transform/validation/TtscGenerationProof.d.ts +12 -4
- package/lib/core/transform/validation/TtscGenerationProof.js +13 -4
- package/lib/core/transform/validation/TtscGenerationProof.js.map +1 -1
- package/lib/core/transform/validation/TtscGenerationProof.mjs +13 -4
- package/lib/core/transform/validation/TtscGenerationProof.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.cts +2 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.mts +2 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.d.ts +2 -2
- package/lib/core/transform/validation/matchesCachedExternalInputs.js +26 -5
- package/lib/core/transform/validation/matchesCachedExternalInputs.js.map +1 -1
- package/lib/core/transform/validation/matchesCachedExternalInputs.mjs +26 -5
- package/lib/core/transform/validation/matchesCachedExternalInputs.mjs.map +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.js +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.js.map +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs +1 -1
- package/lib/core/transform/validation/matchesCompleteInputSnapshot.mjs.map +1 -1
- package/lib/core/transform/validation/matchesUniversalHostInputProbes.d.cts +15 -8
- package/lib/core/transform/validation/matchesUniversalHostInputProbes.d.mts +15 -8
- package/lib/core/transform/validation/matchesUniversalHostInputProbes.d.ts +15 -8
- package/lib/core/transform/validation/matchesUniversalHostInputProbes.js +29 -20
- package/lib/core/transform/validation/matchesUniversalHostInputProbes.js.map +1 -1
- package/lib/core/transform/validation/matchesUniversalHostInputProbes.mjs +29 -20
- package/lib/core/transform/validation/matchesUniversalHostInputProbes.mjs.map +1 -1
- package/lib/core/transform/validation/matchesUniversalHostInputs.js +1 -1
- package/lib/core/transform/validation/matchesUniversalHostInputs.js.map +1 -1
- package/lib/core/transform/validation/matchesUniversalHostInputs.mjs +1 -1
- package/lib/core/transform/validation/matchesUniversalHostInputs.mjs.map +1 -1
- package/package.json +3 -3
- package/src/core/transform/session/claimSharedCompile.ts +6 -4
- package/src/core/transform/session/openTtscTransformSession.ts +7 -3
- package/src/core/transform/tracker/broker/sweepAbandonedWatchProbes.ts +8 -7
- package/src/core/transform/tracker/settleProjectMutationEvents.ts +25 -36
- package/src/core/transform/tracker/verifyGenerationLocations.ts +53 -0
- package/src/core/transform/utils/isZombieProcess.ts +39 -0
- package/src/core/transform/validation/TtscGenerationProof.ts +20 -4
- package/src/core/transform/validation/matchesCachedExternalInputs.ts +28 -5
- package/src/core/transform/validation/matchesCompleteInputSnapshot.ts +1 -1
- package/src/core/transform/validation/matchesUniversalHostInputProbes.ts +27 -16
- 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
|
|
288
|
-
*
|
|
289
|
-
*
|
|
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
|
|
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,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d,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,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,EA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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
|
|
286
|
-
*
|
|
287
|
-
*
|
|
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
|
|
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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,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;;;;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,EAA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,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
|
-
/**
|
|
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
|
|
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":"
|
|
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,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;;;AAGG;AACH,SAAS,YAAY,CAAC,GAAW,EAAA;AAC/B,IAAA,IAAI;AACF,QAAA,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;AACpB,QAAA,OAAO,CAACC,+BAAe,CAAC,GAAG,CAAC;IAC9B;IAAE,OAAO,KAAK,EAAE;;AAEd,QAAA,OAAQ,KAA+B,CAAC,IAAI,KAAK,OAAO;IAC1D;AACF;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
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
|
-
/**
|
|
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
|
|
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":"
|
|
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`)
|
|
8
|
-
* may not signal, and a name without
|
|
9
|
-
* adapter's probe convention; this scan
|
|
10
|
-
* prove filesystem ownership, and
|
|
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`)
|
|
8
|
-
* may not signal, and a name without
|
|
9
|
-
* adapter's probe convention; this scan
|
|
10
|
-
* prove filesystem ownership, and
|
|
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`)
|
|
8
|
-
* may not signal, and a name without
|
|
9
|
-
* adapter's probe convention; this scan
|
|
10
|
-
* prove filesystem ownership, and
|
|
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`)
|
|
14
|
-
* may not signal, and a name without
|
|
15
|
-
* adapter's probe convention; this scan
|
|
16
|
-
* prove filesystem ownership, and
|
|
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
|
-
|
|
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":"
|
|
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`)
|
|
12
|
-
* may not signal, and a name without
|
|
13
|
-
* adapter's probe convention; this scan
|
|
14
|
-
* prove filesystem ownership, and
|
|
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
|
-
|
|
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":"
|
|
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;;;;"}
|
|
@@ -1,48 +1,42 @@
|
|
|
1
1
|
import type { TtscCachedProjectTransform } from "../cache/TtscCachedProjectTransform.cjs";
|
|
2
2
|
/**
|
|
3
|
-
* Await the cached trackers' drain operations
|
|
4
|
-
*
|
|
3
|
+
* Await the cached trackers' drain operations before persistent validation
|
|
4
|
+
* reads their verdicts.
|
|
5
5
|
*
|
|
6
6
|
* A synchronous edit returns before its watch event is applied, so without this
|
|
7
7
|
* a delivery could validate against a tracker that has not been told yet. Each
|
|
8
8
|
* tracker uses its supplied native drain or the local two-immediate fallback;
|
|
9
9
|
* that fallback is a scheduling opportunity, not independent native delivery
|
|
10
|
-
* proof. Concurrent sibling deliveries share an in-flight tracker drain.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
10
|
+
* proof. Concurrent sibling deliveries share an in-flight tracker drain. Drain
|
|
11
|
+
* rejection aborts the delivery's settlement and does not cancel sibling
|
|
12
|
+
* drains.
|
|
13
|
+
*
|
|
14
|
+
* The watched directories' identities are not checked here but by the
|
|
15
|
+
* delivery's synchronous admission (`verifyGenerationLocations`), after its
|
|
16
|
+
* last await, so a directory replaced while the delivery prepared is still
|
|
17
|
+
* caught and its reading is current when a validator reuses it.
|
|
18
18
|
*
|
|
19
19
|
* @evidence contracts/common.md#principled-implementation
|
|
20
|
-
* Successful aggregate completion precedes
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* Successful aggregate completion precedes admission. Missing backend
|
|
21
|
+
* delivery premises are not supplied by this adapter; the caller still
|
|
22
|
+
* decides whether silence has authority.
|
|
23
23
|
* @evidence contracts/common.md#clear-and-simple-design
|
|
24
|
-
* One three-tracker list drives
|
|
25
|
-
*
|
|
24
|
+
* One three-tracker list drives drainage; directory identity belongs to the
|
|
25
|
+
* synchronous admission that reads it.
|
|
26
26
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* The operation does not patch watcher paths or certify a generation from a
|
|
28
|
+
* timeout alone.
|
|
29
29
|
* @evidence contracts/common.md#meaningful-documentation
|
|
30
|
-
* Native paragraphs explain event ordering
|
|
31
|
-
*
|
|
30
|
+
* Native paragraphs explain event ordering and where location verification
|
|
31
|
+
* moved, under the documentation skill.
|
|
32
32
|
* @evidence contracts/portability.md#os-neutral-implementation
|
|
33
|
-
* OS-neutral delivery uses backend-owned drains
|
|
34
|
-
* identities; lexical aliases cannot prove a replaced directory unchanged.
|
|
33
|
+
* OS-neutral delivery uses backend-owned drains.
|
|
35
34
|
* @evidence contracts/performance.md#efficient-algorithms
|
|
36
|
-
* Three tracker slots are
|
|
37
|
-
*
|
|
38
|
-
* per exact directory spelling; native path traversal, key bytes and bigint
|
|
39
|
-
* identity formatting plus delegated drain work remain variable costs.
|
|
35
|
+
* Three tracker slots are drained concurrently; delegated drain work remains
|
|
36
|
+
* a variable cost.
|
|
40
37
|
* @evidence contracts/performance.md#reuse-equivalent-work
|
|
41
|
-
* In-flight drainage is shared by
|
|
42
|
-
* delivery's map; the map is recreated for every delivery, not cached forever.
|
|
38
|
+
* In-flight drainage is shared by concurrent sibling deliveries.
|
|
43
39
|
* @evidence contracts/performance.md#bound-retention-and-release-resources
|
|
44
|
-
* The identity map is local to the post-drain verification call, retaining
|
|
45
|
-
* queried directory/identity text with no independent population/byte cap.
|
|
46
40
|
* Pending drains retain the cached tracker references until they settle;
|
|
47
41
|
* rejection does not cancel siblings and no aggregate deadline is supplied.
|
|
48
42
|
* Tracker owners still control backend task and watcher closure.
|