4.4 KiB
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:
productionis what is released,developis production plus nothing (the sync),release/vX.Y.Zcollects the features of a release. Work onfeature/…orfix/…fromdevelopand open the pull request to the release branch; never todeveloporproduction. A release is a pull request from the release branch toproduction, merged by hand: never by me. See the README, "Development cycle". - No reference to an AI tool in what you deliver: no
Co-Authored-Byline 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 inlongterm-memory,decisions/2026-10-30-geen-ai-vermelding-in-commits-en-prs.md). The one exception isTOKENS.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.mdare 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 getsNiets.orGeen.. 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 withdev/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-botis for the pipeline (DEPLOY_TOKEN: auto-merge, tag, release, sync).renovate-botis 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, nevertimestamp(the MySQL of the servers gives such atimestampa default by itself and refuses a second one in a table).
Open decisions
- Frontend: decided and built: the screens are in the package (
ui/, built intoresources/dist, committed; PR CI checks it is up to date). Still open: a theme editor in the manager, and ahostmode that publishes the sources for a site to build itself. - 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.
- Decided in 0.5.0: groups stay the default and the host's roles are added next to them (
manager.permissions:modegroups, host or merge;rolesor aPermissionResolver). A host that wants to replace the groups screens entirely is not planned.