Updated: 2026-10-30
How an issue or a pull request from outside is handled, so that every one gets an answer in a few days and nothing reaches the core without an agreed plan. The zones are in CONTRIBUTING.md; the picture is in architecture.md.
- Answer within 3 days, even if only to say it was read. Thank the person.
- Label it with one area and one kind:
- area:
core,app: analytics,app: historian,app: view,app: alarms,app: models,app: documents,app: simulator,docs,install; - kind:
bug,idea,question; plusupstreamwhen the cause is in a dependency (keep it open until that dependency ships the fix),good first issuewhen a newcomer can take it. The labels live in.github/labels.yml; the Labels workflow creates them on main, and the issue forms (bug, idea, question, change to the core) add the kind by themselves.
- area:
- A core idea gets a short plan in the issue (what changes, what stays compatible) before anyone writes code. A maintainer agrees in the issue; the pull request then links it.
- Close with the reason: fixed (link the pull request), duplicate (link the other), or not planned (one sentence why).
The Zones check writes, on the pull request's run page, which zones it touches. Then:
| Check | Pass when |
|---|---|
| Zone | One zone. A core change links an issue a maintainer agreed to (the check fails a fork's core change without one) |
| Scope | One change; no unrelated formatting, renames or dependency bumps |
| Contract | API v1 only grows (make api-contract shows no removal); apps import only the SDK |
| Tests | New behaviour has tests; make ci green in each folder it touches (root, apps/<app>) |
| Safety | No network call, no write to the plant, no secret, no binary from outside; paths in CODEOWNERS get a maintainer's review |
| Methods | A public reference, tests on a known answer, the description format |
| Docs | User-visible changes update docs/, the CHANGELOG and the pt-BR catalog |
Then one of three answers, in the pull request:
- Merge: squash, with a title that says what a person sees.
- Changes needed: a list of what to change, each with why.
- Not here: the reason and where it fits instead (an issue first, another app, its own repository from the app template).
The repository carries the review as a Claude Code skill
(.claude/skills/review-contribution). In a
Claude Code session on this repository, ask:
Review pull request #N: is it aligned?
It reads the pull request, runs the checks above and the make ci of the folders it touches,
and answers with the verdict, the reasons and a draft reply for the contributor. Nothing is
posted or merged without a maintainer.
Work for the next version collects on one branch during the day. One pull request,
"PlantCraft X.Y.Z", carries the CHANGELOG section as its description; the full tests run on it,
it merges to main and is tagged vX.Y.Z. The public demo updates only on a release, at a quiet
hour.
The release files are built on a machine with Docker and internet, once per processor:
make release-bundle builds every app's image, the Simulator and the platform and writes
dist/plantcraft-<version>-linux-<arch>-bundle/ (bash 4 and the GNU tools: on macOS,
see install-offline.md). The publisher's key signs SHA256SUMS where the key lives
(verify-a-release.md says what users check), and the files go on the
GitHub release of the tag.