# Contributing FinalToken is licensed under [MIT](LICENSE). Contributions should preserve its main question: will the user's measured provider allowance last until the actual reset? Read [AGENTS.md](AGENTS.md), [requirements](docs/requirements.md) and the relevant [recorded decisions](docs/decisions.md) before changing behavior. Core owns forecasting and history calculations; reuse them in each host. New behavior needs deterministic tests. Use small synthetic fixtures, never real transcripts, rollout files, credential files or customer data. ## Get the source When anonymous repository access is enabled, these HTTPS commands need no account/token: ```bash git clone https://git.finalfactory.de/FinalFactory/FinalToken.git cd FinalToken ``` Update a clean checkout with: ```bash git pull --ff-only ``` A public repository does not grant push permission. Authenticated Gitea maintenance commands are separate from read-only clone/pull. Do not embed passwords, tokens or an email/password in the remote URL. If anonymous access is still disabled, the host must first make it public. ## Build and check Use the .NET SDK selected by `global.json` and run commands from the repository root: ```text dotnet build FinalToken.slnx -c Release dotnet test --solution FinalToken.slnx -c Release python -B tools/docs/check_docs.py python -B tools/check_public.py --history ``` For Proxmox tooling, also run `python -B tools/proxmox/test_installer.py`, `python -B tools/proxmox/test_update.py`, `bash -n tools/proxmox.sh` and `bash -n tools/proxmox-update.sh`. [Web setup](docs/web-dashboard.md) and [Proxmox setup](docs/proxmox.md) describe additional integration checks. State exactly what was exercised; mocked provider/Proxmox tests do not establish that live login, native publishing or CT creation worked. Use the Gitea issue/branch/review workflow in [AGENTS.md](AGENTS.md#workflow). Keep changes focused and preserve unrelated work. Contributions do not require granting an agent permission to push or publish; those actions still need explicit authorization.