Skip to content

V30 Gate 2: Protocol Package API Boundaries#34

Merged
geraldarthurdavis merged 1 commit into
version/v30from
v30/gate-2-protocol-package-api-boundaries
May 21, 2026
Merged

V30 Gate 2: Protocol Package API Boundaries#34
geraldarthurdavis merged 1 commit into
version/v30from
v30/gate-2-protocol-package-api-boundaries

Conversation

@geraldarthurdavis

Copy link
Copy Markdown
Contributor

Summary

  • move shared BTD route-facing builders, parsers, settlement constructors, registry snapshots, and JSON-safe serialization into @bitcode/btd
  • keep API route ownership to auth, request parsing, registry projection reads/writes, and responses while route tests import package builders directly
  • document the package boundary and add the V30 Gate 2 checker to package scripts and gate-quality

Validation

  • pnpm --filter @bitcode/btd typecheck
  • pnpm --filter @bitcode/btd test
  • pnpm --filter @bitcode/api build
  • pnpm --filter @bitcode/api exec jest --config jest.config.cjs --runTestsByPath src/routes/tests/btd-crypto.test.ts --runInBand
  • pnpm run check:v30-gate1
  • pnpm run check:v30-gate2
  • node scripts/check-bitcode-spec-family.mjs --version V30 --mode draft --current-target V29
  • node scripts/check-bitcode-canonical-inputs.mjs --current-target V29
  • node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V29 --draft-target V30
  • node scripts/run-bitcode-spec-quality.mjs --mode strict-version --version V30
  • pnpm --filter @bitcode/protocol test
  • bash scripts/find-uppercase-raw-promptparts.sh
  • bash scripts/check-import-casing.sh
  • pnpm exec eslint packages/btd/src/api-boundaries.ts packages/btd/tests/api-boundaries.test.ts packages/api/src/routes/btd-crypto.ts packages/api/src/routes/tests/btd-crypto.test.ts --ext .ts
  • git diff --check

Move shared BTD route-facing builders, parsers, settlement constructors, registry snapshots, and JSON-safe serialization into @bitcode/btd so API routes delegate protocol policy instead of owning it.

Add package boundary tests, update route tests to import package builders directly, document accepted import direction, and wire the V30 Gate 2 checker into gate-quality.
@vercel

vercel Bot commented May 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
engi-uapi Ready Ready Preview, Comment May 21, 2026 8:12pm

@geraldarthurdavis
geraldarthurdavis merged commit 161df58 into version/v30 May 21, 2026
29 checks passed
@geraldarthurdavis
geraldarthurdavis deleted the v30/gate-2-protocol-package-api-boundaries branch May 21, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant