This document is the public verification entrypoint for Cynos Engineer.
npm run verifyThe command runs:
- TypeScript typechecking;
- the Vitest unit-test suite;
- a smoke check of the generated CommonJS entrypoint using host-package stubs;
- an isolated install smoke of the freshly packed npm tarball, including the bundled Tools version.
For package or release changes also run:
npm run pack:dry-run
npm run package:smoke
npm audit --omit=dev --audit-level=highnpm run typecheck
npx vitest run tests/practice-checkpoints.test.ts
npm run build
npm run build:smoke
npm run package:smokeUse a targeted test while iterating, then run the complete suite before handoff.
The suite covers work state transitions, captured tool results, practice registry and routing helpers, completion checkpoints, configuration, subagent boundaries, and the public capability integration boundaries. The build smoke checks the default export, host-package externalization, and child-safe tool registration without requiring a live pi process or browser.
tests/fixtures/evidence/*.json are deterministic replay cases for individual
completion checkpoints. Each fixture records a small WorkState, captured tool
results, and the expected verdict. They include both valid evidence and cases
that must remain rejected, such as verification that happened before the last
production write or a PROJECT.md read without a real write. Run them with the
normal Vitest suite or directly:
npx vitest run tests/evidence-fixtures.test.tsThe fixtures intentionally assert stable verdicts and short reason/detail fragments rather than timestamps or full prose, so diagnostic wording can evolve without weakening the evidence contract.
npm run pack:dry-run verifies that the package contains its runtime entrypoint,
skills, subagents, README, and license while excluding source, tests, CI files,
and repository-only material. It also verifies that browser binaries are not
included.
- Type/API failures: run
npm run typecheckand inspect the first diagnostic. - Unit failures: run the affected Vitest file and inspect the assertion diff.
- Build failures: run
npm run builddirectly, then rerunnpm run build:smoke. - Package failures: inspect the allowlist and run
npm pack --dry-run --jsonfor the raw file list. - pi integration failures: reproduce in a disposable target project with a
pinned package or local
pi -eentrypoint.
Tests must use fake credentials and disposable paths. Redact tokens, cookies, private URLs, and personal data from failure reports.