@twinsearth/ai-prison-dsh-plugin 1.5.2 → 1.5.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/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to `@twinsearth/ai-prison-dsh-plugin` are recorded here.
4
4
 
5
+ ## [1.5.4] — 2026-11-18
6
+
7
+ ### Fixed — RSS diagnostics were invisible
8
+
9
+ - `state.json` and `ai_prison_watchdog_status` now carry `rss`, `rssAt`,
10
+ `rssError`, `rssStats`, `rssServiceError` and `rssAttempts`, and the values are
11
+ restored on reload. Before this, a working (or failing) scan could not be
12
+ observed outside the panel route.
13
+
14
+ ## [1.5.3] — 2026-11-18
15
+ ## [1.5.3] — 2026-11-18
16
+
17
+ ### Fixed — CI
18
+
19
+ - The RSS scanner tests exercise a Windows-only code path; they now skip on the
20
+ ubuntu release runner instead of failing there. The parser test still runs on
21
+ every platform.
22
+
23
+ ## [1.5.2] — 2026-11-18
5
24
  ## [1.5.2] — 2026-11-18
6
25
 
7
26
  ### Fixed — child RSS scan is observable and prefers the Host subprocess service
package/lib/tools.js CHANGED
@@ -214,6 +214,11 @@ export async function installTools({ ctx, config = {}, logger } = {}) {
214
214
  baselineAt: snapshot.baseline ? snapshot.baseline.at : null,
215
215
  budgets: snapshot.budgets,
216
216
  tamper: snapshot.tamper,
217
+ rss: snapshot.rss,
218
+ rssAt: snapshot.rssAt,
219
+ rssError: snapshot.rssError,
220
+ rssStats: snapshot.rssStats,
221
+ rssServiceError: snapshot.rssServiceError,
217
222
  operations: snapshot.operations,
218
223
  incidents: snapshot.incidents,
219
224
  note: snapshot.enforce
@@ -281,6 +281,12 @@ export function createWatchdog(ctx, config = {}, logger = {}) {
281
281
  baseline: watchdogState.baseline,
282
282
  budgets: watchdogState.budgets,
283
283
  quarantine: [...watchdogState.quarantine].map(([target, entry]) => ({ target, ...entry })),
284
+ rss: watchdogState.rss || {},
285
+ rssAt: watchdogState.rssAt || null,
286
+ rssError: watchdogState.rssError || null,
287
+ rssStats: watchdogState.rssStats || null,
288
+ rssServiceError: watchdogState.rssServiceError || null,
289
+ rssAttempts: watchdogState.rssAttempts || 0,
284
290
  migratedTamperQuarantine: tamperMigrationDone,
285
291
  }
286
292
  try {
@@ -298,6 +304,10 @@ export function createWatchdog(ctx, config = {}, logger = {}) {
298
304
  if (parsed.escalation && Array.isArray(parsed.escalation.crashes)) watchdogState.escalation = { crashes: parsed.escalation.crashes.slice(-50), level: parsed.escalation.level || 'L0' }
299
305
  if (parsed.baseline && Array.isArray(parsed.baseline.bundles)) watchdogState.baseline = parsed.baseline
300
306
  if (parsed.budgets && typeof parsed.budgets === 'object') watchdogState.budgets = parsed.budgets
307
+ if (parsed.rss && typeof parsed.rss === 'object') watchdogState.rss = parsed.rss
308
+ if (parsed.rssAt) watchdogState.rssAt = parsed.rssAt
309
+ if (parsed.rssStats) watchdogState.rssStats = parsed.rssStats
310
+ watchdogState.rssAttempts = Number(parsed.rssAttempts) || 0
301
311
  tamperMigrationDone = parsed.migratedTamperQuarantine === true
302
312
  if (Array.isArray(parsed.quarantine)) {
303
313
  let dropped = 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twinsearth/ai-prison-dsh-plugin",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "AI Prison for DSH: six governance tools wrapping the aiprison CLI (levels, demo, drill, inspect, verify, repair-tail) plus a panel for the L0–L5 matrix and the audit-chain state. The CLI ships bundled for Windows, macOS and Linux; every capability-removal backend stays simulated.",
5
5
  "type": "module",
6
6
  "main": "index.js",