suss
v0.41.0Lists each caller of a route, table or queue with file and line, and where the two sides disagree.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
suss_ask Ask about a boundary
Ask one question about one boundary in this codebase and get an answer worked out from static analysis of the current code. Reach for this before changing something other code depends on: a route, a database table, a queue, an environment variable. It answers from summaries the server keeps current as files change, so the answer describes the code as it is right now. The question must be one of these eleven, in these words: what can I project from <boundary> what the boundary declares: the fields a store serves, the statuses a route returns, the env vars a runtime takes. Also written "wh…
| Parameter | Type | Description |
|---|---|---|
question * | string | One of the eleven questions, in the words listed above. |
limit | integer | How many results to show before the rest are counted and left out. Defaults to 20; pass a larger number to see more of a long list, such as every caller of a widely-used function. |
suss_check Check both sides of every boundary
Compare both sides of every boundary in this codebase and report where they disagree: a caller reading a field the provider never returns, a status nothing handles, a queue nobody consumes. Reach for this after writing code that crosses a boundary, before opening a pull request. Three lists come back and they mean different things. findings two sides of a boundary disagree. intent the code and a document the team wrote disagree. Only present when the project has intent docs. run the run could not get far enough to compare anything. A "nothingPaired" entry here means no bounda…
| Parameter | Type | Description |
|---|---|---|
base | string | A git ref the change branched from, such as "origin/main". The result keeps the findings this change introduced and lists the ones it resolved. Does not run with boundary. |
boundary | string | One boundary, file, or file:line to narrow to, such as "GET /users/:id" or "src/orders.ts". Leave it out for the whole project. |
suss_boundaries List the boundaries and how they pair
List the boundaries in this codebase, split into the ones with both sides and the ones with only one. Reach for this to get oriented in an unfamiliar project, or when suss_check reports no findings and you want to know whether that means the two sides agreed or means nothing was compared. paired both sides are here, and suss_check compared them. providerOnly something serves it and nothing suss can see calls it. Often correct: a public API's callers are in somebody else's repository. consumerOnly something calls it and suss cannot see what serves it. Often another service, and…
suss_stub_draft Draft a dependency stub from observed use
Draft a dependency stub for a package this project uses but suss cannot read into: a compiled binding, a private wrapper, anything without readable source. For TypeScript the draft is built from the project's own call sites: one performs-call skeleton per export the code reaches, with the argument shapes observed at each site. For a Python project whose routes go through a wrapper module, it drafts a re-exports skeleton per imported module instead. For Ruby it drafts an extends-base skeleton from every require and every class whose superclass is spelled from the package. The semantic blanks a…
| Parameter | Type | Description |
|---|---|---|
package * | string | The package to draft for, as imported: "@acme/kit". |
suss_intent_outcomes List the outcome ids a PRD scenario can link to
List every outcome the project's boundary intent documents declare, as the `<intent-name>.<outcome-id>` a PRD scenario puts in its `link`. Call this before writing or editing a `link` in a PRD. The two halves of a link are written inside boundary intent documents, so a link composed from the feature description instead of from this list is a guess, and `suss_check` reports a wrong one as `danglingScenarioLink`. Each row says: link what to write in the scenario's `link`, verbatim. intent the boundary document's own name, the part before the dot. boundary the boundary t…
| Parameter | Type | Description |
|---|---|---|
boundary | string | Keep only the documents whose boundary contains this text, such as "orders" or "@suss/checker". Leave it out for the whole folder. |
intentDir | string | The folder of intent documents, relative to the project root. Defaults to "intent", which is where suss check --intent reads. |
suss_status What this server is answering from
What this server is answering from: which extract and contract commands ran, which failed, and whether a suss.json chose them or suss picked them the way `suss init` would. It also repeats the pack health block the extracts printed, such as a pack that reads nothing until an option is set. Reach for this when an answer looks thinner than the code suggests it should be. A project nothing matched has nothing extracted, a contract that failed to read means one side of every boundary it declares is missing from every answer, and a pack listed under pack health has left its boundaries out.