This document helps AI agents contribute effectively to OliveTin.
If you are looking for OliveTin's AI policy, you can find it in AI.md.
service/ with business logic under service/internal/*
service/internal/apiservice/internal/executorservice/internal/httpserversservice/internal/config, service/internal/entitiesfrontend/ (served by the service)integration-tests/proto/, service/gen/...specs/ — Markdown specs that define how code should behave in human-readable form. When changing behavior in a spec-covered area, keep implementation and tests aligned with the spec; do not reference code or symbols in specs (English only).go run ./servicecd service && make unittestsservice/):
cd service && make codestyle (runs go fmt and golangci-lint; install linter via make go-tools)make docs-check (validates documented config key casing and local AsciiDoc anchor links)make it (from repo root; builds webui + service binary, then runs Mocha)cd integration-tests && npx --yes mocha tests/general/general.mjsunittests; use cd service && make unittests.GetNewHandler(ex) and serve under /api/.document.body attribute loaded-dashboard="<name>" when loading a dashboard. Integration helpers that test dashboard functionality wait for this before selecting elements. Certain conditions enforcing login will mean that this attribute is not set until a user is logged in..action-button button./logs and /diagnostics.contentActions) no longer exist; prefer class-based selectors.showFooter from Init API; tests may assert the footer is absent when config disables it.req.Binding and req.Binding.Action).gocyclo min-complexity: 5 in service/.golangci.yml).Init, GetDashboard, StartAction).executor.ExecutionRequest and calls Executor.ExecRequest.ExecutionStatus/GetLogs.proto/olivetin/api/v1/olivetin.proto (service olivetin.api.v1.OliveTinApiService), online at https://github.com/OliveTin/OliveTin/tree/main/protoPOST /api/<MethodName> with a protobuf-JSON body (lowerCamelCase fields, eg {"bindingId": "..."}).cd proto && make (buf) — generated code lives in service/gen/ and frontend/resources/scripts/gen/.docs/modules/ROOT/pages/api/intro.adoc. LLM-oriented docs index: https://docs.olivetin.app/llm.txtconfig.yaml and ensure executor.RebuildActionMap() is called when needed.service/internal/api/dashboards.go and apiActions.go.frontend/resources/vue/router.jsfrontend/resources/vue/App.vuefrontend/resources/vue/ActionButton.vueCONTRIBUTING.adoc.AI.md..github/PULL_REQUEST_TEMPLATE.md.specs/, ensure implementation and tests match the spec.When a change means operators may need to do something when they upgrade (a breaking behaviour change, a config change, or a security fix that stops a previously working setup), add an upgrade note in the same PR as the change.
docs/modules/ROOT/pages/upgrade/upgrade_notes.adoc, under the == Next release (unreleased) heading. If that heading does not exist, create it directly after the page's introduction paragraph, above the newest version section.Each note is an anchor line plus a level-3 heading, then what changed, who is affected, and what to do:
[#short-kebab-case-anchor]
=== Short description of the change
What changed, and who is affected. What operators need to change.
Link to the note from related docs pages with xref:upgrade/upgrade_notes.adoc#short-kebab-case-anchor[Upgrade Notes]. The anchor stays the same when the note moves under a version heading, so links keep working.
Do not write a version number and do not rename the unreleased heading by hand. When a 3k release is tagged, .github/workflows/release-upgrade-notes.yml runs scripts/release_upgrade_notes.py, which moves every note that was in the unreleased section at the tagged commit under a new == <version> heading on next. Notes merged after the release was cut stay unreleased. If the workflow fails, rerun it with workflow_dispatch and the release tag.
Do not mark the change with a BREAKING CHANGE: footer or a ! in the commit type. semantic-release treats either as a major version bump.
docs.olivetin.app is built from next, so a note is public as soon as it merges. For security fixes the note goes in the private advisory fork PR, and should describe the behaviour change without exploit details.
Security advisory fixes follow the process in SECURITY.md:
OliveTin/OliveTin-ghsa-xxxx-xxxx-xxxx), on a branch from its next, and open the PR against the fork's next. Never push fixes for unpublished advisories to the public repository, and never describe unfixed advisories in public files.security: GHSA-xxxx-xxxx-xxxx (SEV) short description, where SEV is LOW, MED, HIGH or CRIT. Do not name the reporter in commits; credit goes in the advisory.security: commits trigger a patch release and are listed under Security in the release notes. Do not use fix: for advisory fixes, or they will be listed as bug fixes.fix: commit against next, without the advisory ID.[status:...] tag at the end of its summary. Update it with scripts/ghsa_status.py <GHSA-ID> <status> whenever you change an advisory's state, ask the reporter a question, open a fork PR, or merge a fix; clear it with clear before publishing, closing, or requesting a CVE. The statuses and when to use them are listed in .github/SECURITY_ADVISORY_DUPLICATES.md under "Status tags". Run scripts/ghsa_status.py --list to check them.Use conventional-commit-style branch names with a type prefix, optional issue reference, and a short kebab-case description:
feat/[#123]-add-justification-promptfix/[#456]-websocket-reconnectDo not use feat-..., feature/..., or other variants. Omit the [#<issue>] segment only when there is no linked issue.
/api/ and the client targets that base URL.Binding/Action and add guards in step functions.loaded-dashboard and use selectors matching the Vue UI.