@adikuma/breadcrumb-protocol
v0.2.0
Published
schema and validation helpers for breadcrumb review handoffs
Readme
@adikuma/breadcrumb-protocol
Schema and validation helpers for Breadcrumb review handoffs.
Breadcrumb uses a small .breadcrumb/tasks/<task-id>/review.yml file to explain an agent-written code change before a human reviews it. This package defines that file format and validates it with Zod.
Most users should install the CLI instead:
pnpm dlx @adikuma/breadcrumb initUse this package directly when building tools that need to read or validate Breadcrumb handoffs.
pnpm add @adikuma/breadcrumb-protocolimport { parseBreadcrumbReviewYaml } from "@adikuma/breadcrumb-protocol";
const result = parseBreadcrumbReviewYaml(source);
if (!result.ok) {
console.error(result.errors);
}What It Validates
versionmust be1riskmust below,medium, orhigh- paths must be relative POSIX paths
- each
review_sequencesection needs atitle, awhy, and afileslist - every
review_sequencefile must also appear infiles - duplicate paths and invalid schema fields are rejected
Minimal Handoff
version: 1
id: quote-add-ons
title: Add optional add-ons to the quote flow
user_goal: Let sales reps add optional services to a quote.
summary: Adds add-on selection and includes add-ons in quote totals.
review_sequence:
- title: Pricing rule
why: Read the pricing rule first; the rest of the change builds on it.
files:
- src/pricing/tax.ts
files:
- path: src/pricing/tax.ts
why: Defines the add-on pricing and tax rule.
risk: mediumPackage Role
This package is intentionally separate from the CLI so the Breadcrumb web app, CLI, and future tooling can all validate the same handoff format.
