A proposal: 1. AI-assisted coding should be disclosed. If you use AI, state at the top of the Issue or PR which model and agent you used and what work they did. If all the code in a PR was written by an AI agent, state that on the first line of the PR description. Only using AI for polishing and translation does not need to be declared.
2. If an AI agent finds a problem and writes the Issue. The issue content should include reproducer code, a screenshot showing the reproduced behavior, and a technical explanation of why it occurs. - Put human-written content first. If the Issue includes both human-written and AI-written content, put the human-written section first and label both sections. If the contributor only made minor wording edits to an AI draft, a single disclosure that the Issue was drafted by AI is sufficient. - Double review the issue before submitting it. Use two different AI models to cross-review the draft locally. For example, you can use Claude Code and Codex to review each other's assessments. Submit the Issue until both models agree that the problem is real and worth addressing. 3. If an AI agent writes and submits a PR, the PR content should include the design rationale, the observed runtime behavior, and before-and-after performance results. - Double review the code before submitting the PR. Use two different AI models to cross-review the code locally. Fix the issues they raise, then repeat the review until both models agree that there are no outstanding code issues. - [IMPORTANT] Keep IoTDB performance regressions within 0.1%. Evaluate read performance, write performance, disk usage, and memory usage separately, and let AI make sure its PR does not impact the performance or the side-effect is less than 0.1%. If any metric regresses by more than 0.1%, the contributor must personally document the affected metric, the size of the regression, and why the change requires that trade-off. Best, ----------------------------------- Xiangdong Huang School of Software, Tsinghua University Xiangdong Huang <[email protected]> 于2026年11月26日周四 20:08写道: > > Yes reducing singletons can allow us add more ut rather than it. But > IT is still needed. > As how to reducing singletons, @Yuan Tian any idea? > > > ----------------------------------- > Xiangdong Huang > School of Software, Tsinghua University > > > Christofer Dutz via dev <[email protected]> 于2026年11月26日周四 17:49写道: > > > > Hi Xiangdong, > > > > I fully agree ... in other projects PRs by drive-by committers are quite a > > problem. > > However, AI can be very helpful ... especially if someone has knowledge in > > a certain > > domain but is lacking the full skill set needed for a contribution. > > > > Like in PLC4X we see several people who have issues with English ... so > > they are using > > AI to write their communication on the list or PRs. Even if these tend to > > be longer than > > human texts, they usually are better written. > > > > Others have knowledge in industrial automation protocols but lack skills in > > Java. > > There I also think contributions are valuable. > > > > Coming back to IoTDB ... > > > > Admittedly I'm using a lot of AI myself to my stuff I'm doing outside of > > the ASF. > > Here I have given up on reviewing every line of code, but setup a huge wall > > of tests > > and automatically checked constraints and rules. > > > > Admittedly my implementation of the postgres wire format I not yet could > > put up > > a large set of tests, but I think there are differences between new things > > or fixing > > existing ones. > > > > I know our test-suite here in IoTDB is already huge ... putting up more and > > more > > tests is probably not a path forward as thanks to the excessive use of > > singletons > > most need to be tested in fat integration tests and can't be handled with > > quick > > unit-tests. > > > > Possibly working on refactoring the core to use dependency injection > > instead of > > singletons would allow us to really increase the number of unit-tests and > > reduce > > the integration tests. That would help find issues with AI contributions a > > lot quicker? > > > > Chris > > > > > > > > Xiangdong Huang <[email protected]> schrieb am Donnerstag, 26. November > > 2026 um 10:06: > > > > > Hi all, > > > > > > I'd like to know if there is any code of conduct about how to using ai > > > coding to submit pr for iotdb (and tsfile)? > > > > > > IMO, I fully support using AI coding to develop codes and submitting > > > PRs. However, to prevent PRs produced without a proper understanding > > > of IoTDB’s operating mechanisms, and to allow our reviewers to focus > > > their efforts on reviewing AI coding PRs that meet the required code > > > quality standards, I think we should ideally have a complete set of > > > constraints in place. What minimum level of code quality and > > > effectiveness should a submitted PR meet? Then we can bring in human > > > reviewers for the code review. > > > > > > "code quality" here is not for code smell or others, it means whether > > > the implementation is complete, product-level, and > > > performance-lossless. > > > (AGENTS.md and CONTRIBUTING.md have some instruments but they are not > > > enough) > > > > > > Best, > > > ----------------------------------- > > > Xiangdong Huang > > > School of Software, Tsinghua University > > >
