Commit 3f9d073
committed
feat: add aiModerated flag to moderateSourcePosts mutation
Add an optional `aiModerated` Boolean parameter to the `moderateSourcePosts`
GraphQL mutation. When set to `true`, the mutation merges
`{ aiModerated: true }` into the JSONB `flags` column of the moderated posts.
This enables traceability for AI-automated moderation decisions vs human ones,
used by the squad-moderation automation agent.
Changes:
- Add `aiModerated` to `SourcePostModerationFlags` type
- Add `aiModerated: Boolean` parameter to GraphQL schema
- Merge flag into JSONB using existing `updateFlagsStatement` utility1 parent d39988d commit 3f9d073
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1744 | 1744 | | |
1745 | 1745 | | |
1746 | 1746 | | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
1747 | 1751 | | |
1748 | 1752 | | |
1749 | 1753 | | |
| |||
3120 | 3124 | | |
3121 | 3125 | | |
3122 | 3126 | | |
| 3127 | + | |
3123 | 3128 | | |
3124 | 3129 | | |
3125 | 3130 | | |
3126 | 3131 | | |
3127 | 3132 | | |
3128 | | - | |
| 3133 | + | |
3129 | 3134 | | |
3130 | 3135 | | |
3131 | 3136 | | |
| |||
3177 | 3182 | | |
3178 | 3183 | | |
3179 | 3184 | | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
3180 | 3192 | | |
3181 | 3193 | | |
3182 | 3194 | | |
| |||
0 commit comments