Commit e312f46
## Summary
Actuation-half of the three-system propagation architecture (#248):
```
hypatia (detection) → gitbot-fleet (THIS) → .git-private-farm (propagation)
```
- \`scripts/propagate-sha-bump.sh\` consumes a hypatia finding with rule
\`reusable_workflow_sha_bump_needs_propagation\`, pre-filters the
upstream PR title (HARD), enumerates consumers via \`gh search code\`,
drops forks, and fires a \`propagate-sha-bump\` \`repository_dispatch\`
event into \`.git-private-farm\`.
- \`scripts/fix-script-registry.json\` wires the recipe → script;
\`dispatch-runner.sh\` routes via the existing \`by_recipe\` map.
- \`tests/propagate-sha-bump-smoke.sh\` exercises the refusal + DRY_RUN
paths (10/10 passing locally).
## Safety properties
Canonical title-keyword gate lives HERE (per
\`feedback_pr_sweep_title_keyword_exclusion\` +
\`feedback_no_automated_licence_edits\`). The receiver workflow
re-checks belt-and-braces.
- \`pr_title\` matching
\`license|SPDX|PMPL|MPL|AGPL|GPL|Apache|copyright|attribution|relicens|secret|vulnerab|CVE-\`
→ exit 0 (REFUSED, routed to manual review — not an error path).
- \`title_suffix\` synthesised from **safe** metadata (workflow slug +
short SHA), NOT from \`pr_title\`. So even if a forbidden keyword
somehow slipped past the pre-filter, the dispatched PR title would not
carry it.
- \`old_sha == new_sha\` rejected.
- \`source_repo\` constrained to \`hyperpolymath/*\`.
- \`source_workflow\` constrained to \`.github/workflows/*.{yml,yaml}\`
or \`action.{yml,yaml}\`.
- Forks dropped via \`gh repo view --json isFork\`.
- \`DRY_RUN=true\` prints the payload instead of dispatching.
## Coupling with the other two PRs
- **Depends on**: hyperpolymath/hypatia#419 — the finding shape this
script consumes.
- **Triggers**: hyperpolymath/.git-private-farm#68 — the receiver
workflow + scripts (#66).
Each can land independently; once all three land, the chain end-to-ends.
## Test plan
- [x] Wrong rule name → exit 1
- [x] Malformed SHA → exit 1
- [x] \`old_sha == new_sha\` → exit 1
- [x] Non-estate \`source_repo\` → exit 1
- [x] License keyword in \`pr_title\` → exit 0 (REFUSED message printed)
- [x] DRY_RUN with valid finding → exit 0, payload composed
- [x] \`branch_name\` slug correct
(\`ci/bump-<workflow-slug>-<short-sha>\`)
- [x] \`title_suffix\` synthesised from safe metadata only
- [ ] End-to-end (post-merge): hypatia emits → dispatch-runner picks up
→ this script dispatches → farm receiver runs → consumer PRs land
- [ ] Smoke test as a CI job (follow-up — leaving as local script for
first landing)
## Related
- #248 — this PR closes
- hyperpolymath/hypatia#419 — detection rule (PR open)
- hyperpolymath/.git-private-farm#66 — propagation scripts (PR open)
- hyperpolymath/.git-private-farm#68 — receiver workflow (PR open)
Closes #248
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: hyperpolymath <hyperpolymath@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a2c5584 commit e312f46
3 files changed
Lines changed: 406 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
0 commit comments