Docs / Build
Bug fixes and errors
Bugs reach the Bugs and fixes page three ways: the assistant files one from a conversation, your app’s error reporter sees a new kind of error, or your error tracker sends one. An owner or admin sends a bug to a fix; Dezzi works on your repository in a sandbox and stops where you choose. Nothing is merged without you.
Connect your repository
On Bugs and fixes, choose Connect GitHub, install Dezzi’s GitHub App on the repository, and pick it. The App asks for contents, pull requests and checks. Its tokens are made for one repository and one call at a time, and the sandbox never holds one that can write: it clones through Dezzi, and the pull request is made outside it. Fixes on Dezzi’s runner come with the Growth plan (10 runs a month included, then $3 each, within your spending cap).
How far a fix goes
- Find the cause: reads the code and says what goes wrong and where.
- Plan the fix: the cause and the change it would make, file by file.
- Open a pull request: makes the change, runs your checks, and opens a draft pull request on a
dezzi/fix-…branch.
When your CI fails on a fix’s pull request, Dezzi reads what the failing checks said and tries again on the same branch, at most twice.
Dependency checks
Once a repository is connected, on any plan, Dezzi reads its lockfiles every day and looks up each pinned package and version in a
public database of open source vulnerabilities, which gathers CVEs and each registry’s advisories. Only package names and versions
leave Dezzi for it. It reads package-lock.json, npm-shrinkwrap.json, yarn.lock,
pnpm-lock.yaml, pinned requirements*.txt, poetry.lock, uv.lock,
Cargo.lock, go.mod, Gemfile.lock and composer.lock, up to 8 of them, the shallowest
first, and never those under node_modules, vendor or test fixtures.
Each finding is a security report under Feedback and security, for owners and admins: the package and version, the CVE,
its severity, the versions that fix it and the lockfiles that pin it. A new finding sends an alert and a
vulnerability.reported event with its id. A report resolves itself once a check finds the package upgraded or removed, and
Check now checks again within a minute.
With a fix runner set up, a report whose fix is published has a button that hands it to the runner as a bug from the
Dependency check: upgrade that one package to the fixed version, in the manifest and the lockfiles, with the project’s own
package manager, and run the checks. It stops where you set fixes to stop, and counts as a run on Dezzi’s runner. The runner needs to reach the package’s
registry, so list it under registries in .dezzi.json. Once the pull request is merged, the next check finds
the package upgraded, resolves the report and closes its bug.
.dezzi.json
A file at the root of the repository sets up each run. Every field is optional:
{
"baseBranch": "develop",
"registries": ["npm"],
"setup": ["npm ci --ignore-scripts"],
"checks": ["npx tsc --noEmit", "npx vitest run"],
"checkNote": "Run the unit tests only; the database tests need Docker.",
"protectedPaths": ["migrations/**"],
"maxFiles": 20,
"maxBytes": 1048576,
"instructions": "Follow the style of the file you change. Add a test for the bug."
}
| Field | What it does |
|---|---|
baseBranch | Cloned, and the base of each pull request. The default branch when left out. |
registries | The package registries the sandbox may download from: npm, yarn, pypi, crates, go, rubygems. GET requests only; nothing else on the internet is reachable. |
setup | Up to 10 commands run in the clone before the work starts. What they change is kept out of the fix. |
checks | Up to 10 commands the fix must pass. |
checkNote | A sentence about the checks, for the model. |
protectedPaths | Paths a fix may never change, added to Dezzi’s own: CI settings, env files, lockfiles and .dezzi.json. |
maxFiles, maxBytes | The most a fix may change: 40 files and 2 MB unless you say less (at most 100 and 5 MB). |
instructions | What your team wants a fix to know, up to 4,000 characters. |
A run has half an hour after its setup. What your repository and your bugs say is read as data, never as instructions that change the sandbox’s rules.
Your own runner
Without GitHub, give Dezzi your own fix runner’s address and a secret of at least 32 characters. Dezzi sends POST <address>/tasks with { taskId, task } and Authorization: Bearer <secret>, then asks GET <address>/tasks/<taskId> every minute for { status: "running" }, { status: "done", prUrl, note }, { status: "diagnosed", note } or { status: "failed", note }, for up to 40 minutes.
The error reporter
Dezzi’s sdk/errors.ts is a small file with no dependencies, for a browser page or a Node server. It sends an error’s name and stack frames, once per kind and place, and never its message, which can quote what a person typed:
import { createErrorReporter } from './dezzi-errors';
const reporter = createErrorReporter({ appKey: 'pk_…', endpoint: 'https://<your Dezzi address>', release: '1.4.2' });
reporter.install(); // uncaught errors and unhandled rejections
reporter.capture(error, { codes: ['ORDER_SYNC'] }); // one you caught, with your own codes
Errors are grouped by their name and the top five frames. A new group becomes a bug and an alert; later ones only count. In a browser, the page must be one of the app’s sites (Settings). Each app takes up to 600 reports an hour.
Sentry
In Sentry, make an internal integration with a webhook to https://<your Dezzi address>/v1/integrations/sentry/<app id> (the Bugs and fixes page shows it) and the issue and error events, then paste its client secret on Bugs and fixes. Dezzi checks each webhook’s signature and keeps only the exception’s type and frames.