npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cmflow/ci-line

v3.22.0

Published

Ci-line: curated Jira tickets become verified draft pull requests, with review and CI loops under human control

Readme

@cmflow/ci-line

Ci-line turns curated Jira tickets into verified draft pull requests, then takes review comments and CI failures up again, always under human control. Humans merge and deploy.

Two binaries (ci-line, ci-line-webhook) and a defineConfig read from the repository's ci-line.config.ts: every repository value (GitHub repository, branches, Jira project and statuses, CircleCI project and job names, allowed paths, check commands, models) lives in that file, the package names none. Node.js 22 or later, GitHub, Jira Cloud, CircleCI, Docker and an OpenAI-compatible gateway (LiteLLM) are required.

Language. Pull request descriptions, review replies and Jira comments are written in French. The default policy (assets/policy.md) and pull request template (assets/pr-template.md) were written for a TypeScript API monorepo with a Docker functional stack: replace them with templates.policy / templates.pullRequest for another kind of repository (see Adapting to your repository).

Quick start

  1. Install it in the repository checkout, at an exact version. ci-line.config.ts imports @cmflow/ci-line, so the package must resolve from the repository's node_modules; npx -y @cmflow/ci-line alone would fail to load the configuration. It is not a runtime dependency of the application: install it without saving, in the jobs that run it.

    npm install --no-save --ignore-scripts @cmflow/ci-line@<exact-version>

    Pin the version (a CI parameter, never a range or a tag): the controller holds the Jira, GitHub and model credentials.

  2. Write ci-line.config.ts at the repository root (Configuration), then validate it with no network call:

    npx ci-line config
  3. Prepare the accounts and labels. Jira: the nomination label (ai-ready), the waiting label (ai-awaiting-input), the ready status id, an Automation rule that starts the CircleCI controller job, and a service account. GitHub: the ci-line, ci-line-incomplete and ci-line-paused labels, and a token or a GitHub App (CI_LINE_IDENTITY_MODE=service). Secrets come from the environment only (variables); add .ci-line/ to .gitignore.

  4. Build the worker image and install the method profiles (Docker required):

    docker build -f node_modules/@cmflow/ci-line/assets/docker/Dockerfile -t ci-line-runtime:18.10.1 node_modules/@cmflow/ci-line/assets/docker
    npx ci-line profiles      # downloads the pinned profiles into .ci-line/profiles (or CI_LINE_PROFILE_DIR)
    npx ci-line preflight     # checks credentials, permissions and the gateway
  5. Run it from CircleCI. A minimal controller job; the job name is circleci.controllerJob and its workflow circleci.controllerWorkflow (both ci-line-dev by default):

    jobs:
      ci-line-dev:
        machine:
          image: ubuntu-2204:2024.01.1
          docker_layer_caching: true
        resource_class: xlarge
        environment:
          CI_LINE_COMMAND: << pipeline.parameters.ci-line-command >> # run, reconcile, …
          CI_LINE_TICKET: << pipeline.parameters.ci-line-ticket >>
          CI_LINE_EVENT: jira
          CI_LINE_WORK_DIR: reports/ci-line
          CI_LINE_PROFILE_DIR: /home/circleci/.ci-line-profiles
          CI_LINE_PIPELINE_ID: << pipeline.id >>
          CI_LINE_VERSION: << pipeline.parameters.ci-line-tag >>
        steps:
          - checkout
          - run: npm install --no-save --ignore-scripts "@cmflow/ci-line@${CI_LINE_VERSION}"
          - run: |
              decision=$(node_modules/.bin/ci-line gate) || decision=continue
              if [ "$decision" = halt ]; then circleci-agent step halt; fi
          - run: docker build -f node_modules/@cmflow/ci-line/assets/docker/Dockerfile -t ci-line-runtime:18.10.1 node_modules/@cmflow/ci-line/assets/docker
          - run: node_modules/.bin/ci-line profiles
          - run:
              no_output_timeout: 130m
              command: node_modules/.bin/ci-line from-env
          - store_artifacts:
              path: reports/ci-line

    Pass pipeline parameters as environment values, never inside the shell command. Review and CI wakeups use a second pipeline (circleci.webhookConfig, job circleci.webhookJob) that runs ci-line-webhook, then ci-line reconcile --event review.

Adapting to your repository

| What | How | | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Repository, branches, Jira, CircleCI project, job and workflow names | ci-line.config.ts; no value is built in | | Which files a candidate may change, and which never | candidate.allowedPaths, candidate.protectedPaths (protect ci-line.config.ts, CI and check configuration) | | Check commands, workspace scope of the modules | checks.* (commands are argument arrays, never shell strings), checks.unit.workspaceScope | | JavaScript to TypeScript migration rule | candidate.applicationPaths: without it, no migration rule and no JavaScript exception | | Functional stack | checks.functionalStack (Docker Compose services); without it functional checks refuse to run | | Agents' rules | agents.repositoryPolicy (appended to the policy), agents.repositoryNote, or a whole policy with templates.policy | | Pull request description | templates.pullRequest (placeholders {{name}}; an unknown one fails before publication) | | Models and reviewers | profiles: keys openspec-ponytail, pstack or superpowers (the method each one installs), at least two reviewers | | Fixed by the package | French wording of the reports and replies, the ci-line, ci-line-incomplete and ci-line-paused labels, the worker image (ci-line-runtime:18.10.1, Oh My Pi pinned) |

API

import { defineConfig, loadConfig, resolveConfig, type UserConfig, type ResolvedConfig } from "@cmflow/ci-line";
  • defineConfig(config: UserConfig): types ci-line.config.ts (returns it unchanged).
  • loadConfig(path?, { cwd, env }): loads the file through tsx, validates it and returns the ResolvedConfig (defaults applied, paths resolved). Useful to test a repository's own configuration.
  • resolveConfig(config, { configPath, env }): the same validation for an object already in memory. An invalid value throws one line per field.

Flow

  1. A human team member nominates a ticket: the jira.nominationLabel label (ai-ready) on a ticket in the jira.readyStatusId status. Human participation uses project permissions, with no per-account allowlist; apps and controller-generated events are excluded by provenance. A Jira Automation rule starts the CircleCI controller job.

  2. The controller rereads the full ticket and conversation, qualifies it and plans internally. Nomination authorizes implementation through a draft pull request: no Jira plan comment or human approval checkpoint.

  3. Blocking ambiguity produces consolidated questions and the jira.waitingLabel label. A fresh human comment resumes qualification with counters preserved; the job exits while waiting. Marked controller comments do not count as answers.

  4. An isolated worker implements, runs focused checks and receives independent correctness and acceptance reviews. Complete required coverage and functional checks run before every push.

  5. Trusted publication creates or updates the owned pull request on a branch started from git.productionBranch, targeting git.targetBranch. GitHub review and comment events wake feedback handling; CircleCI workflow-completed events of circleci.buildWorkflow wake branch-CI handling. There is no polling.

    The pull request description is generated from assets/pr-template.md (or templates.pullRequest), in French: Contexte, Changement, Comment vérifier, Critères d'acceptation, Rapport Ci-line, Risques et points ouverts. Placeholders are {{name}} (see PLACEHOLDERS in src/report/pr-report.ts); an unknown one fails before publication. Only the block between the ci-line:report markers is rewritten on later publications; text written outside it is kept.

Feedback receives an idempotent acknowledgement before preparation or inference. Ci-line then accepts, disputes, identifies already-addressed feedback or asks for clarification, replying in French (« Corrigé », « Contesté », « Déjà traité », « Question ») with reasons, evidence and a link to the verified commit. Ci-line never resolves a thread: the reviewer does, and observations in a resolved thread are no longer assessed. Accepted observations first consider a reliable lint gate, then a reusable lesson/instruction. New prevention is committed separately from the application fix on the same branch; existing adequate guidance is reused. Managed guidance is limited to 20 entries / 4,000 characters. No model tests: verify behavior in consuming layers or functional scenarios.

Candidate branches use <verb>-<ticket>-ci-line-<name>; older branch naming formats are not supported. Commits use <verb>(<ticket>): ci-line <message> (140 characters maximum). A supported summary prefix supplies the verb, otherwise feat.

Code map

Each module sits next to its *.spec.ts (sources in the cmflow repository, packages/ci-line).

| Where | Responsibility | | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | src/bin/ | ci-line (commands, from-env) and ci-line-webhook (triage of one GitHub or CircleCI delivery) | | src/cli.ts, src/cli-arguments.ts | Commands, work discovery, rerun gate, preflight, benchmarks; the CircleCI parameters turned into arguments | | src/review/ | The webhook receiver: review and CI wakeups bound to canonical current work | | src/workflow/ | workflow.ts: discovery and the signed episode lifecycle. recover-review.ts: attested recovery of an interrupted review. commands.ts: /ci-line commands | | src/services/ | client.ts: credentials, audited requests, retries, controller identities and idempotency markers. jira.ts: tickets, comments, nominations and the signed checkpoint. github.ts: owned pull requests, review feedback, publication and CI results. integrations.ts composes them. Also CircleCI evidence, GitHub App tokens, the model key proxy and its probe | | src/execution/ | Isolated preparation, agents, checks and artifacts, the functional stack, prevention rules, validation planning | | src/report/ | Progress lines, the closing summary, the pull request description, the human-actions block and audit events | | src/config/ | ci-line.config.ts schema, loading and defaults, branch and commit naming, pinned method profiles | | assets/ | Policy, pull request template, worker docker/Dockerfile, scripts copied into the worker (agent/) |

Vocabulary

| Word | Meaning | | ---------- | ------------------------------------------------------------------------------------------------------------- | | nomination | A human puts the nomination label on a ticket in the ready status: the only thing that starts work | | run | One execution of the controller (one CircleCI job), identified by a run id; it may do part of a ticket's work | | checkpoint | The signed ci-line.workflow property on the Jira ticket: where the ticket stands between runs | | episode | One working cycle of a ticket, bounded by limits (corrections, active minutes) | | candidate | The branch and code produced for a ticket, before and after publication | | published | The candidate is on GitHub as a draft pull request, verified or marked incomplete | | incomplete | Published with the ci-line-incomplete label and a list of what could not be verified | | handoff | The controller stopped and a human must act; nothing more happens by itself | | blocked | A handoff in which nothing could be published |

Exit codes of the controller

| Code | Meaning | What happens next | | -------- | -------------------------------------------------------------------------------- | ------------------------------------------------------ | | 0 | Done, or nothing to do (not nominated, not ready, closed, a candidate published) | Job green | | 1 | Handoff or error: a human must look | Job red | | 75 | Transient or retryable failure | Native CircleCI rerun, bounded | | 3 | Event receiver only: the webhook is not current work | Nothing is started | | 130, 143 | Job cancelled (SIGINT, SIGTERM) | The summary of the stages done so far is printed first |

workflowExitCode and failureExitCode define 0, 1 and 75 for the commands, ci-line-webhook defines 3, and src/report/interrupt.ts defines 130 and 143. CircleCI's automatic reruns retry every failed workflow, whatever its exit code. So on a rerun the controller job first runs ci-line gate, before the image build. When the ticket's checkpoint shows a stop (what exit 1 reported), the gate halts the rerun green: no build, no inference, no write. A first execution, a manual rerun, a retryable checkpoint, or any doubt (CircleCI or Jira unreadable, no ticket) lets the job continue as before. The webhook job needs no gate: its event check already runs before the build and ignores stopped tickets (exit 3).

Configuration

ci-line.config.ts, at the repository root, holds every repository value. Defaults exist only for generic values.

import { defineConfig } from "@cmflow/ci-line";

export default defineConfig({
  github: { repository: "Owner/name", repositoryId: 123 },
  git: { productionBranch: "production", targetBranch: "main" },
  circleci: {
    projectSlug: "gh/Owner/name",
    projectId: "00000000-0000-4000-8000-000000000000" /* the project UUID */,
    buildWorkflow: "build"
  },
  jira: { readyStatusId: "10001", jql: "project = KEY AND labels = ai-ready ORDER BY created ASC" },
  candidate: {
    allowedPaths: "^(?:app|test)/",
    protectedPaths: "(^|/)(AGENTS\\.md|tsconfig\\.json)$|^\\.circleci/",
    applicationPaths: { pattern: "^app/", label: "`app/`" },
    sharedPaths: "^app/shared/"
  },
  checks: {
    install: ["npm", "ci"],
    typecheck: ["npm", "run", "typecheck"],
    lint: ["npm", "run", "lint"],
    unit: { workspaceScope: "@scope", script: "test:agent" },
    functional: []
  },
  litellm: { baseUrl: "https://gateway.example/v1" },
  profiles: {
    pstack: {
      qualifierModel: "<model>",
      builderModel: "<model>",
      reviewers: [
        { name: "correctness", model: "<model>", prompt: "Review correctness, regressions and security boundaries." },
        { name: "acceptance", model: "<model>", prompt: "Check every acceptance criterion against the diff and the evidence." }
      ]
    }
  }
});

| Section | Required | Defaults | | --------------------------------------------------------------------------------------------------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | github, git, circleci, jira, candidate, checks, litellm, profiles | yes | jira.nominationLabel ai-ready, waitingLabel ai-awaiting-input, stateProperty ci-line.workflow; litellm.api openai-completions | | checks.generated, checks.functionalPaths, checks.coverageConfigs, checks.unit.helperPaths, checks.functionalStack | no | no generated-file normalisation, no functional stack (functional checks then refuse to run) | | candidate.applicationPaths, candidate.sharedPaths | no | none: no JS→TS migration rule, no shared-code full validation | | agents.repositoryNote | no | no pointer to repository conventions in the agents' instructions | | agents.repositoryPolicy | no | no repository rules after the package policy (assets/policy.md) | | limits | no | 120 active minutes, 3 corrections, 3 clarifications, 3 command resumes | | execution | no | image ci-line-runtime:18.10.1, network bridge | | circleci.webhookConfig | no | .circleci/ci-line-review-webhook.yml: the only configuration file a webhook run may start from | | circleci.controllerJob, circleci.controllerWorkflow, circleci.webhookJob | no | ci-line-dev, ci-line-dev, ci-line-dev-webhook: the controller recognises its own jobs by these names | | templates | no | the package's assets/pr-template.md and assets/policy.md |

Every command validates the file before any network call, image build or inference. An invalid file stops the command with one line per invalid field. Credentials are refused in the file: they come from the environment (JIRA_*, GITHUB_TOKEN, CI_LINE_*).

The file is chosen with --config <path>, otherwise CI_LINE_CONFIG, otherwise ./ci-line.config.ts. Runtime paths come from CI_LINE_WORK_DIR (default .ci-line/state) and CI_LINE_PROFILE_DIR (default .ci-line/profiles, in the repository, never inside the installed package); LITELLM_BASE_URL overrides the gateway.

npx ci-line config          # validate and print the resolved configuration
npx ci-line --help          # every command; `npx ci-line run --help` for a command's options
npx ci-line --version

Episode limits and environment

Episode limits (limits, defaults): 120 active minutes, three combined correction/protocol attempts and three clarification rounds. Initial delivery, each new authorized human-review batch after publication, and each genuinely new CI incident have separate budgets. Internal reviewers, duplicate events, clarification and recovery retain the episode; lifetime metrics accumulate. There is no dollar cap; unavailable cost is null.

| Variable | Purpose | | --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | | JIRA_BASE_URL (or JIRA_API), JIRA_EMAIL, JIRA_API_TOKEN (or JIRA_TOKEN) | Jira; the email matches the token owner | | GITHUB_TOKEN or GH_TOKEN | Repository writes and authorized feedback reads, unless CI_LINE_IDENTITY_MODE=service (GitHub App: CI_LINE_GITHUB_APP_*) | | CI_LINE_STATE_SIGNING_KEY | Stable secret signing the checkpoint, at least 32 bytes | | CI_LINE_LITELLM_API_KEY | Inference access | | LITELLM_BASE_URL | Optional override of litellm.baseUrl | | CI_LINE_CIRCLECI_API_TOKEN | Read access to the project's jobs, logs and artifacts | | CI_LINE_CONFIG, CI_LINE_WORK_DIR, CI_LINE_PROFILE_DIR, CI_LINE_NPM_CACHE | Configuration file, evidence directory, profile directory, worker npm cache |

Explicit nonempty JIRA_BASE_URL / JIRA_API_TOKEN override JIRA_API / JIRA_TOKEN; nonempty GITHUB_TOKEN takes precedence over GH_TOKEN. Keep signing material stable: rotation requires explicit evidence-based recovery, never automatic adoption of invalid state.

Triggers and recovery

GitHub sends pull_request_review, pull_request_review_comment and PR issue_comment events. Only a submitted review, a reply created inside a review thread, or a created comment carrying a /ci-line command wakes the controller; edits, deletions, dismissals and plain comments are read at the next wakeup (a review of eight comments starts one job, not nine). CircleCI sends workflow-completed. The CircleCI App receiver checks out git.targetBranch and executes its verified configuration revision (circleci.webhookConfig). Both entry points share serialization. Events only wake work: APIs and signed state confirm nomination, permissions, canonical PR/current head and pending operations. A short ci-line body hint limits jobs; only application build completions pass the prefilter, preventing receiver/controller callback loops. The hint can admit unrelated events, which runtime checks discard. General PR comments need the ci-line label or another occurrence of ci-line in the event body; publication adds the label without replacing existing labels. If the label is removed, a comment without that hint cannot wake the controller. Idle/irrelevant/duplicate events stop before Docker or inference.

New PRs opt into CI repair through signed ciMonitoring; old benchmark PRs are not adopted. Confirmed current-head failures receive an acknowledgement and one incident budget until the required workflow and relevant statuses are green. Stale/cancelled/foreign results cannot start incidents. Failing-step logs are bounded, redacted and untrusted. Only one review or repair episode runs at a time; other feedback remains in GitHub for catch-up.

A GitHub or Jira read that fails transiently (network, 429, 5xx) is retried in the process up to three times, honouring Retry-After / X-RateLimit-Reset (at most a minute); writes are sent once and rely on their markers. Within one process the owned pull request list and each checkpoint are read once until a write changes them; the ticket, its replies and the heads checked before a publication are always reread. Transient delivery/status failures and pending writes get at most two native workflow reruns, preserving event, checkpoint and budget. Exhaustion, uncertain execution, human edits or a manual handoff require explicit one-shot recovery; no periodic fallback exists. reconcile is a manual command, not a scheduler.

For an interrupted read-only review qualifier, the serialized controller job offers the explicit recover-review command. The operator must identify and attest the canceled source job and the expected ticket, PR, review, head, branch, revision and signed run ID. The controller verifies the checkpoint, canonical work, job and logs before resuming, preserves consumed budgets and records unknown interrupted cost as null. Historical checkpoints do not bind run IDs to CircleCI jobs, so this attestation relies on the operator's verified correlation; do not use it when the source is uncertain or another controller may still be active. The command cannot recover a builder or reset a checkpoint.

Taking up a ticket again

Launching the controller yourself is the decision to take a ticket up again, so the CircleCI job does it by default (CI_LINE_RESUME_HANDOFF, true unless set to false). It applies to run on a ticket and to reconcile --event review --pr N on a named pull request; wakeups by webhook never do it.

  • A ticket whose last run ended in a manual handoff (for example a protected file refused) is otherwise skipped by every automatic wakeup, and a reconcile that finds nothing says why on stderr. With the resume, the controller reopens the checkpoint as published, drops the stale CI episode, renews the budget and records what was reopened in resumedHandoff.
  • It rereads the Jira ticket and its comments. Human comments or edits since the last qualification (the controller's own marked comments do not count) are developed on the existing branch, together with the unprocessed review comments of the pull request, and a red branch CI opens a new CI episode.
  • It does not reopen a ticket with an interrupted operation, a pending publication or reply, or no published pull request, and it still refuses when someone else pushed to the branch.

When a human must act

Every stop that needs a human is said on the pull request in French, in one shape (« action humaine requise »: reason, what was verified, how to continue, run):

  • in each review thread that triggered the run, with « répondez dans ce fil » or /ci-line manual;
  • otherwise as one pull request comment, with « corrigez la cause puis /ci-line resume » (a CI-repair interruption uses the same message). Stops that the controller retries by itself post nothing.

The pull request description starts with an « Actions humaines attendues » block, rewritten from the checkpoint at the end of every run that changed it: a stop to resume, or functional questions waiting on Jira, otherwise « Aucune action humaine attendue ». Text outside the block is kept. The Jira handoff comment links the pull request. A line comment is possible only on lines of the pull request diff: a refused protected file is never pushed, so it is named in the message instead.

Human commits on a Ci-line pull request

A commit a human pushes on the branch between two runs is adopted at the next wakeup (a review, a command, an operator launch, or the completion of the application build of that head) when it only adds to Ci-line's last head (no rewritten history), every changed file is allowed for a candidate (no protected configuration, CI, instructions or lockfile), and the comparison is complete. The run then continues from the human head: its content and author are kept, and Ci-line's next commit sits on top of it. When git.productionBranch moved since the last publication, the whole branch, human commits included, is replayed on the new production like any Ci-line candidate (new SHAs, same content; a conflict stops the run); the checkpoint keeps the last five adoptions in adoptedHumanCommits. A rewritten history, a refused file or a comparison too large (300 files) stops the run in a manual handoff naming the cause. A push made while a run is working still stops that run at the publication check: Ci-line never force-pushes or merges. An adopted head is not claimed as verified; the next publication runs every check and review on the combined tree.

Commands in pull requests

A repository writer (write, maintain or admin permission) steers Ci-line from an owned pull request with a comment whose first non-empty line is a command; free text may follow. Commands are read through the GitHub API with the author's permission checked, never from the webhook body. A command is acknowledged once and never assessed as an observation, even on a ticket that lost its nomination.

| Command | Effect | | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | /ci-line fix | Process every unresolved observation now, as one batch (use it after plain comments, which do not wake the controller) | | /ci-line stop | Add the ci-line-paused label: review and CI wakeups start no work on this pull request | | /ci-line resume | Remove the pause and, for a ticket stopped in a manual handoff, take it up again exactly as CI_LINE_RESUME_HANDOFF does. Refused, with the reason, when an operation is pending or interrupted, when the ticket lost ai-ready, or after limits.commandResumes (3) command resumes on the ticket: further resumes need an operator launch from CircleCI | | /ci-line manual | In a review thread: a human handles it; its observations are marked processed without assessment. Outside a thread it has no effect |

An operator launch from CircleCI is not blocked by the pause. The ci-line-paused label must exist in the repository.

Checks and trust boundary

Workers receive no Jira/GitHub/CircleCI/deploy credentials or host sockets. Only the dedicated inference key is candidate-facing. Trusted configuration/publication remain outside writable candidate paths. Workers use a read-only root filesystem, dropped capabilities and explicit mounts; reviewers cannot modify source. Host network policy must deny metadata/private management endpoints: Docker's default bridge alone does not.

Prepare dependencies with credential-free npm ci. When CI_LINE_NPM_CACHE is set (both CircleCI jobs set it), writable worker containers share that job-scoped directory as their npm cache; CircleCI restores and saves it, keyed on package-lock.json. It holds no credential, read-only reviewers do not get it, and npm ci still checks every cached package against the frozen lockfile integrity, so a bad entry is downloaded again. Both machine jobs also use Docker layer caching for the worker image. Builders map each acceptance criterion to real candidate-relative files and check evidence; only unavailable functional services justify deferral. Strict role JSON lives outside candidate source. Focused iterations select validated impacted/changed specs from the actual diff plus qualification; unknown ownership falls back to full checks. Model command strings never become controller commands.

Each round retains policy/migration checks, TypeScript, lint and both reviewers; complete required coverage and functional checks run before every push. Touched application/test JavaScript migrates to TypeScript with old files removed; necessary tooling/generated exceptions need evidence. Reviewers substantiate documentation, typing, tests and scope. Generated-file normalization (checks.generated) removes only proven unchanged generation drift under identical stable inputs; real exports and intentional edits remain. Later mutations invalidate checks/reviews and require bounded revalidation. Required functional services run candidate code in a separate credential-free network; missing services block publication.

Publication rechecks requirements, ownership/head, evidence and target. It preserves human commits/readiness and cannot merge, deploy, add [MEP] or weaken protected policy. Signed state/operation markers prevent duplicate writes. Historical property/marker readers remain for existing data and loop prevention, but historical candidate branch names are not supported. Invalid state is quarantined per ticket without re-signing/resetting it; authentication/network failures remain errors. Signatures cannot detect rollback to an older valid same-ticket checkpoint: restrict property writes.

Progress shows stages, elapsed time and minute heartbeats, never reasoning/prompts/secrets. Run evidence lives under CI_LINE_WORK_DIR.

Commands and benchmarks

npx ci-line profiles
npx ci-line preflight
npx ci-line run --ticket KEY-1234 --event jira
npx ci-line reconcile --event review --work-source all --pr 123
npx ci-line snapshot --ticket KEY-1234 --base "$PRODUCTION_COMMIT_SHA" --out /absolute/path/case.json
npx ci-line benchmark --case /absolute/path/case.json --profiles openspec-ponytail,pstack,superpowers

In this package: npm run build, npm run check (TypeScript), npm test. The specs use the example configuration of src/__mock__/config.ts and read no file outside the package.

Without --profile, the first profile of the configuration is used.

A benchmark case is { snapshot, baseSha, snapshotDigest }, produced by snapshot. Use identical immutable requirements/base, fresh workspaces, gates, models and limits unless deliberately varying one dimension. Benchmarks never publish to Jira/GitHub and need no plan approval. Record setup/runtime/profile instruction hashes, models, outcomes, retry causes, active duration and available cost/usage; unknown is not zero. Profiles load pinned method instructions, not complete upstream plugin hooks. Do not attribute combined policy/model changes to one method.

In CircleCI, benchmarks run through from-env with CI_LINE_COMMAND=benchmark, CI_LINE_CASE and CI_LINE_PROFILE. Generic snapshot/report support remains; historical ticket payloads and completed incident-release commands are absent. Explicit live --new-run comparisons require authorization, nomination and an absent primary checkpoint; native retries resume only their signed originating pipeline, never reset another run.

Build the worker from the installed package with docker build -f node_modules/@cmflow/ci-line/assets/docker/Dockerfile -t ci-line-runtime:18.10.1 node_modules/@cmflow/ci-line/assets/docker. Optional smoke: CI_LINE_DOCKER_SMOKE_IMAGE=ci-line-runtime:18.10.1 npx vitest run src/execution/execution.spec.ts. For a corporate CA use BuildKit --secret id=corporate_ca,src=/absolute/path/public-ca.pem; TLS stays enabled.

Local fixtures alone do not prove live access: a repository keeps its own live evidence.

Live Oh My Pi output

Agent stdout (JSONL) and stderr are relayed live to the controller stderr shown in CircleCI. This includes thinking/messages actually emitted by the provider and tool events; no reasoning is synthesized when the provider emits none. Existing JSONL/stderr artifacts and final completion validation remain unchanged.

The literal inference API key is masked, including across transport chunks. This is not general secret detection: raw output can contain source, prompts, tool results and other sensitive content, and encoded keys or keys split across separate JSON events are not covered. Treat CircleCI logs with the same access restrictions as agent artifacts.

Incomplete publication

When the code is developed but verification cannot finish, the controller publishes it instead of stopping empty-handed: at the correction limit with a developed candidate, or when the functional stack (Cucumber) cannot run after the focused checks and both reviews passed. The draft PR is labelled ci-line-incomplete, its title starts with [Incomplet], and its description opens with the points that did not work. The Jira ticket receives the same list. It happens only for a first publication (no PR yet), under the same file allow-list as a verified push, and never in a benchmark. A later verified publication removes the label and the prefix.

Protected configuration and coverage thresholds

A candidate cannot change a file matched by candidate.protectedPaths (typically the check configuration, CI, agent instructions and ci-line.config.ts itself), so that no check can be weakened to pass. One case is not the agent's doing: a module with coverage.thresholds.autoUpdate has its thresholds rewritten by vitest when its coverage grows. When the only difference in a file matched by checks.coverageConfigs is a threshold number that went up, the controller puts the file back to its production content and lists it in the checks as thresholdNormalization. Any other difference (a lower number, an exclusion, autoUpdate switched off, a changed line) stays a protected change and ends the run in a handoff. The release build commits the new thresholds.

Coverage errors

The focused checks run without coverage, and a module's branch-coverage threshold is global, so only whole modules run with coverage can show it. When the last cycle failed such a threshold, the next cycle runs the whole affected modules with coverage right after the focused checks and before the reviews, so the correction is verified before the expensive part. A failed coverage check reports the threshold error and only the files below full coverage, with their uncovered lines.

Where the model spend goes

The strong model writes the first build and answers reviewer findings, CI failures and human feedback. A profile may also set correctionModel: a correction that only answers failed checks (lint, coverage, acceptance evidence) then goes to it, and after two such rounds that did not fix the failure the next one escalates to the strong model. It is off by default: enable it only after a benchmark comparison of the same tickets with and without it, because its quality on these corrections has not been measured. Reviewers receive the diff and the check results and are told not to run test suites.

Where the plan of a ticket lives

The Jira ticket is the source of truth and carries no OpenSpec. The qualifier derives the plan (proposal, design, tasks) from it and the controller keeps it in the signed checkpoint. The plan is neither posted on Jira nor committed: a nomination already authorises the work. A reviewer sees it in the pull request, in a "Plan interne" section of the report block: at most 8 tasks of 160 characters and 2 500 characters in all, each with the status the builder reported (done, partial, not done, or not reported). The statuses are informational: a missing or malformed one never blocks the run or costs a correction. In an incomplete pull request, the tasks that are not done join the unfinished points.