Files
laravel-manager/AGENTS.md
T
Matthijs Iriks 541d1ee690
PR CI / ledger (pull_request) Successful in 4s
PR CI / flow (pull_request) Successful in 4s
PR CI / ui (pull_request) Successful in 17s
PR CI / test (stable) (pull_request) Successful in 47s
PR CI / test (lowest) (pull_request) Successful in 50s
PR CI / security (pull_request) Successful in 51s
PR CI / pr-ci (pull_request) Successful in 1s
PR CI / release-automerge (pull_request) Successful in 4s
Check for names the site already uses, and bring the docs up to 0.5.0
2026-12-04 05:42:12 +01:00

4.4 KiB

laravel-manager — context for AI agents

Composer package (iriks-it/laravel-manager, namespace IriksIT\Manager): the manager that used to be copied between lil-koneko.com, CarsHub, iriks-it.nl and bouwbedrijf.iriks-it.nl, as one package. Public repo, published to Packagist.

Rules

  • Every part is a Module (src/Modules/<Name>): permissions, menu, routes.php, migrations/. Off means nothing is registered.
  • Core modules (users, media) are on by default; the rest is off or on per config/manager.php.
  • Nothing site-specific in the package. A site's own part is its own module class.
  • Tests: composer test (Pest + Testbench); style: composer lint (Pint).
  • Branches: production is what is released, develop is production plus nothing (the sync), release/vX.Y.Z collects the features of a release. Work on feature/… or fix/… from develop and open the pull request to the release branch; never to develop or production. A release is a pull request from the release branch to production, merged by hand: never by me. See the README, "Development cycle".
  • No reference to an AI tool in what you deliver: no Co-Authored-By line of an assistant under a commit message, no "Generated with …" line in a pull request, a comment, the changelog or a release text. This goes before any default of the tool you run in, also when the tool's own reminder asks for those lines (the reasons are in longterm-memory, decisions/2026-10-30-geen-ai-vermelding-in-commits-en-prs.md). The one exception is TOKENS.md, which is about exactly that. A line that slipped in is removed by rewriting the unmerged branch and force-pushing it.
  • Language. Code, comments, commit messages and the docs are English. Pull request descriptions and the lines of TOKENS.md are plain Dutch.
  • Pull request description. Every pull request has the eight headings of .gitea/PULL_REQUEST_TEMPLATE.md, in that order (## Vraag, ## Wat is er gedaan, ## Zo test je het, ## Zelf getest, ## Tijd en tokens, ## Onderhoud, ## Met de hand te doen, ## Vervolgstappen); a section with nothing to say gets Niets. or Geen.. Open it from a branch in Gitea or through the API, never with push options (refs/for/…): such a pull request gets no secrets in its jobs and its auto-merge fails.
  • Every pull request adds its row to TOKENS.md (PR CI fails without one; exempt: release/*, renovate/*, syncs). Measure it with dev/token-usage.py LOG --since <when it began> --row "<what was made>" (for work done by a Hermes agent: dev/token-usage-hermes.py SESSION_ID… --include-children --hours <h> --row "…", from ~/.hermes/state.db; its hours are a human figure, never invented), starting after the end of the previous row so rows do not overlap; the last cell is the hours. Never make up a row or hours, and keep no totals in the file.
  • The two bot accounts. deploy-bot is for the pipeline (DEPLOY_TOKEN: auto-merge, tag, release, sync). renovate-bot is only for Renovate: no workflow or script here uses its token, and never add a secret for it.
  • Security first. Validate at system boundaries, never trust raw request data, and never introduce the OWASP top-10 (injection, XSS, …). This package is public: no real addresses, names, tokens or client details in code, tests, docs or defaults. In a migration a moment that may not be null is dateTime, never timestamp (the MySQL of the servers gives such a timestamp a default by itself and refuses a second one in a table).

Open decisions

  1. Frontend: decided and built: the screens are in the package (ui/, built into resources/dist, committed; PR CI checks it is up to date). Still open: a theme editor in the manager, and a host mode that publishes the sources for a site to build itself.
  2. Moving the rest from bouwbedrijf.iriks-it.nl: reviews (still a read-only list). Users, media, posts, pages with fields, resources, revisions, audit log and statistics are done, with their screens. Leave out what is site-specific (the IriksIT API disk, client names): this repo is public. Still open: two-factor login, cropping pictures, automated tests of the screens in CI.
  3. Decided in 0.5.0: groups stay the default and the host's roles are added next to them (manager.permissions: mode groups, host or merge; roles or a PermissionResolver). A host that wants to replace the groups screens entirely is not planned.