Skip to content

docs: track CLAUDE.md and update it for the Go legacy backend#5107

Merged
mlehotskylf merged 3 commits into
devfrom
docs/update-claude-md-backend-layout
Jul 15, 2026
Merged

docs: track CLAUDE.md and update it for the Go legacy backend#5107
mlehotskylf merged 3 commits into
devfrom
docs/update-claude-md-backend-layout

Conversation

@mlehotskylf

Copy link
Copy Markdown
Collaborator

Summary

  • Un-ignores CLAUDE.md (it was added to .gitignore in 9b338dc) so the Claude Code repo guidance is shared and versioned.
  • Corrects stale content: the Python /v1//v2 backend has been removed (5d87c67); those endpoints are now served by the Go cla-backend-legacy module, built as bin/legacy-api-lambda and deployed via the cla-backend Serverless stack on the original api.* domains.
  • Repository layout section now describes cla-backend/ as the deployment stack (Go binaries only: v3 API, dynamo-events, metrics, zipbuilder, gitlab-repository-check, user-subscribe, legacy API, authorizer) and cla-backend-legacy/ as the Go legacy API module with its parity tooling.
  • Replaces the obsolete "Python Backend" section (Python 3.11 / yarn serve:dev) with legacy-Go build/run instructions (make lambdas, STAGE=dev ADDR=":5000" make run-local, Cypress helpers on :5000).
  • Updates the CI section accordingly and adds the standard CC-BY-4.0 doc header.

Note for reviewers

Tracking CLAUDE.md reverses the earlier decision to gitignore it. Anyone keeping a private local CLAUDE.md will need to move it aside before pulling this change (git will refuse to overwrite the untracked file). If the original intent was per-developer private guidance, please say so and this PR can be closed in favor of keeping it local-only.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 11, 2026 15:08
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 09122ec6-f0b0-4d69-8979-7675adb37838

📥 Commits

Reviewing files that changed from the base of the PR and between 93c243b and e22021a.

📒 Files selected for processing (1)
  • CLAUDE.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • CLAUDE.md

Walkthrough

Adds a Claude Code repository guide covering architecture, workflows, environments, contribution conventions, and CI. Removes the .gitignore rule that excluded CLAUDE.md.

Changes

Repository guidance

Layer / File(s) Summary
Repository guide and tracking
CLAUDE.md, .gitignore
Adds repository onboarding and workflow guidance, and removes the ignore rule for CLAUDE.md.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the CLAUDE.md docs update and its focus on the Go legacy backend.
Description check ✅ Passed The description matches the changeset and explains the CLAUDE.md tracking and legacy backend updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/update-claude-md-backend-layout

Comment @coderabbitai help to get the list of available commands.

Copilot AI 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.

Pull request overview

Tracks shared repository guidance and updates it for the Go legacy backend.

Changes:

  • Adds current backend architecture and development instructions.
  • Stops ignoring CLAUDE.md.
  • Documents CI, deployment, and licensing conventions.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

File Description
CLAUDE.md Adds versioned repository guidance.
.gitignore Allows CLAUDE.md to be tracked.

Comment thread CLAUDE.md Outdated
Comment thread CLAUDE.md Outdated
Comment thread CLAUDE.md Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
CLAUDE.md (1)

95-97: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Make the Speckit plan reference actionable.

“Read the current plan” does not identify a file, command, or link. Document where contributors should find it, or confirm that external tooling resolves this marker before publication.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CLAUDE.md` around lines 95 - 97, Update the Speckit guidance surrounding the
“SPECKIT END” marker to make the plan reference actionable: identify the plan’s
file or location, provide the command or link contributors should use, or
explicitly confirm that external tooling resolves the marker before publication.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@CLAUDE.md`:
- Around line 95-97: Update the Speckit guidance surrounding the “SPECKIT END”
marker to make the plan reference actionable: identify the plan’s file or
location, provide the command or link contributors should use, or explicitly
confirm that external tooling resolves the marker before publication.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 840ba0d1-38c1-4e92-8bc4-1d8983b44a5c

📥 Commits

Reviewing files that changed from the base of the PR and between 16491c4 and 070e2ba.

📒 Files selected for processing (2)
  • .gitignore
  • CLAUDE.md
💤 Files with no reviewable changes (1)
  • .gitignore

Un-ignore CLAUDE.md (was added to .gitignore in 9b338dc) so the
repo guidance is shared, and correct its stale content: the Python
v1/v2 backend was removed and /v1,/v2 are now served by the Go
cla-backend-legacy module deployed via the cla-backend Serverless
stack. Update the repository layout, replace the Python backend
section with legacy Go build/run instructions, and fix the CI notes.

Note for reviewers: anyone keeping a private local CLAUDE.md must
move it aside before pulling this change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Michal Lehotsky <mlehotsky@linuxfoundation.org>
@mlehotskylf mlehotskylf force-pushed the docs/update-claude-md-backend-layout branch from 070e2ba to 93c243b Compare July 11, 2026 15:15
Copilot AI review requested due to automatic review settings July 11, 2026 15:15

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

Comment thread CLAUDE.md Outdated
Comment thread CLAUDE.md Outdated
Comment thread CLAUDE.md Outdated

@lukaszgryglicki lukaszgryglicki left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm - please see Copilot's feedback and eventually address @mlehotskylf

Address review comments from copilot-pull-request-reviewer[bot]:

- CLAUDE.md: clarify cla-backend/ retains the API Gateway authorizer as its
  sole application code, rather than claiming it has none (per copilot)
- CLAUDE.md: narrow the three-layer module split claim to "most" v2/
  packages, noting handler-only and generated-client exceptions (per copilot)
- CLAUDE.md: name the actual deploy scripts (deploy:dev/staging/prod) instead
  of implying a script exists per environment (per copilot)
- CLAUDE.md: clarify check-headers.sh does not scan Markdown and that only
  cla-backend-go's make lint invokes it, not cla-backend-legacy's (per copilot)

Resolves 6 review threads.

Signed-off-by: Michal Lehotsky <mlehotsky@linuxfoundation.org>
Copilot AI review requested due to automatic review settings July 15, 2026 15:37
@mlehotskylf

Copy link
Copy Markdown
Collaborator Author

Re coderabbitai's nitpick about the "Speckit plan reference" near lines 95-97 in an earlier revision: that content no longer exists in CLAUDE.md (the file now ends at the CI section, line ~92). Treating this as outdated/already addressed.

@mlehotskylf

Copy link
Copy Markdown
Collaborator Author

Review Feedback Addressed

Commit: e22021a

Changes Made

  • CLAUDE.md (line 18): reworded to say cla-backend/'s sole retained application code is the API Gateway authorizer under cla-backend/auth/, instead of claiming it has none (per copilot-pull-request-reviewer[bot])
  • CLAUDE.md (line 50): narrowed the three-layer module claim to "most packages under v2/", calling out v2/health (handler-only) and v2/project-service (generated client) as exceptions (per copilot-pull-request-reviewer[bot])
  • CLAUDE.md (line 75): named the actual deploy scripts (deploy:dev, deploy:staging, deploy:prod) rather than implying one exists per environment listed (per copilot-pull-request-reviewer[bot])
  • CLAUDE.md (line 85): clarified check-headers.sh doesn't scan Markdown, and only cla-backend-go's make lint invokes it — cla-backend-legacy's does not (per copilot-pull-request-reviewer[bot])

Threads Resolved

6 of 6 unresolved threads addressed (two review passes had flagged the same 4 issues, so 6 threads collapsed to 4 distinct fixes).

Questions Answered

  • coderabbitai's nitpick about a "Speckit plan reference" (lines 95-97 in an earlier revision) — that content no longer exists in the current CLAUDE.md; noted as outdated in a separate PR comment.

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

Comment thread CLAUDE.md Outdated
Comment thread CLAUDE.md Outdated
Address review comments from copilot-pull-request-reviewer[bot]:

- CLAUDE.md: document both bin/cla-mac (make build-mac) and bin/cla (make
  build-linux) launch commands, since Linux writes a different binary name
- CLAUDE.md: clarify check-headers.sh only verifies the copyright line, not
  the SPDX identifier, which is convention-only and unchecked

Resolves 2 review threads.

Signed-off-by: Michal Lehotsky <mlehotsky@linuxfoundation.org>
Copilot AI review requested due to automatic review settings July 15, 2026 15:55
@mlehotskylf

Copy link
Copy Markdown
Collaborator Author

Review Feedback Addressed (follow-up)

Commit: 06b3c7e

Changes Made

  • CLAUDE.md: documented both ./bin/cla-mac (make build-mac) and ./bin/cla (make build-linux) as launch commands, since Linux produces a differently-named binary (per copilot-pull-request-reviewer[bot])
  • CLAUDE.md: clarified check-headers.sh only verifies the copyright line, not the SPDX identifier — the SPDX convention is unchecked by CI (per copilot-pull-request-reviewer[bot])

Threads Resolved

2 of 2 new unresolved threads addressed (raised after the previous push).

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

Comment thread CLAUDE.md
Comment thread CLAUDE.md
@mlehotskylf mlehotskylf merged commit d3d8eea into dev Jul 15, 2026
9 checks passed
@mlehotskylf mlehotskylf deleted the docs/update-claude-md-backend-layout branch July 15, 2026 16:11
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.

3 participants