Files
PaperClipAI/packages
DottaandPaperclip ff51c42568 refactor(plugin-llm-wiki): remove unreferenced fixtures/basic-root tree (#23027)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work.
> - The LLM Wiki plugin gives Paperclip a local-file wiki. It reads
sources, writes pages, and answers queries.
> - The plugin package contains a sample wiki tree under
`fixtures/basic-root/`.
> - No test, script, workflow, or package export reads this tree. The
tests read the live `templates/` tree through `src/templates.ts`.
> - Two fixture files, `AGENTS.md` and `IDEA.md`, are byte-identical
copies of `templates/AGENTS.md` and `templates/IDEA.md`.
> - This pull request removes the unused `fixtures/basic-root/` tree.
> - The benefit is a smaller test-support surface. No stale copy of the
wiki schema remains.

## Linked Issues or Issue Description

No public GitHub issue exists for this cleanup. The in-PR description
follows the enhancement template.

**What existing behavior does this improve?**

Test support for the LLM Wiki plugin package. The package carries a
sample fixture tree that no code selects or reads.

**Subsystem affected**

`packages/plugins/plugin-llm-wiki` — test support files only.

**Current behavior**

The package contains 14 fixture files under `fixtures/basic-root/` (258
lines). The files describe a sample wiki: a schema (`AGENTS.md`), a
pattern note (`IDEA.md`), raw sources, and generated pages. Nothing
loads them:

- The plugin vitest config selects `tests/**/*.spec.ts` only. No
workflow, script, or runner executes a file under `fixtures/`.
- The package `files` list (`agents`, `dist`, `migrations`, `skills`,
`templates`, `README.md`) excludes `fixtures`. The published artifact
does not contain it.
- The fixture was added with the initial plugin import (May 2026) and
was not touched again.
- `fixtures/basic-root/AGENTS.md` and `IDEA.md` duplicate
`templates/AGENTS.md` and `templates/IDEA.md` byte for byte.
`src/templates.ts` reads the `templates/` copies.

**Proposed behavior**

Delete `packages/plugins/plugin-llm-wiki/fixtures/basic-root/` and the
now-empty `fixtures/` directory. No test, production file, lockfile, or
workflow changes.

**Reason and benefit**

The tree is dead test-support weight. A stale, byte-identical copy of
the wiki schema can mislead a future maintainer into editing the wrong
tree. Removal keeps 258 test-support lines out of the package and does
not change any executed or published path.

**Breaking changes**

None. The deleted files are outside the package `files` list, so
npm-published artifacts are unchanged. No test or production code
references them.

**Additional context**

Nightly test-gardening audit of unaudited plugin-package test support.

## What Changed

- Removed `packages/plugins/plugin-llm-wiki/fixtures/basic-root/**` — 14
files, 258 test-support lines. Zero production lines, zero registered
test cases (no case referenced these files), zero lockfile or workflow
changes.

## Verification

Reference and selection proof:

- Searched all tracked file types for `basic-root`, `basic_root`,
`basicRoot`, and each fixture filename. Only the fixture files
themselves match. No code, workflow, script, skill, agent prompt, or
documentation path references them.
- GitHub history: one commit touches this path — the initial plugin
import. No later commit reads or changes it.
- No open or merged pull request touches
`packages/plugins/plugin-llm-wiki/fixtures/**`.
- Selection: `vitest.config.ts` includes `tests/**/*.spec.ts` only. No
CI lane or npm script executes files under `fixtures/`.

Local runs, `packages/plugins/plugin-llm-wiki`, before and after the
deletion:

- `pnpm exec vitest run --config ./vitest.config.ts` — same result both
runs: 4 tests passed; `tests/plugin.spec.ts` passed.
`tests/wiki-route-sidebar-ui.spec.ts` and
`tests/issue-attachments.spec.ts` fail identically before and after on
`Failed to resolve import "react"`. The `react` peer dependency is not
installed in this container. This is a pre-existing environment setup
failure, unrelated to this deletion.
- `pnpm run typecheck` — passes after the deletion (tsc reports no
errors).
- Repo-wide `pnpm -r typecheck`, `pnpm test:run`, and `pnpm build` were
not run locally. The required CI lanes supply that coverage for this
pull request head.

## Risks

- Low risk. Deletion only. No runtime path reads the removed files, and
the published package never contained them.

## Model Used

- Zhipu GLM via OpenRouter, model id `z-ai/glm-5.3` (Paperclip Test
Gardener agent). Context window size is not disclosed to the agent. No
special reasoning mode. Tools: shell, file search, and the GitHub REST
API. Every pull request section above was written by this model.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` /
`Closes: #` / `Refs: #` OR (b) described the issue in-PR following the
relevant issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [ ] I have run tests locally and they pass — the runnable plugin suite
passes; two spec files fail on a pre-existing missing `react` peer in
this container, identically before and after the change
- [x] I have added or updated tests where applicable — no test
references the deleted fixtures, so no test change applies
- [x] I have updated relevant documentation to reflect my changes — no
documentation references the deleted files
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green — pending on this pull request
head
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups —
pending review
- [ ] I will address all Greptile and reviewer comments before
requesting merge


Co-Authored-By: Paperclip <Paperclip-Paperclip@users.noreply.github.com>
2026-11-30 19:33:13 +00:00
..