mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #339] docs: proposal for a change gate (module boundaries, function complexity, doubled text) #390
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#390
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/339
Author: @huanchong-99
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:docs/change-gate-proposal📝 Commits (1)
98ac9eadocs: propose a change gate for module boundaries, function complexity and doubled text📊 Changes
1 file changed (+313 additions, -0 deletions)
View changed files
➕
docs/change_gate.md(+313 -0)📄 Description
Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121094134
What and why
Adds one page,
docs/change_gate.md: a proposal, for the maintainer's decision, for one deterministic check that blocks what a pull request adds and a diff does not show, and tolerates what is already onmain:tools/reaching intotests/semanticthroughsys.path);mainby more than 5; dispatch functions judged per arm);Every finding says why it matters, what exactly triggered it and how to fix it. Code duplication and new skips are reported, never blocking.
The numbers are measured at
dde82f2, which is in this repository's history, and backtested on the 300 merges that end with it: 48 of the 300 would have been stopped, 68 of the 91 blocking findings were changes that should have been fixed before merge, 2 were tool artefacts, and the check takes about 80 ms per pull request. Section 1.4 shows why it should run by the author and in the merge round and not only in CI: in the original repository 55 of 1,000 pull requests merged on 2026-11-23 had a passing CI run, and of the 40 most recently merged here, 19 had no CI run and 18 a failing CI job.I first opened this page in the original repository shortly before it went private. This is the same page with its references rewritten for this repository: commit hashes instead of the old pull request numbers.
Nothing else changes; no code. Section 5 lists five questions for the maintainer. An implementation would be its own claim and pull request.
Tested
Docs only. Ran every
tests/test_docs_*.pyandtests/test_i18n_index.py(what the docs-only path of CI runs) on this branch, based ond478a92: all pass.GPUs tested: n/a (no GPU code)
The numbers come from a standard-library prototype run offline on a local clone; it is not part of this pull request. No game files.
AI-assisted: yes. The measurements, the backtest and the page were done with a coding agent; I reviewed the result.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (Not applicable: no translator change.)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.