Repository navigation
chore(docs): remove the docs/ directory, moving each record to the skill that owns it - #786
Merged
Merged
Conversation
…them
`docs/` is being removed. Six of its files are not prose — they are gate
inputs, and deleting them would delete the gates:
erd.md, entity-lint-rules.md generated by er-entity-gen / er-entity-lint
and byte-compared by `er-entity verify`
telemetry-reference.md generated from er-obs's registry, byte-compared
by er-obs's own test
profile-findings.md generated from er-profile's rule registry,
byte-compared by er-profile's own test
agent-skills.md skills-check greps its generator table and
splices two generated blocks INTO it
entity-framework-design.md skills-check set-differences the E0xx codes
out of its table
So they move to the `references/` directory of the skill that owns each, which
is where a generated reference already belongs here, and every gate is
preserved rather than re-pointed at nothing.
Three consequences worth naming:
- A skill reference over 100 lines needs a `## Contents` (skills-check), so the
three generators that emit a long file now emit the table of contents too.
Hand-maintaining it was never an option: an index that can disagree with the
sections it indexes is the same drift these files are generated to prevent.
The ERD's `erweb` row is conditional, because its section is.
- References must be one level deep from SKILL.md, so the design doc's link to
entity-lint-rules.md — now a sibling — becomes a plain mention, and each
moved file is linked from its owning SKILL.md (an unlinked reference is never
read).
- `docs/` leaves DETECT_EXEMPT rather than being left behind as a courtesy to a
future re-introduction. An exemption for a directory that does not exist is a
hole nobody is watching; the fail-safe direction is that a reintroduced
`docs/` file runs the gate until someone argues it should not.
The classifier keeps its shape: these files were exempt-by-prefix and
re-admitted by DETECT_ERD/DETECT_DRIFT before, and they still are — `.claude/`
is exempt by the same mechanism `docs/` was. Only the path strings moved, so CI
behaviour is unchanged by this commit. detect-paths-test.sh asserts all 35
cases, including that the coupled ERD still moves the rust pass key.
Not fixed here, and pre-existing: entity-lint-rules.md is byte-compared by the
same `entities` job as erd.md but was never in DETECT_ERD, so a lone edit to it
skips that gate. Left alone deliberately — widening the regex is a CI
behaviour change this move does not need.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MFnHDTCHkPgyCWWELigoGF
…ill that owns it
There is no `docs/` directory now. What was in it split three ways.
**Moved to the owning skill's `references/`** — a design record is loaded with
the skill that would send you to it, instead of sitting where nothing points:
er-engine-ops architecture, runbook, configuration,
batch-orchestration-design
infra-platform infrastructure, infrastructure-decisions, plan-to-aws
er-server-control-plane backend-design, connectors, research-cloudingo
frontend-design-system frontend-design
frontend-testing frontend-testing
ducklake-performance performance, profiling
ci-and-supply-chain devcontainer, agent-fleet
**Deleted** (~16k lines): parity-roadmap, research-datagroomr,
research-runner-startup, python-processing-exceptions, and the eight
`measurements/*.json` captures. Each was superseded or was raw capture nothing
read; all are in git history. `measure_runner_startup.sh` now defaults its
output to the gitignored `artifacts/` tree so a run cannot recreate the
directory, and the `pentest` playbook writes its report there too rather than
to a `docs/security/` it would have had to create.
**plan-to-aws and research-cloudingo were restored after being deleted.** Both
looked like archive and are not: the infrastructure documents defer to
plan-to-aws for live build status, and the parity matrices are measured against
the Cloudingo feature bar. A document other retained documents need for their
own meaning is not archive, and six dangling citations each would have been the
evidence of getting that wrong.
The mechanical cost was the links. These files used repo-root-relative paths
that were correct from `docs/` and are four levels up from a skill's
`references/`, and they cross-linked each other; 89 root links, 75 cross-skill
links and 8 skill links were rewritten, and 61 pointing at deleted or
same-skill targets were de-linked. Same-skill links had to go entirely: the
skills lint forbids a reference linking a sibling, because Claude only
partially reads a file reached through another reference. Every remaining link
resolves — the lint checks that, which is how the depth arithmetic is known
right rather than assumed.
Each moved document over 100 lines also needed a `## Contents`, generated from
its own headings.
`architecture.md` went to `er-engine-ops` rather than into CLAUDE.md. CLAUDE.md
is loaded into every session, and 100 lines of engine detail there is a cost
every session pays for something most of them never read; it gets the pointer
instead. No new skill was created either — a general "architecture" skill would
have had to describe territory every existing skill already routes for, and its
description would have collided with them.
Left alone deliberately: `docs/arch.md` and `docs/static-analysis.md` in the
batch-orchestration and entity-framework records are dagr's and feather-flow's
own documentation, and `docs/` in ci-triage.yml is a BRANCH prefix.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MFnHDTCHkPgyCWWELigoGF
Contributor
terraform plan
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
docs/is gone. Its 34 files split three ways: six were gate inputs and moved with their gates intact, fifteen were design records and moved to thereferences/of the skill that owns their subject, and the rest were deleted.521 files changed, ~71k deletions. Most of that is the deleted archive; the rest is link rewriting.
The part that wasn't a documentation move
Six files were load-bearing in code, and deleting them would have deleted the gates that read them:
erd.md,entity-lint-rules.mder-entity-gen/er-entity-lint, byte-compared byer-entity verify; paths hardcoded iner-entity-clitelemetry-reference.mder-obs's registry, byte-compared by its own testprofile-findings.mder-profile's rule registry, byte-compared by its own testagent-skills.mdskills-check.shgreps its generator table and splices two generated blocks into itentity-framework-design.mdskills-check.shset-differences the E0xx codes out of its tableSo this PR touches Rust,
skills-check.sh, the CI path classifier and its tests — not only markdown.Three consequences of putting them under
.claude/skills/*/references/:## Contents. The three generators that emit a long file now emit the TOC too — hand-maintaining it was never an option, since an index that can disagree with its own sections is the drift these files are generated to prevent. The ERD'serwebrow is conditional, because its section is.SKILL.md.CI behaviour is unchanged by the move
The four coupled files were exempt-by-prefix and re-admitted by
DETECT_ERD/DETECT_DRIFTbefore; they still are, because.claude/is exempt by the same mechanismdocs/was. Only the path strings moved.detect-paths-test.shasserts all 35 cases andpass-gate-test.shasserts the coupled ERD still moves the rust pass key.docs/was removed fromDETECT_EXEMPTrather than left behind: an exemption for a directory that does not exist is a hole nobody is watching, and the fail-safe direction is that a reintroduceddocs/file runs the gate until someone argues it should not.Two deletions I reversed
plan-to-aws.mdandresearch-cloudingo.mdlooked like archive and are not — the infrastructure documents defer to the first for live build status, and the parity matrices are measured against the second. A document that retained documents need for their own meaning is not archive; six dangling citations each would have been the evidence of getting it wrong. Both were restored into the owning skill.Judgement calls worth flagging
architecture.mdwent toer-engine-ops, not CLAUDE.md. CLAUDE.md loads into every session, and 100 lines of engine detail there is a cost every session pays for something most never read. CLAUDE.md gets the pointer.measure_runner_startup.shnow defaults to the gitignoredartifacts/tree so a run cannot recreate the directory. Thepentestplaybook writes its report there too, rather than to adocs/security/it would have had to create.Not fixed here
entity-lint-rules.mdis byte-compared by the sameentitiesjob aserd.mdbut was never inDETECT_ERD, so a lone edit to it skips that gate. Pre-existing; widening the regex is a CI behaviour change this move doesn't need.DesignDoc.mdandrust/PERFORMANCE.md(ci.yaml,benchmark.yaml,rust/README.md) are pre-existing — verified present onorigin/main.docs/arch.mdanddocs/static-analysis.mdin two records are dagr's and feather-flow's own documentation, anddocs/inci-triage.ymlis a BRANCH prefix. All left alone.Verification
make check— green (fmt, clippy-D warnings, doc,er-entity verify, skills-check, 92 test suites)pnpm check— green (eslint, prettier, tsc, the four BFF guards, 875 tests, coverage floor)detect-paths-test.sh35/35,pass-gate-test.sh16/16,scripts-home-check,workflow-shell-check🤖 Generated with Claude Code
https://claude.ai/code/session_01MFnHDTCHkPgyCWWELigoGF