// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Require several healthy samples // Not compiled or tested in-world // Setup: Place in a spare owned prim. Touch through the sample success/failure sequence. Owner touch runs the local demonstration. // Stop / restore: Disable/remove. No external requests or scene changes occur; reset clears memory. // Notes: This is a local readiness model. It differs from averaging and hysteresis because one failure resets the success streak. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Local owner-only protocol laboratory. list SAMPLES=[TRUE,TRUE,FALSE,TRUE,TRUE,TRUE,FALSE]; integer cursor; integer streak; integer ready; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; integer good=llList2Integer(SAMPLES,cursor); cursor=(cursor+1)%llGetListLength(SAMPLES); if(good)++streak; else streak=0; ready=(streak>=3); llOwnerSay("Healthy="+(string)good+"; streak="+(string)streak+"; ready="+(string)ready); } }