Metadata-Version: 2.5
Name: crissp
Version: 0.2.3
Summary: C.R.I.S.S.P.: a way of working for a product owner, Claude and its agents in one repository, with the guards that prove it
Project-URL: Homepage, https://github.com/richardedens/crissp
Project-URL: Source, https://github.com/richardedens/crissp
Project-URL: Issues, https://github.com/richardedens/crissp/issues
Project-URL: Changelog, https://github.com/richardedens/crissp/blob/main/CHANGELOG.md
Author: Richard Edens
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
License-File: crissp/look/LICENSE-figtree.txt
Keywords: agents,backlog,claude,claude-code,mcp,release-gate,tdd,way-of-working
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# C.R.I.S.S.P.

[![Works with Claude Code](https://img.shields.io/badge/works_with-Claude_Code-D97757?logo=claude&logoColor=white)](https://docs.anthropic.com/en/docs/claude-code)
[![Works with Mistral Vibe](https://img.shields.io/badge/works_with-Mistral_Vibe-FA520F?logo=mistralai&logoColor=white)](https://github.com/mistralai/mistral-vibe)

**The agentic SDLC framework for Claude Code and Mistral Vibe: AI colleagues build, guards prove, a person decides.**

**Works with Claude Code and Mistral Vibe.** Both get the same crissp tools (`brief`, `stage`, `backlog`, `run`, …),
the same agreement and the same UX team: use the one you have, or both on the same project.

[![PyPI](https://img.shields.io/pypi/v/crissp)](https://pypi.org/project/crissp/)
[![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
[![Python 3.12+](https://img.shields.io/badge/python-3.12%2B-blue)](pyproject.toml)

C.R.I.S.S.P. (Consistent · Repeatable · Innovative · Secure · Scalable · Programming) turns one repository into a team:
**AI colleagues** that plan, build, review and test the product with you, **guards** that prove every change, and
**you**, the product owner, who decides what gets built, what is accepted and what goes live. The whole software
development lifecycle (SDLC), from the first observation to the release that delivered it, runs in plain files next to
the code, so every step can be traced and every claim can be checked.

![The agentic SDLC of C.R.I.S.S.P.: AI colleagues build, guards prove, a person decides](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/agentic-sdlc.svg)

```bash
uvx crissp@latest init --product "My product"
```

## Your AI colleagues

Each colleague has a clear job and clear limits. None of them can declare its own work done, and none of them can
release.

| Colleague | What they do | What they never do |
|---|---|---|
| **Claude, the lead** (your main Claude Code session) | Reads the agreement first in every session. Keeps the backlog (findings, decisions, epics, features, items), builds test-first, hands parts to agents, reviews and merges their work, runs the checks, writes the release notes and reports to you per item | Pushes, deploys or publishes without your explicit yes; reports green what did not run; moves work to *done* |
| **Agents** (Claude Code subagents) | Take one part each (a backend, a frontend, a chart) in their own git worktree, write the failing test first, make it green, run their part's suite and report | Edit the backlog, the release notes or the version; touch secrets or production |
| **The UX team** (five personas and a moderator) | Walk the running product on a laptop and a phone: an engineer, someone who rarely uses a computer, a student on a phone, a product owner, and a UX expert who moderates. They review, debate each other, and turn it into advice: *must · should · could* | Decide anything: their advice waits for your verdict |
| **The designer** | Makes a design on request: a mockup of the screen after the advice, shown **next to the screen as it is now**. One click on *Approve* (with a remark, if you like) makes it a backlog item | Change the product: a design is a proposal |
| **The crissp tool** (an MCP server) | The team's shared memory and hands: answers Claude with exactly the lines it needs (`brief`, `backlog`), writes the backlog in its own format under the next free number, starts the checks | Deploy, or mark work as done |

**And you, the product owner**: you take the decisions (each comes as options with a recommendation), ask for UX
rounds, accept work, push and deploy. Every change to production asks you y/N.

## The guards: proof, not promises

Guards are plain scripts, with no AI in them. They decide what is green.

- **Test first**: every item starts with a test that fails without the change. New code is fully covered, and the
  **coverage gate** only lets coverage go up.
- **`crissp check`** runs only what a change can affect (the impact plan), then moves the **release certificate** to
  exactly this commit. **`crissp check-all`** is the full run.
- **The release gate** lets a deploy through only with a green full run at most 7 days old, plus a green check for
  every change since, on the commit being deployed. It has no bypass.
- **Secrets** never go into git, an image, a log or a chat. Only their presence is ever printed.

### Guardrails for AI agents

An agent never grades its own work: every rule it works under is enforced by a check, never by prose alone. A project
names its Python (`python` in `suites.json`) and its image policy (`audit.image_policy`: `dhi.io` first, then the
official images, every image pinned by digest; the crissp tool `images` says which one to use). Then each layer holds
what it can, and says what gets past it:

| Layer | Holds | Gets past it |
|---|---|---|
| `crissp guard` (Claude Code's PreToolUse hook and deny rules in `.claude/settings.json`, Vibe's pre_tool hook in `.vibe/hooks.toml`) | An agent's own edit of crissp's files (the backlog, results, baselines, approvals, `crissp/CRISSP.md`, the git hook, the skill, the chart's templates) is refused, with the crissp tool to use instead; the product's gate files and `crissp/` ask the product owner first; `docker compose down -v` and `docker rmi` ask too | A script the agent writes that writes the file |
| The lint itself | Suppression comments do nothing: ruff runs with `--ignore-noqa` and crissp's required rules, ESLint with `--no-inline-config`, stylelint with `--ignore-disables`, coverage without its pragma. What is off is off in `crissp/testsuite/lint-exceptions.json` only, approved | — |
| The git hook (`.githooks/pre-commit`) | A commit that changes crissp's own files, names another Python, uses an image off the policy, or loosens a gate (lint, test, scan or CI settings, a new `# noqa`, `eslint-disable`, `@ts-ignore` and the like, a looser baseline) | `git commit --no-verify` |
| `crissp check` and the full run | Every loosened gate since the last green state, and the same rules, keep the certificate red: no deploy. They test a fresh checkout of the commit, so an uncommitted file or a result an agent wrote counts for nothing; a failed step says its one next action, and after two failures to stop | Nothing that runs, but an agent with a shell could forge an approval or the certificate in its file |
| The tripwire (in `crissp check`) | What the agents did, read from their own Claude Code and Vibe session logs: `--yes` on a prompt, `--no-verify`, `core.hooksPath`, the engine by hand, `crissp@latest`, `sed -i` on a guarded file, `crissp approve`, `down -v`, `docker rmi`; each new one becomes a finding for the product owner, on the Activity page | A trick not known yet (it becomes a red-team test once seen) |
| The product owner's review | The pull request: `crissp/testsuite/approvals.json` names who approved what and why (CODEOWNERS and branch protection on your platform make the review required) | — |

A loosened gate waits for `crissp approve <file>... --why "..."`: it asks at the terminal itself (`/dev/tty`, a typed
`approve`), so an agent's own command cannot answer it, and it approves exactly the content it was shown. A baseline
may always get stricter. A changed crissp file is put back by `crissp repair --yes` (a file the chart does not have is
moved to `crissp/not-crissp/`, never deleted). `accepted-risks.json` and `lint-exceptions.json` hold only as the
product owner approved them; an accepted CVE in an image names that image (`image`), one entry per image, and many
acceptances with one copied reason accept nothing. A project without an image policy has the default one.

crissp's own suite proves this: a stand-in agent tries every known trick on a sample project, and each test names the
layer that catches it (`crissp/testsuite/tests/test_redteam.py`). On your machine, an agent with a shell can still
write a file by hand; CI on the pushed commit and the review of the pull request are the graders no agent reaches.

## See it

One local server (`crissp dashboard`, on 127.0.0.1) shows where the work is, the tests, the backlog board, the UX team,
the workers and what Claude is doing now, under one top bar (Stages · Tests · Backlog · UX · Workers · Activity ·
Sessions) in one dark look (a light theme is one click away). It never runs a test and loads nothing from the internet.

**Where the work is**: the six stages, Discover, Plan, Build, Verify, Review and Release, on the Stages page
(`/stages`), each with what is in it and whose move it is, read from the backlog, the checks, git and the UX team. Ask
Claude or Ask Vibe gives you the command that starts a session on that stage; every session also opens by saying the
stage and offering its help.
![The Stages page](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/stages.jpg)

**Ready to release?** The answer comes first: green, or which steps stop the release, each linked to its log. Then the
tests, the lint of the backend and the frontend, the security scans (CVEs, secrets in the git history, unsafe code,
the running app, licences), line and branch coverage, the coverage gate, the code quality ratchet and every step.
![The Tests dashboard](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/dashboard.jpg)

**And when it is not**: the failed steps, and what lint and the scans found in each part.
![The Tests dashboard when a run is red](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/dashboard-red.jpg)

**What Claude is doing now** (Activity): per session the question asked, what the orchestrator does at this moment and
for how long, and every agent it started, running ones first, each with its own current step. Read live from Claude
Code's own records on your machine; only what Claude sent to its tools.
![The Activity page](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/activity.jpg)

**The backlog board and how it moved**: epics, features and items, as Claude writes them through the crissp tool, and
above them every move: from where to where, when, and in which commit, or *not committed* yet. Each card says how long
it has stood in its column. Only you move work to done. The *UX: approved designs* epic fills itself when you approve a
design.
![The backlog board](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/board.jpg)

**The workers**: a parallel step's tests spread over what this machine has (CPUs, memory), worker by worker, live.
![The workers page](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/workers.jpg)

**The UX team's advice**: scores per persona, what they agreed on, where they disagree, and advice you answer with
*Agree · Disagree · Later*.
![A UX round's advice](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/ux-advice.jpg)

**The review screen**: one screen at a time, the ones that wait for you first. Its way from new to accepted as one
progress bar, the shot with the team's advice pinned where it is, next to the design, and one verdict bar at the
bottom (`1 2 3` to answer, the arrow keys to move on).
![The UX review screen](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/ux-review.jpg)

**Before and after, then approve**: what people see now (on a laptop or a phone) next to the designer's proposal, the
same size, with *Approve · Approve with a remark… · Again, with… · Reject* right under it. An approval becomes a backlog
item, and your remark is the first thing the builder reads in it.
![A design: before and after](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/ux-design.jpg)

**The map**: every screen of the product, found by a read-only crawl, the walks and your own E2E tests' screenshots,
each with its area, how it was found and its gaps: a screen no link reaches, or one no walk looks at.
![The UX map](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/ux-map.jpg)

**The jobs**: in a discovery round every persona tries their own jobs on the mapped screens and says per job *done*,
*hard* or *impossible*, and where they gave up. What cannot be done becomes a need you approve or reject.
![The UX jobs: a discovery round](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/ux-jobs.jpg)

**The team**: who they are, which device they use and what they look for, configured per product and edited in the Team tab.
![The UX team](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/ux-team.jpg)

**The rules**: what every screen must do, checked on each round and edited in the Rules tab.
![The UX rules](https://raw.githubusercontent.com/richardedens/crissp/main/docs/images/ux-rules.jpg)

<sub>The pictures show a demo project, a small sample shop made with `crissp init`. Its backlog and its moves,
test runs, workers, screenshots and map are real; the text of the UX rounds, the designs and the discovery round, and
the Claude session on the Activity page, are samples, because a real round runs on your own Claude login and costs
tokens.</sub>

## Start a project

```bash
mkdir my-product && cd my-product
uvx crissp@latest init --product "My product"     # git init, the agreement, the backlog, the configuration
claude                                     # ask it to fill in the <!-- CRISSP: … --> blocks with you
git diff && git add -A && git commit -m "CRISSP: adopt C.R.I.S.S.P."
crissp check-all && crissp dashboard
```

`crissp init` runs `git init` when the folder is not a repository yet, then writes:

- the agreement (`crissp/CLAUDE.md`, loaded by a short root `CLAUDE.md` in every Claude session);
- the backlog (`crissp/backlog/`), in plain Markdown next to the code;
- the product's parts (`crissp/testsuite/suites.json`) and its UX team (`crissp/uxsuite/`);
- a deployment template (`crissp/deploy/`: a Helm chart and Terraform);
- the release notes and the version;
- `.mcp.json`, so Claude Code starts the crissp tool, pinned to this version of crissp.
- `.vibe/config.toml`, so Mistral Vibe registers the same crissp tool with the same pin; when Vibe is installed
  (`VIBE_HOME`, else `~/.vibe`), init asks to add the folder to its `trusted_folders.toml` (`--yes` adds it), so the
  project-local config loads (F-24, F-28). It never trusts a folder you marked untrusted.

In an existing repository it adds only what is missing, and never overwrites a file. It never commits: you review the
diff first.

## Commands

| Command | What it does |
|---|---|
| `crissp init` | Brings a folder in: `git init`, the agreement, the backlog, the configuration, the deploy template, and the git hook that lints before every commit |
| `crissp check [--plan]` | Runs only what the changes since the last green state can affect, then moves the certificate to this commit |
| `crissp check-all` | The full run, with the coverage gate |
| `crissp deploy [--plan \| --cluster \| --cluster-plan]` | Deploys only behind the release gate; `--cluster-plan` shows what it would do and changes nothing |
| `crissp dashboard` | Where the work is in the six stages (`/stages`), the Tests dashboard, the backlog board, the UX team, the workers and what Claude is doing now (`/activity`) on 127.0.0.1 |
| `crissp ux [--list \| --status \| --shoot \| --round \| --propose]` | The UX team: screenshots of a walk, a round, a design |
| `crissp repair [--yes]` | Says what a project brought in earlier has out of place (old steps, the steps a newer crissp brings such as `quality`, `licenses` and `dast`, the UX suite's address, files in `crissp/uxsuite/`, missing template files, plain-path sources in `changes.json`, an older crissp pinned in `.mcp.json` or `.vibe/config.toml`, an older sessions section in `crissp/CLAUDE.md`, a missing `.vibe/config.toml` or an untrusted folder for Vibe, a missing `.githooks/pre-commit` or a `core.hooksPath` that is not set, template steps or the audit block missing from `suites.json`, an older `crissp==<version>` in any tracked file); `--yes` puts it in place, never deleting or committing. It also says when a scan of the project's own (bandit, gitleaks, Grype) does what a crissp step does, and recommends one. Run it after an update: `uvx crissp@latest repair --yes` (see *One version*) |
| `crissp hook` | The project's lint steps (`lint` and every `*-lint` step), as git runs them before every commit from `.githooks/pre-commit`; skipping it gets nothing past `crissp check` and CI |
| `crissp approve <file>... --why "..."` | The product owner approves a loosened gate, for exactly its content now, at their own terminal |
| `crissp guard` | The agents' pre-tool hook (Claude Code and Vibe run it; `crissp init` and `repair` put it in place) |
| `crissp mcp` | The crissp MCP server that Claude Code starts from `.mcp.json` |
| `crissp version` | Which crissp runs and from where, the version the project pins, the newest on PyPI, and every other `crissp` on PATH (`crissp --version` prints only the running one) |

## One version

A project runs one crissp: the `crissp==<version>` in its `.mcp.json`. That is the pin; everything else follows it.
`.vibe/config.toml`, the git hook, deploy scripts, the README and the agreement are copies that `crissp repair --yes`
keeps level with it (the hook reads it). To upgrade a project, in its folder:

```bash
uvx crissp@latest repair --yes     # moves the pin, and every copy of it, to the newest crissp
```

Then restart the crissp tools: in Claude Code `/mcp`, crissp, Reconnect (or a new session); in Mistral Vibe, restart
Vibe. A session started before the upgrade keeps the older crissp in memory; its tools now say so on every call and do
nothing until they are restarted.

- `crissp --version` prints the crissp that runs; `crissp version` also names the pin, the newest on PyPI and every
  other `crissp` on PATH.
- Every command warns, loudly, when the crissp that runs is not the one the project pins, or (in a terminal) older than
  the newest on PyPI. The dashboard restarts itself when an older crissp started it.
- Always `uvx crissp@latest …` or `uvx crissp==<version> …`: a bare `uvx crissp` keeps running the version uvx cached
  the first time. Right after a release, `uvx --refresh crissp@latest …` asks PyPI anew.
- A `crissp` installed with `uv tool install` or `pipx` stays at its version: `uv tool upgrade crissp` (or
  `uv tool uninstall crissp`, and use uvx).
- `repair` moves the pin up only: an older crissp says it is older and leaves the pin alone.
- `CRISSP_OFFLINE=1` stops the question to PyPI (it is asked at most once a day, and only in a terminal).

The framework itself is described in [crissp/CRISSP.md](crissp/CRISSP.md).

## Requirements

Python 3.12 or newer, git and bash, and [Claude Code](https://claude.com/claude-code) for the AI colleagues.
[uv](https://docs.astral.sh/uv/) runs the test tools. helm is needed to prove the deployment template; Terraform is
optional (its checks say "skipped" without it). The UX team's screenshots use Playwright under uv. The engine itself
uses only the Python standard library.

## Licence

Apache License 2.0: see [LICENSE](LICENSE) and [NOTICE](NOTICE). The bundled Figtree typeface is licensed under the
SIL Open Font License 1.1.
