# Moderation Desk

**moderation-desk.infinity-sdg.com** — trust & safety review where AI flags and explains, and people decide.

```
community → item (post, comment, image, profile, message, listing)
  ← signals: AI flag (model, suggested policy, score, rationale) · user report · trusted flagger
  → moderator actions or dismisses each signal
  → item: label or remove — citing an active policy, never without a signal
  → author appeals → a different reviewer upholds or overturns (overturned → restored)
every 2 hours: signals open longer than 48 hours escalate
```

## What it enforces

| Rule | Why |
|---|---|
| The AI never removes anything; only moderators label or remove | Automated flags are advice |
| An AI flag must name its model, its score and the policy it suggests | Moderators see why it fired, and the model can be measured |
| Nothing is labeled or removed without a signal on the item | No action out of nowhere |
| Every label or removal cites a policy that is in force (not a retired version) | Users are told which rule they broke, and it's the current rule |
| Only actioned items can be appealed | Appeals attach to a decision |
| The moderator who acted can't hear the appeal | Independent review |
| An item is restored only when an appeal overturns the action | Restorations are decisions, not edits |
| Dismissing a signal requires a note | False positives become tuning data |
| Signals open past 48 hours escalate | The queue can't quietly age |

Every resource is audited. Items keep a readable history of every action and appeal outcome.

## Resources, views, roles

- **Resources:** policy, community, item, signal, appeal
- **Views:**
  - `queue`: open and escalated signals
  - `aiAgreement`: AI flags actioned versus dismissed, with notes
  - `appealsQueue`
- **Roles:**
  - `moderator`: works signals, labels and removes
  - `appeals`: hears appeals, restores
  - `policylead`: publishes and retires policy
  - `admin`

## Demo data

The demo has 10 policies, one of them a retired version replaced by its successor, and 10 communities. It holds 29 items with 40 signals:

- 6 items removed, with the removal upheld on appeal
- 3 removed then restored when an appeal was overturned
- 1 removed with an appeal still filed
- 4 removed without appeal
- 3 labeled instead of removed
- 5 AI false positives a moderator dismissed, each with a note
- 5 items with open signals in the queue
- 2 items whose signals escalated past 48 hours

Content is **described, not reproduced**: the seed says "comment repeatedly addresses another member with insults", never the insults.

Every decision is made by the demo user who would make it (`mod1`, `mod2`, `appeals1`, `appeals2`), with that user's own roles. That needs Kalos seeder 1.2.0 or later.

Everyone in the demo data is invented. To regenerate the data, run `python3 seeds/gen_seed.py`.

## Run it

```bash
scripts/kalos.sh validate    # static checks
scripts/kalos.sh start       # kalosd on :9218
scripts/kalos.sh verify      # live checks
```

By default, `KALOS_REPO` is `../kalos`.

Sign in with `admin` / `Admin123!`. The other users are `mod1`, `mod2`, `appeals1`, `appeals2` and `policy1`, all with password `Demo123!`.

## Reselling

This is an original ISDG product for platforms, online communities and marketplaces. It has no user content and no third-party branding.
