Skip to content

Add CLAUDE.md - #4

Open
devinrsmith wants to merge 1 commit into
seqlock-review-2from
seqlock-review-3
Open

devinrsmith wants to merge 1 commit into
seqlock-review-2from
seqlock-review-3

Conversation

@devinrsmith

Copy link
Copy Markdown
Member

Guidance for Claude Code sessions in this repository: what the library is and where its contract lives, that Gradle must run inside the devenv shell, the build/test/format commands (including the per-JDK test tasks), and the architecture notes that aren't obvious from a single file -- the multi-release JAR layout and shim pairs, how the java17/21/25Test tasks reuse the java11 override, the version-catalog convention, the devenv toolchain wiring, the SeqLock state encoding and asserts, and the RequestStatsExample/README pairing.

Guidance for Claude Code sessions in this repository: what the library
is and where its contract lives, that Gradle must run inside the devenv
shell, the build/test/format commands (including the per-JDK test
tasks), and the architecture notes that aren't obvious from a single
file -- the multi-release JAR layout and shim pairs, how the
java17/21/25Test tasks reuse the java11 override, the version-catalog
convention, the devenv toolchain wiring, the SeqLock state encoding and
asserts, and the RequestStatsExample/README pairing.
@devinrsmith
devinrsmith added this pull request to stack #3 September 22, 2026 23:50
Copilot AI balanced review requested due to automatic review settings September 22, 2026 23:50

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

Copilot review overview

🟡 Changes recommended

The documented workflow and concurrency guarantees need the noted clarifications.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Low severity

Open (2)
What changed in this PR

Adds repository guidance for development workflows, architecture, testing, formatting, and SeqLock conventions.

Changes:

  • Documents Gradle/devenv workflows and JDK-specific tests.
  • Explains the multi-release JAR, shims, toolchains, and examples.
  • Records SeqLock state and concurrency expectations.
File Review
CLAUDE.md Clarify that single-writer use is a caller obligation, devenv is recommended rather than required, and build runs rather than applies Spotless checks.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CLAUDE.md
## Dev shell

This repo's dev environment is managed by `devenv.nix`/`devenv.yaml` (via `nix-gradle-wrapper`, a
non-flake input pinned in `devenv.lock`). Running Gradle inside it is recommended, not required:
Comment thread CLAUDE.md
Comment on lines +84 to +87
- `SeqLock` state: a `volatile long sequence` (reader-visible) plus a writer-private plain `long
writerSeq`. Even sequence = quiescent/readable; odd = write-in-progress. `assert` statements in
`beginWrite`/`endWrite` enforce single-writer, non-reentrant use (run with `-ea` to have these
checked; the test suite relies on them via `SeqLockTest.doubleBeginWrite`/`doubleEndWrite`).
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.

2 participants