@@ -12,11 +12,7 @@ import {
1212 clearPersistedContextEngineQuarantineForProcess ,
1313 recordPersistedContextEngineQuarantine ,
1414} from "./quarantine-health.js" ;
15- import {
16- clearContextEnginesForOwner ,
17- listContextEngineQuarantines ,
18- registerContextEngineForOwner ,
19- } from "./registry.js" ;
15+ import { listContextEngineQuarantines } from "./registry.js" ;
2016import { resetContextEngineRuntimeQuarantineForTests } from "./registry.test-support.js" ;
2117
2218const CONTEXT_ENGINE_QUARANTINE_OWNER_ID = "core:context-engine-quarantine-health" ;
@@ -244,37 +240,4 @@ describe("context engine quarantine health", () => {
244240 } ) ;
245241 } ) ;
246242 } ) ;
247-
248- it ( "clears persisted quarantine records when owner engines unload" , async ( ) => {
249- await withStateDirEnv ( "openclaw-context-engine-quarantine-owner-" , async ( ) => {
250- const owner = "plugin:lossless-claw" ;
251- registerContextEngineForOwner (
252- "lossless-claw" ,
253- ( ) => ( {
254- info : { id : "lossless-claw" , name : "Lossless Claw" , version : "1" } ,
255- async ingest ( ) {
256- return { ingested : true } ;
257- } ,
258- async assemble ( { messages } ) {
259- return { messages, estimatedTokens : 0 } ;
260- } ,
261- async compact ( ) {
262- return { ok : true , compacted : false } ;
263- } ,
264- } ) ,
265- owner ,
266- ) ;
267- recordPersistedContextEngineQuarantine ( {
268- engineId : "lossless-claw" ,
269- owner,
270- operation : "bootstrap" ,
271- reason : "plugin disabled" ,
272- failedAt : new Date ( 123 ) ,
273- } ) ;
274-
275- clearContextEnginesForOwner ( owner ) ;
276-
277- expect ( listContextEngineQuarantines ( ) ) . toEqual ( [ ] ) ;
278- } ) ;
279- } ) ;
280243} ) ;
0 commit comments