Skip to content

docs: update engineering convention docs#3079

Open
vseehausen wants to merge 2 commits into
mainfrom
valentin/cgw-code-conventions-docs-only
Open

docs: update engineering convention docs#3079
vseehausen wants to merge 2 commits into
mainfrom
valentin/cgw-code-conventions-docs-only

Conversation

@vseehausen
Copy link
Copy Markdown
Member

Summary

  • update CGW engineering docs to the current code-conventions skill structure
  • replace the ID-based active convention guide with project-structure.md
  • move review-learning coverage, ledger, open questions, and module inventory under docs/engineering/working

Validation

  • node /Users/valentin/Development/safe/safe-engineering-plugin/plugins/safe-engineering/skills/code-conventions/scripts/validate-convention-docs.js --root .
  • git diff --check --cached

@vseehausen vseehausen requested a review from a team as a code owner May 6, 2026 12:10
Introduces a structured engineering convention manual under docs/engineering
to capture and apply CGW-local code-review patterns:

- rules.json + rules.schema.json: 59 durable pre-PR rules across modules,
  types, auth, database, cache, config, tests, performance, logging,
  security, and resilience. Each carries a stable rule ID, area, durable
  rule, executable check, exampleRefs, and reviewLearningIds.
- rules.generated.md: human-readable view, regenerated from rules.json.
- examples/: 12 topic files (testing, schemas-and-validation, cache,
  database-migrations, repositories-and-pagination, controllers-and-swagger,
  error-handling, auth-and-secrets, style, scope-and-pr-hygiene, resilience,
  configuration). Each Avoid/Prefer/Why block traces back to its source
  PR and review-learning ID.
- working/review-learnings.json + schema: 31 review learnings distilled
  from CGW PR review feedback (CLOSED-20251211 through CLOSED-20260205).
  Every CLOSED-* learning carries the originating reviewCommentIds /
  reviewIds / issueCommentIds for traceability.
- working/review-learning-ledger.json: covered-range state for the
  safe-engineering:code-conventions skill.
- README.md and project-structure.md: routing and placement guide.
- .gitignore: ignore docs/engineering/pr-self-review-checklist.generated.md
  produced by the PR-review checklist generator.
@vseehausen vseehausen force-pushed the valentin/cgw-code-conventions-docs-only branch from af21e83 to 26f2f6f Compare May 7, 2026 16:34
Adds RL-20260508-001 (HIST), a manual learning that captures the rule
"push negative paths to the lowest layer that can prove the property;
e2e proves wiring once per route, not per branch."

- review-learnings.json: new RL-20260508-001 mapped to TEST-02.
- rules.json: TEST-02 retitled "Right test layer (pyramid)"; rule and
  check expanded with the layer-routing decision and the wiring-vs-
  branch distinction; reviewLearningIds links the new entry.
- rules.generated.md: regenerated.
@safe-global safe-global deleted a comment from popcorn-review Bot May 8, 2026
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