SIGN IN SIGN UP

Remove timeline metadata diagnostics (#24660)

## Summary

- remove the timeline-specific metadata metric and its rate-limiting
diagnostics service
- drop the MetricsModule dependency from TimelineActivityModule
- delete diagnostic collection/reporting plumbing from routing plans,
type resolution, and activity execution
- keep the existing fail-closed behavior: invalid or ambiguous contracts
still do not route or write activities

This removes 194 net lines and avoids carrying a metric and in-memory
report cache for a rare configuration condition.

## Stack

Base: `codex/timeline-coalescing-lock` (#24659)

## Validation

- `npx jest --config ./jest.config.mjs --runInBand src/modules/timeline`
(from `packages/twenty-server`) — passed, 15 suites / 79 tests
- `npx tsgo -p packages/twenty-server/tsconfig.json --noEmit` — passed
- `npx oxlint --type-aware -c packages/twenty-server/.oxlintrc.json
packages/twenty-server/src/engine/core-modules/metrics/types/metrics-keys.type.ts
packages/twenty-server/src/modules/timeline/services
packages/twenty-server/src/modules/timeline/timeline-activity.module.ts`
— passed
- `npx oxfmt --check
packages/twenty-server/src/engine/core-modules/metrics/types/metrics-keys.type.ts
packages/twenty-server/src/modules/timeline/services
packages/twenty-server/src/modules/timeline/timeline-activity.module.ts`
— passed
- `git diff --check` — passed


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/24660?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
F
Félix Malfait committed
e654e029cbe9e7ab8bf01c6ebab715b58d3bd9d0
Parent: 9e47172
Committed by GitHub <noreply@github.com> on 8/24/2026, 6:21:06 AM