-
Notifications
You must be signed in to change notification settings - Fork 0
governance: Viral_Radar 申报入图 + 失明窗口直推豁免登记(ADR-0091/0092) #375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -124,6 +124,18 @@ repos: | |
| bootstrap 直推豁免空仓变体(ADR-0084);2026-08-31 赛后按 ADR-0084 退役条款处置 | ||
| key_paths: [src/, tests/, quality/, docs/] | ||
|
|
||
| - name: Viral_Radar | ||
| layer: L2 | ||
| visibility: public | ||
| status: active | ||
| role: 产品仓——全网多平台爆款对标分析与脚本生成系统(微信视频号/抖音/小红书对标账号 | ||
| 数据采集、多模态文案提取 ASR+OCR、LLM 秒级爆款逻辑拆解、单账号/聚合报告与脚本草稿 | ||
| 生成;IR Viral_Radar#1);Python 语言(languages.yaml 对本仓整体豁免,ADR-0091: | ||
| 多模态推理链生态复用型豁免——ASR/OCR/LLM 网关三层 Python 生态垄断 + IR 明示 | ||
| 复用优先,豁免仅语言规范面、治理基线不豁免);建仓 bootstrap 直推 (b) 类豁免 | ||
| 登记(ADR-0092);README 待首个正式 PR 脱离模板文案 | ||
| key_paths: [src/, tests/, quality/, docs/] | ||
|
|
||
|
Comment on lines
+127
to
+138
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- changed hunk ---'
git diff --unified=20 -- governance/REPOS.yaml
printf '%s\n' '--- ADR files ---'
find archive/adr -maxdepth 1 -type f \( -name 'ADR-0091*' -o -name 'ADR-0092*' \) -print 2>/dev/null
printf '%s\n' '--- governance ownership rules ---'
find . -maxdepth 3 -type f \( -name 'CODEOWNERS' -o -name 'CODEOWNERS*' \) -print
rg -n -i --glob '!node_modules' 'owner-only|owner only|ADR-0091|ADR-0092|C1' archive/adr governance .github CODEOWNERS 2>/dev/null | head -200Repository: Cloudbird-Software/.github Length of output: 203 🏁 Script executed: #!/bin/bash
printf '%s\n' '--- repository entries for the target and ADRs ---'
git ls-files | rg '(^|/)(governance/REPOS\.yaml|archive/adr/|CODEOWNERS$|\.github/)' | head -300
printf '%s\n' '--- target lines ---'
if [ -f governance/REPOS.yaml ]; then
sed -n '115,145p' governance/REPOS.yaml
else
printf '%s\n' 'governance/REPOS.yaml is absent'
fi
printf '%s\n' '--- relevant commit metadata ---'
git log -5 --format='%h %s'
printf '%s\n' '--- repository root ---'
find . -maxdepth 2 -type f -print | sort | head -200Repository: Cloudbird-Software/.github Length of output: 4346 🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- governance policy references ---'
rg -n -C 3 'C1|owner-only|owner.only|archive/adr|ADR-[0-9]{4}|引用|review' governance AGENTS.md PULL_REQUEST_TEMPLATE.md CODEOWNERS .github/CODEOWNERS
printf '%s\n' '--- current commit ---'
git show -s --format=fuller HEAD
printf '%s\n' '--- target commit summary and changed paths ---'
git show --stat --oneline --summary HEAD
printf '%s\n' '--- ADR/archive presence, including ignored files ---'
if [ -e archive/adr ]; then
find archive/adr -maxdepth 2 -type f -print
else
printf '%s\n' 'archive/adr is absent'
fi
git check-ignore -v archive/adr archive/adr/ADR-0091.md archive/adr/ADR-0092.md 2>/dev/null || true
printf '%s\n' '--- CODEOWNERS contents ---'
cat -n CODEOWNERS
printf '%s\n' '--- pull request template ---'
cat -n PULL_REQUEST_TEMPLATE.mdRepository: Cloudbird-Software/.github Length of output: 50383 🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- exact C1 rules ---'
sed -n '36,42p' AGENTS.md
sed -n '183,192p' governance/GOVERNANCE.yaml
printf '%s\n' '--- CODEOWNERS ---'
cat -n CODEOWNERS
printf '%s\n' '--- current commit metadata ---'
git show -s --format='commit=%H%nparents=%P%nauthor=%an <%ae>%ncommitter=%cn <%ce>%nsubject=%s%nbody=%b' HEAD
printf '%s\n' '--- current branch and remotes ---'
git branch --show-current
git remote -v
printf '%s\n' '--- commit references to the requested ADRs ---'
git show --format=fuller --no-patch HEAD
git show --format= --name-only HEADRepository: Cloudbird-Software/.github Length of output: 3684 🏁 Script executed: #!/bin/bash
set -e
api='https://api.github.com'
repo='Cloudbird-Software/.github'
sha='72e4a53beea829a39e1a81f88bc671d9a7872a08'
printf '%s\n' '--- ADR repository entries ---'
curl -fsSL "$api/repos/Cloudbird-Software/archive/contents/adr" |
jq -r '.[] | select(.name|test("^ADR-0091|^ADR-0092|^INDEX\\.yaml$")) | [.name,.type,.html_url] | `@tsv`'
printf '%s\n' '--- pull requests for the reviewed commit ---'
curl -fsSL -H 'Accept: application/vnd.github+json' \
"$api/repos/$repo/commits/$sha/pulls" |
jq -r '.[] | [.number,.state,.title,.html_url] | `@tsv`'
printf '%s\n' '--- reviews for the matching PR, if present ---'
prs=$(curl -fsSL -H 'Accept: application/vnd.github+json' \
"$api/repos/$repo/commits/$sha/pulls" | jq -r '.[].number')
for pr in $prs; do
curl -fsSL -H 'Accept: application/vnd.github+json' \
"$api/repos/$repo/pulls/$pr/reviews" |
jq -r --arg pr "$pr" '.[] | [$pr,.user.login,.state,.submitted_at] | `@tsv`'
doneRepository: Cloudbird-Software/.github Length of output: 746 补齐 ADR-0092 正本并完成 owner-only review
🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| - name: holdout | ||
| layer: L1 | ||
| visibility: public | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -154,7 +154,7 @@ | |
| ] | ||
| }, | ||
| "direct_push_exemptions": { | ||
| "comment": "§8 直推检测豁免——两类,均须 ADR 背书,逐完整 SHA 登记(新直推不可能搭便车):(a) 破玻璃直推回填:GM-2 破玻璃的机器可读回填形式(ADR-0016 附录),事件定性见 ADR-0017(.github 两条:净变更仅为 Trae IDE 分享 zip 与误入 gitlink,彼时 PR 流程已运转);(b) 建仓 bootstrap 初始 commit(ADR-0021):仓库创建时序上分支/PR 尚不存在、不可能走 PR——Shorts_Director/agent-tools/Script_Writer 的 Initial commit 类(含 GitHub UI 建仓附带的 README 编辑 commit),登记为豁免而非追认破玻璃;arbiter 建仓 bootstrap 同理(W1-C2 .github#165/ADR-0054)。archive(W1-C1 .github#164/ADR-0053):bootstrap README commit 同属 (b) 类——注意 ADR-0046 后 org-required-workflows ruleset 无 bypass,空仓首推被 required workflow 拦截,豁免操作=对 org ruleset 的 archive 仓库做秒级临时 exclude 后经 contents API 建 commit 并即刻还原(全程约 5 秒,已留痕于 #164);ruleset 最终态与落盘定义一致(drift-check §1 不受影响)。QW_Arena1(.github#345/ADR-0084):(b) 类空仓变体——模板派生未生效(空仓无 base 分支、PR 不可行,org-required-workflows 无 bypass 构成死锁),template-service 基线 72 文件由 owner 凭据经临时 bootstrap 分支落盘、建 main 后切换默认分支完成导入(全程未触碰组织 rulesets,main 根树与 template-service 逐文件 sha 一致)。;cnb-bridge(ADR-0085/IR-0005):(b) 类空仓 bootstrap——README 首commit 经 contents API(Git Data API 对空仓 409),ruleset 未动(与 QW_Arena1 的 exclude 法不同路径,同为建仓时序豁免)。2026-08-25(ADR-0090):org-required-workflows 已补 OrganizationAdmin bypass——空仓首推死锁不再存在,后续建仓 bootstrap 直推首属即合法(仍须 (b) 类逐 SHA 登记);上文临时 exclude/contents API 变通均为历史事实记录", | ||
| "comment": "§8 直推检测豁免——两类,均须 ADR 背书,逐完整 SHA 登记(新直推不可能搭便车):(a) 破玻璃直推回填:GM-2 破玻璃的机器可读回填形式(ADR-0016 附录),事件定性见 ADR-0017(.github 两条:净变更仅为 Trae IDE 分享 zip 与误入 gitlink,彼时 PR 流程已运转);(b) 建仓 bootstrap 初始 commit(ADR-0021):仓库创建时序上分支/PR 尚不存在、不可能走 PR——Shorts_Director/agent-tools/Script_Writer 的 Initial commit 类(含 GitHub UI 建仓附带的 README 编辑 commit),登记为豁免而非追认破玻璃;arbiter 建仓 bootstrap 同理(W1-C2 .github#165/ADR-0054)。archive(W1-C1 .github#164/ADR-0053):bootstrap README commit 同属 (b) 类——注意 ADR-0046 后 org-required-workflows ruleset 无 bypass,空仓首推被 required workflow 拦截,豁免操作=对 org ruleset 的 archive 仓库做秒级临时 exclude 后经 contents API 建 commit 并即刻还原(全程约 5 秒,已留痕于 #164);ruleset 最终态与落盘定义一致(drift-check §1 不受影响)。QW_Arena1(.github#345/ADR-0084):(b) 类空仓变体——模板派生未生效(空仓无 base 分支、PR 不可行,org-required-workflows 无 bypass 构成死锁),template-service 基线 72 文件由 owner 凭据经临时 bootstrap 分支落盘、建 main 后切换默认分支完成导入(全程未触碰组织 rulesets,main 根树与 template-service 逐文件 sha 一致)。;cnb-bridge(ADR-0085/IR-0005):(b) 类空仓 bootstrap——README 首commit 经 contents API(Git Data API 对空仓 409),ruleset 未动(与 QW_Arena1 的 exclude 法不同路径,同为建仓时序豁免)。2026-08-25(ADR-0090):org-required-workflows 已补 OrganizationAdmin bypass——空仓首推死锁不再存在,后续建仓 bootstrap 直推首属即合法(仍须 (b) 类逐 SHA 登记);上文临时 exclude/contents API 变通均为历史事实记录。2026-08-25(ADR-0092):Viral_Radar 建仓 bootstrap((b) 类——ADR-0091 决策 1 定性:template-service 经官方 generate endpoint 实例化落 main,非 agent 直推);archive 两笔运行报告直推破玻璃追认((a) 类——运行报告属 C1 治理面必须走 PR,此后先例 archive#27)", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: printf '%s\n' '--- expected-state.json ---'
sed -n '150,162p' governance/expected-state.json
printf '%s\n' '--- REPOS.yaml ---'
sed -n '128,140p' governance/REPOS.yaml
printf '%s\n' '--- language policy ---'
sed -n '1,15p' governance/policy/languages.yaml
printf '%s\n' '--- relevant ADR files ---'
find archive/adr -maxdepth 1 -type f \( -iname '*0091*' -o -iname '*0092*' \) -print
printf '%s\n' '--- references to Viral_Radar and ADR-0091/0092 ---'
rg -n -C 3 'Viral_Radar|ADR-0091|ADR-0092' governance archive/adr .github 2>/dev/null | head -240Repository: Cloudbird-Software/.github Length of output: 7155 🏁 Script executed: printf '%s\n' '--- ADR filenames ---'
git ls-files | rg '(^|/)(ADR-009[12]|.*009[12].*|adr[-_]?009[12]).*$' || true
printf '%s\n' '--- top-level governance and documentation paths ---'
git ls-files | rg '(^|/)(governance|archive|adr|docs|spec|README)' | head -160
printf '%s\n' '--- all relevant references, including tracked files only ---'
rg -n -C 5 'ADR-0091|ADR-0092|Viral_Radar' --glob '!governance/expected-state.json' --glob '!governance/REPOS.yaml' --glob '!governance/policy/languages.yaml' . | head -320
printf '%s\n' '--- current diff summary and targeted diff ---'
git diff --stat
git diff -- governance/expected-state.json governance/REPOS.yaml governance/policy/languages.yaml | head -260Repository: Cloudbird-Software/.github Length of output: 2995 统一 PR 目标说明中的 ADR 归属。
🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| ".github": [ | ||
| "9b056b3a925038484a8f6655ea45f81f071d5df6", | ||
| "416f5f57fd459f6ece3587f3aa20b772148ad335" | ||
|
|
@@ -192,7 +192,9 @@ | |
| ], | ||
| "archive": [ | ||
| "a32f0fcea2bc7b422ad8ad1463a8ad4a92cbeb60", | ||
| "1d24dea9a1515714749be6e3964efb0a83ceceb1" | ||
| "1d24dea9a1515714749be6e3964efb0a83ceceb1", | ||
| "c1d31e10e7798e82f1d0de022f58ae15382af1fe", | ||
| "be94906f09b8e810449be11be63aff8ecf1bdf0f" | ||
|
Comment on lines
+195
to
+197
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- expected-state.json relevant ranges ---'
sed -n '180,220p' governance/expected-state.json
printf '%s\n' '--- drift-check.sh relevant implementation ---'
sed -n '220,260p' governance/drift-check.sh
printf '%s\n' '--- repository-local references to the listed SHAs and exemption keys ---'
rg -n -C 3 '1d24dea9a1515714749be6e3964efb0a83ceceb1|c1d31e10e7798e82f1d0de022f58ae15382af1fe|be94906f09b8e810449be11be63aff8ecf1bdf0f|db02d59268a5006747e04e4cdbba9c52d5852b32|direct_push_exemptions|Viral_Radar' governance archive .github 2>/dev/null || true
printf '%s\n' '--- changed-file summary and focused diff ---'
git diff --stat -- governance/expected-state.json
git diff -- governance/expected-state.jsonRepository: Cloudbird-Software/.github Length of output: 10075 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- ADR and governance records for the exemption classifications ---'
fd -i '0053|0092|0017|0091|archive|Viral' governance archive 2>/dev/null | head -80
rg -n -C 4 'ADR-0053|ADR-0092|ADR-0017|1d24dea9a1515714749be6e3964efb0a83ceceb1|c1d31e10e7798e82f1d0de022f58ae15382af1fe|db02d59268a5006747e04e4cdbba9c52d5852b32' governance archive . 2>/dev/null | head -240
printf '%s\n' '--- GitHub commit metadata and associated pull requests ---'
for spec in \
'archive 1d24dea9a1515714749be6e3964efb0a83ceceb1' \
'archive c1d31e10e7798e82f1d0de022f58ae15382af1fe' \
'archive be94906f09b8e810449be11be63aff8ecf1bdf0f' \
'Viral_Radar db02d59268a5006747e04e4cdbba9c52d5852b32'
do
set -- $spec
repo=$1
sha=$2
echo "### $repo@$sha"
curl -sS -L --fail "https://api.github.com/repos/Cloudbird-Software/$repo/commits/$sha" |
jq '{sha: .sha, message: .commit.message, author: .commit.author, committer: .commit.committer, parents: [.parents[].sha], files: [.files[]?.filename]}'
curl -sS -L --fail "https://api.github.com/repos/Cloudbird-Software/$repo/commits/$sha/pulls?per_page=5" |
jq '[.[] | {number, state, title, merged_at, html_url}]'
doneRepository: Cloudbird-Software/.github Length of output: 26962 修正
🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| ], | ||
| "QW_Arena1": [ | ||
| "d5ea693874917cbc3fbc45401c9c9a937dc71b9f", | ||
|
|
@@ -204,6 +206,9 @@ | |
| "cnb-bridge": [ | ||
| "6a43a24ba859a64ca9770c18fb1254050917984b" | ||
| ], | ||
| "Viral_Radar": [ | ||
| "db02d59268a5006747e04e4cdbba9c52d5852b32" | ||
| ], | ||
| "CI-Workflows": [ | ||
| "766d2c89a27e05c6afefd1963c6020be361edc23", | ||
| "5f2684f1e13d33c5f8e260440794324286603bdf", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ layers: | |
| allowed: | ||
| - {language: go, when: "default"} | ||
| - {language: typescript, when: "frontend-isomorphic only", requires: [TS-1, TS-2]} | ||
| # ADR-0085:agent-platform 退役,Python 准入回归默认拒绝(存量豁免先例:ADR-0023 AI_Web_School、ADR-0084 QW_Arena1) | ||
| # ADR-0085:agent-platform 退役,Python 准入回归默认拒绝(存量豁免先例:ADR-0023 AI_Web_School、ADR-0084 QW_Arena1、ADR-0091 Viral_Radar——多模态推理链生态复用型) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- target file ---'
cat -n governance/policy/languages.yaml
printf '%s\n' '--- candidate policy files ---'
fd -i -t f 'policy|language|adr|viral|radar' governance .github scripts Makefile docs 2>/dev/null | head -200
printf '%s\n' '--- direct references ---'
rg -n -S 'languages\.yaml|ADR-0091|Viral_Radar|allowed|policy gate|policy_gate|policyGate' governance .github scripts Makefile docs 2>/dev/null | head -240Repository: Cloudbird-Software/.github Length of output: 9220 🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- Viral_Radar repository policy record ---'
sed -n '108,145p' governance/REPOS.yaml
printf '%s\n' '--- ADR-0091 references and files ---'
fd -t f . archive governance | rg 'ADR-0091|adr-0091|0091'
rg -n -S -C 5 'ADR-0091|Viral_Radar|language.*exempt|语言.*豁免|languages\.yaml' archive governance .github scripts Makefile docs 2>/dev/null | head -260
printf '%s\n' '--- language-policy execution candidates ---'
rg -n -S -C 3 'application\.allowed|layers\.application|language.*allowed|allowed.*language|languages\.yaml|PY-1|PY-2|default.*拒绝|默认拒绝' .github governance scripts Makefile 2>/dev/null | head -300Repository: Cloudbird-Software/.github Length of output: 1745 🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- tracked ADR and policy files ---'
git ls-files | rg -i '(^|/)(adr|decision|policy|governance)([^/]*)?/|ADR-|adr-|policy|REPOS\.yaml|GOVERNANCE\.yaml|workflow'
printf '%s\n' '--- ADR-0091 and Viral_Radar references in tracked files ---'
rg -n -S -C 6 'ADR-0091|Viral_Radar|本仓整体豁免|语言规范面' $(git ls-files) 2>/dev/null | head -360
printf '%s\n' '--- executable language-policy consumers ---'
rg -n -S -C 4 'REPOS\.yaml|languages\.yaml|application.*allowed|layers.*application|PY-1|PY-2|language.*(policy|allowed|forbidden)|默认拒绝' $(git ls-files '*.sh' '*.py' '*.yml' '*.yaml' '*.json' 'Makefile' 2>/dev/null) 2>/dev/null | head -360Repository: Cloudbird-Software/.github Length of output: 36625 🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- gate workflow policy-related steps ---'
sed -n '1,235p' .github/workflows/gate.yml
printf '%s\n' '--- exact reads of language policy ---'
rg -n -S 'open\(.*languages|read.*languages|languages\.yaml|yaml\.safe_load|safe_load' .github/workflows governance scripts specs $(git ls-files | rg '(^|/)(Makefile|[^/]+\.(sh|py|yml|yaml))$' | tr '\n' ' ') 2>/dev/null | rg -i 'language|safe_load|languages|policy' | head -240Repository: Cloudbird-Software/.github Length of output: 23101 将 Viral_Radar 的 Python 豁免接入可执行策略路径。
🤖 Prompt for AI Agents |
||
| forbidden: [rust, java, csharp, cpp, new_language_without_org_approval] | ||
| rationale: "训练数据海量、写法单一、编译反馈快 → LLM 产出可靠" | ||
| llm_prompt: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: Cloudbird-Software/.github
Length of output: 17342
🏁 Script executed:
Repository: Cloudbird-Software/.github
Length of output: 309
合并前验证
Viral_Radar的线上状态。当
status: active且visibility: public时,governance/drift-check.sh会检查Cloudbird-Software/Viral_Radar是否存在且为公开仓库。仓库不存在或可见性不匹配时,gate 会报告漂移并失败。🤖 Prompt for AI Agents