@descryy/runtime-controller 0.3.0 → 0.3.1

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.
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Attach fencing (RT-N3): the boundary between "content this run watched happen"
3
+ * and "content that already existed when this run started watching it."
4
+ *
5
+ * Both `orchestrator/src/attach-to-running-process.ts` and this package's own
6
+ * `attachManagedProcess` read a target's ENTIRE log file on every poll —
7
+ * necessary, since a plain file offers no delta API — which means the very
8
+ * first read hands back everything the target had already written before
9
+ * attach, indistinguishable from something that happens during this run
10
+ * unless something records the boundary.
11
+ *
12
+ * Real incident (`documents/plans/descry-uat-phase-4.md`, finding N3): a
13
+ * killed, orphaned FIRST process took its full timeout to exit and kept
14
+ * writing to the SAME log path a SECOND, successful process also used;
15
+ * attaching to the second process's pid read the first process's crash as if
16
+ * it were the second's own. Two independent fences close two independent
17
+ * parts of that gap:
18
+ *
19
+ * - `computeAttachFence` records, at the moment of attach, how much of the
20
+ * log file already existed (`attachOffsetBytes`, `preExistingLineCount`)
21
+ * and the target's own process start time (best-effort, Linux only) — the
22
+ * information a caller needs to mark already-written content instead of
23
+ * treating it as freshly observed.
24
+ * - `detectOtherLogWriters` answers a different question: is some OTHER
25
+ * process, right now, also holding this same log file open for writing?
26
+ * On Linux only, by scanning `/proc/*\/fd`. A genuinely shared log (e.g. a
27
+ * `docker compose` stack's combined stream) is a legitimate answer here,
28
+ * not refused — this function reports who else has the file open, and it
29
+ * is the caller's job to decide what that means for a given target.
30
+ *
31
+ * Neither function makes attach perfectly correct — a log file carries no
32
+ * per-line writer-pid metadata, so "verify every line against the declared
33
+ * pid" is not implementable over a plain text file. What these two give a
34
+ * caller together: the boundary of what this run actually watched happen,
35
+ * and a best-effort, honestly-labelled answer to "is anything else writing
36
+ * here right now."
37
+ */
38
+ export type ProcessStartTimeResult = {
39
+ readonly ok: true;
40
+ readonly startTimeMs: number;
41
+ } | {
42
+ readonly ok: false;
43
+ readonly reason: string;
44
+ };
45
+ /**
46
+ * `pid`'s own start time, as wall-clock epoch milliseconds — Linux only.
47
+ * `/proc/<pid>/stat` field 22 (`starttime`) is clock ticks since boot, not
48
+ * since epoch; converted via `/proc/uptime`'s boot-relative uptime, itself
49
+ * converted to an epoch instant from `Date.now()` at read time (so this is
50
+ * only as precise as the gap between the two reads, sub-millisecond in
51
+ * practice).
52
+ *
53
+ * The `comm` field (`/proc/pid/stat` field 2) can itself contain spaces and
54
+ * parentheses — parsed by finding the LAST `)` on the line, matching every
55
+ * real `/proc/pid/stat` parser: the kernel guarantees the true comm field
56
+ * ends at the last `)`, whatever it contains.
57
+ */
58
+ export declare function getProcessStartTimeMs(pid: number, platform?: NodeJS.Platform): ProcessStartTimeResult;
59
+ export type OtherLogWriterCheck = {
60
+ readonly checked: true;
61
+ readonly otherWriterPids: readonly number[];
62
+ } | {
63
+ readonly checked: false;
64
+ readonly reason: string;
65
+ };
66
+ /**
67
+ * Every OTHER process (not `targetPid`) currently holding an open file
68
+ * descriptor to `logFilePath`, by scanning `/proc/*\/fd` and comparing each
69
+ * descriptor's real target against `logFilePath`'s own real path. Linux only.
70
+ *
71
+ * A non-empty result is not by itself a problem — a deliberately shared log
72
+ * (several processes in one `docker compose` stack writing one combined
73
+ * stream) is legitimate multi-writer use. This function only answers "who
74
+ * else has it open right now"; a caller decides what that means for a given
75
+ * target.
76
+ *
77
+ * `checked: false` (never a thrown exception) only for what stops the scan
78
+ * from running AT ALL: non-Linux, `/proc` itself unreadable, or the log path
79
+ * can't be resolved to a real path. A single pid's `/proc/<pid>/fd` being
80
+ * unreadable (exited mid-scan, or a permission boundary) is NOT that —
81
+ * skipped for that one pid only, the same benign-race tolerance
82
+ * `inferRespawnCommandFromProc` already applies to `/proc` reads elsewhere
83
+ * in this codebase.
84
+ */
85
+ export declare function detectOtherLogWriters(logFilePath: string, targetPid: number, platform?: NodeJS.Platform): OtherLogWriterCheck;
86
+ export interface AttachFence {
87
+ /** The log file's size in bytes at the moment of attach — rotation detection compares this (or a later high-water mark) against the file's current size. */
88
+ readonly attachOffsetBytes: number;
89
+ /**
90
+ * How many complete lines already existed in the log file at the moment of
91
+ * attach. A source that yields lines in file order marks the first
92
+ * this-many `preExisting: true`. See `countCompleteLines` for the one
93
+ * disclosed edge case (a line torn exactly at the attach instant).
94
+ */
95
+ readonly preExistingLineCount: number;
96
+ /** Best-effort, Linux-only; `ok: false` on any other platform or read failure — never blocks the attach itself. */
97
+ readonly processStartTime: ProcessStartTimeResult;
98
+ /** See `detectOtherLogWriters` — computed once, at the moment of attach, against the pid this fence was built for. */
99
+ readonly otherWriters: OtherLogWriterCheck;
100
+ readonly attachedAt: string;
101
+ }
102
+ /**
103
+ * Snapshots the fence at the moment of attach. Never throws: a log file that
104
+ * doesn't exist yet at attach time (a target that hasn't written anything) is
105
+ * an honest zero-backlog fence, not an error — the file-tail machinery
106
+ * downstream already tolerates a not-yet-existing path the same way.
107
+ */
108
+ export declare function computeAttachFence(pid: number, logFilePath: string, platform?: NodeJS.Platform): AttachFence;
109
+ //# sourceMappingURL=attach-fencing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attach-fencing.d.ts","sourceRoot":"","sources":["../src/attach-fencing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAsBH,MAAM,MAAM,sBAAsB,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAwB3I;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAAG,sBAAsB,CAiCvH;AAED,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACvE;IAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAAG,mBAAmB,CA+C/I;AAED,MAAM,WAAW,WAAW;IAC1B,4JAA4J;IAC5J,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,mHAAmH;IACnH,QAAQ,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;IAClD,sHAAsH;IACtH,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAAG,WAAW,CAgB9H"}
@@ -0,0 +1,215 @@
1
+ /**
2
+ * Attach fencing (RT-N3): the boundary between "content this run watched happen"
3
+ * and "content that already existed when this run started watching it."
4
+ *
5
+ * Both `orchestrator/src/attach-to-running-process.ts` and this package's own
6
+ * `attachManagedProcess` read a target's ENTIRE log file on every poll —
7
+ * necessary, since a plain file offers no delta API — which means the very
8
+ * first read hands back everything the target had already written before
9
+ * attach, indistinguishable from something that happens during this run
10
+ * unless something records the boundary.
11
+ *
12
+ * Real incident (`documents/plans/descry-uat-phase-4.md`, finding N3): a
13
+ * killed, orphaned FIRST process took its full timeout to exit and kept
14
+ * writing to the SAME log path a SECOND, successful process also used;
15
+ * attaching to the second process's pid read the first process's crash as if
16
+ * it were the second's own. Two independent fences close two independent
17
+ * parts of that gap:
18
+ *
19
+ * - `computeAttachFence` records, at the moment of attach, how much of the
20
+ * log file already existed (`attachOffsetBytes`, `preExistingLineCount`)
21
+ * and the target's own process start time (best-effort, Linux only) — the
22
+ * information a caller needs to mark already-written content instead of
23
+ * treating it as freshly observed.
24
+ * - `detectOtherLogWriters` answers a different question: is some OTHER
25
+ * process, right now, also holding this same log file open for writing?
26
+ * On Linux only, by scanning `/proc/*\/fd`. A genuinely shared log (e.g. a
27
+ * `docker compose` stack's combined stream) is a legitimate answer here,
28
+ * not refused — this function reports who else has the file open, and it
29
+ * is the caller's job to decide what that means for a given target.
30
+ *
31
+ * Neither function makes attach perfectly correct — a log file carries no
32
+ * per-line writer-pid metadata, so "verify every line against the declared
33
+ * pid" is not implementable over a plain text file. What these two give a
34
+ * caller together: the boundary of what this run actually watched happen,
35
+ * and a best-effort, honestly-labelled answer to "is anything else writing
36
+ * here right now."
37
+ */
38
+ import { execFileSync } from "node:child_process";
39
+ import { readFileSync, readdirSync, readlinkSync, realpathSync, statSync } from "node:fs";
40
+ /**
41
+ * Complete (newline-terminated) lines in `text` — the same rule `LineSplitter`
42
+ * (`@descryy/runtime-backend-observation`) applies, reimplemented here rather
43
+ * than imported: this package does not depend on that one (the dependency
44
+ * runs the other way), and the rule is three lines. A trailing, unterminated
45
+ * partial line is deliberately NOT counted — see `computeAttachFence`'s doc
46
+ * for the one edge case that leaves disclosed rather than solved.
47
+ */
48
+ function countCompleteLines(text) {
49
+ if (text === "")
50
+ return 0;
51
+ const parts = text.split(/\r\n|\r|\n/);
52
+ // split() always yields at least one element; the LAST one is whatever
53
+ // followed the final terminator (empty, when text ends with one — itself
54
+ // not a line — or a real trailing partial otherwise; neither is counted).
55
+ return parts.length - 1;
56
+ }
57
+ let cachedClockTicksPerSecond = null;
58
+ /**
59
+ * `sysconf(_SC_CLK_TCK)` has no Node binding; `getconf CLK_TCK` is the same
60
+ * syscall via the POSIX utility every Linux ships. Cached process-wide — it
61
+ * cannot change while this process runs. Falls back to 100 (`USER_HZ`, the
62
+ * value on every Linux kernel/architecture this has been measured against)
63
+ * if `getconf` itself is unavailable, rather than failing the whole
64
+ * start-time computation over a missing convenience binary.
65
+ */
66
+ function clockTicksPerSecond() {
67
+ if (cachedClockTicksPerSecond !== null)
68
+ return cachedClockTicksPerSecond;
69
+ try {
70
+ const output = execFileSync("getconf", ["CLK_TCK"], { encoding: "utf8" }).trim();
71
+ const parsed = Number(output);
72
+ cachedClockTicksPerSecond = Number.isFinite(parsed) && parsed > 0 ? parsed : 100;
73
+ }
74
+ catch {
75
+ cachedClockTicksPerSecond = 100;
76
+ }
77
+ return cachedClockTicksPerSecond;
78
+ }
79
+ /**
80
+ * `pid`'s own start time, as wall-clock epoch milliseconds — Linux only.
81
+ * `/proc/<pid>/stat` field 22 (`starttime`) is clock ticks since boot, not
82
+ * since epoch; converted via `/proc/uptime`'s boot-relative uptime, itself
83
+ * converted to an epoch instant from `Date.now()` at read time (so this is
84
+ * only as precise as the gap between the two reads, sub-millisecond in
85
+ * practice).
86
+ *
87
+ * The `comm` field (`/proc/pid/stat` field 2) can itself contain spaces and
88
+ * parentheses — parsed by finding the LAST `)` on the line, matching every
89
+ * real `/proc/pid/stat` parser: the kernel guarantees the true comm field
90
+ * ends at the last `)`, whatever it contains.
91
+ */
92
+ export function getProcessStartTimeMs(pid, platform = process.platform) {
93
+ if (platform !== "linux") {
94
+ return { ok: false, reason: `process start time via /proc is Linux-only; not available on "${platform}"` };
95
+ }
96
+ let statLine;
97
+ try {
98
+ statLine = readFileSync(`/proc/${String(pid)}/stat`, "utf8");
99
+ }
100
+ catch (error) {
101
+ return { ok: false, reason: `could not read /proc/${String(pid)}/stat: ${error instanceof Error ? error.message : String(error)}` };
102
+ }
103
+ const afterComm = statLine.slice(statLine.lastIndexOf(")") + 1).trim();
104
+ const fields = afterComm.split(/\s+/);
105
+ // field 1 of `afterComm` is /proc/pid/stat's field 3 (state); starttime is
106
+ // field 22 overall, i.e. index 19 in this zero-indexed, comm-stripped array.
107
+ const starttimeTicks = Number(fields[19]);
108
+ if (!Number.isFinite(starttimeTicks)) {
109
+ return { ok: false, reason: `/proc/${String(pid)}/stat did not parse as expected — starttime field missing or non-numeric` };
110
+ }
111
+ let uptimeSeconds;
112
+ try {
113
+ const uptimeRaw = readFileSync("/proc/uptime", "utf8").trim().split(/\s+/)[0];
114
+ uptimeSeconds = Number(uptimeRaw);
115
+ if (!Number.isFinite(uptimeSeconds))
116
+ throw new Error("non-numeric");
117
+ }
118
+ catch (error) {
119
+ return { ok: false, reason: `could not read /proc/uptime to convert starttime to wall-clock time: ${error instanceof Error ? error.message : String(error)}` };
120
+ }
121
+ const bootEpochMs = Date.now() - uptimeSeconds * 1000;
122
+ const startTimeMs = bootEpochMs + (starttimeTicks / clockTicksPerSecond()) * 1000;
123
+ return { ok: true, startTimeMs };
124
+ }
125
+ /**
126
+ * Every OTHER process (not `targetPid`) currently holding an open file
127
+ * descriptor to `logFilePath`, by scanning `/proc/*\/fd` and comparing each
128
+ * descriptor's real target against `logFilePath`'s own real path. Linux only.
129
+ *
130
+ * A non-empty result is not by itself a problem — a deliberately shared log
131
+ * (several processes in one `docker compose` stack writing one combined
132
+ * stream) is legitimate multi-writer use. This function only answers "who
133
+ * else has it open right now"; a caller decides what that means for a given
134
+ * target.
135
+ *
136
+ * `checked: false` (never a thrown exception) only for what stops the scan
137
+ * from running AT ALL: non-Linux, `/proc` itself unreadable, or the log path
138
+ * can't be resolved to a real path. A single pid's `/proc/<pid>/fd` being
139
+ * unreadable (exited mid-scan, or a permission boundary) is NOT that —
140
+ * skipped for that one pid only, the same benign-race tolerance
141
+ * `inferRespawnCommandFromProc` already applies to `/proc` reads elsewhere
142
+ * in this codebase.
143
+ */
144
+ export function detectOtherLogWriters(logFilePath, targetPid, platform = process.platform) {
145
+ if (platform !== "linux") {
146
+ return { checked: false, reason: `second-writer detection requires scanning /proc/*/fd, which is Linux-only; not available on "${platform}"` };
147
+ }
148
+ let target;
149
+ try {
150
+ target = realpathSync(logFilePath);
151
+ }
152
+ catch (error) {
153
+ return {
154
+ checked: false,
155
+ reason: `could not resolve a real path for "${logFilePath}" to compare against other processes' open file descriptors: ${error instanceof Error ? error.message : String(error)}`,
156
+ };
157
+ }
158
+ let pidEntries;
159
+ try {
160
+ pidEntries = readdirSync("/proc").filter((entry) => /^\d+$/.test(entry));
161
+ }
162
+ catch (error) {
163
+ return { checked: false, reason: `could not list /proc to scan for other processes holding "${logFilePath}" open: ${error instanceof Error ? error.message : String(error)}` };
164
+ }
165
+ const otherWriterPids = [];
166
+ for (const entry of pidEntries) {
167
+ const pid = Number(entry);
168
+ if (pid === targetPid)
169
+ continue; // the attached target itself is expected to hold it open -- not "other"
170
+ let fds;
171
+ try {
172
+ fds = readdirSync(`/proc/${entry}/fd`);
173
+ }
174
+ catch {
175
+ continue; // exited mid-scan, or no permission -- a benign race, not this scan's failure
176
+ }
177
+ for (const fd of fds) {
178
+ try {
179
+ if (readlinkSync(`/proc/${entry}/fd/${fd}`) === target) {
180
+ otherWriterPids.push(pid);
181
+ break;
182
+ }
183
+ }
184
+ catch {
185
+ // fd closed between readdir and readlink -- benign race, skip
186
+ }
187
+ }
188
+ }
189
+ return { checked: true, otherWriterPids };
190
+ }
191
+ /**
192
+ * Snapshots the fence at the moment of attach. Never throws: a log file that
193
+ * doesn't exist yet at attach time (a target that hasn't written anything) is
194
+ * an honest zero-backlog fence, not an error — the file-tail machinery
195
+ * downstream already tolerates a not-yet-existing path the same way.
196
+ */
197
+ export function computeAttachFence(pid, logFilePath, platform = process.platform) {
198
+ let attachOffsetBytes = 0;
199
+ let preExistingLineCount = 0;
200
+ try {
201
+ attachOffsetBytes = statSync(logFilePath).size;
202
+ preExistingLineCount = countCompleteLines(readFileSync(logFilePath, "utf8"));
203
+ }
204
+ catch {
205
+ // Not yet created -- nothing pre-existing, the honest default.
206
+ }
207
+ return {
208
+ attachOffsetBytes,
209
+ preExistingLineCount,
210
+ processStartTime: getProcessStartTimeMs(pid, platform),
211
+ otherWriters: detectOtherLogWriters(logFilePath, pid, platform),
212
+ attachedAt: new Date().toISOString(),
213
+ };
214
+ }
215
+ //# sourceMappingURL=attach-fencing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attach-fencing.js","sourceRoot":"","sources":["../src/attach-fencing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE1F;;;;;;;GAOG;AACH,SAAS,kBAAkB,CAAC,IAAY;IACtC,IAAI,IAAI,KAAK,EAAE;QAAE,OAAO,CAAC,CAAC;IAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACvC,uEAAuE;IACvE,yEAAyE;IACzE,0EAA0E;IAC1E,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AAC1B,CAAC;AAID,IAAI,yBAAyB,GAAkB,IAAI,CAAC;AAEpD;;;;;;;GAOG;AACH,SAAS,mBAAmB;IAC1B,IAAI,yBAAyB,KAAK,IAAI;QAAE,OAAO,yBAAyB,CAAC;IACzE,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACjF,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAC9B,yBAAyB,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAA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YAChE,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;AAC5C,CAAC;AAmBD;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,WAAmB,EAAE,WAA4B,OAAO,CAAC,QAAQ;IAC/G,IAAI,iBAAiB,GAAG,CAAC,CAAC;IAC1B,IAAI,oBAAoB,GAAG,CAAC,CAAC;IAC7B,IAAI,CAAC;QACH,iBAAiB,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;QAC/C,oBAAoB,GAAG,kBAAkB,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAC/E,CAAC;IAAC,MAAM,CAAC;QACP,+DAA+D;IACjE,CAAC;IACD,OAAO;QACL,iBAAiB;QACjB,oBAAoB;QACpB,gBAAgB,EAAE,qBAAqB,CAAC,GAAG,EAAE,QAAQ,CAAC;QACtD,YAAY,EAAE,qBAAqB,CAAC,WAAW,EAAE,GAAG,EAAE,QAAQ,CAAC;QAC/D,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACrC,CAAC;AACJ,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export { withDefaultProcessEnv } from "./env.ts";
2
2
  export type { SpawnProcessOptions, ProcessExitInfo, ManagedProcess, AttachProcessOptions } from "./process-manager.ts";
3
3
  export { spawnProcess, attachManagedProcess, isProcessAlive } from "./process-manager.ts";
4
+ export type { AttachFence, ProcessStartTimeResult, OtherLogWriterCheck } from "./attach-fencing.ts";
5
+ export { computeAttachFence, getProcessStartTimeMs, detectOtherLogWriters } from "./attach-fencing.ts";
4
6
  export type { ReadinessMechanism, HttpReadinessCheck, TcpPortReadinessCheck, LogPatternReadinessCheck, CommandReadinessCheck, CustomHookReadinessCheck, ReadinessCheck, ReadinessResult, AwaitReadinessOptions, } from "./readiness.ts";
5
7
  export { READINESS_MECHANISMS, awaitReadiness } from "./readiness.ts";
6
8
  export type { CreateExecutionInput, RunOptions, ProcessLifecycleEvent } from "./controller.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACvH,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE1F,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EACd,eAAe,EACf,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEtE,YAAY,EAAE,oBAAoB,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,YAAY,EAAE,+BAA+B,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAE5F,YAAY,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAE/B,YAAY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AAC;AAEvE,YAAY,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAC7G,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE,YAAY,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC3G,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAKjI,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { withDefaultProcessEnv } from "./env.js";
2
2
  export { spawnProcess, attachManagedProcess, isProcessAlive } from "./process-manager.js";
3
+ export { computeAttachFence, getProcessStartTimeMs, detectOtherLogWriters } from "./attach-fencing.js";
3
4
  export { READINESS_MECHANISMS, awaitReadiness } from "./readiness.js";
4
5
  export { ExecutionController } from "./controller.js";
5
6
  export { createProcessCollector } from "./process-collector.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAa1F,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAG5F,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,uBAAuB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B,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAC1B,YAAY,GACb,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,0BAA0B,EAC1B,sCAAsC,EACtC,mCAAmC,EACnC,uCAAuC,EACvC,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAMjI,OAAO,EAAE,eAAe,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC"}
@@ -7,6 +7,7 @@
7
7
  * fixture-app slice (§34).
8
8
  */
9
9
  import type { FilesystemPolicy, NetworkPolicy, ProcessHandle, ResourceLimits, ServiceAttachConfiguration } from "@descryy/runtime-contracts";
10
+ import { type AttachFence } from "./attach-fencing.ts";
10
11
  /**
11
12
  * Binds port 0, reads it, releases immediately. A real gap remains between "free
12
13
  * when checked" and "still free when the child binds it" (RT-024's gap, one layer
@@ -66,6 +67,13 @@ export interface ManagedProcess {
66
67
  * the new process exists, not once it's ready (readiness is the caller's job).
67
68
  */
68
69
  restart(gracePeriodMs?: number): Promise<void>;
70
+ /**
71
+ * The attach-time fence (RT-N3), or `null` for a process this runtime spawned
72
+ * itself -- fencing only exists to mark content that predates OBSERVATION, and
73
+ * a spawned process has no output before Descry started it. See
74
+ * `computeAttachFence` (`attach-fencing.ts`) for what it records and why.
75
+ */
76
+ attachFence(): AttachFence | null;
69
77
  }
70
78
  export declare function spawnProcess(options: SpawnProcessOptions): ManagedProcess;
71
79
  /**
@@ -93,6 +101,18 @@ export interface AttachProcessOptions {
93
101
  * code in or applies changes to what it observes. Ending observation is the honest
94
102
  * equivalent of "stop" -- the target keeps running. `restart()` throws for the same
95
103
  * reason: no command exists to relaunch it with.
104
+ *
105
+ * **Attach fencing (RT-N3).** `computeAttachFence` snapshots, at construction time
106
+ * (i.e. the moment of attach), how much of `logFilePath` already existed and
107
+ * whether some other process also holds it open -- see `attach-fencing.ts`. Exposed
108
+ * via `attachFence()` for a caller building a `ProcessOutputSource` over
109
+ * `readOutput()` to mark pre-existing content instead of reporting it as freshly
110
+ * observed. `readOutput()` itself additionally refuses (rather than silently
111
+ * mis-reading) if the file is ever found shorter than the largest size already
112
+ * seen -- the same "cannot reconstruct a rotated/truncated buffer" rule
113
+ * `orchestrator/src/polling-output-source.ts` enforces one layer up, duplicated
114
+ * here for the same reason `isProcessAlive` is: this module cannot depend on
115
+ * that one without a cycle, and the check is small and pure enough to repeat.
96
116
  */
97
117
  export declare function attachManagedProcess(options: AttachProcessOptions): ManagedProcess;
98
118
  //# sourceMappingURL=process-manager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"process-manager.d.ts","sourceRoot":"","sources":["../src/process-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAK7I;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC,CAevD;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,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GAAG,WAAW,CAAC;CACjD;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;CACxC;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,IAAI,aAAa,CAAC;IACxB,kHAAkH;IAClH,UAAU,IAAI,MAAM,CAAC;IACrB,WAAW,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC;IACxC,uFAAuF;IACvF,IAAI,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;;;;OAKG;IACH,OAAO,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C;;;;;OAKG;IACH,WAAW,IAAI,WAAW,GAAG,IAAI,CAAC;CACnC;AAID,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,cAAc,CAiJzE;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAOnD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,0BAA0B,CAAC;IAC5C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAID;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAAG,cAAc,CAwFlF"}
@@ -13,6 +13,7 @@ import { promisify } from "node:util";
13
13
  import { applyResourceLimits } from "./execution-safety.js";
14
14
  import { applySandbox } from "./sandbox.js";
15
15
  import { applyContainerSandbox } from "./container-sandbox.js";
16
+ import { computeAttachFence } from "./attach-fencing.js";
16
17
  /**
17
18
  * Binds port 0, reads it, releases immediately. A real gap remains between "free
18
19
  * when checked" and "still free when the child binds it" (RT-024's gap, one layer
@@ -175,6 +176,8 @@ export function spawnProcess(options) {
175
176
  waitForExit: () => exitPromise,
176
177
  kill,
177
178
  restart,
179
+ // A spawned process has no output that predates this runtime observing it.
180
+ attachFence: () => null,
178
181
  };
179
182
  }
180
183
  /**
@@ -205,6 +208,18 @@ const DEFAULT_ATTACH_POLL_INTERVAL_MS = 50;
205
208
  * code in or applies changes to what it observes. Ending observation is the honest
206
209
  * equivalent of "stop" -- the target keeps running. `restart()` throws for the same
207
210
  * reason: no command exists to relaunch it with.
211
+ *
212
+ * **Attach fencing (RT-N3).** `computeAttachFence` snapshots, at construction time
213
+ * (i.e. the moment of attach), how much of `logFilePath` already existed and
214
+ * whether some other process also holds it open -- see `attach-fencing.ts`. Exposed
215
+ * via `attachFence()` for a caller building a `ProcessOutputSource` over
216
+ * `readOutput()` to mark pre-existing content instead of reporting it as freshly
217
+ * observed. `readOutput()` itself additionally refuses (rather than silently
218
+ * mis-reading) if the file is ever found shorter than the largest size already
219
+ * seen -- the same "cannot reconstruct a rotated/truncated buffer" rule
220
+ * `orchestrator/src/polling-output-source.ts` enforces one layer up, duplicated
221
+ * here for the same reason `isProcessAlive` is: this module cannot depend on
222
+ * that one without a cycle, and the check is small and pure enough to repeat.
208
223
  */
209
224
  export function attachManagedProcess(options) {
210
225
  const { pid, logFilePath } = options.attach;
@@ -212,6 +227,8 @@ export function attachManagedProcess(options) {
212
227
  throw new Error(`attachManagedProcess: pid ${String(pid)} for "${options.processId}" is not running — attach requires ` +
213
228
  `a target that already exists.`);
214
229
  }
230
+ const fence = computeAttachFence(pid, logFilePath);
231
+ let maxObservedByteLength = fence.attachOffsetBytes;
215
232
  const startedAt = new Date().toISOString();
216
233
  let exitedAt = null;
217
234
  let exitPromise = null;
@@ -235,13 +252,23 @@ export function attachManagedProcess(options) {
235
252
  };
236
253
  }
237
254
  function readOutput() {
255
+ let content;
238
256
  try {
239
- return readFileSync(logFilePath, "utf8");
257
+ content = readFileSync(logFilePath, "utf8");
240
258
  }
241
259
  catch (error) {
242
260
  const detail = error instanceof Error ? error.message : String(error);
243
261
  throw new Error(`attachManagedProcess: could not read log file "${logFilePath}" for pid ${String(pid)}: ${detail}`);
244
262
  }
263
+ const byteLength = Buffer.byteLength(content, "utf8");
264
+ if (byteLength < maxObservedByteLength) {
265
+ throw new Error(`attachManagedProcess: log file "${logFilePath}" for pid ${String(pid)} shrank from ${String(maxObservedByteLength)} ` +
266
+ `to ${String(byteLength)} bytes between reads -- this looks like log rotation or truncation, not new output. ` +
267
+ "The file-tail contract can't reconstruct a rotated/truncated buffer without either duplicating or dropping " +
268
+ `lines. Reported rather than guessed. (This run's own attach offset was ${String(fence.attachOffsetBytes)} bytes.)`);
269
+ }
270
+ maxObservedByteLength = byteLength;
271
+ return content;
245
272
  }
246
273
  function waitForExit() {
247
274
  exitPromise ??= new Promise((resolve) => {
@@ -265,7 +292,7 @@ export function attachManagedProcess(options) {
265
292
  return Promise.reject(new Error(`attachManagedProcess: cannot restart an attached process (pid ${String(pid)}) — Descry did not spawn ` +
266
293
  `it and has no command to relaunch it with.`));
267
294
  }
268
- return { handle, readOutput, waitForExit, kill, restart };
295
+ return { handle, readOutput, waitForExit, kill, restart, attachFence: () => fence };
269
296
  }
270
297
  const execFileAsync = promisify(execFile);
271
298
  function signalGroup(pid, signal) {
@@ -1 +1 @@
1
- {"version":3,"file":"process-manager.js","sourceRoot":"","sources":["../src/process-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAqB,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,u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AO,OAAO,CAAC,MAAM,CACnB,IAAI,KAAK,CACP,iEAAiE,MAAM,CAAC,GAAG,CAAC,2BAA2B;YACrG,4CAA4C,CAC/C,CACF,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC;AACtF,CAAC;AAED,MAAM,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AAE1C,SAAS,WAAW,CAAC,GAAW,EAAE,MAAsB;IACtD,IAAI,CAAC;QACH,8EAA8E;QAC9E,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC7B,CAAC;IAAC,MAAM,CAAC;QACP,sCAAsC;IACxC,CAAC;AACH,CAAC;AAED,SAAS,KAAK,CAAC,EAAU;IACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@descryy/runtime-controller",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
- "description": "Runtime controller: process manager, readiness, timeout/cancellation, execution IDs, cleanup. Deliverable 2 of the runtime phase \u2014 depends on @descryy/runtime-contracts, builds no collectors.",
5
+ "description": "Runtime controller: process manager, readiness, timeout/cancellation, execution IDs, cleanup. Deliverable 2 of the runtime phase — depends on @descryy/runtime-contracts, builds no collectors.",
6
6
  "license": "UNLICENSED",
7
7
  "repository": {
8
8
  "type": "git",
@@ -29,6 +29,6 @@
29
29
  "build": "tsc -b"
30
30
  },
31
31
  "dependencies": {
32
- "@descryy/runtime-contracts": "0.3.0"
32
+ "@descryy/runtime-contracts": "0.3.1"
33
33
  }
34
34
  }