From 6deca25a19731e8c605503057f3f2a5af0646e60 Mon Sep 17 00:00:00 2001 From: lll-hhh <169072815+lll-hhh@users.noreply.github.com> Date: Thu, 29 Oct 2026 23:32:07 +0800 Subject: [PATCH] refactor(skills): read the managed slash-command marker from its writer The writer of a managed slash-command facade and the readback that decides whether a file is LoopX-managed each stated the same marker literal under their own name, so a version bump had two places to land and a drift between them would silently treat a managed file as user-owned. Point the readback at the writer's constant and census the literal, including the shipped host assets that state it in their own runtime. Signed-off-by: lll-hhh <169072815+lll-hhh@users.noreply.github.com> --- loopx/skill_install_readback.py | 2 +- ...test_managed_slash_command_marker_owner.py | 62 +++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 tests/architecture/test_managed_slash_command_marker_owner.py diff --git a/loopx/skill_install_readback.py b/loopx/skill_install_readback.py index 79ef7bdfd6..957771358d 100644 --- a/loopx/skill_install_readback.py +++ b/loopx/skill_install_readback.py @@ -12,6 +12,7 @@ from . import __version__ from .doctor_git import git_metadata_for_root +from .slash_command_files import MANAGED_MARKER_PREFIX as LOOPX_MANAGED_SLASH_COMMAND_MARKER SKILL_INSTALL_READBACK_SCHEMA_VERSION = "loopx_skill_install_readback_v1" SKILL_INSTALL_READBACK_FILENAME = ".loopx-skill-install.json" @@ -36,7 +37,6 @@ PYTHON_DISTRIBUTION_SKILL_INSTALL_MODE, ), } -LOOPX_MANAGED_SLASH_COMMAND_MARKER = "