From 49c83bdcaeefa0f2a963b21f07419608012909c6 Mon Sep 17 00:00:00 2001 From: xiaoxing0135 <706015750@qq.com> Date: Fri, 12 Jun 2026 21:28:52 +0800 Subject: [PATCH 1/2] chore: remove internal governance labels from CI workflow names --- .github/workflows/ci.yml | 4 ++-- .github/workflows/selftest-weekly.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e85339..60f76b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -357,7 +357,7 @@ jobs: { echo "❌ .gitignore 未排除私有知识库"; exit 1; } echo "✅ 私有知识库受保护" - # ===== 8. L2 self-test(mock LLM,主宪章 §33,V1.10)===== + # ===== 8. L2 self-test (mock LLM) ===== selftest-mock: name: L2 self-test · mock LLM e2e runs-on: ubuntu-latest @@ -375,7 +375,7 @@ jobs: # 兜底:确保关键运行时模块在 pip install pydantic pydantic-settings typer rich loguru pyyaml openpyxl factory-boy faker prefect defusedxml prompt-toolkit - - name: L1 frontmatter lint(主宪章 §33 第 1 层) + - name: L1 frontmatter lint run: | python -m runtime.healthcheck.agent_smoke diff --git a/.github/workflows/selftest-weekly.yml b/.github/workflows/selftest-weekly.yml index da1d284..a335d92 100644 --- a/.github/workflows/selftest-weekly.yml +++ b/.github/workflows/selftest-weekly.yml @@ -1,4 +1,4 @@ -name: 周自检 · L4 真 LLM e2e(主宪章 §33) +name: 周自检 · L4 真 LLM e2e on: schedule: @@ -12,7 +12,7 @@ permissions: env: FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true -# 仅 main 分支 push 触发,fork PR 不跑(防 secrets 泄露,主宪章 §30) +# 仅 main 分支 push 触发,fork PR 不跑(防 secrets 泄露) jobs: selftest-weekly: name: L4 · 真 LLM e2e From 3deae87f8261b56d586e6764d2ed4b4b51ae5275 Mon Sep 17 00:00:00 2001 From: xiaoxing0135 <706015750@qq.com> Date: Fri, 12 Jun 2026 21:41:55 +0800 Subject: [PATCH 2/2] fix: add missing _BUILTIN_MAP definition causing Daily Audit failure _BUITIN_MAP was used in interactive.py (plugin loading) and slash_handlers.py (re-run handler) but was never defined. Added module-level _BUILTIN_MAP: dict = {} and lazy import. --- runtime/cli/commands/slash_handlers.py | 1 + runtime/cli/interactive.py | 1 + 2 files changed, 2 insertions(+) diff --git a/runtime/cli/commands/slash_handlers.py b/runtime/cli/commands/slash_handlers.py index 1256682..fd96507 100644 --- a/runtime/cli/commands/slash_handlers.py +++ b/runtime/cli/commands/slash_handlers.py @@ -213,6 +213,7 @@ def _cmd_fc(args: str) -> None: suggestion = _last_fix _last_fix = None console.print(f"[green]Running: /{suggestion}[/]") + from runtime.cli.interactive import _BUILTIN_MAP _BUILTIN_MAP.get(suggestion, lambda a: None)("") diff --git a/runtime/cli/interactive.py b/runtime/cli/interactive.py index 2c953a9..e0b2b47 100644 --- a/runtime/cli/interactive.py +++ b/runtime/cli/interactive.py @@ -46,6 +46,7 @@ _last_fix: str | None = None # last suggested command correction _start_time: float = 0.0 _cmd_history: list[str] = [] # last 10 user commands for /N quick re-run +_BUILTIN_MAP: dict = {} _PROMPT_STYLE = Style.from_dict({ "prompt": "bold cyan",