Commit fed497f
fix: address review 4139493870 — remove XXX placeholders + support custom elements in leakage scanner
- cross-reference-map.md: drop "Stage 1: Government Proposition" subgraph
containing `Prop 2025/26:XXX` placeholders (real IDs are not reliably
linked in the betänkande payloads). Added an explanatory note; pipeline
now starts at the committee-report stage. PR description's
"0 AI_MUST_REPLACE markers" claim is now accurate.
- scripts/detect-swedish-leakage.ts: `parseTagAt` tag-name regex now
accepts `-` and `:` so custom/hyphenated elements such as
`<my-component lang="sv">` are correctly recognised and depth-tracked
by `stripLangTaggedBlocks`.
- Added regression test for custom-element suppression. 39/39 leakage
tests pass, 35/35 analysis-quality tests pass.
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/5f3e3f35-8c48-4e67-9f48-2b63c5ef592d
Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>1 parent b5d9646 commit fed497f
3 files changed
Lines changed: 19 additions & 22 deletions
File tree
- analysis/daily/2026-04-20/committeeReports
- scripts
- tests
Lines changed: 7 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 103 | + | |
113 | 104 | | |
114 | 105 | | |
115 | 106 | | |
116 | 107 | | |
117 | 108 | | |
118 | 109 | | |
119 | 110 | | |
120 | | - | |
121 | | - | |
| 111 | + | |
| 112 | + | |
122 | 113 | | |
123 | 114 | | |
124 | 115 | | |
125 | 116 | | |
126 | 117 | | |
127 | 118 | | |
128 | 119 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 120 | + | |
137 | 121 | | |
138 | 122 | | |
139 | 123 | | |
140 | 124 | | |
141 | | - | |
| 125 | + | |
142 | 126 | | |
143 | 127 | | |
144 | 128 | | |
| |||
154 | 138 | | |
155 | 139 | | |
156 | 140 | | |
| 141 | + | |
| 142 | + | |
157 | 143 | | |
158 | 144 | | |
159 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
340 | 351 | | |
341 | 352 | | |
0 commit comments