Files
waggle-os/docs/oss/baseline.md
shumeiko.it ea21721d2a docs(oss): record owner decisions as ADRs and the starting baseline
ADR-0001..0006 capture the scope decisions: no monetization, memory
through a contract backed by local mem0 (knowledge graph deferred), team
mode postponed, cost tracking open and self-learning out, whatsapp-web.js
for WhatsApp, opt-in analytics. baseline.md records build, typecheck,
lint and unit test results on macOS before scope work starts.
2026-10-15 18:35:58 +02:00

57 lines
3.1 KiB
Markdown

# Baseline at the start of the conversion
The state of build, typecheck, lint and tests before any scope work. Every later change is
compared against this record: a check that passes here must not start failing.
- Date: 2026-10-15
- Commit: `2346cf3` on `oss/community-edition` (the commercial code at `b20b138` plus the fixes
UF-001, UF-007, UF-008, UF-021 and UF-022)
- Machine: macOS 26.6.2, Apple silicon (arm64), Node 22.23.2, npm 10.9.8
- CI: not set up yet. The location of the public repository is still open, so this record
stands in for a CI baseline until the pipeline exists (work package 0.2).
## Results
| Check | Command | Result |
|---|---|---|
| Package build | `npm run build:packages` | Pass |
| Typecheck, agent | `npx tsc --noEmit --project packages/agent/tsconfig.json` | Pass |
| Typecheck, server | `npx tsc --noEmit --project packages/server/tsconfig.json` | Pass |
| Typecheck, app tooling | `npx tsc --noEmit --project app/tsconfig.json` | Pass |
| Typecheck, web | `cd apps/web && npx tsc --noEmit -p tsconfig.app.json` | Pass |
| Web build | `cd apps/web && npx vite build --outDir <temp dir>` | Pass |
| Lint | `npx eslint .` | 1,516 files, 0 errors, 0 warnings |
| Unit tests, root | `npm run test` | 719 files, 12,012 tests: 11,915 passed, 41 failed, 56 skipped (8.6 min) |
| Unit tests, web | `cd apps/web && npx vitest run` | 221 files, 1,979 tests, all passed (2.4 min) |
| E2E | `npm run test:e2e` | Not run, see below |
| Visual regression | `npm run test:visual` | Not run, see below |
The web build went to a temporary directory instead of the root `dist/`, because a running
sidecar serves that directory.
In the full root run `packages/hive-mind-cli/tests/cli-help.test.ts` also failed once: the
isolated home made npm print an update notice into the CLI output. The setup now turns that
notice off and the file passes (3 of 3), so the totals above count it as passing.
## Known failures (macOS)
All 41 failing root tests are in four files and fail the same way when run alone. They are
logged as UF-023.
| File | Failing | Symptom |
|---|---|---|
| `packages/server/tests/local/managed-ollama-runtime.test.ts` | 38 of 45 | "Official runtime archive did not contain ollama.exe" |
| `packages/hive-mind-hooks-openclaw/tests/handler.test.ts` | 1 of 16 | Expects `/var/folders/...`, receives `/private/var/folders/...` |
| `packages/server/tests/local/files.test.ts` | 1 of 48 | "escapes workspace root through symlink" in a move test |
| `packages/server/tests/local/external-tool-runs.test.ts` | 1 of 17 | "OpenClaw run did not settle" (timeout, not investigated) |
## Not run yet
- **E2E and visual regression.** By default the Playwright web server reuses any sidecar on
`:3333` with its data directory, and it rebuilds the root `dist/`. A baseline run needs a
free port and an isolated data directory (`WAGGLE_E2E_REUSE_EXISTING_SERVER=0`,
`WAGGLE_E2E_PORT`) at a time when restarting the local sidecar is acceptable.
- **Infrastructure suites** (`npm run test:infra`) need Postgres and Redis and cover team
mode, which is not part of the community edition.
- **Windows and Linux.** This record covers macOS only.