| event_payload |
{"ref":"refs/heads/main","befo {"ref":"refs/heads/main","before":"56039d0a57c27a4ec97ad38e4fc982ec28f136c1","after":"04d02d611af85737ed1ee7ae7d6644b6dedb51ad","compare_url":"https://gitea.g-hi.com/luoanwu/enterprise-platform/compare/56039d0a57c27a4ec97ad38e4fc982ec28f136c1...04d02d611af85737ed1ee7ae7d6644b6dedb51ad","commits":[{"id":"04d02d611af85737ed1ee7ae7d6644b6dedb51ad","message":"chore(reports): check:module-imports 回绑 @ e61bfcf\n\n经 governance/rebind-reports.mjs 在 HEAD 的临时干净检出里重跑,绑 e61bfcf / worktreeDirty=false。\n扫描 396 个源文件(扫描集 git,含新纳入的 runtime/clients 9 个),0 处违规。\n\n本工作区另有 5 份 stale 报告(release-manifest / sbom / image-smoke / runtime 的 naming 与\nfork-readiness)不由本次改动引起,属其他任务的 WIP,未动。\n\nCo-Authored-By: Claude Opus 5 \u003cnoreply@anthropic.com\u003e\n","url":"https://gitea.g-hi.com/luoanwu/enterprise-platform/commit/04d02d611af85737ed1ee7ae7d6644b6dedb51ad","author":{"name":"juhailaoluo pro","email":"hillao@juhailaoluodeMacBook-Pro.local","username":""},"committer":{"name":"juhailaoluo pro","email":"hillao@juhailaoluodeMacBook-Pro.local","username":""},"verification":null,"timestamp":"2026-09-18T15:29:14-07:00","added":[],"removed":[],"modified":["reports/module-imports.latest.json"]},{"id":"e61bfcf394f90171647b453a6960e84408109ed8","message":"fix(governance): check:module-imports 补上 clients 扫描面与行号——对外发布包此前零门禁,违规行号整体前移\n\n扫描集与三处判定问题一并收口:\n\n1. 扫描集取自 `git ls-files` 而不是文件系统遍历:walk() 只认 SKIP_DIR、从不读 .gitignore,\n workbench 静态导出产物与两个 next-env.d.ts 也被计进 filesScanned,同一提交在干净检出报 387、\n 在构建过的开发机报 411。filesScanned 是绑在 provenance.gitSha 上的声明,必须是该提交能复现的数。\n 代价是未 `git add` 的新文件扫不到(实测:未 add 绿、`git add -N` 后红),由 worktreeDirty=true 标出。\n\n2. runtime/clients 此前是**双重盲区**:既不在 SCAN_ROOTS,evaluateImports 也没有该路径前缀的分支,\n 实测三种违规(module 包 / @repo/* / 越包相对)全部返回 []。唯一的事实防线是 tsc,而它只拦带绑定的\n import(TS2307);`import \"@juhai/module-permission\";` 这种纯副作用写法 exit 0,偏偏它就足以把整个\n 模块拉进发布包的运行时依赖图。`governance/evidence-scopes.json` 的 module-imports 条目 scope 里\n 早就写着 runtime/clients——登记与实现在此分叉,登记那侧是对的。\n 新增 CLIENT_FORBIDDEN_IMPORT / ESCAPES_CLIENT;禁的是整个 @repo/*,不只 @repo/contracts:\n @repo/config 与 @repo/telemetry 同样 workspace-only,发布后消费者一律解析不到。对 module-kit 不开口子。\n\n3. 违规行号系统性偏移:stripComments 整段删块注释、又把 // 行从数组里 filter 掉,两处都在丢行。\n 本仓文件普遍有顶部大段块注释,实测真实第 9 行的违规报成第 3 行。改为等量保留换行。\n 行号是报告与 CLI 给人定位的唯一坐标,错的行号比没有行号更费事。\n\n4. violations 按 (文件, 行) 排序再交出:extractSpecifiers 按三个 pattern 分组扫,原始顺序里\n `import \"x\";` 会掉到同文件更靠后的 `import … from \"x\"` 之后。用 codePoint 序而非 localeCompare,\n 避免 CI 与本机 ICU 不同让 reports/ 的 diff 无故抖动。\n\n导出 SCAN_ROOTS 供测试引用,消除测试里另抄一份路径清单(抄的那份会跟实现分叉)。\n\n本机实测:扫描 396 个源文件(387 + 9 个 clients),全量 pnpm check 16 道 exit 0,\ngovernance 测试 341 → 346(+4 行号与 clients 回归、+1 排序回归);篡改必红实测通过。\n\nCo-Authored-By: Claude Opus 5 \u003cnoreply@anthropic.com\u003e\n","url":"https://gitea.g-hi.com/luoanwu/enterprise-platform/commit/e61bfcf394f90171647b453a6960e84408109ed8","author":{"name":"juhailaoluo pro","email":"hillao@juhailaoluodeMacBook-Pro.local","username":""},"committer":{"name":"juhailaoluo pro","email":"hillao@juhailaoluodeMacBook-Pro.local","username":""},"verification":null,"timestamp":"2026-09-18T15:28:21-07:00","added":[],"removed":[],"modified":["CLAUDE.md","governance/check-module-imports.mjs","governance/test/check-module-imports.test.mjs"]}],"total_commits":0,"head_commit":{"id":"04d02d611af85737ed1ee7ae7d6644b6dedb51ad","message":"chore(reports): check:module-imports 回绑 @ e61bfcf\n\n经 governance/rebind-reports.mjs 在 HEAD 的临时干净检出里重跑,绑 e61bfcf / worktreeDirty=false。\n扫描 396 个源文件(扫描集 git,含新纳入的 runtime/clients 9 个),0 处违规。\n\n本工作区另有 5 份 stale 报告(release-manifest / sbom / image-smoke / runtime 的 naming 与\nfork-readiness)不由本次改动引起,属其他任务的 WIP,未动。\n\nCo-Authored-By: Claude Opus 5 \u003cnoreply@anthropic.com\u003e\n","url":"https://gitea.g-hi.com/luoanwu/enterprise-platform/commit/04d02d611af85737ed1ee7ae7d6644b6dedb51ad","author":{"name":"juhailaoluo pro","email":"hillao@juhailaoluodeMacBook-Pro.local","username":""},"committer":{"name":"juhailaoluo pro","email":"hillao@juhailaoluodeMacBook-Pro.local","username":""},"verification":null,"timestamp":"2026-09-18T15:29:14-07:00","added":[],"removed":[],"modified":["reports/module-imports.latest.json"]},"repository":{"id":116,"owner":{"id":5,"login":"luoanwu","login_name":"","source_id":0,"full_name":"","email":"law@g-hi.com","avatar_url":"https://gitea.g-hi.com/avatar/627574a890388a2aadc80ab38d22f3a0","html_url":"https://gitea.g-hi.com/luoanwu","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-01-30T16:28:30+08:00","restricted":false,"active":false,"prohibit_login":false,"location":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"luoanwu"},"name":"enterprise-platform","full_name":"luoanwu/enterprise-platform","description":"","empty":false,"private":false,"fork":false,"template":false,"mirror":false,"size":19458,"language":"","languages_url":"https://gitea.g-hi.com/api/v1/repos/luoanwu/enterprise-platform/languages","html_url":"https://gitea.g-hi.com/luoanwu/enterprise-platform","url":"https://gitea.g-hi.com/api/v1/repos/luoanwu/enterprise-platform","link":"","ssh_url":"git@gitea.g-hi.com:luoanwu/enterprise-platform.git","clone_url":"https://gitea.g-hi.com/luoanwu/enterprise-platform.git","original_url":"","website":"","stars_count":0,"forks_count":0,"watchers_count":1,"branch_count":43,"open_issues_count":0,"open_pr_counter":0,"release_counter":0,"default_branch":"main","archived":false,"created_at":"2026-09-11T07:33:25+08:00","updated_at":"2026-09-19T06:26:23+08:00","archived_at":"1970-01-01T08:00:00+08:00","permissions":{"admin":true,"push":true,"pull":true},"has_code":true,"has_issues":true,"internal_tracker":{"enable_time_tracker":true,"allow_only_contributors_to_track_time":true,"enable_issue_dependencies":true},"has_wiki":true,"has_pull_requests":true,"has_projects":true,"projects_mode":"all","has_releases":true,"has_packages":true,"has_actions":true,"ignore_whitespace_conflicts":false,"allow_merge_commits":true,"allow_rebase":true,"allow_rebase_explicit":true,"allow_squash_merge":true,"allow_fast_forward_only_merge":true,"allow_rebase_update":true,"allow_manual_merge":false,"autodetect_manual_merge":false,"default_delete_branch_after_merge":false,"default_merge_style":"merge","default_allow_maintainer_edit":true,"avatar_url":"","internal":false,"mirror_interval":"","object_format_name":"sha1","mirror_updated":"0001-01-01T00:00:00Z","topics":[],"licenses":[]},"pusher":{"id":5,"login":"luoanwu","login_name":"","source_id":0,"full_name":"","email":"5+luoanwu@noreply.localhost","avatar_url":"https://gitea.g-hi.com/avatar/627574a890388a2aadc80ab38d22f3a0","html_url":"https://gitea.g-hi.com/luoanwu","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-01-30T16:28:30+08:00","restricted":false,"active":false,"prohibit_login":false,"location":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"luoanwu"},"sender":{"id":5,"login":"luoanwu","login_name":"","source_id":0,"full_name":"","email":"5+luoanwu@noreply.localhost","avatar_url":"https://gitea.g-hi.com/avatar/627574a890388a2aadc80ab38d22f3a0","html_url":"https://gitea.g-hi.com/luoanwu","language":"","is_admin":false,"last_login":"0001-01-01T00:00:00Z","created":"2026-01-30T16:28:30+08:00","restricted":false,"active":false,"prohibit_login":false,"location":"","website":"","description":"","visibility":"public","followers_count":0,"following_count":0,"starred_repos_count":0,"username":"luoanwu"}}... |