This repository was archived by the owner on Jul 14, 2026. It is now read-only.
Repository navigation
Commit cd8a6c0
feat(aibug-gate): v0.2 — grow corpus to 8 rules (5 merged-backed) + CI integrity gate
Three new provenance-pinned rules, each distilled from a *merged* gift-PR
fleet fix (stronger provenance than the open-PR rules in AB003-005):
- AB006 radix-from-source-not-override [high/default]
skorokithakis/shortuuid#115 (merged) — len/radix derived from the
original parameter after an override parameter is established as the
source of truth; alpha_len = len(alphabet) instead of len(alphabet_index).
- AB007 log-exp-rounded-mantissa-no-carry [medium/pedantic]
python-humanize/humanize#329 (merged) — magnitude exponent chosen from
the unrounded value, then the mantissa formatted with rounding; no
carry-guard when rounding rolls the mantissa to the base ('1000.0 kB').
- AB008 magnitude-bin-inclusive-boundary-break [medium/pedantic]
mahmoud/boltons#403 (merged) — consecutive-bin loop breaks on '<='
against the next bin's lower bound; bytes2human(1024) -> '1024B'.
Corpus now: 8 rules, 5 merged-PR-backed (AB001/AB002/AB006/AB007/AB008),
3 open-PR (AB003/AB004/AB005). All 8 upstream URLs verified against the
GitHub API (state + merged flag) at commit time.
CI hardening (.github/workflows/ci.yml):
- New 'Corpus integrity gate' step runs the corpus-size, URL-format +
generator-attribution, and merged>=open invariant tests verbosely as a
named gate (not just under the general test step).
- Added pedantic-tier self-scan of own source (both tiers must stay clean).
- Integrity test strengthened: URL must match
^https://github.com/[^/]+/[^/]+/pull/\d+$; generator field checked
against an 11-name denylist (copilot/chatgpt/gpt/claude/gemini/cursor/
codex/codewhisperer/deepseek/llama/mistral).
31 tests green (20 -> 31). Self-scan clean at both default and pedantic
tiers. Version bumped to 0.2.0.
Optional ast-grep multi-lang port (goal #3) deferred: ast-grep binary is
not installed locally, and shipping an unverified .sgy would violate the
build-honesty discipline that is the product's premise.
Co-Authored-By: claude-flow <ruv@ruv.net>1 parent 6cb8a31 commit cd8a6c0
8 files changed
Lines changed: 542 additions & 16 deletions
File tree
- .github/workflows
- src/aibug_gate
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
21 | 31 | | |
22 | 32 | | |
23 | 33 | | |
24 | 34 | | |
25 | 35 | | |
26 | 36 | | |
| 37 | + | |
| 38 | + | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
73 | | - | |
| 78 | + | |
74 | 79 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments