chore: auto release commit (2026-07-11 15:57:40)
All checks were successful
技能自动化发布 / release (push) Successful in 5s
All checks were successful
技能自动化发布 / release (push) Successful in 5s
This commit is contained in:
@@ -32,6 +32,7 @@ POLICY_IDS = (
|
||||
"POLICY-TESTING-002",
|
||||
"POLICY-RPA-001",
|
||||
"POLICY-RPA-002",
|
||||
"POLICY-RPA-003",
|
||||
"POLICY-PACKAGING-001",
|
||||
"POLICY-PACKAGING-002",
|
||||
"POLICY-DOCS-001",
|
||||
@@ -109,6 +110,10 @@ RPA_002_FFMPEG_PATTERNS = (
|
||||
|
||||
RPA_002_EXEMPT_REL = "scripts/service/task_run_support.py"
|
||||
|
||||
RPA_003_SOURCE = (
|
||||
"development/RPA.md §5.3; development/TESTING.md §12; development/POLICY_MATRIX.md"
|
||||
)
|
||||
|
||||
LOGGING_001_SOURCE = "development/LOGGING.md; development/RUNTIME.md"
|
||||
LOGGING_002_SOURCE = "development/LOGGING.md; development/DEVELOPMENT.md"
|
||||
LOGGING_003_SOURCE = "development/LOGGING.md"
|
||||
@@ -470,6 +475,30 @@ class TestPolicyRpa002(unittest.TestCase):
|
||||
)
|
||||
|
||||
|
||||
class TestPolicyRpa003(unittest.TestCase):
|
||||
def test_service_layer_retains_video_session_integration(self) -> None:
|
||||
skill_root = get_skill_root()
|
||||
service_files = _walk_files(skill_root, "scripts/service", suffix=".py")
|
||||
self.assertTrue(service_files, msg="scripts/service/*.py not found")
|
||||
combined = "\n".join(_read_text(path) for path in service_files)
|
||||
missing: list[str] = []
|
||||
if "RpaVideoSession" not in combined:
|
||||
missing.append("RpaVideoSession")
|
||||
if "video.add_step" not in combined and ".add_step(" not in combined:
|
||||
missing.append("video.add_step or .add_step(")
|
||||
if "merge_video_into_result_summary" not in combined:
|
||||
missing.append("merge_video_into_result_summary")
|
||||
self.assertEqual(
|
||||
missing,
|
||||
[],
|
||||
msg=_policy_msg(
|
||||
"POLICY-RPA-003",
|
||||
RPA_003_SOURCE,
|
||||
"scripts/service/*.py missing: " + ", ".join(missing),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
def _scan_sensitive_logging_assignments(skill_root: str) -> list[str]:
|
||||
offenders: list[str] = []
|
||||
for path in _walk_files(skill_root, "scripts", suffix=".py"):
|
||||
|
||||
Reference in New Issue
Block a user