pi-smart-compact 8.0.0-rc.1 → 8.0.0-rc.2

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 (67) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +27 -19
  3. package/dist/app/compaction-commit-store.d.ts +19 -0
  4. package/dist/app/compaction-commit-store.d.ts.map +1 -0
  5. package/dist/app/mode-policy.d.ts +4 -1
  6. package/dist/app/mode-policy.d.ts.map +1 -1
  7. package/dist/app/native-continuity-bridge.d.ts +9 -3
  8. package/dist/app/native-continuity-bridge.d.ts.map +1 -1
  9. package/dist/app/run-context.d.ts +8 -3
  10. package/dist/app/run-context.d.ts.map +1 -1
  11. package/dist/app/run-smart-compact.d.ts +2 -0
  12. package/dist/app/run-smart-compact.d.ts.map +1 -1
  13. package/dist/app/session-run-lock.d.ts +11 -1
  14. package/dist/app/session-run-lock.d.ts.map +1 -1
  15. package/dist/app/stage-auth.d.ts +3 -0
  16. package/dist/app/stage-auth.d.ts.map +1 -0
  17. package/dist/app/steps/extract.d.ts.map +1 -1
  18. package/dist/app/steps/metrics.d.ts +2 -0
  19. package/dist/app/steps/metrics.d.ts.map +1 -1
  20. package/dist/app/steps/persist.d.ts +15 -15
  21. package/dist/app/steps/persist.d.ts.map +1 -1
  22. package/dist/app/steps/prepare.d.ts.map +1 -1
  23. package/dist/app/steps/state.d.ts.map +1 -1
  24. package/dist/app/steps/synthesize.d.ts.map +1 -1
  25. package/dist/app/steps/verify.d.ts.map +1 -1
  26. package/dist/app/steps/window.d.ts.map +1 -1
  27. package/dist/constants.d.ts +1 -1
  28. package/dist/domain/provider-evaluation.d.ts +3 -2
  29. package/dist/domain/provider-evaluation.d.ts.map +1 -1
  30. package/dist/domain/summary-parse.d.ts.map +1 -1
  31. package/dist/domain/telemetry.d.ts +4 -0
  32. package/dist/domain/telemetry.d.ts.map +1 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +1179 -287
  35. package/dist/infra/context-graph.d.ts +4 -0
  36. package/dist/infra/context-graph.d.ts.map +1 -1
  37. package/dist/infra/fs.d.ts +9 -8
  38. package/dist/infra/fs.d.ts.map +1 -1
  39. package/dist/infra/paths.d.ts +4 -0
  40. package/dist/infra/paths.d.ts.map +1 -1
  41. package/dist/infra/services.d.ts +23 -17
  42. package/dist/infra/services.d.ts.map +1 -1
  43. package/dist/infra/synthesis-cache.d.ts.map +1 -1
  44. package/dist/phases/explore.d.ts.map +1 -1
  45. package/dist/phases/synthesize.d.ts.map +1 -1
  46. package/dist/phases/verify.d.ts.map +1 -1
  47. package/dist/provider-eval.js +84 -20
  48. package/dist/provider-scenario-eval.js +227 -35
  49. package/dist/telemetry-report.js +120 -31
  50. package/dist/types.d.ts +19 -7
  51. package/dist/types.d.ts.map +1 -1
  52. package/dist/ui/dashboard-insights.d.ts +4 -0
  53. package/dist/ui/dashboard-insights.d.ts.map +1 -1
  54. package/dist/ui/metrics-report.d.ts.map +1 -1
  55. package/dist/utils/cache.d.ts +5 -3
  56. package/dist/utils/cache.d.ts.map +1 -1
  57. package/dist/utils/damage.d.ts +1 -1
  58. package/dist/utils/damage.d.ts.map +1 -1
  59. package/dist/utils/helpers.d.ts.map +1 -1
  60. package/dist/utils/tokens.d.ts +7 -18
  61. package/dist/utils/tokens.d.ts.map +1 -1
  62. package/dist/utils/type-guards.d.ts.map +1 -1
  63. package/docs/MIGRATING_TO_V8.md +15 -9
  64. package/docs/RELEASE.md +6 -3
  65. package/package.json +1 -1
  66. package/dist/infra/llm-retry.d.ts +0 -46
  67. package/dist/infra/llm-retry.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@
4
4
 
5
5
  No changes yet.
6
6
 
7
+ ## [8.0.0-rc.2] - 2026-08-06
8
+
9
+ ### Fixed
10
+
11
+ - Durable state, fingerprint, context graph, and success telemetry now commit only after a run-id-correlated native `session_compact`; cancellation, failure, shutdown, and stale generations leave no false success state.
12
+ - Semantic verification detects negated/conditional goal, decision, and constraint inversions, inconsistent blocker placeholders, unresolved-error omissions, and fabricated files; deterministic quality-floor replacement is coverage-aware.
13
+ - Canary promotion now requires ≥85 absolute quality, ≥95% success, and ≥70% run-correlated damage-observation coverage in stable and canary cohorts; Data Confidence and Quality Health remain separate.
14
+ - Provider accounting includes uncached input plus cache reads/writes and reserves concurrent/failed-stream output; cross-process 0600 leases enforce the global run limit.
15
+ - Smart Memory requires real interactive host confirmation, treats recall as untrusted evidence, preserves/deduplicates project-scoped manual facts, and bounds structural graph nodes.
16
+ - Zero-call planning rejects token-dense/tool-heavy windows; synthesis caches include every behavior-affecting route/profile/thinking limit; unused route auth resolves lazily; retention protects the two newest user turns.
17
+ - Provider evaluation uses only explicitly stage-local pre-repair synthesis quality instead of copying one final verifier score into every route.
18
+ - Native continuity survives reload/process gaps in a bounded, locked project/session/branch-scoped handoff; apply-confirmed context-graph indexing is deferred and coalesced off the host compaction hook.
19
+ - Backup retention/restoration ignores foreign files in custom directories, filesystem locks fail closed, and atomic-write documentation no longer claims unimplemented fsync durability.
20
+ - Production runs share only bounded provider capability/token-calibration knowledge; transient probe failures cannot poison the capability cache. Removed the unused automatic LLM retry wrapper.
21
+
7
22
  ## [8.0.0-rc.1] - 2026-08-06
8
23
 
9
24
  ### Added
package/README.md CHANGED
@@ -120,7 +120,7 @@ Set `contextGraphEnabled` to `false` to disable indexing and both tools.
120
120
  | Surface | Behavior |
121
121
  | --- | --- |
122
122
  | `/smart-compact` | Explicit manual run. Supports picker UI, direct args, dry-run, focus, and budgets. |
123
- | `session_before_compact` | Auto path. Runs before Pi's native compaction and returns a verification-scored result when context pressure is high. |
123
+ | `session_before_compact` | Auto path. Returns/stages a verification-scored summary under pressure; durable state waits for matching `session_compact`. |
124
124
  | `smart_compact` tool | Agent path. Produces a pending summary for Pi's next natural compact; does not compact mid-turn. |
125
125
  | `/smart-compact loops` | Project-level open-loop manager: resolve/reopen, priority, pin/unpin. |
126
126
 
@@ -207,8 +207,10 @@ cohort. The report compares schema-v2 canary runs with the stable baseline and
207
207
  returns `HOLD`, `ROLLBACK`, or `PROMOTE`. Rollback triggers are: failure rate
208
208
  +5pp and ≥10%, verifier quality −5 points, p95 latency +50%, tokens +50%,
209
209
  heuristic fallback +10pp, or post-compaction damage +10pp. Promotion requires
210
- at least 20 canary runs, a stable baseline, and ≥70% quality coverage. The
211
- extension reports the decision; it never edits config or deploys automatically.
210
+ at least 20 canary runs, a stable baseline, ≥70% verifier-quality coverage,
211
+ ≥70% run-correlated damage-observation coverage in both cohorts, ≥85 absolute
212
+ canary quality, and ≥95% success. The extension reports the decision; it never
213
+ edits config or deploys automatically.
212
214
 
213
215
  The interactive and HTML dashboards make trust evidence explicit: a **Data
214
216
  Confidence** score (target ≥85) combines recent sample size (25 points),
@@ -230,7 +232,8 @@ guidance for reaching the target.
230
232
  - Mandatory deterministic repair for patchable verification gaps
231
233
  - Cross-session guard and five-minute TTL for pending summaries
232
234
  - Session-log recovery for older, truncated tool results
233
- - Retention-pruned backups before compaction
235
+ - Marker-owned retention-pruned backups before compaction; foreign files in a
236
+ custom directory are untouched
234
237
 
235
238
  ### Secrets and PII
236
239
 
@@ -252,11 +255,14 @@ handling or a dedicated DLP system**. See the
252
255
  ### Approval and feedback
253
256
 
254
257
  - `requireApproval: true` adds a fail-closed manual **Apply / Cancel** decision
255
- after the provenance review screen. Auto and tool paths retain their native
256
- staged lifecycle.
258
+ after the provenance review screen. Every path stages first; fingerprint,
259
+ continuity state, context graph, and success telemetry commit only after the
260
+ host confirms the matching native `session_compact` event.
257
261
  - Online damage monitoring observes the first post-compaction messages and
258
- records re-read files or repeated context. Remediation hints feed those files
259
- into the next compaction.
262
+ records re-read files or repeated context. Observations join the originating
263
+ compaction by a local run id; missing evidence lowers coverage rather than
264
+ counting as a clean run. Remediation hints feed affected files into the next
265
+ compaction.
260
266
  - `adaptiveDamageFeedback` can opt a project into larger preservation budgets
261
267
  after repeated high-damage reports.
262
268
 
@@ -386,37 +392,37 @@ The legacy `semanticCompact` root key is still accepted for compatibility.
386
392
 
387
393
  ```markdown
388
394
  ## Goal
389
- Add retry/backoff to the LLM client without breaking cancellation.
395
+ Tighten aggregate token budgets without breaking cancellation.
390
396
 
391
397
  ## Constraints & Preferences
392
398
  - [requirement] Never compact mid-turn from the tool path.
393
399
 
394
400
  ## Progress
395
401
  ### Done
396
- - [x] Added `withRetry` in `src/infra/llm-retry.ts`.
402
+ - [x] Reserved concurrent output budgets before provider calls.
397
403
  ### In Progress
398
- - [ ] Wire the retry client into run-scoped services.
404
+ - [ ] Collect canary evidence for the new limits.
399
405
  ### Blocked
400
406
  - None.
401
407
 
402
408
  ## Key Decisions
403
- - **Honor Retry-After verbatim**: provider limits are authoritative.
409
+ - **Charge failed streams conservatively**: an interrupted stream consumes its output reservation.
404
410
 
405
411
  ## Files Modified
406
- - src/infra/llm-retry.ts
407
- - src/infra/llm-client.ts
412
+ - src/infra/services.ts
413
+ - src/utils/cache.ts
408
414
 
409
415
  ## Open Loops
410
- - [high] Preserve AbortSignal behavior across providers.
416
+ - [high] Verify provider usage reconciliation across cache-read/write responses.
411
417
 
412
418
  ## Changes Since Last Compaction
413
- - New files touched: src/infra/llm-retry.ts
419
+ - Concurrent output accounting now fails closed.
414
420
 
415
421
  ## Next Steps
416
- 1. Add an outer timeout as a second line of defense.
422
+ 1. Run the adversarial release gate.
417
423
 
418
424
  ## Critical Context
419
- - Retry 408/425/429/5xx; fail fast on other 4xx responses.
425
+ - Input accounting includes uncached input, cache reads, and cache writes.
420
426
  ```
421
427
 
422
428
  </details>
@@ -441,12 +447,14 @@ All files live under `~/.pi/agent/`.
441
447
  | Path | Purpose |
442
448
  | --- | --- |
443
449
  | `settings.json` | Configuration (read only) |
444
- | `compact-backups/` | Retention-pruned conversation backups |
450
+ | `compact-backups/` | Marker-owned retention-pruned conversation backups |
445
451
  | `.cache/compact-extraction-<session>.json` | Incremental extraction cache |
446
452
  | `.cache/compact-metrics.jsonl` | Tail-retained metrics log; 5 MiB cap |
447
453
  | `.cache/smart-compact-report.html` | Local HTML dashboard |
448
454
  | `.cache/smart-compact/projects/<projectId>.json` | Project fingerprint |
449
455
  | `.cache/smart-compact/states/<projectId>/<sessionId>.json` | Scoped compaction state and loop overrides |
456
+ | `.cache/smart-compact/run-locks/` | 0600 cross-process session/global concurrency leases |
457
+ | `.cache/smart-compact/native-continuity/` | 0600 one-shot project/session/branch handoffs |
450
458
  | `.cache/smart-compact/context-graph.sqlite` | Project-isolated FTS5 context graph and explicit saved memory |
451
459
  | `.cache/smart-compact/damage-reports.jsonl` | Damage reports; 5 MiB cap |
452
460
  | `.cache/smart-compact/remediation-<projectId>.json` | Files to preserve after damage |
@@ -0,0 +1,19 @@
1
+ import type { PendingCompaction } from "../types.ts";
2
+ export type CommitDiscardReason = "expired" | "evicted" | "aborted" | "shutdown" | "apply-error";
3
+ export interface CompactionCommitStore {
4
+ stage(pending: PendingCompaction): void;
5
+ take(runId: string, sessionId: string): PendingCompaction | null;
6
+ discard(runId: string, reason: CommitDiscardReason): PendingCompaction | null;
7
+ clearSession(sessionId: string, reason?: CommitDiscardReason): PendingCompaction[];
8
+ size(): number;
9
+ }
10
+ /**
11
+ * Holds summaries only between session_before_compact and session_compact.
12
+ * Nothing durable is written until `take()` confirms both run and session.
13
+ */
14
+ export declare function createCompactionCommitStore(options?: {
15
+ ttlMs?: number;
16
+ maxEntries?: number;
17
+ onDiscard?: (pending: PendingCompaction, reason: CommitDiscardReason) => void;
18
+ }): CompactionCommitStore;
19
+ //# sourceMappingURL=compaction-commit-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compaction-commit-store.d.ts","sourceRoot":"","sources":["../../src/app/compaction-commit-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAOrD,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC;AAEjG,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACxC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAAC;IACjE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,GAAG,iBAAiB,GAAG,IAAI,CAAC;IAC9E,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,mBAAmB,GAAG,iBAAiB,EAAE,CAAC;IACnF,IAAI,IAAI,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,GAAE;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAC1E,GAAG,qBAAqB,CAgE7B"}
@@ -19,7 +19,10 @@ export declare const MODE_POLICIES: Readonly<Record<EffectiveCompactionMode, Mod
19
19
  export declare function modeFromLegacyProfile(profile: CompressionProfile): EffectiveCompactionMode;
20
20
  /** Cheap preflight choice used before deterministic extraction is available. */
21
21
  export declare function resolveMode(requested: CompactionMode, contextPercent: number, extraction?: StructuredExtraction, additionalRisk?: number): EffectiveCompactionMode;
22
- export declare function deterministicExtractionConfidence(extraction: StructuredExtraction): number;
22
+ export declare function deterministicExtractionConfidence(extraction: StructuredExtraction, context?: {
23
+ conversationTokens?: number;
24
+ toolPercent?: number;
25
+ }): number;
23
26
  export declare function continuityRisk(state: CompactionState | null): number;
24
27
  export declare function batchOutputLimit(mode: EffectiveCompactionMode, chunks: number, providerMax: number): number;
25
28
  export declare function effectiveBudget(configured: number, modeDefault: number): number;
@@ -1 +1 @@
1
- {"version":3,"file":"mode-policy.d.ts","sourceRoot":"","sources":["../../src/app/mode-policy.ts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EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAG3G;AAED,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAG/E"}
@@ -1,12 +1,18 @@
1
+ export interface NativeContinuityScope {
2
+ projectId: string;
3
+ sessionId: string;
4
+ branchHeadId: string;
5
+ }
1
6
  export interface NativeContinuityBridge {
2
- stage(sessionId: string, text: string): void;
3
- take(sessionId: string): string | null;
4
- clear(sessionId?: string): void;
7
+ stage(scope: NativeContinuityScope, text: string): void;
8
+ take(scope: NativeContinuityScope): string | null;
9
+ clear(scope?: NativeContinuityScope): void;
5
10
  size(): number;
6
11
  }
7
12
  export declare function createNativeContinuityBridge(opts?: {
8
13
  ttlMs?: number;
9
14
  maxEntries?: number;
10
15
  now?: () => number;
16
+ dir?: string;
11
17
  }): NativeContinuityBridge;
12
18
  //# sourceMappingURL=native-continuity-bridge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"native-continuity-bridge.d.ts","sourceRoot":"","sources":["../../src/app/native-continuity-bridge.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7C,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACvC,KAAK,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,IAAI,IAAI,MAAM,CAAC;CAChB;AAED,wBAAgB,4BAA4B,CAAC,IAAI,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CAAO,GAAG,sBAAsB,CAwB3I"}
1
+ {"version":3,"file":"native-continuity-bridge.d.ts","sourceRoot":"","sources":["../../src/app/native-continuity-bridge.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AASD,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACxD,IAAI,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,GAAG,IAAI,CAAC;IAClD,KAAK,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAC3C,IAAI,IAAI,MAAM,CAAC;CAChB;AAMD,wBAAgB,4BAA4B,CAAC,IAAI,GAAE;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACT,GAAG,sBAAsB,CAqG9B"}
@@ -69,6 +69,8 @@ export interface ResolvedAuth {
69
69
  headers?: ProviderHeaders;
70
70
  }
71
71
  export interface RcBase {
72
+ /** Unique id for correlating staged and applied compaction lifecycle events. */
73
+ runId: string;
72
74
  ctx: ExtensionContext;
73
75
  notify: Notifier;
74
76
  vlog: (msg: string) => void;
@@ -76,6 +78,8 @@ export interface RcBase {
76
78
  cancellation: CancellationToken;
77
79
  pendingRef: PendingRef;
78
80
  isRunning: Cell<boolean> | SessionRunLock;
81
+ /** Removes a staged commit candidate when native apply fails. */
82
+ onNativeApplyError?: (runId: string, error: Error) => boolean;
79
83
  flags: RunFlags;
80
84
  userNote?: string;
81
85
  focus?: string;
@@ -101,9 +105,10 @@ export interface PreparedExt {
101
105
  providerCaps: ProviderCapabilities;
102
106
  estimator: TokenEstimator;
103
107
  adapted: boolean;
104
- summaryAuth: ResolvedAuth;
105
- segAuth: ResolvedAuth;
106
- verifyAuth: ResolvedAuth;
108
+ summaryAuth?: ResolvedAuth;
109
+ /** Optional routes resolve credentials only when the stage actually runs. */
110
+ segAuth?: ResolvedAuth;
111
+ verifyAuth?: ResolvedAuth;
107
112
  }
108
113
  export type PreparedRc = RcBase & PreparedExt;
109
114
  export interface WindowedExt extends PreparedExt {
@@ -1 +1 @@
1
- {"version":3,"file":"run-context.d.ts","sourceRoot":"","sources":["../../src/app/run-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EACV,kBAAkB,EAAE,cAAc,EAAE,uBAAuB,EAAE,UAAU,EAAE,oBAAoB,EAC7F,iBAAiB,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EACzE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,mBAAmB,EACvE,eAAe,EAAE,eAAe,EAAE,QAAQ,EAAE,IAAI,EACjD,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5D,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,KAAK,IAAI,CAAC;AAE9F,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAA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AAQ,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,sBAAsB,EAAE,OAAO,aAAa,EAAE,sBAAsB,CAAC;IACrE,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,WAAW,CAAC;AAQ9C,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC;IACvB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,EAAE,eAAe,CAAC;IACjC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;CACrB;AACD,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;AAElC,uEAAuE;AACvE,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,EACnC,OAAO,EAAE,MAAM,EACf,KAAK,SAAa,GACjB,IAAI,CAGN;AAED,yEAAyE;AACzE,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAAG,IAAI,CAE/E;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,GAAG,SAAS,MAAM,EAAE,IAAI,SAAS,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,IAAI,GAAG,IAAI,CAE/F"}
@@ -79,6 +79,8 @@ export interface SmartCompactOptions {
79
79
  * ignore AbortSignal entirely).
80
80
  */
81
81
  cancellationOut?: Cell<ExternalCancellation | null>;
82
+ /** Lifecycle callback supplied by the extension's commit store. */
83
+ onNativeApplyError?: (runId: string, error: Error) => boolean;
82
84
  }
83
85
  export declare function runSmartCompact(opts: SmartCompactOptions): Promise<void>;
84
86
  //# sourceMappingURL=run-smart-compact.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-smart-compact.d.ts","sourceRoot":"","sources":["../../src/app/run-smart-compact.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAKtE,OAAO,KAAK,EACQ,UAAU,EAC7B,MAAM,kBAAkB,CAAC;AAc1B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,0EAA0E;AAC1E,MAAM,WAAW,mBAAmB;IAClC;;;;;;;OAOG;IACH,GAAG,EAAE,gBAAgB,CAAC;IACtB,YAAY,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,kFAAkF;IAClF,WAAW,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,yEAAyE;IACzE,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC;IAC1C,aAAa,CAAC,EAAE,OAAO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Y,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACrB,kFAAkF;IAClF,WAAW,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,yEAAyE;IACzE,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sGAAsG;IACtG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IACpD,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC;CAC/D;AAoDD,wBAAsB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyM9E"}
@@ -2,10 +2,20 @@ import type { Cell } from "../types.ts";
2
2
  export interface SessionRunLock extends Cell<boolean> {
3
3
  acquire(sessionId: string): boolean;
4
4
  release(sessionId: string): void;
5
+ isSessionActive(sessionId: string): boolean;
5
6
  isRunning(sessionId: string): boolean;
7
+ activeCount(): number;
6
8
  size(): number;
7
9
  }
8
- export declare function createSessionRunLock(maxConcurrent?: number): SessionRunLock;
10
+ /**
11
+ * Same-session serialization plus a filesystem-backed process-global
12
+ * semaphore. A crashed process leaves a lease that is reclaimed only when its
13
+ * PID is no longer alive (or an unreadable lease exceeds the stale ceiling).
14
+ */
15
+ export declare function createSessionRunLock(maxConcurrent?: number, options?: {
16
+ leaseDir?: string | null;
17
+ staleMs?: number;
18
+ }): SessionRunLock;
9
19
  export declare function acquireRunLock(lock: Cell<boolean> | SessionRunLock, sessionId: string): boolean;
10
20
  export declare function releaseRunLock(lock: Cell<boolean> | SessionRunLock, sessionId: string): void;
11
21
  //# sourceMappingURL=session-run-lock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-run-lock.d.ts","sourceRoot":"","sources":["../../src/app/session-run-lock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,OAAO,CAAC;IACnD,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IACtC,IAAI,IAAI,MAAM,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,aAAa,SAAI,GAAG,cAAc,CActE;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAK/F;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAG5F"}
1
+ {"version":3,"file":"session-run-lock.d.ts","sourceRoot":"","sources":["../../src/app/session-run-lock.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,OAAO,CAAC;IACnD,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5C,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IACtC,WAAW,IAAI,MAAM,CAAC;IACtB,IAAI,IAAI,MAAM,CAAC;CAChB;AAsDD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,SAAI,EACjB,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,GAC3D,cAAc,CAoDhB;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAK/F;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAG5F"}
@@ -0,0 +1,3 @@
1
+ import type { PreparedRc, ResolvedAuth } from "./run-context.ts";
2
+ export declare function resolveStageAuth(rc: PreparedRc, stage: "summary" | "explore" | "verify"): Promise<ResolvedAuth>;
3
+ //# sourceMappingURL=stage-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stage-auth.d.ts","sourceRoot":"","sources":["../../src/app/stage-auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEjE,wBAAsB,gBAAgB,CACpC,EAAE,EAAE,UAAU,EACd,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,GACtC,OAAO,CAAC,YAAY,CAAC,CA4BvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../src/app/steps/extract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkB/D,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,QAAQ,GAAG,WAAW,CA0K1D"}
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../src/app/steps/extract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkB/D,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,QAAQ,GAAG,WAAW,CA6K1D"}
@@ -15,6 +15,8 @@
15
15
  * the JSONL log and never throw past the cache.ts boundary.
16
16
  */
17
17
  import type { RcBase, StatedRc } from "../run-context.ts";
18
+ import type { MetricsSnapshot } from "../../types.ts";
19
+ export declare function buildSuccessMetrics(rc: StatedRc, status: "success" | "dry-run" | "cancelled"): MetricsSnapshot;
18
20
  export declare function recordSuccessMetrics(rc: StatedRc, status: "success" | "dry-run" | "cancelled"): void;
19
21
  /**
20
22
  * Partial summary that the orchestrator accumulates as steps complete. The
@@ -1 +1 @@
1
- {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../src/app/steps/metrics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAc1D,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAoDpG;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;I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BAAgB,EAAE,cAAc,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAClC,EAAE,EAAE,MAAM,GAAG,QAAQ,EACrB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,oBAAoB,GAC3B,IAAI,CA0BN"}
@@ -9,7 +9,8 @@
9
9
  * `ctx.compact()` error.
10
10
  *
11
11
  * - Project fingerprint and compaction state are persisted **after** the
12
- * native compact's `onComplete` confirms application. If we wrote state
12
+ * host emits the matching `session_compact` entry. `ctx.compact.onComplete`
13
+ * is UI feedback only and is not a durable-commit authority. If we wrote state
13
14
  * eagerly and the compact failed, the next run would believe a successful
14
15
  * compaction had happened — corrupting damage detection and the
15
16
  * cross-compaction delta. This addresses P1 #5 in the audit.
@@ -18,20 +19,19 @@
18
19
  * branch's previous compaction as a best-effort signal.
19
20
  */
20
21
  import type { RunContext } from "../run-context.ts";
21
- import type { PendingCompaction } from "../../types.ts";
22
+ import type { MetricsSnapshot, PendingCompaction } from "../../types.ts";
22
23
  import type { StatedRc } from "../run-context.ts";
23
24
  /**
24
- * Persist durable state for a *consumed* pending payload.
25
+ * Persist durable state for an applied payload.
25
26
  *
26
- * Single persist point for every run type. All three paths (manual, auto,
27
- * tool) apply the summary through `session_before_compact` consuming the
28
- * slot — the manual path's `ctx.compact()` fires that same event. Persisting
29
- * at consume therefore covers every path exactly once; persisting anywhere
30
- * else either misses the auto/tool paths (the old onComplete-only wiring) or
31
- * double-writes on manual (incrementing the fingerprint sessionCount twice).
32
- * Best-effort: never throws.
27
+ * `session_before_compact` only stages a candidate; Pi may still abort. The
28
+ * extension calls this function exactly once from the correlated
29
+ * `session_compact` event after the compaction entry exists. Best-effort:
30
+ * persistence failures are logged without corrupting the host session.
33
31
  */
34
- export declare function persistConsumedState(pending: PendingCompaction): void;
32
+ export declare function persistAppliedState(pending: PendingCompaction): void;
33
+ /** Commit state and telemetry after Pi confirms this exact compaction entry. */
34
+ export declare function commitAppliedCompaction(pending: PendingCompaction): void;
35
35
  /** Run post-compaction damage detection. Best-effort — never throws. */
36
36
  export declare function runDamageDetection(rc: RunContext): void;
37
37
  /**
@@ -40,15 +40,15 @@ export declare function runDamageDetection(rc: RunContext): void;
40
40
  * the run should keep running side effects (it does until the timeout/cleanup
41
41
  * step decides otherwise).
42
42
  */
43
- export declare function stagePendingCompaction(rc: RunContext): PendingCompaction;
43
+ export declare function stagePendingCompaction(rc: RunContext, metricsSnapshot?: MetricsSnapshot): PendingCompaction;
44
44
  /**
45
45
  * Trigger Pi's native compact in non-auto/non-tool runs. Failure clears the
46
46
  * pendingRef so the next compact event cannot grab a stale summary (audit
47
47
  * P1 #4).
48
48
  *
49
- * The run's outcome metric is recorded HERE, not before the apply: a
50
- * "success" row written pre-apply would inflate dashboard reliability when
51
- * the native compact then rejects. onComplete → success; onError → error.
49
+ * `session_compact` owns success metrics and durable commit. onError removes
50
+ * the correlated staged candidate; direct/test callers retain a safe metrics
51
+ * fallback when no lifecycle handler is installed.
52
52
  */
53
53
  export declare function applyCompaction(rc: StatedRc): void;
54
54
  //# sourceMappingURL=persist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"persist.d.ts","sourceRoot":"","sources":["../../../src/app/steps/persist.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAc,MAAM,gBAAgB,CAAC;AAQpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAMlD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CASrE;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,UAAU,GAAG,IAAI,CAkCvD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,UAAU,GAAG,iBAAiB,CAgBxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI,CAwBlD"}
1
+ {"version":3,"file":"persist.d.ts","sourceRoot":"","sources":["../../../src/app/steps/persist.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAc,MAAM,gBAAgB,CAAC;AASrF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAMlD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CASpE;AAED,gFAAgF;AAChF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAWxE;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,UAAU,GAAG,IAAI,CAkCvD;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,UAAU,EAAE,eAAe,CAAC,EAAE,eAAe,GAAG,iBAAiB,CAkB3G;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI,CAoBlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../../../src/app/steps/prepare.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAgB,MAAM,mBAAmB,CAAC;AAY1E,wBAAsB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAyFvE"}
1
+ {"version":3,"file":"prepare.d.ts","sourceRoot":"","sources":["../../../src/app/steps/prepare.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAgB,MAAM,mBAAmB,CAAC;AAY1E,wBAAsB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAmEvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/app/steps/state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAgB9D,wBAAgB,UAAU,CAAC,EAAE,EAAE,UAAU,GAAG,QAAQ,CA0InD"}
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/app/steps/state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAgB9D,wBAAgB,UAAU,CAAC,EAAE,EAAE,UAAU,GAAG,QAAQ,CA2InD"}
@@ -1 +1 @@
1
- {"version":3,"file":"synthesize.d.ts","sourceRoot":"","sources":["../../../src/app/steps/synthesize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAcH,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIpE,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAgUnF"}
1
+ {"version":3,"file":"synthesize.d.ts","sourceRoot":"","sources":["../../../src/app/steps/synthesize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAcH,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKpE,wBAAsB,qBAAqB,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CA6UnF"}
@@ -1 +1 @@
1
- {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../src/app/steps/verify.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAWnE,wBAAsB,cAAc,CAAC,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CA8E3E"}
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../src/app/steps/verify.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAkBnE,wBAAsB,cAAc,CAAC,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CAuF3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../src/app/steps/window.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAOhE,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,CA+FzE"}
1
+ {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../src/app/steps/window.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAOhE,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,UAAU,GAAG,UAAU,GAAG,IAAI,CAqGzE"}
@@ -8,7 +8,7 @@ import type { CompressionProfile, ProfileConfig } from "./types.ts";
8
8
  * `package.json#version`. Do not hand-edit this line for releases; bump
9
9
  * package.json and run `bun run sync-version`.
10
10
  */
11
- export declare const VERSION = "8.0.0-rc.1";
11
+ export declare const VERSION = "8.0.0-rc.2";
12
12
  export declare const CHARS_PER_TOKEN = 3.8;
13
13
  export declare const COMPACT_SYSTEM_PREFIX: string;
14
14
  export declare const PROFILES: Record<CompressionProfile, ProfileConfig>;
@@ -38,8 +38,9 @@ export declare function aggregateProviderRoutes(metrics: readonly LLMCallMetric[
38
38
  export declare function providerScenario(entry: Pick<CompactMetricsEntry, "contextPercent" | "toolPercent">): ProviderScenario;
39
39
  /**
40
40
  * Build an advisory scenario matrix from persisted real-run telemetry.
41
- * Legacy rows contribute reliability/latency, but only schema-v2 rows
42
- * contribute verifier quality so old score semantics cannot poison routing.
41
+ * Legacy rows contribute reliability/latency. Quality is accepted only from
42
+ * an explicitly stage-attributed route sample, never copied from the run's
43
+ * final verifier score into every provider stage.
43
44
  */
44
45
  export declare function evaluateProviderMetrics(entries: readonly CompactMetricsEntry[], options?: {
45
46
  minSamples?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"provider-evaluation.d.ts","sourceRoot":"","sources":["../../src/domain/provider-evaluation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EAAE,aAAa,EAAE,mBAAmB,EAAE,kBAAkB,EAC5E,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,gBAAgB,GACxB,wBAAwB,GAAG,eAAe,GAAG,oBAAoB,GACjE,yBAAyB,GAAG,gBAAgB,GAAG,qBAAqB,GACpE,yBAAyB,GAAG,gBAAgB,GAAG,qBAAqB,CAAC;AAEzE,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU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e,CAC7B,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,WAAW,EACjB,IAAI,EAAE,MAAM,EACZ,YAAY,SAAK,GAChB,gBAAgB,CAclB"}
@@ -1,8 +1,11 @@
1
1
  import type { CompactMetricsEntry, TelemetryFailureKind } from "../types.ts";
2
2
  export interface DamageTelemetryEntry {
3
3
  ts?: string;
4
+ /** Originating compaction run; required for trustworthy quality/damage joins. */
5
+ runId?: string;
4
6
  version?: string;
5
7
  releaseChannel?: "stable" | "canary";
8
+ observationSource?: "online-window" | "next-compaction";
6
9
  damageScore?: number;
7
10
  }
8
11
  export interface TelemetryWindowStats {
@@ -14,6 +17,7 @@ export interface TelemetryWindowStats {
14
17
  avgTokens: number;
15
18
  fallbackRate: number;
16
19
  damageRate: number;
20
+ damageCoverage: number;
17
21
  }
18
22
  export interface CanaryTrigger {
19
23
  metric: "failure-rate" | "quality" | "latency" | "tokens" | "fallback" | "damage";
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/domain/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE7E,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WA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