Skip to content

chore: carve out docs/review/ as a tracked subdirectory - #499

Open
olegbrok wants to merge 1 commit into
betafrom
feat/docs-review-tracked-carveout
Open

chore: carve out docs/review/ as a tracked subdirectory#499
olegbrok wants to merge 1 commit into
betafrom
feat/docs-review-tracked-carveout

Conversation

@olegbrok

Copy link
Copy Markdown
Collaborator

Summary

Carves out docs/review/ as a tracked subdirectory so curated
review/authoring heuristics can live in-repo alongside the source
they shape. Everything else under docs/ stays gitignored.

The shared review heuristics doc itself (drafted by Pushok during
PR #496's iteration arc, covering matrix-delta-first / concurrency
lens / five-cases framework with composition-drift / fail-on-broken
discipline / tagged-observation pattern) lands in a follow-up PR
to keep the carve-out review separate from the content review.

Why

PR #496 surfaced enough cross-agent review discipline that
externalizing it pays off. Three contributors (Pushok, Murzik, me)
each have complementary review lenses; a single canonical reference
that any agent can load on review tasks means we stop re-deriving
the same heuristics across PRs.

Minimal-scope on purpose — additional always-tracked docs subdirs
(!docs/architecture/ etc.) can carve out in their own small PRs
when there's actual content to land.

Implementation note

Gitignore negations don't work when the parent directory is fully
excluded — git won't descend into docs/ to honour !docs/review/
if it's already pruned the directory. Widened to docs/* (contents)

  • explicit negations.

Test plan

  • git check-ignore -v docs/scratch.md → ignored ✓
  • git check-ignore -v docs/review/README.md → tracked ✓
  • Local-only scratch files under docs/ still don't get
    accidentally committed

🤖 Opened by Barsik

Adds an explicit ``!docs/review/`` negation in .gitignore so curated
review/authoring heuristics can live in-repo alongside the source they
shape. Everything else under ``docs/`` (loose design notes, scratch
investigation files, etc.) stays gitignored by the new ``docs/*``
pattern.

Note: the negation requires the parent pattern to match contents
(``docs/*``), not the directory (``docs/``). Git won't descend into an
excluded directory to honour child negations, so the previous
``docs/`` line had to be widened.

A placeholder ``docs/review/README.md`` is included so the directory is
real and the carve-out has something to track. The shared review
heuristics doc itself lands in a follow-up PR (drafted locally by
Pushok during PR #496's iteration) to keep the carve-out review
separate from the content review.

Minimal-scope by design — additional tracked docs subdirs
(``!docs/architecture/`` etc.) can carve out in their own small PRs
when there's real content to land.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant