Commit c6c59f1
The entire system/audit.zod.ts module — AuditConfigSchema, AuditStorageConfig,
AuditRetentionPolicy, AuditEventFilter, SuspiciousActivityRule,
DEFAULT_SUSPICIOUS_ACTIVITY_RULES, and the AuditEvent* shape schemas — had
ZERO consumers repo-wide. The live audit path (plugin-audit) imports none of
it: capture is unconditional via engine hooks (compliance ledger), the row
shape is owned by plugin-audit's sys_audit_log object, retention rides the
object lifecycle `audit` category with per-org settings overrides, and the
authoring surface is object/field trackHistory. AuditConfigSchema.enabled
even advertised turning the compliance ledger OFF — a semantic the platform
deliberately rejects. Same ADR-0056 D8 family as the compliance.zod /
masking.zod / RLSAuditConfig / PolicySchema removals.
- Delete system/audit.zod.ts + audit.test.ts; drop the export from
system/index.ts with a removal note (house pattern).
- Drop the 11 manifest ratchet keys; regenerate JSON schemas, reference docs
(references/system/audit.mdx removed by regen), and the API surface
(21 exports, pure removal).
- Fix the stale security-context.zod.ts module doc (audit joins the already
removed compliance/masking bullets) and drop the PROTOCOL_MAP.md row
(protocol-map gate caught the dangling link).
- Annotate the 2026-07 security recheck doc: loose-end #1 done (verified
scope = whole module, not just AuditRetentionPolicy); #2 done via #3557.
- Changeset (minor per launch-window policy) carries the dead-knob → live-
surface migration table.
Verified: 6679 spec tests green, tsc clean, check:docs/api-surface/skill-refs/
react-blocks in sync, downstream-contract typecheck clean (gate not pinning
any Audit export).
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 0bab8bb commit c6c59f1
13 files changed
Lines changed: 77 additions & 1613 deletions
File tree
- .changeset
- content/docs/references/system
- docs/audits
- packages/spec
- src/system
| 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 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | | - | |
| 24 | + | |
19 | 25 | | |
20 | | - | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
62 | 70 | | |
63 | 71 | | |
64 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | 613 | | |
632 | 614 | | |
633 | 615 | | |
| |||
732 | 714 | | |
733 | 715 | | |
734 | 716 | | |
735 | | - | |
736 | 717 | | |
737 | 718 | | |
738 | 719 | | |
| |||
1174 | 1155 | | |
1175 | 1156 | | |
1176 | 1157 | | |
1177 | | - | |
1178 | | - | |
1179 | 1158 | | |
1180 | 1159 | | |
1181 | 1160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | 1266 | | |
1277 | 1267 | | |
1278 | 1268 | | |
| |||
1533 | 1523 | | |
1534 | 1524 | | |
1535 | 1525 | | |
1536 | | - | |
1537 | 1526 | | |
1538 | 1527 | | |
1539 | 1528 | | |
| |||
0 commit comments