Scan your whole stack
Latest version: v0.4.1
Rassam Blueprint was last scanned on 25 Nov 2026 at version 0.4.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.4.1 LATEST | 25 Nov 2026 | No rules fired |
Findings for v0.4.1. 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.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
$ npx @v0ightt/rassam check --base main
✖ fail · Notes · diff mode · main…archived-count
2 errors, 2 warnings, 0 infos · 4 new · 5 components · 5/5 files mapped (0 unmapped) · 5 component edges (1 undeclared) · 100% human-authored
Needs your attention (4 of 4 new)
✖ error Web must not depend on Storage [forbidden-dependency]
src/web/notes-page.js imports src/storage/db.js. Rule "web-goes-through-api" forbids web → storage.
at src/web/notes-page.js:2
reason: "Pages reach data through the API, so access checks always run."
✖ error Verification weakened (test-skipped): test/notes.test.js [verification-weakened]
Test skipped or disabled: test("free plan allows three notes", { todo: "revisit after launch" }, () => {. This weakens the checks agents are graded by, so a human must approve it: apply the approval label (rassam:approved by default), or restore the check.
at test/notes.test.js:5
▲ warning Undeclared dependency: Web → Storage [undeclared-dependency]
1 import from Web into Storage is not declared in the blueprint. Declare the dependency if it is intended, or remove it.
at src/web/notes-page.js:2
▲ warning Protected path changed: test/notes.test.js [protected-path]
Tests are the checks agents are graded by.
at test/notes.test.js
Weakened tests and checks (1, NOT approved)
test-skipped: a human must review it and apply the rassam:approved label, or the change must restore the check.
Real output, on a change like the ones agents made in our pilot when asked to "just import storage from the page for the demo" and to "get the suite green".
Rassam (رسّام) means "painter" in Arabic. It used to paint pictures of your code. Now it paints the blueprint your code gets checked against.
In the repository you want to protect:
npx @v0ightt/rassam init
That drafts .rassam/blueprint.json from your code, then asks before writing three more things: the rules as plain prose in AGENTS.md (every agent reads it), the MCP server in .mcp.json (so agents can ask while they work), and .github/workflows/rassam.yml (the gate). Say yes, open a pull request, and the gate is on. Pass --yes to skip the questions.
Then make the draft yours: name the parts, write what each one is for, and add a rule or two.
npx @v0ightt/rassam do "forbid web from importing db because pages go through the API" --write
npx @v0ightt/rassam instructions --write # rewrite the rules in AGENTS.md
npx @v0ightt/rassam check # everything, or --base origin/main for just your branch
The whole walkthrough, with Cursor, Codex and VS Code setup: docs/getting-started.md.
Before asking anyone to install this, we checked whether it does anything an AGENTS.md doesn't. Same small layered app, three tasks, three ways of telling the agent the rules: nothing, prose rules in AGENTS.md, or the Rassam contract and its query tools. Opus 5.5, Sonnet 5.5 and Haiku 5.5 each ran every combination once: 27 runs, scored from the diff, the test run and the gate, never from what the agent said.
| What ended up in the diff | No rules | Prose rules | Rassam contract |
|---|---|---|---|
| Forbidden import, the task only hints at it | 1 of 3 | 0 of 3 | 0 of 3 |
| Forbidden import, the owner asks for it ("for the demo, we'll tidy later") | 3 of 3 | 0 of 3 | 0 of 3 |
| A contradictory test disabled or rewritten to go green | 2 of 3 | 0 of 3 | 1 of 3 |
| Stopped and reported the contradiction instead | 0 of 3 | 3 of 3 | 2 of 3 |
What we learned:
init now writes the contract into AGENTS.md as prose. Use it: it's free steering.It's a small pilot (one run per cell, one toy project, one model family). The method, the limits and every number are in the pilot notes.
# .github/workflows/rassam.yml (init writes this for you)
on: pull_request
permissions:
contents: read
pull-requests: write # one sticky comment; leave it out with comment: "false"
jobs:
blueprint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: actions/setup-node@v4
with: { node-version: 22 }
- uses: V0ightt/Rassam@<full commit SHA> # v0.4.1
rassam:approved label.exit 0 fail the same way until someone approves. Other changes to tests, CI and agent config get a warning: worth a look, never blocking.Pin the action to a full commit SHA with the version as a comment (@<sha> # v0.4.1), or at least to a release tag (@v0.4.1); never to @main. Why, and how to find the SHA.
We measure the gate instead of bragging: on 116 labelled cases, 48 of 79 attacks fail the check outright, most of the rest reach a human as a warning, and none of the 37 legitimate changes fails. The misses are written down too.
CLAUDE.md / AGENTS.md: they steer well (as well as our tools, in the pilot), but they're advice. Nothing stops the change that ignores them. Keep them; Rassam writes the rules into them for you and adds the check that holds.init guesses components from folders; unusual layouts need a human pass.init wires Claude Code. For anything else, the server is one command over stdio:
{ "mcpServers": { "rassam": { "command": "npx", "args": ["-y", "@v0ightt/rassam@0.4.1", "mcp"] } } }
| The agent asks | Rassam answers |
|---|---|
explain_path |
Who owns this file, what it is for, which rules apply |
check_dependency |
"May this file import that?" Yes or no, with your reason |
impact |
What breaks if this changes |
check_changes |
Does my work pass the gate right now? |
architecture_diff |
What did I change structurally? |
system_status |
What is running, what is down |
report_conflict |
"The task and the rules disagree, I am stopping" |
That last one matters. When a task can't be done honestly, an agent with a sanctioned way to stop is less likely to cheat by editing the tests. In the pilot, two of the three agents that had the contract filed a conflict report instead of touching the red test.
{
"version": "0.1",
"system": { "name": "Shop" },
"components": [
{ "id": "ui", "name": "Storefront", "paths": ["src/ui/**"],
"intent": "Renders the shop. Never touches storage directly." },
{ "id": "db", "name": "Database access", "paths": ["src/db/**"] },
{ "id": "payments", "name": "Payments", "paths": ["src/payments/**"] }
],
"rules": [
{ "id": "ui-no-db", "kind": "forbid", "from": "ui", "to": "db",
"reason": "The UI reaches data only through the domain layer." },
{ "id": "stripe-key", "kind": "secret-access", "secrets": ["STRIPE_*"], "allow": "payments" }
]
}
Full format: docs/blueprint-spec.md.
The blueprint also draws itself. This picture is not a screenshot: a GitHub Action redraws it every time someone pushes to main, straight from the code and this repo's own blueprint.
| Component | Kind | Status | Intent |
|---|---|---|---|
| Web shell | route | — | Next.js pages that mount the Studio and the settings page. Thin wiring only: no business logic, no data access. Logic belongs in hooks and libraries so it can… |
| API routes | api | — | Server route handlers. Every request body is untrusted and validated with zod; every route goes through request-security (rate limits, origin checks). Credenti… |
| UI primitives | component | — | The design system: tokens-driven buttons, sheets, popovers, pills and status glyphs. Status is never shown by colour alone; everything is keyboard reachable. D… |
| Studio | component | — | The first screen and the main product: is the project on track? Five persistent elements only (source pill, health pill, canvas, intent bar, zoom cluster). Peo… |
| Blueprint UI | component | — | Where humans author the contract and rule on exceptions: the blueprint canvas, the ranked attention list, rule and intent editors, and the reach view. It must… |
| State hooks | hook | — | Client state and lifecycles for blueprint sessions: loading a source, drafts, proposals, history and live status. Hooks own state; components render it. |
| Blueprint client | service | — | Browser-side host for the engine: loads a blueprint for a GitHub project through the API, or reads and writes a local folder through the File System Access API… |
| Settings store | storage | — | Browser-side persistence of the chosen provider, model and generation settings in localStorage. It stores choices and cached availability, never credentials. |
| Blueprint intent | service | — | Server-side helpers for "tell Rassam what to change": builds the model prompt (edit operation catalogue, selector grammar, a compact blueprint digest inside da… |
| GitHub gateway | gateway | — | The only code that talks to GitHub and holds GITHUB_TOKEN. Resolves public repositories to a pinned commit and binds repository identity and commit with signed… |
| Server platform | middleware | — | Cross-cutting server concerns: rate limiting, origin and deployment checks, request parsing, the error envelope and privacy-preserving telemetry. |
| LLM providers | service | — | Adapters over model providers behind one interface, and the resolver that turns a requested provider and model into exactly that configured runtime, with no si… |
| Shared library | utility | — | Runtime-neutral code shared by browser and server: zod request contracts and limits, version constants and small utilities. Nothing here may need Node or serve… |
| Blueprint engine | core | — | The isomorphic heart of Rassam: blueprint format, import graph, rules, gate, reach analysis and reports. It runs unchanged in the CLI, the MCP server, CI and t… |
| CLI and MCP server | client | — | The Node host: `rassam` commands, git and GitHub Actions integration, and the dual-era MCP server agents call before acting. Agent proposals and escalations ar… |
| Build tooling | config | — | Build, lint, test and bundling configuration, including the CLI bundle consumed by the GitHub Action. |
| Tests | test | — | Unit, integration and browser tests. Tests may depend on anything; nothing may depend on tests. |
| Gate benchmark | test | — | Labeled scenarios (documented agent reward hacks, architecture violations, reach problems and legitimate changes) that measure the gate's recall and false posi… |
| GitHub API | external external-api | — | Public repository trees and blobs, and PR comments from the GitHub Action. |
| Model provider APIs | external external-api | — | DeepSeek, OpenAI, Anthropic, Google and Ollama endpoints, called only through llm-providers. |
Want the same in your README? It takes one workflow file. Tell Rassam where a component runs (rassam do "monitor api at https://api.example.com/health" --write) and the picture shows whether it's up, refreshed every few minutes with an "as of" time.
A web app for reading and editing the contract: paste a public GitHub URL or open a local folder (Chrome or Edge; it saves straight back into your repo). Type what you mean, see it on the canvas first, then hit Enter:
forbid web from importing storage because the UI must go through the API
add a component Payments for src/payments
only payments may read STRIPE_*
domain may only depend on util and shared 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.