Point CLAUDE.md at ai/ repo's consolidated conventions - #83
Conversation
Removes content now covered by Postgres-Extensions/ai's CLAUDE.md, PR.md, and CODE_STYLE.md: CI-monitoring, the make-vs-ci.yml test-dimension bias, bug-fix comment rules, the CI: title-prefix rule, PR/issue full-URL convention, general version-specific-SQL-file tracking rules, the general PG-version-support policy, and the Code Style section (block comments, closing non-indentable blocks, upgrade-vs-update terminology). Also drops "Always open PRs against the main repo, not a fork" -- stale guidance superseded by PR.md's fork-default convention -- and "Never delete a branch without approval", now generalized into PR.md's merge authority section. Keeps everything genuinely cat_tools-specific: the docs_only CI mechanism, the pgxntool behavior gotchas (belong in pgxntool/CLAUDE.md, out of scope this round), the squash-commit PR-description mechanics, cat_tools' own version history and gitignore rationale, and the TEST_LOAD_SOURCE/CI job matrix documentation.
|
Claude finished @jnasbyupgrade's task in 3m 5s —— View job Code Review
Overall this is a clean consolidation — the sections removed (GitHub CI monitoring, test-matrix-dimension bias, Bug Fixes, Git safety/CI-prefix, PR/issue reference format, general SQL-file-tracking rules, general PG-version-support policy, Code Style) read as genuinely cross-repo conventions, and what's kept (the Found one real issue: dangling rule-number references. The deleted "SQL file conventions" list (rules 0–6) is referenced by rule number from three other files, and this PR leaves those references pointing at a rule that no longer exists in
Rule 5 was "Version-specific files MUST NEVER be edited manually — always edit Smaller, non-blocking observation: The "Build/test system (pgxntool)" section's intro sentence changed meaning, not just wording — it went from "pgxntool's docs are not auto-loaded, read No other removed section (test-matrix-dimension bias, Bug Fixes, Git/CI-prefix, PR/issue reference format, Code Style/terminology) has any dangling reference elsewhere in the repo — checked via grep across non- |
…al pgxntool rule
The previous rewrite pointed at ai/CLAUDE.md for ".sql.in vs .sql" as if
it were part of the shared, general SQL-versioning rules. It isn't: the
.sql.in -> .sql preprocessing step (sql.mk, layered on top of pgxntool's
own versioned-SQL generation) is a custom addition unique to this repo --
most pgxntool consumers hand-edit the base sql/{ext}.sql directly and
have no .sql.in step at all. Restores the local tracking rules for it and
narrows the ai/CLAUDE.md pointer to what's actually general there (why
version-specific scripts are tracked, skip conditions, never-hand-edit,
the stable-pseudo-version gitignore rule). Also moves the same
mischaracterized .sql.in bullet out of the pgxntool-gotchas list, where
it was described as pgxntool behavior it isn't.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Claude finished @jnasbyupgrade's task in 3m 37s —— View job Code Review
Reviewed the new commit ( 1. Still open: dangling "SQL file conventions rule 5" references (from the previous review, unaddressed by this commit)
2. New: inaccurate description of how pgxntool interacts with the
This isn't what Everything else in this commit's rewrite (the bulleted vs. numbered restructuring, the |
Not actually cat_tools-specific -- the maintainer merges every PR personally and copies the opening into the squash commit message for every repo, not just this one. Filed as Postgres-Extensions/ai#4 to add the missing pieces (standalone opening, no title line, no delimiter marker, keep incidentals out, structure the rest) as general PR.md rules instead of a local duplicate.
… anywhere general" Vague wording -- state exactly what's being contrasted against.
|
I'll analyze this and get back to you. |
206a00e
into
Postgres-Extensions:master

Removes content now covered by Postgres-Extensions/ai's
CLAUDE.md,PR.md, andCODE_STYLE.md: CI-monitoring, the make-vs-ci.ymltest-dimension bias, bug-fix comment rules, theCI:title-prefix rule, the PR/issue full-URL convention, general version-specific-SQL-file tracking rules, the general PG-version-support policy, the whole Code Style section (block comments, closing non-indentable blocks, upgrade-vs-update terminology), and the whole Pull request descriptions section (the maintainer-copies-opening-into-squash-commit mechanic isn't cat_tools-specific — filed as ai#4 to add the missing pieces there generally).Also drops "Always open PRs against the main repo, not a fork" — stale guidance superseded by
PR.md's fork-default convention — and "Never delete a branch without approval", now generalized intoPR.md's merge authority section instead.Keeps everything genuinely cat_tools-specific: the
docs_onlyCI mechanism, the pgxntool behavior gotchas (arguably belong inpgxntool/CLAUDE.mdinstead, but that's out of scope this round), the.sql.inpreprocessing convention (a customsql.mklayer, not a general pgxntool rule), cat_tools' own version history and gitignore rationale, and theTEST_LOAD_SOURCE/CI job matrix documentation.