Dokümantasyon İngilizcedir.
Delivery paths
Merging is not the end. A delivery path describes what happens after an issue's merge requests are merged: waiting for CI, opening a change (CAB) ticket, getting approvals, waiting for a deployment window, and triggering the company's own CI/CD. meiksense runs one delivery per path, step by step, and tells you in Slack and on the issue when it needs a person. Admin setup: delivery admin guide.
meiksense never stores cloud or production credentials. It only triggers pipelines, manual jobs, workflow dispatches or deployments on GitLab / GitHub with the SCM integration's token, like a person pressing the button.
How a delivery starts
- When an issue reaches MERGED, meiksense looks up the path of every merged repository (the
assignment) and starts the deliveries:
- a
per_repopath delivers each repository on its own; - a
per_issuepath delivers all of the issue's repositories on it together (one ticket, one approval); - a
trigger: trainpath collects merged changes and departs on a schedule (cron), delivering all collected changes together.
- a
- A running delivery keeps the path version it started with. Saving a path again only affects new deliveries.
- The issue's timeline shows
delivery.startedwith the deliveries; each delivery has its own page and Slack thread.
Steps
Every step has an id, an optional when (a JSONata condition: false skips the step), a timeout
(30m, 2h, 3d, 1w), a retry (max_attempts, backoff, factor, max_backoff: automatic retries of
transient errors) and an on_failure:
on_failure | When the step fails for good |
|---|---|
block (default) | The delivery is BLOCKED and Slack says so. People may retry or abort. |
skip_if_admin | BLOCKED like block; an admin may also skip the step. |
abort | The delivery FAILS at once. |
| Kind | What it does | Key options |
|---|---|---|
wait_for_pipeline | Waits until the pipeline of the merge commit (or ref) is green; a red pipeline fails the step. | repos, ref, poll |
wait_for_deployment | Waits for a successful deployment to an environment (GitLab environments, GitHub deployments). | environment, sha_match, poll |
create_ticket | Creates a tracker issue (e.g. a CAB change); fields are static, templates, expressions or AI drafts. | tracker, project, issue_type, summary, description, fields, labels, require_human_review, review_groups, comment_on_issue |
transition_ticket | Moves the issue (issue) or a created ticket to a status. | ticket, status |
wait_for_ticket_status | Waits until a ticket reaches one of status; fail_on statuses fail the step. | ticket, status, fail_on, poll |
post_message | Posts a message to the delivery's Slack thread, the issue or a ticket. | to (chat, issue, ticket), channel, text |
wait_for_approval | Waits for approvals: quorum distinct people from groups / users, via the UI, a Slack button or a tracker comment. One rejection fails the step. | groups, users, quorum, channels, message, for_environments |
wait_until | Waits for an open deployment window of a calendar (time zone, weekly windows, blackout dates). | calendar, min_remaining |
trigger_pipeline | Starts the company's CI/CD: a new pipeline (pipeline), a GitLab manual job (manual_job), a GitHub workflow_dispatch, or a GitHub deployment (deployment). wait: true waits for it to finish. | mode, ref, job, workflow, variables, environment, wait |
create_release | Tags the next semantic version (auto: from conventional commits) and creates a release with the changelog. | bump, tag_prefix, initial, ref, name, notes |
manual_step | A checklist a person ticks in the UI. | title, checklist, groups, instructions |
http_call | Calls an allow-listed HTTP endpoint (header secrets come from the control worker's environment, never from meiksense's database). | method, url, headers, body, expect_status |
mcp_call | Calls a tool of an MCP tracker integration. | tracker, tool, args |
condition | Evaluates an expression; a false result fails, finishes the delivery, or jumps forward to a step. | expr, else (fail, finish, { goto: <step> }) |
verify_runtime | Verifies the deployment in a runtime environment (read-only): waits until the workloads rolled out (timeout, default 15m; a failing container ends the wait), records the pods, waits soak (5m), then checks that every pod is Ready, no container is in CrashLoopBackOff / OOMKilled / ImagePullBackOff / CreateContainerConfigError, no restarts during the soak, no new warning events, the health_urls answer (GET; a route / ingress of the environment or http_allow_hosts), and — compare_logs — no exception signature that the error-log sample taken when the delivery started did not have. The report is stored; a failure is diagnosed on the issue. workloads: auto reads Deployment / StatefulSet / DeploymentConfig names and helm chart names from the repo's manifests. | environment, namespace, workloads (auto, { selector }, { names }), soak, health_urls, compare_logs, benign_warnings, poll |
Feedback to the issue. A step that deploys to a test-tier runtime environment (wait_for_deployment
or trigger_pipeline whose environment names one: the path's environment name is the runtime environment's name)
and verify_runtime there report their progress to the issue, which follows them as far as its done_when asks
(issue lifecycle). A delivery that blocks or fails before reaching
the test level tells the issue too.
Example
name: backend-cab
description: Backend services: CAB ticket, deployment window, production deploy
scope: per_repo
environments:
- name: staging
- name: production
protected: true
match: { jobs: ['deploy-prod*'] }
steps:
- { id: ci, kind: wait_for_pipeline, timeout: 2h }
- id: cab
kind: create_ticket
tracker: jira
project: CAB
issue_type: Change
summary: 'Deploy {{ repos[0].name }} for {{ issue.key }}'
description: { template: "Changes:\n{{ $join(changelog, '\n') }}" }
fields:
Risk: { static: Low }
Rollback plan: { ai_draft: rollback_plan }
require_human_review: true
- { id: cab-ok, kind: wait_for_ticket_status, ticket: cab, status: [Approved], fail_on: [Rejected], timeout: 3d }
- { id: approve, kind: wait_for_approval, groups: ['meik:maintainer'], quorum: 1 }
- { id: window, kind: wait_until, calendar: prod-window }
- { id: deploy, kind: trigger_pipeline, mode: manual_job, job: deploy-prod, environment: production, wait: true }
- { id: done, kind: transition_ticket, ticket: cab, status: Done }
Expressions
Templates ({{ … }}) and expressions (when, expr, condition) are JSONata — never JavaScript. They see:
| Name | Content |
|---|---|
issue, issues | The delivered issue(s): key, title, url, integrationId |
mrs | Merged MRs: repo, id, url, title, mergeSha, targetBranch |
repos | Repositories: id (project/repo), name, path, integration |
commits | repo, sha, title, author |
changelog | One line per MR (PROJ-1 shop/api: feat: …) |
diff_stats | files, additions, deletions |
author | The issue's assignee or reporter: name, email |
approvals | step, by, via, at of every approval so far |
steps.<id> | status and output of earlier steps (a ticket's key / url, pipelines, approvers, …) |
env | vars of the path, environments (protected), and name of the step's environment |
now | The delivery's clock (ISO); $now / $millis read it too |
Evaluation is bounded (1 s, stack depth, sequence length). Expressions are syntax-checked when the path is saved.
Ticket fields
static: a literal value (string, number, boolean, list).template: text with{{ }}placeholders;expr: a JSONata expression (any value).ai_draft:risk_assessment,rollback_plan,test_evidence,changelogorcustom(withinstructions). The model sees the issue (as untrusted data), the MRs, commits, diff size and the results of earlier steps (CI). Drafted values start with[AI-drafted]in the ticket.require_human_review: truestops before the ticket is created: the draft shows on the delivery page (and a Confirm ticket as drafted button in Slack). Edit the values or confirm them; only people inreview_groups(meik roles such asmeik:maintainer) may, when it is set.- Field names or ids are checked against the tracker's create screen (Jira createmeta) when the path is saved: unknown fields, unmapped required fields and static values outside the allowed options are refused.
Approvals
A wait_for_approval step needs quorum distinct approvers. Who counts:
-
UI (delivery page → Approve / Reject): meik users with
delivery.acton the project; their groups are their meik roles (meik:admin,meik:maintainer@<projectId>, …). -
Slack: the Approve / Reject buttons in the delivery's thread. meiksense looks up your Slack e-mail and the meik user with that e-mail (and its roles).
-
Tracker: a comment on the issue or on a ticket the delivery created:
@meiksense-agentik approve-delivery @meiksense-agentik approve-delivery --step prod-approval @meiksense-agentik approve-delivery not today --rejectGroups come from the tracker (
groupsOf). If nothing waits for an approval there, meiksense replies so.
The same person approving through two channels counts once (same e-mail). An approver who is not allowed is not counted, and the delivery's timeline says why.
The production floor
Environments can be protected. A step that deploys to or triggers a protected environment — its environment, or
a job / workflow matching the environment's match globs — must come after a wait_for_approval that:
- has no
when, is notskip_if_admin, and guards that environment (for_environmentsempty or naming it); - cannot be jumped over by a
condition'sgoto.
Otherwise the path cannot be saved. When the delivery runs, the same rule is checked again: the approval must really have succeeded. Only an admin can turn the rule off (delivery settings, audited).
Actions
On the delivery page (and through the API):
- Retry (BLOCKED): runs the failed step again (
delivery.act). - Skip (BLOCKED at a
skip_if_adminstep): admins only (delivery.skip). - Abort (any unfinished delivery): stops it (
delivery.act).
Every action is audited and recorded on the delivery's timeline.