Skip to content

Modernize tooling, sandbox setup, and alpha workflows#73

Open
WellDunDun wants to merge 10 commits intomainfrom
custom/prefix/router-1774263648942
Open

Modernize tooling, sandbox setup, and alpha workflows#73
WellDunDun wants to merge 10 commits intomainfrom
custom/prefix/router-1774263648942

Conversation

@WellDunDun
Copy link
Collaborator

This PR migrates the repo from Biome to the oxc lint/format stack, refreshes CI and Makefile ergonomics, and updates the dashboard plus agent-facing docs around the current agent-first workflow. It expands the CLI and workflows with uninstall support, stronger init defaults, improved device-code alpha auth, upload-on-init and upload-on-sync behavior, and sandbox reset/workspace helpers for white-room testing. It also updates SQLite/canonical upload staging, local DB queries, evolution pipeline behavior, and dashboard report plumbing to match the current telemetry model. Tests, sandbox harnesses, and bundled skill/workflow docs are refreshed throughout to cover the new behavior.

WellDunDun and others added 6 commits March 21, 2026 11:50
Replace Biome v2.4.7 with oxlint for linting and oxfmt for formatting.
oxlint is 50-100x faster than ESLint with 699 built-in rules; oxfmt is
2x faster than Biome with 100% Prettier JS/TS conformance.

- Add .oxlintrc.json (correctness errors, suspicious warnings, TS/unicorn/oxc/import plugins)
- Add .oxfmtrc.json (migrated from biome config, 2-space indent, 100-char width, import sorting)
- Fix 7 real code issues found by oxlint (unused imports, dead code, Array constructor, regex→startsWith)
- Suppress 7 noisy/inapplicable rules (no-shadow, unicorn/no-array-sort, etc.)
- Update package.json scripts, Makefile, and CI workflow to use oxlint + oxfmt
- Delete biome.json and remove @biomejs/biome dependency
- Update CONTRIBUTING.md and .coderabbit.yaml references

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ks crash

- CI: add bun install cache, job dependencies (test/build need lint first), frozen lockfile
- Makefile: add lint-fix, format, dev, dev-server, dev-dashboard targets; organize sections; SLOW_TESTS variable as single source of truth
- tsconfig: enable incremental builds for faster typecheck
- oxfmt: add apps/local-dashboard/dist to ignore patterns
- package.json: simplify dev script (API server + Vite HMR in one command), reorder check pipeline
- CONTRIBUTING.md: document test split tiers with timing and rationale
- fix: move useEffect above early returns in SkillReport to prevent conditional hooks crash

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add callViaSubagent() for multi-turn named agent calls (--agent + --max-turns)
- Wire evolution-reviewer as opt-in Gate 4 before deployment (--review flag)
- Default teacher model to opus with extended thinking (--teacher-effort high)
- Default student model to haiku for cheap validation gates
- Init now runs sync + autonomy scheduling by default (--no-sync/--no-autonomy to opt out)
- Add selftune uninstall command: clean removal of scheduling, hooks, logs, config, markers
- Update EvolveBody.md and Initialize.md workflow docs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Init triggers upload immediately after alpha enrollment + sync
- Sync piggybacks upload cycle when alpha enrolled (every 30 min)
- Bump orchestrate frequency from 6h to 2h for alpha iteration speed
- Update Initialize workflow doc with new steps 11 (upload) and schedule info

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Mar 23, 2026

Important

Review skipped

Too many files!

This PR contains 299 files, which is 149 over the limit of 150.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 812d1973-a561-4940-b0bf-e7fce6037d1d

📥 Commits

Reviewing files that changed from the base of the PR and between fa4562d and 0645e2b.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (299)
  • .claude/agents/diagnosis-analyst.md
  • .claude/agents/evolution-reviewer.md
  • .claude/agents/integration-guide.md
  • .claude/agents/pattern-analyst.md
  • .coderabbit.yaml
  • .github/workflows/ci.yml
  • .github/workflows/publish.yml
  • .oxfmtrc.json
  • .oxlintrc.json
  • AGENTS.md
  • ARCHITECTURE.md
  • CONTRIBUTING.md
  • Makefile
  • PRD.md
  • README.md
  • ROADMAP.md
  • SECURITY.md
  • apps/local-dashboard/index.html
  • apps/local-dashboard/package.json
  • apps/local-dashboard/src/App.tsx
  • apps/local-dashboard/src/components/app-sidebar.tsx
  • apps/local-dashboard/src/components/runtime-footer.tsx
  • apps/local-dashboard/src/components/site-header.tsx
  • apps/local-dashboard/src/components/theme-provider.tsx
  • apps/local-dashboard/src/components/theme-toggle.tsx
  • apps/local-dashboard/src/components/ui/avatar.tsx
  • apps/local-dashboard/src/components/ui/breadcrumb.tsx
  • apps/local-dashboard/src/components/ui/chart.tsx
  • apps/local-dashboard/src/components/ui/drawer.tsx
  • apps/local-dashboard/src/components/ui/input.tsx
  • apps/local-dashboard/src/components/ui/separator.tsx
  • apps/local-dashboard/src/components/ui/sheet.tsx
  • apps/local-dashboard/src/components/ui/sidebar.tsx
  • apps/local-dashboard/src/components/ui/skeleton.tsx
  • apps/local-dashboard/src/components/ui/sonner.tsx
  • apps/local-dashboard/src/components/ui/toggle-group.tsx
  • apps/local-dashboard/src/components/ui/toggle.tsx
  • apps/local-dashboard/src/hooks/useDoctor.ts
  • apps/local-dashboard/src/hooks/useOrchestrateRuns.ts
  • apps/local-dashboard/src/hooks/useOverview.ts
  • apps/local-dashboard/src/hooks/useSkillReport.ts
  • apps/local-dashboard/src/main.tsx
  • apps/local-dashboard/src/pages/Overview.tsx
  • apps/local-dashboard/src/pages/SkillReport.tsx
  • apps/local-dashboard/src/pages/Status.tsx
  • apps/local-dashboard/src/styles.css
  • apps/local-dashboard/vite.config.ts
  • bin/selftune.cjs
  • biome.json
  • cli/selftune/activation-rules.ts
  • cli/selftune/alpha-upload/build-payloads.ts
  • cli/selftune/alpha-upload/stage-canonical.ts
  • cli/selftune/auth/device-code.ts
  • cli/selftune/auto-update.ts
  • cli/selftune/badge/badge.ts
  • cli/selftune/canonical-export.ts
  • cli/selftune/claude-agents.ts
  • cli/selftune/contribute/bundle.ts
  • cli/selftune/contribute/contribute.ts
  • cli/selftune/cron/setup.ts
  • cli/selftune/dashboard-server.ts
  • cli/selftune/eval/hooks-to-evals.ts
  • cli/selftune/eval/import-skillsbench.ts
  • cli/selftune/eval/synthetic-evals.ts
  • cli/selftune/eval/unit-test.ts
  • cli/selftune/evolution/deploy-proposal.ts
  • cli/selftune/evolution/evolve-body.ts
  • cli/selftune/evolution/evolve.ts
  • cli/selftune/evolution/propose-body.ts
  • cli/selftune/evolution/propose-routing.ts
  • cli/selftune/evolution/refine-body.ts
  • cli/selftune/export.ts
  • cli/selftune/grading/grade-session.ts
  • cli/selftune/hooks/auto-activate.ts
  • cli/selftune/hooks/evolution-guard.ts
  • cli/selftune/hooks/prompt-log.ts
  • cli/selftune/hooks/session-stop.ts
  • cli/selftune/hooks/skill-change-guard.ts
  • cli/selftune/hooks/skill-eval.ts
  • cli/selftune/index.ts
  • cli/selftune/ingestors/claude-replay.ts
  • cli/selftune/ingestors/codex-rollout.ts
  • cli/selftune/ingestors/codex-wrapper.ts
  • cli/selftune/ingestors/openclaw-ingest.ts
  • cli/selftune/ingestors/opencode-ingest.ts
  • cli/selftune/init.ts
  • cli/selftune/localdb/db.ts
  • cli/selftune/localdb/direct-write.ts
  • cli/selftune/localdb/materialize.ts
  • cli/selftune/localdb/queries.ts
  • cli/selftune/localdb/schema.ts
  • cli/selftune/normalization.ts
  • cli/selftune/observability.ts
  • cli/selftune/repair/skill-usage.ts
  • cli/selftune/routes/orchestrate-runs.ts
  • cli/selftune/routes/overview.ts
  • cli/selftune/routes/skill-report.ts
  • cli/selftune/sync.ts
  • cli/selftune/uninstall.ts
  • cli/selftune/utils/canonical-log.ts
  • cli/selftune/utils/jsonl.ts
  • cli/selftune/utils/llm-call.ts
  • cli/selftune/utils/skill-log.ts
  • cli/selftune/utils/transcript.ts
  • cli/selftune/utils/trigger-check.ts
  • cli/selftune/workflows/skill-md-writer.ts
  • cli/selftune/workflows/workflows.ts
  • docs/design-docs/alpha-remote-data-contract.md
  • docs/design-docs/composability-v2.md
  • docs/design-docs/evolution-pipeline.md
  • docs/design-docs/index.md
  • docs/design-docs/live-dashboard-sse.md
  • docs/design-docs/monitoring-pipeline.md
  • docs/design-docs/sandbox-architecture.md
  • docs/design-docs/sandbox-claude-code.md
  • docs/design-docs/sandbox-test-harness.md
  • docs/design-docs/sqlite-first-migration.md
  • docs/design-docs/system-overview.md
  • docs/design-docs/workflow-support.md
  • docs/escalation-policy.md
  • docs/exec-plans/active/agent-first-alpha-onboarding.md
  • docs/exec-plans/active/alpha-rollout-data-loop-plan.md
  • docs/exec-plans/completed/agent-first-skill-restructure.md
  • docs/exec-plans/completed/dashboard-data-integrity-recovery.md
  • docs/exec-plans/completed/dashboard-signal-integration.md
  • docs/exec-plans/completed/output-quality-loop-prereqs.md
  • docs/exec-plans/completed/telemetry-normalization.md
  • docs/exec-plans/deferred/advanced-skill-patterns-adoption.md
  • docs/exec-plans/deferred/multi-agent-sandbox.md
  • docs/exec-plans/deferred/phase-d-marginal-case-review-spike.md
  • docs/exec-plans/reference/subagent-testing-checklist.md
  • docs/exec-plans/reference/telemetry-field-map.md
  • docs/exec-plans/scope-expansion-plan.md
  • docs/exec-plans/tech-debt-tracker.md
  • docs/golden-principles.md
  • docs/integration-guide.md
  • docs/launch-playbook-tracker.md
  • docs/operator-guide.md
  • docs/product-specs/index.md
  • package.json
  • packages/telemetry-contract/fixtures/golden.test.ts
  • packages/telemetry-contract/package.json
  • packages/telemetry-contract/src/schemas.ts
  • packages/telemetry-contract/tests/compatibility.test.ts
  • packages/ui/README.md
  • packages/ui/package.json
  • packages/ui/src/components/ActivityTimeline.tsx
  • packages/ui/src/components/EvidenceViewer.tsx
  • packages/ui/src/components/EvolutionTimeline.tsx
  • packages/ui/src/components/InfoTip.tsx
  • packages/ui/src/components/OrchestrateRunsPanel.tsx
  • packages/ui/src/components/section-cards.tsx
  • packages/ui/src/components/skill-health-grid.tsx
  • packages/ui/src/lib/constants.tsx
  • packages/ui/src/primitives/badge.tsx
  • packages/ui/src/primitives/button.tsx
  • packages/ui/src/primitives/card.tsx
  • packages/ui/src/primitives/checkbox.tsx
  • packages/ui/src/primitives/collapsible.tsx
  • packages/ui/src/primitives/dropdown-menu.tsx
  • packages/ui/src/primitives/label.tsx
  • packages/ui/src/primitives/select.tsx
  • packages/ui/src/primitives/table.tsx
  • packages/ui/src/primitives/tabs.tsx
  • packages/ui/src/primitives/tooltip.tsx
  • scripts/validate-subagent-docs.ts
  • skill/SKILL.md
  • skill/Workflows/AlphaUpload.md
  • skill/Workflows/AutoActivation.md
  • skill/Workflows/Badge.md
  • skill/Workflows/Baseline.md
  • skill/Workflows/Composability.md
  • skill/Workflows/Contribute.md
  • skill/Workflows/Cron.md
  • skill/Workflows/Dashboard.md
  • skill/Workflows/Doctor.md
  • skill/Workflows/Evals.md
  • skill/Workflows/EvolutionMemory.md
  • skill/Workflows/Evolve.md
  • skill/Workflows/EvolveBody.md
  • skill/Workflows/Grade.md
  • skill/Workflows/ImportSkillsBench.md
  • skill/Workflows/Ingest.md
  • skill/Workflows/Initialize.md
  • skill/Workflows/Orchestrate.md
  • skill/Workflows/Replay.md
  • skill/Workflows/Rollback.md
  • skill/Workflows/Schedule.md
  • skill/Workflows/Sync.md
  • skill/Workflows/UnitTest.md
  • skill/Workflows/Watch.md
  • skill/agents/diagnosis-analyst.md
  • skill/agents/evolution-reviewer.md
  • skill/agents/integration-guide.md
  • skill/agents/pattern-analyst.md
  • skill/references/grading-methodology.md
  • skill/references/interactive-config.md
  • skill/references/invocation-taxonomy.md
  • skill/references/logs.md
  • skill/references/setup-patterns.md
  • tests/agent-guidance.test.ts
  • tests/alpha-upload/build-payloads.test.ts
  • tests/alpha-upload/e2e.test.ts
  • tests/alpha-upload/flush.test.ts
  • tests/alpha-upload/integration.test.ts
  • tests/alpha-upload/queue.test.ts
  • tests/alpha-upload/staging.test.ts
  • tests/alpha-upload/status.test.ts
  • tests/autonomy-proof.test.ts
  • tests/badge/badge-svg.test.ts
  • tests/badge/badge.test.ts
  • tests/blog-proof/seo-audit-evolve.test.ts
  • tests/blog-proof/trigger-sanity.ts
  • tests/canonical-export.test.ts
  • tests/contribute/bundle.test.ts
  • tests/contribute/contribute.test.ts
  • tests/contribute/sanitize.test.ts
  • tests/dashboard/badge-routes.test.ts
  • tests/dashboard/dashboard-server.test.ts
  • tests/eval/baseline.test.ts
  • tests/eval/composability-v2.test.ts
  • tests/eval/composability.test.ts
  • tests/eval/generate-unit-tests.test.ts
  • tests/eval/hooks-to-evals.test.ts
  • tests/eval/import-skillsbench.test.ts
  • tests/eval/synthetic-evals.test.ts
  • tests/eval/unit-test.test.ts
  • tests/evolution/audit.test.ts
  • tests/evolution/constitutional.test.ts
  • tests/evolution/deploy-proposal.test.ts
  • tests/evolution/evidence.test.ts
  • tests/evolution/evolve-body.test.ts
  • tests/evolution/evolve.test.ts
  • tests/evolution/extract-patterns.test.ts
  • tests/evolution/pareto.test.ts
  • tests/evolution/propose-body.test.ts
  • tests/evolution/propose-description.test.ts
  • tests/evolution/propose-routing.test.ts
  • tests/evolution/refine-body.test.ts
  • tests/evolution/rollback.test.ts
  • tests/evolution/stopping-criteria.test.ts
  • tests/evolution/types.test.ts
  • tests/evolution/validate-body.test.ts
  • tests/evolution/validate-proposal.test.ts
  • tests/evolution/validate-routing.test.ts
  • tests/grading/grade-session-flow.test.ts
  • tests/grading/grade-session.test.ts
  • tests/grading/pre-gates.test.ts
  • tests/hooks/auto-activate.test.ts
  • tests/hooks/evolution-guard.test.ts
  • tests/hooks/prompt-log.test.ts
  • tests/hooks/session-stop.test.ts
  • tests/hooks/signal-detection.test.ts
  • tests/hooks/skill-change-guard.test.ts
  • tests/hooks/skill-eval.test.ts
  • tests/ingestors/claude-replay.test.ts
  • tests/ingestors/codex-rollout.test.ts
  • tests/ingestors/codex-wrapper.test.ts
  • tests/ingestors/openclaw-ingest.test.ts
  • tests/ingestors/opencode-ingest.test.ts
  • tests/init/claude-agents.test.ts
  • tests/init/device-code.test.ts
  • tests/init/init-enhanced.test.ts
  • tests/init/init.test.ts
  • tests/last/last.test.ts
  • tests/lint-architecture.test.ts
  • tests/localdb/localdb.test.ts
  • tests/localdb/write.test.ts
  • tests/memory/writer.test.ts
  • tests/monitoring/integration.test.ts
  • tests/monitoring/watch.test.ts
  • tests/normalization/normalization.test.ts
  • tests/observability.test.ts
  • tests/orchestrate-overlap.test.ts
  • tests/orchestrate.test.ts
  • tests/repair/skill-usage.test.ts
  • tests/sandbox/docker/entrypoint.sh
  • tests/sandbox/docker/prepare-workspace-selftune.sh
  • tests/sandbox/docker/reset-sandbox-state.sh
  • tests/sandbox/docker/run-with-llm.ts
  • tests/sandbox/fixtures/claude-settings.json
  • tests/sandbox/run-install-sandbox.ts
  • tests/sandbox/run-sandbox.ts
  • tests/schedule/schedule.test.ts
  • tests/signal-orchestrate.test.ts
  • tests/status/status.test.ts
  • tests/telemetry-contract/validators.test.ts
  • tests/trust-floor/health.test.ts
  • tests/trust-floor/hermetic-store.test.ts
  • tests/trust-floor/rebuild-preflight.test.ts
  • tests/types/new-types.test.ts
  • tests/types/ui-contract-parity.test.ts
  • tests/utils/canonical-log.test.ts
  • tests/utils/frontmatter.test.ts
  • tests/utils/html.test.ts
  • tests/utils/jsonl.test.ts
  • tests/utils/query-filter.test.ts
  • tests/utils/schema-validator.test.ts
  • tests/utils/skill-discovery.test.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch custom/prefix/router-1774263648942

Comment @coderabbitai help to get the list of available commands and usage tips.

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