feat(documentation-layout): add size_excludes for a repo's own co-located docs #1144
No reviewers
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/advocate
role/director
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/science
role/sysadmin
state
ambient
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/agentic-os!1144
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/documentation-layout-size-excludes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A third key beside
excludesandvendored, opt-in and empty by default, so no repo changes behaviour until it declares it.The gap
The size caps deliberately ignore
excludes(markdown_files(apply_excludes=False)) because that key governs placement. They honour onlyvendored, which states the Markdown is not this repo's to shape.A monorepo that co-locates a README and
docs/under each component fits neither. Those docs are the repo's own, and the root-plus-flat-docs/shape the caps assume does not describe them. Without a third key such a repo can buy the exemption only by declaring its own docsvendored, which is a false statement about provenance sitting in a tracked config file.How it surfaced
Moving coilyco-bridge/deploy off
v0.102.0onto theaos-precommit-v*train. That repo already declares theservices/**andcharts/**carve-out underexcludes, with a written rationale about being a multi-service monorepo. One half of the hook honours that carve-out and the other does not, so 13 of its co-located service docs are over cap, including a 1015-line service README.The alternatives were splitting 13 docs as a precondition for a hook pin bump, or lying in a config file. Neither is right.
Scope
size_excludestakes the same gitignore-style globs asexcludes, through the existingis_excluded.vendoredcannot.3 new tests.
pre-commit run --all-filesgreen.pytestgreen apart fromtest_ward_specs_bundle.py, which fails identically on a clean tree here because thewardbinary is absent from this shadow.