AI Agents Pipelines

Pipelines

iKAgent → Pipelines shows each task’s way from the agent run to deploy, live: one row per task, and under it one lane per run: a pull request, a branch, or one agent’s run. Each lane goes Task → Agent run → PR → Checks → Merge → Build → Deploy → Smoke. Each stage is a dot on the line, with its state under it: grey “Not yet” is the next step, blue runs (it pulses, and a light runs along the line into it), green passed, red failed, amber is held. A run that failed, was cancelled, is held or sent nothing for a day ends at its last stage: the steps it can no longer reach are not drawn. A run queued for more than a day shows Stuck in queue. Click a stage to see its log.

Plans: Pipelines come with Pro (180 days of history) and Pro+ (365 days). On Starter the page says so, and the pipeline endpoints answer 402: ikanban pipeline run and ikanban pipeline event print a note and exit with the build’s own result, so your CI never fails because of the plan.

Two runs never overwrite each other: a laptop build and a GitHub build, Claude and Antigravity, or an agent’s PR and a person’s PR each keep their own lane and log. Each lane says what it is and who and where: “PR #159 · sam · github”.

Search by task key or title; the list shows 50 tasks a page. Running counts running stages and runs queued in the last day; Failed counts tasks with a failed stage.

Where the stages come from

StageComes from
Agent run, PRiKanban itself: the agent’s run and the pull request it opened
Checks, merge, build, deploy, smoke, …your CI, which reports each stage to iKanban

Any CI can report: GitHub Actions, GitLab CI, Bitbucket Pipelines, Jenkins or a script. iKanban needs no plug-in for your git host.

Report a stage from your CI

Use an API key of a member of the task’s team (Settings → API keys), kept as a CI secret.

curl -X POST https://api.i-kanban.com/api/teams/<team-id>/pipeline-events \
  -H "Authorization: Bearer $IKANBAN_API_KEY" -H "Content-Type: application/json" \
  -d '{"task":"IKA-123","stage":"build","status":"running","url":"https://ci.example.com/run/1"}'
  • task: the task key (IKA-123) or its id. The task must be in that team.
  • stage: 1–32 characters, a–z, 0–9, - and _. agent, pr, checks, merge, build, deploy, smoke and release are drawn in that order; other names follow. checks-backend sits with checks.
  • status: queued, running, passed, failed, skipped, held or cancelled.
  • url (optional): a link to the run, https:// only, at most 500 characters.
  • detail (optional): one line for people, at most 300 characters.
  • commit_sha (optional): 7–40 hex characters.
  • run (optional): which run of the task: pr-159 for a pull request, else the branch name. At most 64 characters: letters, digits and . _ - / # : @. Without it, the stage joins the task’s “Earlier reports” lane.
  • source and actor (optional): where it ran (github, gitlab, laptop, ci) and who (an agent’s name or a person). Same characters, 32 and 64 at most. These are labels: the lane also shows reported by the account whose key sent the stage, whenever that differs.
  • at (optional): when it happened, for a late report or a backfill. Past only (5 minutes of clock skew allowed), at most 30 days ago. None means now.

A pull request opened or merged on GitHub fills the PR and Merge stages of its task by itself, in the PR’s own lane (pr-<number>), through iKanban’s GitHub App, when the PR title or branch names the task (IKA-123). A PR that names several tasks fills the stages of each one. When an agent’s PR is green but its automation rule is set to A person merges, Merge turns amber: Held · merge is off. A person merges it, or changes that setting in the rule’s Then. A rule set to Checks and plan pass holds the merge until the plan passes too; the held Merge names the criterion that has no evidence. GitLab: merge requests are not read yet; report them from your CI with stage pr or merge and run pr-<iid>.

The newest event of a stage is its state; earlier ones count as tries.

The task moves with its stages

You do not move a task by hand while it ships. Each stage moves its task on the board, and the Roadmap phase it sits under follows:

StageThe task becomes
Agent run, running or passedIn progress
PR opened, or Merge passedIn review

A passed deploy or smoke check does not make a task Done: mark it Done after you check the change on dev. On Pro and Pro+ the Done gate still applies.

When Agent settings → Pipelines → Deploy check is on with a Dev API address, a deploy that passed with a full commit id that contains the task’s merge commit (the iKanban GitHub App records it) also fills the Smoke stage: waiting for a runner, then the plan’s API checks called by the runner that built the task (Agentification docs, Dev API check).

  • It only moves forward: a task already further on stays where it is, and Done and Cancelled never move.
  • A failed, held or skipped stage moves nothing.
  • A PR moves its tasks only when its branch is in the repository itself, or it is an agent’s own PR: a pull request from a fork records its stages and moves nothing. One PR moves at most 20 tasks.
  • To move a task back, change it on the board.

End a run by its link. When the run’s start went to tasks found from the PR’s text, and that text may change before the run ends, send the end to POST /api/teams/<team-id>/pipeline-events/by-url with stage, status and the same url (no task). Every task of that team whose newest event of that stage has exactly that link and is still queued or running gets it, in its own run (at most 20). A task that already got its end is left alone. CLI: ikanban pipeline event --by-url --stage checks --status passed --url <run link>.

Stream a stage’s log

Send the step’s output in chunks while it runs; the open log follows them live, with colours:

curl -X POST https://api.i-kanban.com/api/teams/<team-id>/pipeline-logs \
  -H "Authorization: Bearer $IKANBAN_API_KEY" -H "Content-Type: application/json" \
  -d '{"task":"IKA-123","stage":"build","text":"Compiling...\n"}'

The ikanban CLI does this for you: ikanban pipeline run --task IKA-123@pr-159 --stage build --source gitlab -- <command> runs the command, prints its output as usual, streams it to that run’s lane, reports running → passed or failed, and keeps the command’s exit code. Send the same run with log chunks ("run":"pr-159") so they open in the right lane.

GitHub Actions: the job graph

A stage whose link is a GitHub Actions run shows that run’s jobs in the track, under the stage, as they happen: for example ✓ backend 3m 54s and ✓ frontend 5m 41s under Checks. A new job appears when GitHub starts it (the page checks the run every 15 seconds until it completes), and a running job’s time counts up. A job whose key names a stage of the same run sits under that stage (build under Build, deploy under Deploy); the run’s other jobs sit under the first stage that links it. Matrix legs fold into one job, and the worst leg wins. A job shows its short key (build); hover it for the full name. A skipped job shows no time. Click a job to open its steps and its log under the row. Open run shows the whole run as a graph on its own page: one box per job, in columns by needs, matrix jobs folded into one box you can open; hover or focus a job there to light up what it waits for and what waits for it.

  • iKanban reads the run, its jobs and steps from GitHub, and the needs from the workflow file at the run’s commit. A job it cannot match to the file is drawn without lines, with a note.
  • The status changes live while the run goes: iKanban’s GitHub App receives each job’s start and end, for teams whose project or wiki links the repository. Otherwise the page asks GitHub every 15 seconds.
  • The repository must be linked to the team (a project’s Repositories, or Agent settings → Git connections), and you must be a member of the team. iKanban calls GitHub with your own GitHub connection.
  • Your GitHub App installation must accept the Actions permission. When iKanban’s app asks for Actions: read, accept it in GitHub (org Settings → GitHub Apps → iKanban → Review request). Without it there are no live job updates.

Dev API checks after the deploy

Set Agent settings → Pipelines → Deploy check on and fill in the Dev API address (https, a public host name). After a dev deploy that contains a task’s merge commit, the runner that built the task calls the task plan’s api criteria there and shows the result in the Smoke stage: A of B API checks passed, C failed; D checks for a person. A failed call becomes a risk on the task (source Dev check).

  • What runs: one curl GET or HEAD call per criterion, to that address only, no redirects, 30 seconds and 64 KB per call. Writes (-X POST, PUT, PATCH, -d) and browser criteria are for a person; DELETE is refused.
  • The key: put IKANBAN_DEV_CHECK_TOKEN and IKANBAN_DEV_CHECK_ORIGIN (equal to the address) in your shell’s login file on the laptop that builds. iKanban never stores the key; it is sent only to the address.
  • When nothing runs: no iKanban GitHub App on the repository (no merge commit is recorded), a deploy that does not contain the merge, a runner released before this feature, or no runner within 24 hours (skipped: not run: no runner picked it up in 24 hours).

Stop an agent run

An agent run that goes on too long, or never ends, can be stopped. Click its Agent run stage and use Stop run in the panel, or use Stop run in the session page header. Confirm, and the stage reads Cancelled · stopped by your name. The task itself stays where it is.

  • Who sees Stop run: the person who started the run, the team’s owner or a maintainer, and a workspace owner or admin. Other members do not see it. Each open run is checked on its own: you stop only the runs you started, and the answer names any run left to another person. A run with no known starter needs an owner, maintainer or admin.
  • A laptop run: the run reads Cancelled at once and the task is free for a new run. The desktop app stops the agent at its next check, within about 15 seconds. An app from before this check lets the agent finish; its end report changes nothing.
  • A GitHub run: iKanban cancels the Actions run when it knows the run and the starter’s GitHub sign-in. Otherwise, for example when the repository can no longer be reached, the run ends on iKanban only; if the agent still works on GitHub, its next update shows it again.
  • A run that already ended answers already ended. Agents use the MCP tool stop_agent_run (task, agent), with the same rules. Each stop goes into the audit log.

Limits and safety

GateValueWhere to change it
Who may reporta member of the task’s team; read-only and Security-only keys are refusedthe key’s scopes, Settings → API keys
One log chunkat most 16 KBsend more chunks
Log keptthe newest ~2 MB per run and stage, for 7 days—
History kept (stages)your plan’s limit: Starter and Free 3 months, Pro 6 months, Pro+ and Enterprise 1 year; deleted once a dayan owner or admin can choose less in a browser: Agent settings → Pipelines (an API key cannot change it)
List50 tasks a page, newest first; search by key or title—
Job graph: workflow fileat most 256 KB and 256 jobs; above that the graph is refused with a messagesplit the workflow
Job graph: job logthe last 1 MB of the job’s logopen the job on GitHub for the rest
  • Secrets: the CLI replaces the values of environment variables named like a secret (TOKEN, SECRET, PASSWORD, *_KEY …) with *** before a line leaves your machine; add others with --mask NAME. The server also replaces known key shapes. A plain curl sends what you give it: mask it first.
  • A log is shown as terminal text, never as a web page. Links open only if they are https://.
  • Reporting never deletes anything. The MCP tool get_pipeline reads pipelines; it cannot write. Stopping a run (above) changes only the run, never its stages’ history.
  • Agents read a task’s pipeline with the MCP tool get_pipeline (team, optional task key), and a GitHub run’s job graph with get_github_run_graph (team, run URL). Both only read.
  • Agents can record one stage event with the MCP tool record_pipeline_event (team, task key or id, optionally IKA-123@pr-45 for the run, stage, status, optional detail, https url and commit) instead of npx ikanban pipeline event. It uses the same route and checks: the caller must be a member of the team, a read-only key is refused, the stage plan is refused, and Starter answers 402. Pipelines and the Roadmap’s Shipped line read these events.
  • A job log passes the same secret masking as a reported log before it is shown.