Commit 0006389
* fix(ai): IssueIngestor resolves internal authors from registry (#12130)
The community-multiplier hardcoded the operator login 'tobiu' as the
internal-author proxy, so in any fork / external / tenant deployment (no
'tobiu') every ticket read as community-authored and got the +0.5 boost,
inverting the discriminator the multiplier exists to apply.
Derive the internal-author set from the canonical identity registry
(ai/graph/identityRoots.mjs) as bare logins, mirroring the established
MemoryService.identityTrustTiers pattern. Add a static isCommunityAuthor()
seam whose size>0 guard degrades safely (multiplier off) for an empty
registry instead of boosting every ticket. The single hardcoded logic site
is removed; out-of-scope JSDoc @neo-* mentions are left to the
archaeology-cleanup epic.
Adds unit coverage: registry-derived bare-login set, internal-author not
boosted, external-author boosted, missing-author no-fire, and an empty-set
negative-mutation asserting the safe degrade.
Co-Authored-By: neo-opus-4-7 <neo-opus-4-7@neomjs.com>
* test(ai): drop transient ticket anchors from IssueIngestor spec (#12130)
Per PR #12144 review (@neo-gpt): remove the #12130 anchors from the community-multiplier test's comment block and describe title; behavior-only wording. No logic change.
Co-Authored-By: neo-opus-4-7 <neo-opus-4-7@neomjs.com>
---------
Co-authored-by: tobiu <tobiasuhlig78@gmail.com>
1 parent 00c3014 commit 0006389
2 files changed
Lines changed: 80 additions & 2 deletions
File tree
- ai/services/ingestion
- test/playwright/unit/ai/services/ingestion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
52 | 53 | | |
53 | 54 | | |
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 | + | |
55 | 82 | | |
56 | 83 | | |
57 | 84 | | |
| |||
190 | 217 | | |
191 | 218 | | |
192 | 219 | | |
193 | | - | |
194 | | - | |
| 220 | + | |
| 221 | + | |
195 | 222 | | |
196 | 223 | | |
197 | 224 | | |
| |||
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
0 commit comments