Skip to content

Commit 69e2b1e

Browse files
mohanchenQuantumMisakaabacus_fixer
authored
Modify AI agent (#7586)
* Normalize CRLF line endings to LF * Normalize whitespace in legacy text files * Update SIAB author reference * Add agent governance checks * Document agent governance review fixes * fix: tighten agent governance diff scope * remove useless plan file * fix: preserve LiRh integration input bytes * test: normalize LiRh integration input * test: report integration fatal deviations * test: disable force stress in LiRh symmetry case * test: refresh LiRh symmetry reference * fix: address copilot governance review * docs: refine agent governance * docs: strengthen governance PR follow-up * update agent governance check --------- Co-authored-by: QuantumMisaka <QuantumMisaka@users.noreply.github.com> Co-authored-by: QuantumMisaka <ff6757442@gmail.com> Co-authored-by: abacus_fixer <mohanchen@pku.eud.cn>
1 parent 12515e5 commit 69e2b1e

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

tools/03_code_analysis/agent_governance_check.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,14 @@ def check_global_dependencies(findings: List[Finding], lines: Iterable[DiffLine]
241241
continue
242242
if pattern.search(line.content):
243243
add_finding(
244-
findings,
245-
"No new cross-layer globals",
246-
BLOCK,
247-
line.path,
248-
line.line,
249-
"Added line introduces GlobalV, GlobalC, or PARAM as a dependency.",
250-
"Prefer explicit parameters or a narrow local interface. Document any required exception in the PR.",
251-
)
244+
findings,
245+
"No new cross-layer globals",
246+
WARN,
247+
line.path,
248+
line.line,
249+
"Added line introduces GlobalV, GlobalC, or PARAM as a dependency.",
250+
"Prefer explicit parameters or a narrow local interface. Document any required exception in the PR.",
251+
)
252252

253253

254254
def check_default_parameters(findings: List[Finding], lines: Iterable[DiffLine]) -> None:
@@ -518,7 +518,7 @@ def check_pr_metadata(findings: List[Finding], body: Optional[str]) -> None:
518518
add_finding(
519519
findings,
520520
"PR metadata completeness",
521-
BLOCK,
521+
WARN,
522522
"pull_request.body",
523523
None,
524524
"; ".join(reason_parts),

0 commit comments

Comments
 (0)