docs/architecture is declared authoritative for settled design, so a page that cites code which has moved actively misleads every session and every subagent brief that reads it. Nothing in the gate compared a prose citation against the tree: docsgen checks the contract schema against Go types, docsite checks generated artifacts against their Markdown sources, prdlint checks PRD writing style. All three verify internal consistency, so a page can describe a package deleted months ago and every check stays green -- which is how a page describing a removed system survives behind a hand-written "removed" banner. Add tools/docdrift. It resolves every internal/... citation under docs/ against the tree and fails on one that dangles, handling the shapes prose actually uses: a package with a symbol (internal/config.Config), a test with its package (internal/app/archieui/TestFoo), a file-shape template (internal/webui/api_<concern>.go), and a Go package pattern (internal/...). Generated artifacts are skipped so embedded page bodies are not double-counted. The baseline is a burn-down list of the 48 citations already broken -- packages that moved (internal/store, internal/memory, internal/nats) and ones never built (internal/policy, the image and research capability docs). It is not a licence: the check also fails when an allowlisted citation starts resolving again, so an exemption cannot outlive its reason. Regenerate with `docdrift list`. Wire it into `task check` as docs:drift. Also correct AGENTS.md, which listed `policy` among the cross-cutting packages sitting under internal/. No such package has ever existed in this tree; the design is approved and unbuilt (docs/architecture/policy.md). That is exactly the class of stale claim this check now catches.
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
# docdrift baseline: citations in docs/ that no longer resolve to a
|
|
# repository path. This is a burn-down list, not a licence -- repoint the
|
|
# citation or delete the claim, then remove the line. Regenerate with:
|
|
#
|
|
# go -C tools run -mod=readonly ./docdrift list --repo-root .. > tools/docdrift/baseline.txt
|
|
internal/nats
|
|
internal/infrastructure/spec
|
|
internal/policy
|
|
internal/store
|
|
internal/domain/controlplane
|
|
internal/memory
|
|
internal/memory/builtin.Store
|
|
internal/app/archied/config_update.go
|
|
internal/domain/plugin
|
|
internal/curator
|
|
internal/infrastructure/forge
|
|
internal/workflow
|
|
internal/domain/eda/forgeaction
|
|
internal/app/agentworker/review.go
|
|
internal/tools/dispatch.go
|
|
internal/infrastructure/cronstore
|
|
internal/output/report.go
|
|
internal/actors/mine.go
|
|
internal/domain/research
|
|
internal/infrastructure/research/search
|
|
internal/tools/search
|
|
internal/tools/research
|
|
internal/infrastructure/research
|
|
internal/domain/workflow/wfeval/yaegi.go
|
|
internal/gate/gateeval/yaegi.go
|
|
internal/store/events.go
|
|
internal/store/captures.go
|
|
internal/domain/extensions
|
|
internal/domain/extensions/inventory.go
|
|
internal/webui/api_extensions.go
|
|
internal/app/archied/server.go
|
|
internal/infrastructure/image
|
|
internal/infrastructure/image/comfyui
|
|
internal/app/archied/telegram_setup.go
|
|
internal/tools/image/tool.go
|
|
internal/infrastructure/image/openai
|
|
internal/memory/manager.go
|
|
internal/memory/scanner.go
|
|
internal/tools/provider/memory
|
|
internal/infrastructure/legacyread
|
|
internal/domain/eda/module/notify/types.go
|
|
internal/domain/eda/module/notify
|
|
internal/memory.MemoryProvider
|
|
internal/memory.Manager
|
|
internal/infrastructure/store
|
|
internal/store/interface.go
|
|
internal/storerpc
|
|
internal/store/store.go
|