Skip to content

Commit bce2c6f

Browse files
authored
Merge branch 'develop' into 2026-07-01
2 parents fa4ece7 + 01d9ad4 commit bce2c6f

230 files changed

Lines changed: 10123 additions & 2651 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coderabbit.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ reviews:
1515
Focus on newly introduced GlobalV/GlobalC/PARAM dependencies, default
1616
parameters in headers, module placement, CMakeLists.txt linkage, C++11
1717
compatibility, and focused tests for behavior changes.
18+
During the legacy global-state migration period, treat a net increase in
19+
GlobalV/GlobalC/PARAM code references as blocking, and treat
20+
migration-neutral added usage as reviewer-visible warnings requiring
21+
reason, scope, risk, and cleanup rationale.
1822
- path: "source/source_io/module_parameter/**"
1923
instructions: |
2024
Treat INPUT parameter metadata, parsing, defaults, descriptions, and

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ CASES_*.txt text eol=lf
1010
.gitignore export-ignore
1111
.gitmodules export-ignore
1212
.pre-commit-config.yaml export-ignore
13-
.github/ export-ignore
13+
.github export-ignore

.github/instructions/abacus-governance.instructions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ Apply these instructions when reviewing or changing ABACUS code:
1212
newly introduced symbols, and changed text files for line-ending checks.
1313
- Do not treat untouched historical debt as a default blocker. Mention it only
1414
when it affects the changed area, and label it as advisory.
15-
- Flag newly introduced `GlobalV`, `GlobalC`, or `PARAM` cross-layer control.
15+
- Flag PRs that increase `GlobalV`, `GlobalC`, or `PARAM` code references as
16+
blocker-level governance issues. Flag migration-neutral added usage as a
17+
warning that requires reason, scope, risk, and cleanup/follow-up rationale.
1618
Prefer explicit dependencies or narrow local interfaces.
1719
- Flag new default arguments in existing header interfaces. Prefer explicit
1820
call-site updates, overloads, or a clearer configuration object.

.github/pull_request_template.md

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,17 @@
88
- [ ] I have requested any needed governance exception below.
99

1010
### Linked Issue
11-
Fix #...
11+
Fix #
1212

1313
### Unit Tests and/or Case Tests for my changes
14-
- A unit test is added for each new feature or bug fix.
15-
16-
### Exact Verification Performed
1714
- Commands run:
1815
- Result summary:
1916
- Checks not run, with reason:
2017

2118
### What's changed?
22-
- Example: My changes might affect the performance of the application under certain conditions, and I have tested the impact on various scenarios...
23-
24-
### Governance Checklist
25-
- Global dependencies: no new `GlobalV`, `GlobalC`, or `PARAM` cross-layer control, or exception requested below.
26-
- Default parameters: no new default arguments added to existing interfaces, or exception requested below.
27-
- Headers: no unnecessary header dependencies or `.hpp` propagation, or rationale provided below.
28-
- Line endings: text files use LF; only `.bat` and `.cmd` use CRLF.
29-
- Build linkage: new source files are listed in the relevant `CMakeLists.txt`, or rationale provided below.
30-
- Documentation: behavior/interface changes include documentation updates, or no documentation update is required because ...
31-
- CodeRabbit: if automatic review has not started and the repository has CodeRabbit installed, request `@coderabbitai review`.
32-
33-
### INPUT Parameter Changes
34-
- Parameters added/removed/changed:
35-
- `docs/parameters.yaml` updated: yes/no/not applicable
36-
- `docs/advanced/input_files/input-main.md` updated: yes/no/not applicable
37-
- If not updated, explain why no INPUT documentation update is required:
38-
39-
### Core Module Impact
40-
- Affected core modules:
41-
- Risk summary:
42-
- Compatibility or performance impact:
19+
- Example: brief summary of the user-visible or developer-facing change.
4320

44-
### Governance Exception
45-
- Rule:
46-
- Reason:
47-
- Scope:
48-
- User or maintenance risk:
49-
- Why the normal rule cannot be followed now:
50-
- Follow-up cleanup plan:
51-
- Requested approver:
21+
### Governance Notes
22+
- INPUT/docs changes:
23+
- Core module impact:
24+
- Exceptions requested:

.github/workflows/agent_governance.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ on:
77
permissions:
88
contents: read
99
pull-requests: read
10+
issues: write
1011

1112
jobs:
1213
governance:
1314
name: Governance checks
1415
runs-on: ubuntu-latest
1516
steps:
1617
- name: Checkout
17-
uses: actions/checkout@v4
18+
uses: actions/checkout@v7
1819
with:
1920
fetch-depth: 0
2021

@@ -53,3 +54,40 @@ jobs:
5354
if: always()
5455
run: |
5556
cat agent_governance_summary.md >> "$GITHUB_STEP_SUMMARY"
57+
58+
- name: Comment governance warnings
59+
if: >-
60+
always() &&
61+
github.event.pull_request.head.repo.full_name == github.repository
62+
env:
63+
GH_TOKEN: ${{ github.token }}
64+
PR_NUMBER: ${{ github.event.pull_request.number }}
65+
run: |
66+
if ! grep -qi '^| warning |' agent_governance_summary.md; then
67+
exit 0
68+
fi
69+
70+
marker='<!-- agent-governance-warning -->'
71+
body_file="$(mktemp)"
72+
json_file="$(mktemp)"
73+
{
74+
echo "$marker"
75+
echo
76+
cat agent_governance_summary.md
77+
} > "$body_file"
78+
jq -Rs '{body: .}' < "$body_file" > "$json_file"
79+
80+
existing_comment_id="$(gh api --paginate \
81+
"repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/comments" \
82+
--jq ".[] | select(.body | contains(\"${marker}\")) | .id" \
83+
| head -n 1)"
84+
85+
if [ -n "$existing_comment_id" ]; then
86+
gh api --method PATCH \
87+
"repos/${GITHUB_REPOSITORY}/issues/comments/${existing_comment_id}" \
88+
--input "$json_file"
89+
else
90+
gh api --method POST \
91+
"repos/${GITHUB_REPOSITORY}/issues/${PR_NUMBER}/comments" \
92+
--input "$json_file"
93+
fi

.github/workflows/build_test_cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ jobs:
2323

2424
- tag: gnu
2525
external_toolchain_args: ""
26-
build_args: "-DENABLE_LIBXC=ON -DENABLE_MLALGO=ON -DENABLE_LIBRI=ON"
26+
build_args: "-DENABLE_LIBXC=ON -DENABLE_MLALGO=ON -DENABLE_LIBRI=ON -DENABLE_DFTD4=ON"
2727
name: "Build extra components with GNU toolchain"
2828
- tag: intel
2929
external_toolchain_args: "--with-intel"
30-
build_args: "-DENABLE_LIBXC=ON -DENABLE_PEXSI=ON -DENABLE_MLALGO=ON -DENABLE_LIBRI=ON"
30+
build_args: "-DENABLE_LIBXC=ON -DENABLE_PEXSI=ON -DENABLE_MLALGO=ON -DENABLE_LIBRI=ON -DENABLE_DFTD4=ON"
3131
name: "Build extra components with Intel toolchain"
3232

3333
- tag: cuda

0 commit comments

Comments
 (0)