Commit 22e00ce
rules(license): cap licence findings at :review strategy (neurophone#99 closeout) (#415)
## Summary
- **Policy header** in `lib/rules/cicd_rules.ex` License Validation
section: quotes the verbatim owner directive 2026-06-02 + 5-way
classification.
- **Cap helpers**: `license_finding_strategy/0` (always `:review`),
`license_finding_severity_cap/1` (always `:warn`),
`license_related_finding?/1` (matches the same regex as the gitbot-fleet
dispatcher gate), `owner_license_classification/0` (canonical 5-way
map).
- **Scorecard ingestor** SC-010 `License` → `auto_fixable: false` with
remediation text spelling out the 5-way classification.
## Why
Owner directive 2026-06-02 forbids automated licence/SPDX edits.
Triggered by
[neurophone#99](hyperpolymath/neurophone#99) —
an auto-generated PR by the Claude bot reverting PMPL-1.0-or-later →
MPL-2.0 across ~140 files, closed by the owner. The fix gates the
dispatcher; this PR ensures hypatia (the rule source) never emits an
auto-execute licence finding in the first place.
Five-way classification (verbatim):
> "mpl-2.0 is for my sole repos, all rights reserved is for 007,
agpl-3.0-or-later is for those shared with my son, and leave other
people's forked stuff alone … only palimpsest license for obvious
reasons should be talking about palipsest and palimpsest plasma, and
consent-aware-http, but in that case prospectively"
## Test plan
- [ ] `Hypatia.Rules.CicdRules.license_finding_strategy() == :review`
- [ ] `Hypatia.Rules.CicdRules.license_finding_severity_cap(:critical)
== :warn`
- [ ]
`Hypatia.Rules.CicdRules.license_related_finding?("LicenseCompliance")
== true`
- [ ] `Hypatia.Rules.CicdRules.license_related_finding?("MissingSPDX")
== true`
- [ ] `Hypatia.ScorecardIngestor` SC-010 `auto_fixable` is `false`.
- [ ] mix test passes.
Related: hyperpolymath/gitbot-fleet chore/halt-license-auto-prs,
hyperpolymath/standards docs/license-no-auto-policy.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1ec812c commit 22e00ce
2 files changed
Lines changed: 102 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1309 | 1343 | | |
1310 | 1344 | | |
1311 | 1345 | | |
| |||
1367 | 1401 | | |
1368 | 1402 | | |
1369 | 1403 | | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
1370 | 1461 | | |
1371 | 1462 | | |
1372 | 1463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
| |||
0 commit comments