-
Notifications
You must be signed in to change notification settings - Fork 0
governance: REPOS.yaml 申报 Viral_Radar 入图(GM-4,ADR-0091) #374
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"生态复用"型:多模态推理链 Python 垄断+ | ||
| 无 Go/TS 等价物+IR 明示复用优先,豁免仅语言规范面、治理基线不豁免);建仓经 | ||
|
Comment on lines
+133
to
+134
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 | 🏗️ Heavy lift 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- changed hunk ---'
git diff -- governance/REPOS.yaml
printf '%s\n' '--- relevant files ---'
git ls-files 'governance/**' | rg '(^governance/(REPOS|GOVERNANCE)\.yaml$|languages\.yaml|ADR-0091|ADR-0085|drift|new-repo|dashboard)'
printf '%s\n' '--- target registration ---'
rg -n -C 8 'Viral_Radar|ADR-0091|languages\.yaml' governance/REPOS.yaml governance/policy governance/GOVERNANCE.yaml governance/scripts .github 2>/dev/null || trueRepository: Cloudbird-Software/.github Length of output: 5203 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- ADR references and files ---'
git ls-files | rg '(^|/)(ADR-0091|ADR-0085|archive/adr|adr)' || true
rg -n -C 5 'ADR-0091|ADR-0085|整体豁免|exempt|language|语言|section-7a|§7a|7a' governance/policy/languages.yaml governance/drift-check.sh governance/GOVERNANCE.yaml governance/REPOS.yaml
printf '%s\n' '--- governance file outlines ---'
ast-grep outline governance/drift-check.sh --lang bash 2>/dev/null || true
wc -l governance/policy/languages.yaml governance/drift-check.sh governance/GOVERNANCE.yamlRepository: Cloudbird-Software/.github Length of output: 20527 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- language policy and consumers ---'
cat -n governance/policy/languages.yaml | sed -n '1,22p; sixty,69p' 2>/dev/null || cat -n governance/policy/languages.yaml | sed -n '1,22p;60,69p'
rg -n -C 4 'policy/languages\.yaml|languages\.yaml|language_change|ADR-[0-9]{4}|adr-required|owner-only|owner-merge' --glob '!governance/REPOS.yaml' --glob '!governance/GOVERNANCE.yaml' --glob '!governance/drift-check.sh' .
printf '%s\n' '--- drift-check policy execution near sections 7 and ADR validation ---'
sed -n '150,195p;300,390p' governance/drift-check.sh
printf '%s\n' '--- ADR index helper ---'
cat -n scripts/adr_index_map.py | sed -n '1,180p'Repository: Cloudbird-Software/.github Length of output: 50385 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- language policy and consumers ---'
cat -n governance/policy/languages.yaml | sed -n '1,22p;60,69p'
rg -n -C 4 'policy/languages\.yaml|languages\.yaml|language_change|ADR-[0-9]{4}|adr-required|owner-only|owner-merge' --glob '!governance/REPOS.yaml' --glob '!governance/GOVERNANCE.yaml' --glob '!governance/drift-check.sh' .
printf '%s\n' '--- drift-check policy execution near sections 7 and ADR validation ---'
sed -n '150,195p;300,390p' governance/drift-check.sh
printf '%s\n' '--- ADR index helper ---'
cat -n scripts/adr_index_map.py | sed -n '1,180p'Repository: Cloudbird-Software/.github Length of output: 50383 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- local policy consumers ---'
rg -n 'languages\.yaml|language_change|application|repo_overrides|Python|python' \
.github governance scripts Makefile standards \
--glob '!governance/REPOS.yaml' --glob '!governance/GOVERNANCE.yaml' \
--glob '!governance/drift-check.sh' | head -n 160 || true
printf '%s\n' '--- local ownership and ADR gate declarations ---'
rg -n -C 3 'CODEOWNERS|owner-only|owner-merge|adr-required|ADR' .github/CODEOWNERS governance/GOVERNANCE.yaml 2>/dev/null || true
printf '%s\n' '--- public archive and target repository metadata ---'
for url in \
'https://api.github.com/repos/Cloudbird-Software/archive/contents/adr/ADR-0091-ecosystem-reuse.md' \
'https://api.github.com/repos/Cloudbird-Software/archive/contents/adr' \
'https://api.github.com/repos/Cloudbird-Software/Viral_Radar'; do
echo "--- $url"
curl -LfsS --max-time 15 "$url" | python3 -c '
import json,sys
try:
x=json.load(sys.stdin)
if isinstance(x,list):
print(json.dumps([{"name":i.get("name"),"type":i.get("type")} for i in x],ensure_ascii=False))
else:
print(json.dumps({k:x.get(k) for k in ("message","name","path","type","sha","private","visibility","archived")},ensure_ascii=False))
except Exception as e:
print("response_parse_error:", e)
'
doneRepository: Cloudbird-Software/.github Length of output: 33639 🏁 Script executed: #!/bin/bash
set -eu
python3 - <<'PY'
import base64, json, urllib.request
base = "https://api.github.com"
urls = {
"adr": f"{base}/repos/Cloudbird-Software/archive/contents/adr/ADR-0091-viral-radar-repo-python-multimodal-exemption.md",
"index": f"{base}/repos/Cloudbird-Software/archive/contents/adr/INDEX.yaml",
"central_gate": f"{base}/repos/Cloudbird-Software/CI-Workflows/contents/.github/workflows/gate.yml",
}
for name, url in urls.items():
print(f"--- {name} ---")
req = urllib.request.Request(url, headers={"Accept": "application/vnd.github+json"})
try:
with urllib.request.urlopen(req, timeout=15) as r:
obj = json.load(r)
if "content" in obj:
text = base64.b64decode(obj["content"]).decode()
if name == "adr":
print(text)
elif name == "index":
print("\n".join(line for line in text.splitlines()
if "0091" in line or "0085" in line or "path" in line.lower()))
else:
for i, line in enumerate(text.splitlines(), 1):
if any(x in line.lower() for x in ("language", "languages.yaml", "adr", "owner")):
lo, hi = max(1, i-3), min(len(text.splitlines()), i+3)
print("\n".join(f"{j}: {text.splitlines()[j-1]}" for j in range(lo, hi+1)))
print("---")
else:
print(json.dumps({k: obj.get(k) for k in ("message","name","path","type","sha")}, ensure_ascii=False))
except Exception as e:
print(type(e).__name__, str(e))
PYRepository: Cloudbird-Software/.github Length of output: 643 🏁 Script executed: #!/bin/bash
set -eu
python3 - <<'PY'
import base64, json, urllib.request
base = "https://api.github.com"
urls = {
"adr": f"{base}/repos/Cloudbird-Software/archive/contents/adr/ADR-0091-viral-radar-repo-python-multimodal-exemption.md",
"index": f"{base}/repos/Cloudbird-Software/archive/contents/adr/INDEX.yaml",
"central_gate": f"{base}/repos/Cloudbird-Software/CI-Workflows/contents/.github/workflows/gate.yml",
}
for name, url in urls.items():
print(f"--- {name} ---")
req = urllib.request.Request(url, headers={"Accept": "application/vnd.github+json"})
try:
with urllib.request.urlopen(req, timeout=15) as r:
obj = json.load(r)
if "content" in obj:
text = base64.b64decode(obj["content"]).decode()
if name == "adr":
print(text)
elif name == "index":
print("\n".join(line for line in text.splitlines()
if "0091" in line or "0085" in line or "path" in line.lower()))
else:
lines = text.splitlines()
for i, line in enumerate(lines, 1):
if any(x in line.lower() for x in ("language", "languages.yaml", "adr", "owner")):
lo, hi = max(1, i-3), min(len(lines), i+3)
print("\n".join(f"{j}: {lines[j-1]}" for j in range(lo, hi+1)))
print("---")
else:
print(json.dumps({k: obj.get(k) for k in ("message","name","path","type","sha")}, ensure_ascii=False))
except Exception as e:
print(type(e).__name__, str(e))
PYRepository: Cloudbird-Software/.github Length of output: 643 🏁 Script executed: #!/bin/bash
set -eu
fetch_content() {
curl -k -fsS --max-time 15 -H 'Accept: application/vnd.github+json' "$1" |
python3 -c 'import base64,json,sys; o=json.load(sys.stdin); print(base64.b64decode(o["content"]).decode())'
}
printf '%s\n' '--- ADR-0091 ---'
fetch_content 'https://api.github.com/repos/Cloudbird-Software/archive/contents/adr/ADR-0091-viral-radar-repo-python-multimodal-exemption.md'
printf '%s\n' '--- INDEX ADR-0091 entry ---'
fetch_content 'https://api.github.com/repos/Cloudbird-Software/archive/contents/adr/INDEX.yaml' |
rg -n -C 4 '0091|viral-radar|ADR-0091'
printf '%s\n' '--- central gate language/ADR references ---'
fetch_content 'https://api.github.com/repos/Cloudbird-Software/CI-Workflows/contents/.github/workflows/gate.yml' |
rg -n -C 4 'languages\.yaml|language|ADR|owner|exempt' | head -n 160 || trueRepository: Cloudbird-Software/.github Length of output: 6971 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- local gate ADR handling ---'
sed -n '245,292p' .github/workflows/gate.yml
printf '%s\n' '--- central workflow files ---'
curl -k -fsS --max-time 15 \
-H 'Accept: application/vnd.github+json' \
'https://api.github.com/repos/Cloudbird-Software/CI-Workflows/contents/.github/workflows' |
python3 -c 'import json,sys; print("\n".join(x["path"] for x in json.load(sys.stdin)))' |
rg 'gate|language|policy|adr' || true
printf '%s\n' '--- central org-gate references ---'
curl -k -fsS --max-time 15 \
-H 'Accept: application/vnd.github+json' \
'https://api.github.com/repos/Cloudbird-Software/CI-Workflows/contents/.github/workflows/org-gate.yml' |
python3 -c 'import base64,json,sys; print(base64.b64decode(json.load(sys.stdin)["content"]).decode())' |
rg -n -C 4 'languages\.yaml|language|ADR|adr-required|REPOS' || trueRepository: Cloudbird-Software/.github Length of output: 8455 将 Viral_Radar 豁免接入语言策略的机器判定链。
🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| template-service generate endpoint 官方实例化(非直推);采集层 MediaCrawler/ | ||
| wx_channel 按 ADR-0091 决策 5"参考不依赖"(非商用许可风险隔离) | ||
| key_paths: [src/, tests/, quality/, specs/, 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. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: printf '%s\n' '--- changed file excerpt ---'
sed -n '115,145p' governance/REPOS.yaml
printf '%s\n' '--- dashboard consumer ---'
rg -n -C 8 'status|active|REPOS.yaml' governance/dashboard-update.py
printf '%s\n' '--- drift-check references ---'
rg -n -C 5 '7a|drift-check|AUTO_MERGE_DISABLED|auto_merge|automerge' .github governance Makefile 2>/dev/null | head -240
printf '%s\n' '--- governance and ADR references ---'
rg -n -C 4 'ADR-0091|ADR-0085|owner.only|owner-only|C1|new-repo-init|template-service' governance .github 2>/dev/null | head -260Repository: Cloudbird-Software/.github Length of output: 42503 🏁 Script executed: printf '%s\n' '--- repository metadata and validation contracts ---'
find . -maxdepth 3 -type f \( -iname '*drift*' -o -iname '*repo*init*' -o -iname '*governance*' -o -iname '*workflow*' \) -print | sort
printf '%s\n' '--- relevant workflow/config files ---'
git ls-files '.github/**' 'governance/**' | rg 'drift|REPOS|GOVERNANCE|ADR|workflow|automation-limits|CODEOWNERS|languages'
printf '%s\n' '--- exact active-entry validation ---'
rg -n -C 8 'REPOS|active|visibility|unique|public|repository|repo' governance/scripts governance .github 2>/dev/null | head -320Repository: Cloudbird-Software/.github Length of output: 22990 🏁 Script executed: printf '%s\n' '--- drift-check workflow ---'
cat -n .github/workflows/governance-drift.yml
printf '%s\n' '--- drift-check section 7 ---'
sed -n '1,180p' governance/drift-check.sh
printf '%s\n' '--- governance contract and CODEOWNERS ---'
sed -n '1,180p' governance/GOVERNANCE.yaml
cat -n .github/CODEOWNERS
printf '%s\n' '--- ADR-0091 and initialization references ---'
find . -type f -path '*archive/adr*' -o -type f -iname '*0091*' | sort
rg -n -C 6 'ADR-0091|template-service|generate endpoint|new_repo|new-repo-init|step 4' governance archive scripts .github 2>/dev/null | head -260Repository: Cloudbird-Software/.github Length of output: 45712 🏁 Script executed: python3 - <<'PY'
import json, urllib.request, urllib.error
for repo in ("Cloudbird-Software/Viral_Radar", "Cloudbird-Software/viral_radar"):
url = "https://api.github.com/repos/" + repo
req = urllib.request.Request(url, headers={"Accept":"application/vnd.github+json","User-Agent":"review-inspection"})
try:
with urllib.request.urlopen(req, timeout=10) as r:
data=json.load(r)
print(repo, "HTTP", r.status, "name=", data.get("name"), "visibility=", data.get("visibility"), "private=", data.get("private"), "archived=", data.get("archived"))
except urllib.error.HTTPError as e:
print(repo, "HTTP", e.code)
except Exception as e:
print(repo, type(e).__name__, str(e))
PYRepository: Cloudbird-Software/.github Length of output: 514 🏁 Script executed: printf '%s\n' '--- ADR-0091 existence and index ---'
git ls-files | rg '(^|/)(ADR-0091|INDEX\.yaml$)|archive/adr|decisions'
printf '%s\n' '--- all ADR-0091 references ---'
rg -n -C 3 'ADR-0091' . 2>/dev/null
printf '%s\n' '--- App installation repository contract ---'
sed -n '125,160p' governance/expected-state.json
sed -n '1,150p' scripts/new-repo-init.sh
printf '%s\n' '--- remaining drift-check section 7 ---'
sed -n '170,235p' governance/drift-check.shRepository: Cloudbird-Software/.github Length of output: 9088 🏁 Script executed: python3 - <<'PY'
import json, subprocess
urls = [
"https://api.github.com/repos/Cloudbird-Software/Viral_Radar",
"https://api.github.com/repos/Cloudbird-Software/archive/contents/adr/ADR-0091.md",
]
for url in urls:
p = subprocess.run(["curl","-ksS","-H","Accept: application/vnd.github+json","-H","User-Agent: review-inspection",url],
text=True, capture_output=True)
try:
data=json.loads(p.stdout)
print(url, "type=", data.get("type"), "name=", data.get("name"),
"private=", data.get("private"), "visibility=", data.get("visibility"),
"message=", data.get("message"))
except Exception:
print(url, "non-json:", p.stdout[:200], "stderr:", p.stderr[:200])
PYRepository: Cloudbird-Software/.github Length of output: 454 🏁 Script executed: python3 - <<'PY'
import json, subprocess
for path in ("adr", "adr/INDEX.yaml"):
url=f"https://api.github.com/repos/Cloudbird-Software/archive/contents/{path}"
p=subprocess.run(["curl","-ksS","-H","Accept: application/vnd.github+json","-H","User-Agent: review-inspection",url],
text=True,capture_output=True)
try:
d=json.loads(p.stdout)
if isinstance(d,list):
print(path, "entries:", [x.get("name") for x in d if "0091" in x.get("name","").lower() or x.get("name")=="INDEX.yaml"])
else:
print(path, "name=", d.get("name"), "download_url=", d.get("download_url"), "message=", d.get("message"))
except Exception:
print(path, "non-json", p.stdout[:300])
PYRepository: Cloudbird-Software/.github Length of output: 393 先取得 drift-check §7a 成功结果,再合并此登记。
🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| - name: holdout | ||
| layer: L1 | ||
| visibility: public | ||
|
|
||
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.
1. Adds prohibited registry entry
📘 Rule violation§ ComplianceAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools