Skip to content

docs: project documentation has drifted from the code #872

Closed

Description

@EVWorth

A review of every markdown file in the repo (about 8,400 lines in 24 files) found these problems.

Wrong or stale

  • docs/design/TESTING_STRATEGY.md (1,073 lines) describes an E2E suite that was removed, test files that never existed (AIChat.test.tsx, ai_tests.rs, tests/e2e/*.e2e.ts) and an inline copy of a CI workflow. Its principles ("every user workflow must have E2E tests") are not how the repo works. The real layout (jsdom unit tests, *.browser.test.tsx in Chromium, #[ignore] integration tests, agent_end_to_end.rs, the command-contract test and the mock backend) is not described.
  • docs/design/TECH_DECISIONS.md: ADR-007 (Copilot SDK) reads as current although ADR-011 replaced it. ADR-009 (Docker E2E) reads as current although the E2E suite is gone. The ADR-010 tree still lists copilot.rs.
  • docs/design/ARCHITECTURE.md (2,293 lines): section 10 is a speculative v2.0 plugin design; Appendix B repeats ADRs; it links src/mcp/endpoint.rs, which does not exist.
  • .github/copilot-instructions.md: about 50 lines of "Caveman Mode" naming /caveman-* skills that do not exist; says just test-rust needs Docker (it does not; integration tests are #[ignore]d); calls the browser tests "E2E".
  • .claude/agents/implementer-frontend.md: the store template imports @/lib/tauri-api. CLAUDE.md pitfall 6 says app code must not use the @/ alias because vite.config.ts does not resolve it, so code written from the template breaks npm run dev and the build.
  • .claude/agents/implementer-rust.md links src/lib.rs (the file is src-tauri/src/lib.rs).
  • .claude/agents/issue-reviewer.md and /reviewissues depend on an optional "cognee" MCP that nothing in the repo provides.
  • docs/SECURITY.md ends with an empty ## ci/path-filters heading.

Structure

  • The same conventions are copied into CLAUDE.md, copilot-instructions.md, each agent prompt and the README dev section, which is how they drifted apart.
  • CLAUDE.md (316 lines) loads in every session but carries task-specific procedures (release flow, cloud notes, dispatch table).
  • Slash commands live in .claude/commands/; the current Claude Code format is .claude/skills/<name>/SKILL.md.
  • No docs/ index; README mixes user and contributor content.

Fix

Reorganize along these lines (agreed with the maintainer):

  • AGENTS.md holds the shared rules for any coding agent; CLAUDE.md imports it and adds Claude-specific parts; copilot-instructions.md becomes a pointer.
  • Folder conventions move to src/CLAUDE.md and src-tauri/CLAUDE.md; implementer agents keep only their lane and gates.
  • Commands become skills; new skills for release (replacing release-cutter and /bump), add-tauri-command, file-issue, integration-tests and ui-preview. scout is dropped in favour of the built-in Explore agent.
  • Design docs rewritten to describe the current code; superseded ADRs kept but marked.
  • docs/README.md index; contributor content moves to CONTRIBUTING.md.

Activity

  1. added
    documentation
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions