Repository uses language-specific tests plus cross-package verification. Run smallest relevant command first, then broader gates before release.
go test ./...
go vet ./...
go build ./...This covers Engine, proxy, memory, browser bridge, cache planner, rewriter, and other Go packages in module.
pnpm install --frozen-lockfile
pnpm -r build
pnpm -r testIndividual packages expose narrower scripts:
pnpm --dir packages/cli test
pnpm --dir packages/agent test
npm --prefix extension test
pnpm --dir packages/graders test
pnpm --dir packages/shared/contracts testUse package manifest to confirm exact scripts.
python -m pytest -q packages/sdk/pythonpython tests/verify_repo.pyVerifier checks repository invariants that ordinary unit tests do not cover, including generated or packaging expectations.
Continuous integration builds and tests native Go and JavaScript paths and includes Windows coverage for platform-sensitive launcher behavior. Native release workflow builds a 36-artifact operating-system, architecture, and binary matrix, then publishes signed checksums.
A local pass on one platform does not prove full release matrix. Report exact commands and environment tested.
Engine benchmarks compare original and compact representations on committed fixtures. Valid report includes selected compressor, recovery result, byte or token counter, and any invariant checks.
Browser benchmark measures accessibility-tree capture, query focus, compression,
and recovery on recorded pages. See browse/BENCHMARK.md.
Cache planner corpus tests stress capability and fail-safe gates. Report unsupported and rejected cases; raw pass rate is not a market-ranking result.
packages/subagent-tax runs local fixtures without provider requests. Its
counterfactual results apply to exact fixture, assembly method and token counter.
Published wrap benchmark documents one recorded comparison and provenance. See
WRAP-BENCHMARK.md for reproduction availability and
claim limits.
Every public result should include:
- question being tested;
- fixture names, source, and hashes;
- code revision and date;
- hardware or provider/model where relevant;
- exact command;
- count basis and price source;
- baseline and treatment definitions;
- recovery, parse, and quality checks;
- failures, exclusions, and negative deltas;
- narrow conclusion supported by data.
A fixture-level result is not production validation. Local token estimate is not provider cost, and successful retrieval does not establish quality parity.
Compression and integration tests should cover:
- malformed input;
- duplicate or ambiguous JSON;
- empty and boundary-sized payloads;
- transformation larger than original;
- full or failed recovery store;
- unknown mode, provider, model, and grader;
- stream interruption;
- unsafe endpoint and redirect;
- secret-bearing headers;
- unsupported platform or upstream version.
Expected safe result is often original input or explicit rejection. Tests should assert that behavior, not only successful compression.
Documentation changes need:
- relative-link check;
- command and path check against current help and package tree;
- private or internal reference scan;
- stale claim scan against code and committed evidence;
- plain-language review;
git diff --check.
Passing documentation checks proves consistency with checkout, not runtime or release readiness.