Commit bb66231
refactor(audit): move sys_attachment ownership audit → storage (ADR-0052 P0b) (#1954)
A file↔record link belongs with the storage domain, not the compliance ledger.
`plugin-audit` stops registering `sys_attachment`; `service-storage` now
contributes it (definition stays in platform-objects). Both plugins are
always-on, so the object stays available — no behavior change. Audit sheds one
of its dumping-ground objects, moving toward a pure append-only ledger.
`sys_notification` is intentionally NOT moved: it is mid-migration to an event
model (migrate-sys-notification-to-event.ts, ADR-0030) and touching it now would
collide with that in-flight work.
- plugin-audit: drop SysAttachment from registered objects + import
- service-storage: depend on platform-objects, import + register SysAttachment
- ADR-0052 §6 P0b updated (sys_attachment done; sys_notification deferred)
Verified in the showcase: sys_attachment still resolves (meta + data 200), no
double-registration; plugin-audit 18/18 + service-storage 48/48 tests pass.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7505274 commit bb66231
5 files changed
Lines changed: 23 additions & 12 deletions
File tree
- docs/adr
- packages
- plugins/plugin-audit/src
- services/service-storage
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
288 | 291 | | |
289 | 292 | | |
290 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
173 | | - | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments