footprintjs 9.46.0 → 9.46.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.
- package/CLAUDE.md +6 -6
- package/dist/esm/lib/decide/evaluator.js +2 -2
- package/dist/esm/lib/decide/evidence.js +2 -2
- package/dist/esm/lib/engine/handlers/servedPause.js +2 -2
- package/dist/esm/lib/memory/RecordFrame.d.ts +41 -6
- package/dist/esm/lib/memory/RecordFrame.js +36 -5
- package/dist/esm/lib/memory/SharedMemory.d.ts +1 -1
- package/dist/esm/lib/memory/SharedMemory.js +2 -2
- package/dist/esm/lib/memory/StageContext.d.ts +21 -14
- package/dist/esm/lib/memory/StageContext.js +36 -74
- package/dist/esm/lib/memory/borrowedMutation.d.ts +1 -1
- package/dist/esm/lib/memory/borrowedMutation.js +2 -2
- package/dist/esm/lib/memory/honesty.d.ts +4 -3
- package/dist/esm/lib/memory/honesty.js +5 -4
- package/dist/esm/lib/memory/index.d.ts +4 -2
- package/dist/esm/lib/memory/index.js +6 -4
- package/dist/esm/lib/memory/placeholders.d.ts +23 -28
- package/dist/esm/lib/memory/placeholders.js +24 -29
- package/dist/esm/lib/memory/recordCommit.d.ts +5 -3
- package/dist/esm/lib/memory/recordCommit.js +7 -5
- package/dist/esm/lib/memory/redaction.d.ts +78 -40
- package/dist/esm/lib/memory/redaction.js +130 -64
- package/dist/esm/lib/memory/runAddress.d.ts +20 -0
- package/dist/esm/lib/memory/runAddress.js +25 -0
- package/dist/esm/lib/memory/scrub.d.ts +51 -0
- package/dist/esm/lib/memory/scrub.js +72 -0
- package/dist/esm/lib/memory/utils.d.ts +3 -3
- package/dist/esm/lib/memory/utils.js +4 -4
- package/dist/lib/decide/evaluator.js +3 -3
- package/dist/lib/decide/evidence.js +3 -3
- package/dist/lib/engine/handlers/servedPause.js +3 -3
- package/dist/lib/memory/RecordFrame.js +36 -5
- package/dist/lib/memory/SharedMemory.js +2 -2
- package/dist/lib/memory/StageContext.js +42 -80
- package/dist/lib/memory/borrowedMutation.js +2 -2
- package/dist/lib/memory/honesty.js +5 -4
- package/dist/lib/memory/index.js +6 -4
- package/dist/lib/memory/placeholders.js +25 -30
- package/dist/lib/memory/recordCommit.js +9 -7
- package/dist/lib/memory/redaction.js +144 -75
- package/dist/lib/memory/runAddress.js +29 -0
- package/dist/lib/memory/scrub.js +77 -0
- package/dist/lib/memory/utils.js +4 -4
- package/dist/types/lib/memory/RecordFrame.d.ts +41 -6
- package/dist/types/lib/memory/SharedMemory.d.ts +1 -1
- package/dist/types/lib/memory/StageContext.d.ts +21 -14
- package/dist/types/lib/memory/borrowedMutation.d.ts +1 -1
- package/dist/types/lib/memory/honesty.d.ts +4 -3
- package/dist/types/lib/memory/index.d.ts +4 -2
- package/dist/types/lib/memory/placeholders.d.ts +23 -28
- package/dist/types/lib/memory/recordCommit.d.ts +5 -3
- package/dist/types/lib/memory/redaction.d.ts +78 -40
- package/dist/types/lib/memory/runAddress.d.ts +20 -0
- package/dist/types/lib/memory/scrub.d.ts +51 -0
- package/dist/types/lib/memory/utils.d.ts +3 -3
- package/package.json +1 -1
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Like a stack frame in a compiler/runtime:
|
|
5
5
|
* - A RecordFrame — the record half (C3): the heap, the address, the
|
|
6
|
-
* first-touch base, the lazy transaction buffer
|
|
6
|
+
* first-touch base, the lazy transaction buffer and every write's scrub
|
|
7
|
+
* (C4), the readKeys list
|
|
7
8
|
* - Links to parent/child/next contexts (call stack frames)
|
|
8
9
|
* - What belongs to a stage inside a run: retention of reads and writes, the
|
|
9
|
-
* redaction
|
|
10
|
+
* redaction decision per write (`redaction.ts · decideWrite`) and where the
|
|
11
|
+
* frame writes (`runAddress.ts`), the dev-mode warnings, the commit observer
|
|
10
12
|
* - DiagnosticCollector for logs, errors, metrics
|
|
11
13
|
*/
|
|
12
14
|
import { type DiagnosticChannel, DiagnosticCollector } from './DiagnosticCollector.js';
|
|
@@ -206,10 +208,10 @@ export declare class StageContext {
|
|
|
206
208
|
* and stores nothing under `'off'` (entry skipped entirely — nothing to
|
|
207
209
|
* leak). A field-level verdict scrubs a clone BEFORE the dial sees it, so
|
|
208
210
|
* a summary preview can never show the secret either. The verdict is the
|
|
209
|
-
* one `stageWrite`
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
* `
|
|
211
|
+
* one `stageWrite` decided BEFORE staging, carried to commit with the
|
|
212
|
+
* value. The staged write itself is unaffected — redaction of the
|
|
213
|
+
* committed payload is the record frame's scrub of that write
|
|
214
|
+
* (`RecordFrame · write`, then `scrub.ts` at commit).
|
|
213
215
|
*/
|
|
214
216
|
private trackWrite;
|
|
215
217
|
/**
|
|
@@ -243,14 +245,19 @@ export declare class StageContext {
|
|
|
243
245
|
/**
|
|
244
246
|
* THE ONE FUNNEL every staged write passes through — facade writes AND
|
|
245
247
|
* the paths that bypass the facade (subflow seed, `outputMapper`
|
|
246
|
-
* merge-back, resume re-seed).
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
248
|
+
* merge-back, resume re-seed). Two owners (C4): the run's rule DECIDES,
|
|
249
|
+
* the record frame WRITES the verdict's bytes, in four steps
|
|
250
|
+
* (`redaction.ts`, "The write decision"):
|
|
251
|
+
* 1. the verdict — `decideWrite`, under the rule active as the write begins;
|
|
252
|
+
* 2. identity inheritance — `inheritByIdentity`, against this frame's
|
|
253
|
+
* selected reads as they stand after step 1;
|
|
254
|
+
* 3. the bytes — `RecordFrame · write`, the op and its scrub (the whole
|
|
255
|
+
* value, or the fields inside it);
|
|
256
|
+
* 4. the marks — `markStagedWrite`, only once the write staged, so a
|
|
257
|
+
* write that fails to stage marks nothing.
|
|
258
|
+
* Each step reads the rule (and the selected reads) when it acts, as this
|
|
259
|
+
* funnel always did. Returns the verdict so the caller retains and reports
|
|
260
|
+
* under the same decision.
|
|
254
261
|
*/
|
|
255
262
|
private stageWrite;
|
|
256
263
|
/**
|