Files
ruflo/scripts/ci-test-excluded.txt
T
rUvandr 5a008a150a feat(test): real-binary test tier for ruflo mods (ADR-504) (#4589)
* test(mods): real-binary test tier with a scripted mock model (ADR-504)

Runs the real `claude` binary headless against a local mock of the
Anthropic Messages API, with ruflo-mods loaded through --plugin-dir in a
throwaway project with its own HOME. No API key, no paid model.

- mock-model.mjs: scripted Messages server (streaming and not), logs
  every request; untool'd or unknown requests get a minimal answer.
- run.ts: runner with a minimal child environment, PATH recorders for
  dangerous commands, and readers for events, requests and files.
- loads.test.ts (contract 1): with every option on, the heartbeat is
  written, /ruflo-mods is registered and answered with no model request.
  Negative control: a #4485-shaped copy (second bare session.start) is
  refused silently by the real loader and fails those assertions.
- contracts.test.ts (contracts 2-5): verified-success record from a
  scripted fix turn; [RUFLO_LESSONS] reaches the request (and not below
  the gate); ruflo denies the root delete with its own reason and denies
  a listed command the engine allows (which runs without the plugin);
  the route block reaches the request (and not without the plugin).
- Excluded from the CLI, v3 and root-ratchet default runs; run with
  `npm run test:real-binary`. New CI job mods-real-binary pins Claude
  Code 2.1.289 and fails, naming the step, if the binary will not start.

Co-Authored-By: RuFlo <ruv@ruv.net>

* docs(adr): ADR-504 status names PR #4589

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Co-authored-by: r <r@x>
2026-10-29 18:43:03 -04:00

112 lines
5.5 KiB
Plaintext

# Test files the root vitest run (scripts/ci-test-ratchet.mjs) does not run, because vitest cannot run them. They are NOT failures hidden
# from the baseline: each has its own runner, and that runner is a CI gate.
# - plugins/*/tests/*.test.ts import `claude-code/testing`, which only exists inside Claude Code: `claude plugin test <dir>` runs them
# (every plugin's scripts/smoke.sh, and .github/workflows/all-plugins-smoke.yml).
# - the .mjs files use node:test: `node --test` runs them (all-plugins-smoke.yml and the plugin smokes).
# - v3/@claude-flow/cli/__tests__/real-binary/*.test.ts need the real `claude` binary: `npm run test:real-binary` runs them
# (ADR-504; the mods-real-binary job in .github/workflows/mod-guidance.yml).
# A listed file that no longer exists fails the ratchet, so this list cannot go stale silently. Never add a file here to make a real
# regression green: a file that vitest CAN run belongs in scripts/ci-test-baseline.txt (and that file may only shrink).
plugins/ruflo-adr/tests/mod.test.ts
plugins/ruflo-agentdb/tests/fold.test.ts
plugins/ruflo-agentdb/tests/guard-keys.test.ts
plugins/ruflo-agentdb/tests/guard-scan.test.ts
plugins/ruflo-agentdb/tests/import.test.ts
plugins/ruflo-agentdb/tests/register.test.ts
plugins/ruflo-agentdb/tests/screen.test.ts
plugins/ruflo-agentdb/tests/textsof.test.ts
plugins/ruflo-agent/tests/mod.test.ts
plugins/ruflo-agntcy/tests/mod.test.ts
plugins/ruflo-aidefence/tests/mod.test.ts
plugins/ruflo-ai-team/tests/mod.test.ts
plugins/ruflo-arena/tests/mod.test.ts
plugins/ruflo-autopilot/tests/mod.test.ts
plugins/ruflo-bbs-federation/tests/register.test.ts
plugins/ruflo-browser/tests/register.test.ts
plugins/ruflo-business-pods/tests/register.test.ts
plugins/ruflo-chatgpt-federation/tests/register.test.ts
plugins/ruflo-daa/tests/mod.test.ts
plugins/ruflo-ddd/tests/mod.test.ts
plugins/ruflo-deepseek-harness/tests/mod.test.ts
plugins/ruflo-docs/tests/mod.test.ts
plugins/ruflo-federation/tests/mod.test.ts
plugins/ruflo-goals/tests/register.test.ts
plugins/ruflo-graph-intelligence/hooks/tests/register.test.ts
plugins/ruflo-intelligence/tests/register.test.ts
plugins/ruflo-iot-cognitum/tests/register.test.ts
plugins/ruflo-jujutsu/tests/register.test.ts
plugins/ruflo-jujutsu/tests/textsof.test.ts
plugins/ruflo-knowledge-graph/tests/register.test.ts
plugins/ruflo-knowledge-graph/tests/textsof.test.ts
plugins/ruflo-loop-workers/tests/register.test.ts
plugins/ruflo-loop-workers/tests/textsof.test.ts
plugins/ruflo-market-data/tests/register.test.ts
plugins/ruflo-market-data/tests/textsof.test.ts
plugins/ruflo-metaharness/tests/register.test.ts
plugins/ruflo-metaharness/tests/textsof.test.ts
plugins/ruflo-migrations/tests/migrations-mod.test.ts
plugins/ruflo-mods/tests/attention.test.ts
plugins/ruflo-mods/tests/agents.test.ts
plugins/ruflo-mods/tests/compact.test.ts
plugins/ruflo-mods/tests/delivery.test.ts
plugins/ruflo-mods/tests/describe.test.ts
plugins/ruflo-mods/tests/grounding.test.ts
plugins/ruflo-mods/tests/probe.test.ts
plugins/ruflo-mods/tests/ranked-context.test.ts
plugins/ruflo-mods/tests/rollup.test.ts
plugins/ruflo-mods/tests/toast.test.ts
plugins/ruflo-music/tests/music-mod.test.ts
plugins/ruflo-neural-trader/tests/trader-mod.test.ts
plugins/ruflo-observability/tests/observe-mod.test.ts
plugins/ruflo-plugin-creator/templates/mod/tests/status.test.ts
plugins/ruflo-plugin-creator/tests/creator.test.ts
plugins/ruflo-rag-memory/tests/rag.test.ts
plugins/ruflo-rag-memory/tests/textsof.test.ts
plugins/ruflo-ruvector/tests/ruvector.test.ts
plugins/ruflo-ruvector/tests/textsof.test.ts
plugins/ruflo-ruvllm/tests/ruvllm.test.ts
plugins/ruflo-ruvllm/tests/textsof.test.ts
plugins/ruflo-rvf/tests/rvf.test.ts
plugins/ruflo-rvf/tests/textsof.test.ts
plugins/ruflo-security-audit/tests/mod.test.ts
plugins/ruflo-security-audit/tests/textsof.test.ts
plugins/ruflo-sparc/tests/mod.test.ts
plugins/ruflo-sparc/tests/textsof.test.ts
plugins/ruflo-testgen/tests/mod.test.ts
plugins/ruflo-workflows/tests/mod.test.ts
plugins/ruflo-workflows/tests/textsof.test.ts
plugins/ruflo-x-gateway/tests/mod.test.ts
plugins/ruflo-x-gateway/tests/textsof.test.ts
scripts/check-adr-links.test.mjs
tests/plugins/codex-mod-hooks.test.mjs
tests/plugins/codex-swarm-hook-manifest.test.mjs
scripts/__tests__/guard-label.test.mjs
scripts/__tests__/mod-capability-matrix.test.mjs
tests/all-plugins-smoke-workflow.test.mjs
tests/check-guard-tool-names.test.mjs
tests/check-status-forwarding.test.mjs
tests/external-plugins.test.mjs
plugins/ruflo-console/tests/result-display.test.ts
plugins/ruflo-console/tests/toasts.test.ts
plugins/ruflo-console/tests/full-text.test.ts
plugins/ruflo-console/tests/whatsnew.test.ts
plugins/ruflo-console/tests/adrs.test.ts
plugins/ruflo-console/tests/surface-pictures.test.ts
plugins/ruflo-protector/tests/corpus.test.ts
plugins/ruflo-protector/tests/mod.test.ts
plugins/ruflo-protector/tests/rules.test.ts
plugins/ruflo-swarm/tests/toast.test.ts
plugins/ruflo-mods/tests/protector.test.ts
plugins/ruflo-mods/tests/selfcheck.test.ts
plugins/ruflo-testgen/scripts/tdd-repair/tdd-repair.test.mjs
plugins/ruflo-business-pods/scripts/pod-tick.test.mjs
plugins/ruflo-core/scripts/background-hooks.test.cjs
plugins/ruflo-core/scripts/command-recording-switch.test.cjs
tests/regression/oct12-coverage.test.cjs
plugins/ruflo-adr/scripts/__tests__/adr-status-forms-4126.test.mjs
scripts/__tests__/probe-mod-guards.test.mjs
plugins/ruflo-core/scripts/witness/__tests__/witness-auth.test.mjs
v3/@claude-flow/cli/__tests__/real-binary/contracts.test.ts
v3/@claude-flow/cli/__tests__/real-binary/loads.test.ts