-
Notifications
You must be signed in to change notification settings - Fork 599
Expand file tree
/
Copy pathcodegenie.toml
More file actions
143 lines (115 loc) · 4.16 KB
/
Copy pathcodegenie.toml
File metadata and controls
143 lines (115 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# codegenie AI code review config. See https://github.com/0xPolygon/codegenie
#
# Provider credentials and model selection live in the workflow
# (.github/workflows/codegenie-review.yml) for CI and in ~/.codegenie/ locally;
# only repo-safe review/classification keys belong here.
[git]
baseBranch = "develop"
[review]
depth = "normal"
# Bor regularly has large upstream-merge PRs that exceed codegenie's
# 30-minute default before review work can be dispatched.
maxTime = 120
# Generated code — regenerated by tooling, not hand-reviewed.
[[classification.pathRules]]
pattern = "**/gen_*.go"
processingMode = "skip"
reason = "gencodec-generated marshaling (go:generate gencodec), marked do-not-edit"
[[classification.pathRules]]
pattern = "**/*.pb.go"
processingMode = "skip"
reason = "protoc-generated protobuf bindings"
[[classification.pathRules]]
pattern = "**/*_mock.go"
processingMode = "skip"
reason = "mockgen-generated test doubles"
[[classification.pathRules]]
pattern = "tests/bor/mocks/**"
processingMode = "skip"
reason = "generated Heimdall client mocks"
[[classification.pathRules]]
pattern = "docs/cli/**"
processingMode = "skip"
reason = "generated CLI reference (make docs)"
[[classification.pathRules]]
pattern = "build/checksums.txt"
processingMode = "skip"
reason = "generated release checksum manifest"
# Inherited geth components that Bor does not use in production. Keep a
# lightweight compatibility review because shared interfaces still compile
# into Bor and are used by tests and developer tooling.
[[classification.pathRules]]
pattern = "beacon/**"
reviewPriority = "low"
reason = "geth beacon-client functionality is not used by Bor production"
[[classification.pathRules]]
pattern = "consensus/beacon/**"
reviewPriority = "low"
reason = "geth beacon consensus engine is not used by Bor production"
[[classification.pathRules]]
pattern = "consensus/clique/**"
reviewPriority = "low"
reason = "Clique consensus is not used by Bor production"
[[classification.pathRules]]
pattern = "consensus/ethash/**"
reviewPriority = "low"
reason = "Ethash consensus is not used by Bor production"
[[classification.pathRules]]
pattern = "eth/catalyst/**"
reviewPriority = "low"
reason = "Beacon Engine API is not used by Bor production consensus"
# Standalone upstream developer tools outside normal Bor operation.
[[classification.pathRules]]
pattern = "cmd/evm/**"
reviewPriority = "low"
reason = "standalone geth EVM developer tool"
[[classification.pathRules]]
pattern = "cmd/devp2p/**"
reviewPriority = "low"
reason = "standalone geth networking developer tool"
[[classification.pathRules]]
pattern = "cmd/blsync/**"
reviewPriority = "low"
reason = "standalone beacon light-sync tool"
# Consensus-critical zones, mirroring the scopes in .claude/rules. Bugs here
# can halt the chain, split consensus, or lose funds.
[[classification.pathRules]]
pattern = "consensus/bor/**"
reviewPriority = "critical"
labels = ["consensus"]
reason = "validator auth, sprint/span block production, Heimdall trust, fork choice"
[[classification.pathRules]]
pattern = "consensus/misc/**"
reviewPriority = "critical"
labels = ["consensus"]
reason = "shared base-fee, blob-gas, and gas-limit validation used by Bor production"
[[classification.pathRules]]
pattern = "miner/**"
reviewPriority = "critical"
labels = ["consensus"]
reason = "block production and pending-gate liveness"
[[classification.pathRules]]
pattern = "core/vm/**"
reviewPriority = "critical"
labels = ["evm"]
reason = "gas accounting, opcodes, precompile safety, EIP and fork gating"
[[classification.pathRules]]
pattern = "params/**"
reviewPriority = "critical"
labels = ["hardfork"]
reason = "hardfork activation wiring and chain config; runtime/genesis parity"
[[classification.pathRules]]
pattern = "core/txpool/**"
reviewPriority = "critical"
labels = ["txpool"]
reason = "pool limits, validation ordering, eviction, blob handling"
[[classification.pathRules]]
pattern = "core/state/**"
reviewPriority = "critical"
labels = ["state"]
reason = "state root determinism and journal correctness"
[[classification.pathRules]]
pattern = "core/blockstm/**"
reviewPriority = "critical"
labels = ["state"]
reason = "parallel execution safety and determinism"