Rassam Blueprint

v0.4.1
io.github.V0ightt/rassam Checked 11 hours ago Published 6 days ago

Architecture contract for coding agents: who owns a file, which imports are allowed, check changes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

blueprint_overview Blueprint overview

Start here. Returns the architecture contract of this repository: the system, its components (id, kind, file count, intent, human-verified?, assurance), every rule with severity and a one-line summary, counts, how much of the contract is human-authored, and how to use this server.

explain_path Explain a path

Call this BEFORE editing or creating a file. Returns which component owns the path, its intent and owners, the rules that constrain changes there, what it may and may not depend on, the invariants and decisions to respect, and whether the path is protected (changes need human review).

ParameterTypeDescription
path *stringRepository-relative path, e.g. src/lib/ai.ts

get_component Get a component

Full summary of one component: definition and intent, files, what it depends on and what depends on it (declared and observed), external packages, environment variables it reads, tests, rules, invariants and decisions.

ParameterTypeDescription
id *stringComponent id from blueprint_overview

check_dependency Check a dependency

Call this BEFORE adding an import. Answers "may code in from_path import target?" where target is a repository path or a package name. Returns allowed, the rules it would violate with their human-written reasons, and whether the dependency is undeclared.

ParameterTypeDescription
from_path *stringRepository-relative path of the file that would contain the import
target *stringWhat it would import: a repository path (src/lib/db.ts) or a package name ("octokit", "node:fs")

impact Impact of a change

Blast radius: which components the given paths belong to, and which components depend on them (transitively, nearest first). Use it to decide what to re-test and what to tell the user.

ParameterTypeDescription
paths *arrayRepository-relative paths you changed or plan to change

check_changes Check my changes

Call this BEFORE you finish or open a pull request. Runs the same gate as CI on the current working tree (uncommitted and untracked files included) and returns the verdict with the top findings, so you can fix them first. Compares against base (default: the repository's default branch) and judges by the blueprint at the merge-base; without a resolvable base it checks the whole tree.

ParameterTypeDescription
basestringGit ref the change will merge into, e.g. origin/main

list_decisions List decisions

Architecture decision records from the blueprint (context, decision, consequences, status), optionally only those that apply to one component. Read them before proposing to change how something works.

ParameterTypeDescription
componentstringOnly decisions that apply to this component id

architecture_diff What my change did to the architecture

Structural diff of the system design: which components and dependencies the working tree added, removed or changed status (declared, undeclared, forbidden, no longer observed) compared with base (default: the repository's default branch), plus one sentence summarizing it. Use it to tell the user what your change did to the architecture. It reports structure only; check_changes reports violations.

ParameterTypeDescription
basestringGit ref to compare with, e.g. origin/main or HEAD~1

system_status What is running

Runtime status recorded in .rassam/status.json by "rassam status --write" (usually in CI): overall summary and, per component that declares runtime, its state (up, degraded, down, unknown), the signal it came from (health check, deployment, workflow) and when it was checked. Includes how old the data is and whether it is stale. Read-only: it never probes anything itself.

propose_change Propose a blueprint change

Suggest a change to the contract for a human to review. Writes a file under .rassam/proposals/ and never edits .rassam/blueprint.json. The current contract keeps applying until a human accepts the proposal.

ParameterTypeDescription
changes *stringThe change itself: a precise description or a JSON patch of the blueprint
rationale *stringWhy the contract should change
title *stringShort title of the proposed change
agentstringYour name, e.g. Claude Code

report_conflict Report a conflict and stop

Use this when the task cannot be completed without breaking a rule or invariant, weakening a test or check, or editing the blueprint. This is the sanctioned way to stop: it records the conflict under .rassam/escalations/ for a human and tells you how to proceed. Stopping here is a correct outcome, not a failure.

ParameterTypeDescription
summary *stringOne sentence: what conflicts with what
agentstringYour name, e.g. Claude Code
detailsstringWhat you tried, what the rule requires, and what would resolve it
pathsarrayRepository-relative paths involved
rule_idstringId of the rule or invariant involved, if any