From 6d3ab2a90de977cec1f4f0ea683e21828fcc770e Mon Sep 17 00:00:00 2001 From: Danyang Chen Date: Fri, 27 Nov 2026 13:45:57 +0800 Subject: [PATCH] ci: map the pre-0.3.0 layout in risk-rules --- .github/agent/risk-rules.json | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/agent/risk-rules.json b/.github/agent/risk-rules.json index c3f0dbfb5..114599227 100644 --- a/.github/agent/risk-rules.json +++ b/.github/agent/risk-rules.json @@ -21,7 +21,10 @@ "NOTICE", "SECURITY.md", "flybot_workspace/{oidc,security,skill_secrets,invites,members,model_http_policy,fake_oidc}.py", - "services/bot-social/src/{oauth,crypto,custody,owner-mcp,auth-limit,load-env,local-room-invites}.ts" + "services/bot-social/src/{oauth,crypto,custody,owner-mcp,auth-limit,load-env,local-room-invites}.ts", + "core/**", + "ds-bot/**", + "patches/**" ], "codeExt": "\\.(js|mjs|cjs|ts|jsx|tsx|py|sh|yml|yaml|json|html|css)$", "diffPatterns": [ @@ -55,7 +58,8 @@ "runtime/flybot-social-host/**", "flybot_workspace/*.py", "flybot_workspace/manager/**", - "flybot_workspace/dsbot_routes.json" + "flybot_workspace/dsbot_routes.json", + "plugins/**" ] }, "T1": { @@ -69,12 +73,12 @@ }, "T0": { "meaning": "lowest risk: documentation.", - "paths": ["docs/**", "**/*.md"] + "paths": ["docs/**", "**/*.md", "changelog.d/**"] } }, "unknownPathTier": "T2", - "generatedPaths": ["runtime/ds-bot-upstream/ds-bot/client.js"], - "generatedPathsNote": "The built browser half of the vendored ds-bot (3.2 MB, `Generated from src/client ... Do not edit by hand`); it is inside the vendor tree and so T3 by path anyway, this only keeps the size count honest. In the old layout the same file was `core/client.js`.", + "generatedPaths": ["runtime/ds-bot-upstream/ds-bot/client.js", "core/client.js", "ds-bot/client.js"], + "generatedPathsNote": "The built browser half of the vendored ds-bot (3.2 MB, `Generated from src/client ... Do not edit by hand`); it is inside the vendor tree and so T3 by path anyway, this only keeps the size count honest. The old layout kept the same build output twice, as `core/client.js` and `ds-bot/client.js`, so both are listed.", "limitsNote": "Recomputed for the 0.3.0 tree. Sample of six changes in the new layout (five merged, one open): #3390 5L/1F, #3389 54L/5F, #3386 280L/11F, #3391 386L/13F, #3382 633L/7F, #3388 1128L/14F. The old caps (T0 300/15, T1 400/20, T2 250/12) were sized for the pre-0.3.0 layout, where the largest such change was under 400 lines; here the largest real UI change is #3388 at 1128L/14F, which the old T1 cap would have called T3. So: T2 keeps #3382 (633L/7F) and #3391 (386L/13F) at T2 with margin; T1 keeps #3388 at T1; T0 doubles the docs budget for a full doc rewrite. Going over a cap still means T3 (a human looks), which is the safe direction; T3 has no cap of its own.", "limits": {"T0": {"lines": 600, "files": 20}, "T1": {"lines": 1200, "files": 20}, "T2": {"lines": 800, "files": 15}} }