Skip to content

docs: harvest review lessons from PRs reviewed 2026-08-14 to 2026-08-21 - #10360

Open
saltas888 wants to merge 2 commits into
stablefrom
claude/cool-pasteur-9b3ksj
Open

docs: harvest review lessons from PRs reviewed 2026-08-14 to 2026-08-21#10360
saltas888 wants to merge 2 commits into
stablefrom
claude/cool-pasteur-9b3ksj

Conversation

@saltas888

@saltas888 saltas888 commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Why

Reviewers repeated the same findings across this week's PRs — most of all on the dark-theme token migration, where the same three findings (token swap ≠ no-op, WCAG demotions, missing changelog fragments) recurred across ten PRs. This is the weekly harvest run: it mines those threads for rules that generalize, verifies each against the code, and routes the durable ones into the internal-doc layer.

Non-goals: no production code or test changes; no duplication of edits pending in #10030 (pha/conventions, on develop) — in particular the changelog-skill naming refinements already fixed there.

PRs harvested from

Lessons in this PR trace to review threads on:

Also read, with nothing durable to harvest (no in-window substantive threads, lessons already codified, or PR-local design calls): #10312's transaction threads, #10353, #10358, #10354, #10339, #10334 (its maintainer corrections land in that open docs PR), #10341, #10348, #10347, #10331, #10335, #10290, #10250, #10238, #10298, #10299, #10302, #10316, #10317, #10287, #10288, #10291, #10281, #10256, #10231, #10266, #10270, #10030, #10178, #10232, #10135, #10258, #9451, #9965, #10164, and the bot merge/submodule/dependabot PRs in the window.

Notable non-edits, recorded deliberately:

What changed

Grouped by intent (documentation layer only, 10 files, +42/−7):

  • Frontend theming (dev/guidelines/frontend/styling.md, new "Theme tokens" section): the five rules above, written as imperatives with the concrete failure shapes reviewers kept describing. The token system lives on develop; this lands on stable and reaches it through the routine stable→develop syncs, same as the rest of the harvest.
  • Changelog discipline (root AGENTS.md, Always Do): one line — towncrier fragment for any user-visible change, UI styling included; none for pure internal changes. The rule already exists in the creating-changelog-entries skill; this is the load-trigger that was missing (≥8 repeat comments this week).
  • Docs claim verification (docs/AGENTS.md): the existing verify-claims bullet now names the pinned-submodule check for SDK features; new terminology line — "object", not "node", in user-facing text.
  • Links (dev/guidelines/markdown.md): relative links must not route through repo symlinks.
  • Comment style (.agents/rules/code-doc-style.md): never describe what the code does not do.
  • Docs style (dev/guidelines/documentation.md): don't reference steps by number.
  • Branch targeting (dev/guidelines/git-workflow.md): the lint/tooling split, codifying the precedent argued on chore(backend): enforce ruff TRY400 so error logs carry tracebacks #10220.
  • Backend knowledge (dev/knowledge/backend/schema-definitions.md, database-schema.md): deprecations name the removal version; instance-level self-loops unsupported.
  • Rot sweep (dev/knowledge/frontend/design-system.md): five stale "Migrated in #NNNN" citations removed — develop's copy already dropped them; stable's diverged copy still carried them.

What stayed the same: no production code, no tests, no user-facing docs pages, no schema changes.

How to review

Every edit cites a real review thread (see the commit message for the per-file mapping). The judgement calls worth a second pair of eyes: the git-workflow branch-targeting bullet encodes @saltas888's rebuttal on #10220 that no maintainer overruled — flag it if the release-vehicle policy reads differently; and the self-loop line in database-schema.md encodes @ajtmccarty's statement on #10312.

File sizes after the change: every touched file is inside its repository-organization.md range (styling.md 106/100–400, database-schema.md 390/200–400 — closest to its cap).

How to test

markdownlint-cli2 <the 8 edited non-AGENTS md files>

Ran locally: 0 errors (AGENTS.md files are excluded by the repo's markdownlint config; Vale not available in the sandbox; no docs/docs pages touched).

Impact & rollout

  • Backward compatibility: documentation only; no behavior change.

Checklist

  • Tests added/updated — N/A, docs only
  • Changelog entry added — N/A, internal docs only
  • External docs updated — N/A, no user-facing change
  • Internal .md docs updated (internal knowledge and AI code tools knowledge)
  • I have reviewed AI generated content

🤖 Generated with Claude Code

https://claude.ai/code/session_01XdeNcpTLZ15aUaz6H5uJVd


Generated by Claude Code

Review in cubic

Weekly harvest of review-thread lessons into the internal-doc layer:

- frontend/styling.md: new Theme tokens section — token swaps are visual
  changes, palette-family consistency, WCAG AA tiers, fixed-scheme
  surfaces, sibling consistency, no dead tokens (from the dark-theme PR
  series 10267-10284, 10295)
- AGENTS.md: changelog fragment for any user-visible change in Always Do
  (the single most-repeated review comment this week)
- docs/AGENTS.md: verify SDK/infrahubctl claims against the pinned
  python_sdk commit (10293); say "object" not "node" in user-facing text
  (10228)
- markdown.md: never route relative links through repo symlinks — GitHub
  does not follow them (10293)
- code-doc-style.md: never document what the code does not do (10322,
  10228)
- documentation.md: don't reference steps by number (10311)
- git-workflow.md: branch targeting for lint/tooling PRs (10220)
- schema-definitions.md: deprecation messages name the removal version
  (10306)
- database-schema.md: instance-level relationship self-loops are
  unsupported (10312)
- design-system.md: pruned five stale PR-number citations (rot sweep)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XdeNcpTLZ15aUaz6H5uJVd
@github-actions github-actions Bot added the type/documentation Improvements or additions to documentation label Aug 21, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 10 files

Shadow auto-approve: would not auto-approve because issues were found.

Re-trigger cubic

Comment thread .agents/rules/code-doc-style.md Outdated
Comment thread docs/AGENTS.md Outdated
Comment thread AGENTS.md Outdated
@saltas888
saltas888 marked this pull request as ready for review August 21, 2026 09:19
@saltas888
saltas888 requested review from a team as code owners August 21, 2026 09:19
- code-doc-style: the "what the code does not do" rule banned durable
  negative contracts too ("this never raises" in api/admission/priority.py,
  graphql/api/dependencies.py). Scoped to narrating the rejected approach,
  with the contract case kept explicitly — it is an auto-injected rule, so
  an over-broad never would have agents deleting real warnings.
- docs/AGENTS.md: "node" is genuine schema vocabulary in user-facing text
  (schema/nodes-and-attributes.mdx, "Node kind" in webhooks and reference
  docs, NodeKind: "Node" in the schema provider). Rule now covers populated
  instances and leaves the schema-kind sense alone.
- AGENTS.md: the changelog exemption contradicted the
  creating-changelog-entries skill, which keeps a housekeeping fragment for
  internal maintenance. Matched to the skill.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XdeNcpTLZ15aUaz6H5uJVd

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 3 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Shadow auto-approve: would auto-approve. This PR codifies recent review feedback into the project's internal documentation and developer guidelines, covering theming, changelog discipline, and documentation standards.

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants