Fast-Forward Reality: Authoring Error-Free Context-Aware Policies with Real-Time Unit Tests in Extended Reality
Xun Qian, Tianyi Wang, Xuhai Xu, Tanya R Jonker, Kashyap Todi
TL;DR
This work tackles the reliability gap in end-user context-aware policy (CAP) authoring by introducing Fast-Forward Reality, an Extended Reality (XR) workflow that enables in-situ authoring, automatic generation of personalized unit-test-like test cases from a user’s context history, and immersive validation. The system implements an author-test-refine loop, guided by a test-case generation algorithm that leverages the uncertainty coefficient $theils\_u$ to diversify scenarios while keeping tests concise. An XR interface provides immersive, in-situ visualizations to help users interpret test cases and refine CAPs accordingly. In a user study with N=12, CAPs authored with the framework achieved higher precision (90.6%), recall (83.3%), and overall F-score (85.4%) than a baseline, with strong usability feedback (SUS ~86) and positive qualitative remarks on immersion and trust. The results suggest that coupling personalized test-case generation with XR-based validation can make end-user CAP authoring more accurate, intuitive, and scalable for real-world smart environments, while highlighting future work on sensing robustness, multi-CAP conflicts, and richer interaction modalities.
Abstract
Advances in ubiquitous computing have enabled end-user authoring of context-aware policies (CAPs) that control smart devices based on specific contexts of the user and environment. However, authoring CAPs accurately and avoiding run-time errors is challenging for end-users as it is difficult to foresee CAP behaviors under complex real-world conditions. We propose Fast-Forward Reality, an Extended Reality (XR) based authoring workflow that enables end-users to iteratively author and refine CAPs by validating their behaviors via simulated unit test cases. We develop a computational approach to automatically generate test cases based on the authored CAP and the user's context history. Our system delivers each test case with immersive visualizations in XR, facilitating users to verify the CAP behavior and identify necessary refinements. We evaluated Fast-Forward Reality in a user study (N=12). Our authoring and validation process improved the accuracy of CAPs and the users provided positive feedback on the system usability.
