---
title: "Task: Penalties as a contract"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:task-1791597871@main"
source: "Changelog/1.0.0/Task-1791597871-PenaltiesAsAContract.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Task: Penalties as a contract {#task-1791597871}

## Description {#description}

Packages that record penalties for records of their own, such as lateness incidents and leave requests, use the
contract `Penalties` of the core: who may record one, which penalty holds a source, and the penalty as the API
shows it. The command `RecordPenalty` answers the ID of the penalty instead of the entity, and `PenaltyInput`
moved to the contracts of the core.

## Impact {#impact}

None for users. A package recording penalties reads the result of `RecordPenalty` as an ID.
