Scan your whole stack
From OX Research Newsroom
Are you using @mindlace/chreode?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.4.2
@mindlace/chreode was last scanned on 29 Nov 2026 at version 0.4.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.2 LATEST | 29 Nov 2026 | No rules fired |
| 0.4.1 | 11 Nov 2026 | No rules fired |
| 0.4.0 | 8 Nov 2026 | No rules fired |
| 0.3.0 | 8 Nov 2026 | Not shown |
| 0.2.0 | 12 Oct 2026 | Not shown |
Findings for v0.4.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.4.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A chreode (Waddington) is the canalized valley a developing system rolls down: perturb it and it returns to the path, because the landscape is shaped to select for it. Carcinization is the same idea seen from the outside — independent lineages converging on the same form because the selective pressure is consistent.
Agent-written software needs both. An agent will produce something for any prompt; whether the codebase drifts toward the shape you want depends on whether the feedback it receives is deterministic, selective, and unavoidable:
| tail, no running a hand-picked subset and calling it green, no merging
without the gate's status.chreode packages a working implementation of that landscape, extracted from a
production codebase where agents write most of the code. It is a set of
layers; the gate (chreode signoff) is the terminal one, and it is only as
good as the layers feeding it (lint rules, e2e coverage, visual checks, the
guardrail hooks). This spec covers the core — the gate and its plumbing — and
names the later layers so the structure has room for them.
npm install --save-dev @mindlace/chreode
Requires Node ≥ 22.12, git, and an authenticated gh.
Add chreode.config.ts at the repo root (see below), then:
npx chreode signoff # merge origin/main, run what changed, push, post the status
npx chreode signoff --dry-run # merge, then print the plan and stop
npx chreode check # run the steps your changes need, without merging or pushing
npx chreode run -- <command> # run one heavy command through the test queue
npx chreode wait <job> # watch a job again; its stored output is printed from the start
npx chreode cancel <job> # cancel a job
npx chreode jobs # this worktree's active jobs; --all lists every job
npx chreode status # what is running and what is waiting, with each wait reason
npx chreode protect # require the status on main (idempotent); --dry-run previews
npx chreode flake-report # report logged flakes to GitHub issues (signoff does this itself)
npx chreode burn-in --base <sha> --head <sha> # run changed test files N times, retries off
npx chreode timing-check # fail on timing crutches the branch adds to tests
npx chreode install # set a repo up: wrap-scripts, hook install, then protect
npx chreode wrap-scripts # send package.json scripts that run a mediated program through the queue
npx chreode hook install # add the chreode hooks to .claude/settings.json
npx chreode hook # the hook itself; Claude Code runs it
npx chreode scheduler report # throughput, waits and reruns, from the scheduler's log
npx chreode scheduler replay --policy <name> # compare a policy with the recorded decisions
npx chreode scheduler stop # stop the scheduler
Wire them into package.json as "signoff": "chreode signoff" and
"branch-protection": "chreode protect". Run signoff instead of pushing: it pushes for you.
Signoff is a job: the command submits it and watches it, and the work carries on if the
command is killed.
chreode signoffgh auth status ok, git config user.email set.origin/<baseBranch> (unless --no-merge). A conflict exits 1 and leaves the
merge in progress. When the merge changed the branch, afterMerge runs and the config is
reloaded, so a merged-in chreode.config.ts governs the rest of the run.--base, else the nearest commit on the branch carrying a refs/notes/chreode
note (the last successful signoff), else the merge-base with origin/<baseBranch>.package.json / package-lock.json bump, which fires versionBumpTriggers) → steps
(when, if, --skip, supersededBy). The plan and every skipped step's reason are printed.CHREODE_SIGNOFF=1.<statusContext> = success
naming the signer and disclosing any --skip'd steps, stderr waived by --allow-stderr,
and base=<ref> for --base; write the note. A partial run (any of those three) writes
no note, so it never becomes the incremental base: the next signoff diffs from the last
full one and re-plans what was skipped.| Flag | Env | Effect |
|---|---|---|
--full |
CHREODE_FULL=1 |
Ignore the incremental base; run every step |
--dry-run |
Merge and run afterMerge, then print the plan and stop without running steps; add --no-merge for a side-effect-free look |
|
--no-merge |
CHREODE_NO_MERGE=1 |
Do not merge origin/<baseBranch> first |
--no-push |
CHREODE_NO_PUSH=1 |
Do not push (the commit must already be on origin) |
--allow-stderr |
CHREODE_ALLOW_STDERR=1 |
Downgrade policed stderr to a warning (named in the status; no note) |
--base <ref> |
Diff from this ref (named in the status; no note) | |
--skip <label> |
Skip a planned step (repeatable; named in the status; no note) | |
--config <path> |
Config file (default <repo root>/chreode.config.ts) |
|
--json |
Print the run report as JSON: the exit code and one result per step | |
--wait <duration> |
Stop watching after this long (30s, 5m, 2h, 1d) and exit 75; the job carries on |
|
--no-detach |
Do the work in this process instead of submitting a job |
Exit codes: 0 signed off, already signed off, or dry run; 75 still pending when --wait
ran out; 130 cancelled; 1 anything else, a lost job included.
The scheduler holds the lock at $TMPDIR/chreode-signoff.lock while it lives. A run that
cannot reach a scheduler takes the same lock and runs its steps one at a time, waiting up to
an hour. CHREODE_LOCK_PATH moves the lock and, set by itself, also turns the scheduler off;
it is for test isolation only. CHREODE_NO_SCHEDULER=1 and a set CI turn the scheduler off
as well. The rest is in docs/scheduler.md.
chreode protectPUTs branch protection on <baseBranch> requiring <statusContext> (strict), with admins
enforced, linear history, PRs required (0 approvals, stale reviews dismissed), and PATCHes
the repo to squash-only merges that delete head branches. Override either payload under
protection in the config. --repo owner/name targets another repo; --dry-run prints the
payloads.
Every chreode repo on the machine shares one scheduler. signoff, check and run each run
as a job, and the steps of a job ask the scheduler for a turn. The scheduler runs work side by
side when the machine can carry it. Setting a repo up, the commands, tuning, and what to do
when it goes wrong are in docs/scheduler.md.
A test that fails and then passes on retry is a flake, and a flake is a bug. So is a step that fails alongside other work and passes when rerun alone. chreode records each one, files it as a GitHub issue, and fails signoff when the same flake keeps coming back. The doctrine and the fix playbook are in docs/flakes.md.
1. Record. Give your runners at least one retry locally and register the reporters. They record a
test that passes on a retry, so with retries off no retry flake is recorded.
A load flake needs no retry setting. Both take
{ kind?, projects? }: kind (a string, or (project) => string) is the issue-title bucket
(default 'e2e' for Playwright, the project name or 'unit' for vitest); projects limits
recording to those runner projects.
// playwright.config.ts
export default defineConfig({
retries: 1,
use: { trace: 'retain-on-failure' }, // 'on-first-retry' records no trace of the failed attempt
reporter: [['list'], ['@mindlace/chreode/reporters/playwright']]
});
// vitest.config.ts (reporters are root-level only; keep 'default' explicit, see below)
import VitestFlakeReporter from '@mindlace/chreode/reporters/vitest';
export default defineConfig({
test: { retry: 1, reporters: ['default', new VitestFlakeReporter()] }
});
Events go to .chreode/flakes.jsonl (signoff tells each step the absolute path in
CHREODE_FLAKE_LOG, and the sha under test in CHREODE_HEAD). Add .chreode/ to
.gitignore; when flakes is configured, signoff refuses to run otherwise. Registering the
reporters without a flakes block just accumulates events in .chreode/flakes.jsonl, unreported.
Filed issues carry the Playwright trace's local path, valid until the next Playwright run wipes
test-results/, not the trace itself. playwright and vitest are optional peer
dependencies: the reporters import only their types.
2. Ledger. Add flakes: {} to the config. After the steps, pass or fail, signoff gives
each flaking test one open issue labelled flake (the label is created if missing) and adds an
occurrence comment each time it recurs. At threshold occurrences (default 3) signoff fails,
any run that sees that flake again fails, listing the issue URLs in its failure output (no
commit status is posted), until the flake is fixed or its issue is labelled snoozeLabel
(default flake-snoozed). A run that sees no flake events is silent. A GitHub error is a
warning: the events not yet recorded stay in the log for the next run.
chreode flake-report runs the same report outside signoff and exits 1 on escalation.
3. Burn-in. burnInStep({ when, timeoutMs? }) adds a step that runs every test file changed since the base
repeats times with retries off, so a new flake fails before it lands rather than after three
victims. Pass your test steps' triggers as when, and place it after them. Its stderr is policed like a
test step's, so it needs the same stderrAllowlist entries:
import { burnInStep, defineConfig } from '@mindlace/chreode';
export default defineConfig({
steps: [
{ label: 'test:unit', run: 'npm run test:unit', when: ['unit'], policeStderr: true },
{ label: 'test:e2e', run: 'npm run test:e2e', when: ['e2e'], policeStderr: true },
burnInStep({ when: ['unit', 'e2e'] }) // timeoutMs defaults to 10 minutes
],
flakes: {}, // threshold: 3, snoozeLabel: 'flake-snoozed', playbookUrl: chreode's docs/flakes.md on GitHub
burnIn: {
repeats: 5, // default
maxFiles: 12, // default; the overflow is listed, never silently dropped
runners: [
{
name: 'e2e',
match: 'e2e/**/*.spec.ts',
ignore: 'e2e/helpers/**',
// Pin a project: --repeat-each multiplies across every project otherwise.
command: (files, n) =>
`npx playwright test --project chromium --repeat-each=${n} --retries=0 ${files.join(' ')}`
},
{
name: 'unit',
match: 'src/**/*.spec.ts',
// vitest has no --repeat-each: return one invocation per repeat.
command: (files, n) =>
Array.from({ length: n }, () => `npx vitest --run --retry=0 ${files.join(' ')}`)
}
]
}
});
A changed file goes to the first runner that matches it and does not ignore it; files no
runner takes are not burned in, and deleted files never are. Commands run from the repo root
with inherited output; the first failure fails the step and names the files and the command.
4. Timing check. timingStep({ when, timeoutMs? }) adds a step (label timing, stderr policed)
that fails when a branch adds a timing crutch to a test. Place it with the test steps; it runs only
when there is a range to check. It reads the lines added in origin/<baseBranch>...HEAD, so legacy
code never blocks a merge and an edit that only reformats a line is quiet. It runs no tests. Four
rules, each with a stable id:
fixed-wait: a new waitForTimeout(, a setTimeout promise (including an awaited
node:timers/promises setTimeout(<ms>)), or a sleep(/delay(/wait(<n>) helper call.
Calls under fake timers are not flagged.timeout-raise: a test or config timeout set higher than the value it replaces, or set where
none was removed. A type annotation (timeout: number) sets nothing and is not flagged.retries-raise: retries/retry raised above both the old value and 1. Retries up to 1 are
never flagged, so turning on flake telemetry (retries: 1) needs no exemption; raising retries
above 1 is flagged. retry: false counts as 0; retry: true (unlimited) is flagged.skip: a new unconditional test.skip(, it.skip(, describe.skip(, test.fixme(, xit( or
xdescribe( (a literal true condition counts as unconditional). A conditional platform gate
such as test.skip(browserName === 'webkit', '…') is not.Lines are compared per hunk, so moved code counts as new: a renamed or moved file is read as added
in full, and a block moved far within a file reads as removed in one place and added in another.
Legacy crutches in moved code are checked again. Defining a sleep/delay helper in test code is
itself flagged, at the definition as well as at each call.
import { defineConfig, timingStep } from '@mindlace/chreode';
export default defineConfig({
steps: [
{ label: 'test', run: 'npm test', when: ['test'], policeStderr: true },
timingStep({ when: ['test'] }) // timeoutMs defaults to 10 minutes
],
timing: {
// match: test files and test configs; the default covers *.spec.*, *.test.*, e2e/, tests/, test/
perf: ['**/*.perf.*', '**/perf/**', '**/*.bench.*', '**/bench/**'], // default; never checked
disable: [], // rule ids to turn off: 'fixed-wait' | 'timeout-raise' | 'retries-raise' | 'skip'
allow: [
{
path: 'e2e/legacy/**',
rule: 'fixed-wait',
pattern: /waitForTimeout\(250\)/, // optional: narrows the entry to matching lines
reason: 'animation has no observable end state' // required
}
]
}
}); Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.