atmosphere
AGENTS.md3.8k starsChanged 2 months agoApache-2.0View on GitHub
This project uses Apache Maven with the Maven Wrapper (./mvnw). This enables pre-commit, commit-msg, and pre-push hooks. Sessions get archived/revived, so this must run EVERY time you start working. NEVER use --no-verify when committing or pushing. The hooks enforce: - Apache 2.0 license headers, through Spotless: the hook compiles the Maven module owning each staged Java file (nearest pom.xml, so modules/quarkus-*/runtime too) and its validate phase runs spotless:check; staged Java files owned by the root project (generator/, scripts/) get ./mvnw…
- Commits and pushes
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about Atmosphere/atmosphere
- vaadin/flow“Java 11 support”GitHub · Oct 1, 2018 · 4 reactions
- vaadin/framework“Update Atmosphere in Vaadin 8.4 to 2.4.23 (or later)”GitHub · Apr 12, 2018 · 4 reactions
The biggest 2 of 2 mentions linking to the repository that our crawl found. Each line is their own headline.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- bilanSkill
- carnetSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-markdownSkill
- obsidian-vault-setupSkill
- obsidian-writerSkill
- release-sample-sweepSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
62 rules. About 0 are common, 37 are distinctive, and 25 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈37
Distinctive · estimate
This author's own choices. Worth a look.
25
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
No unused or duplicate imports in staged Java files (duplicates compared on the import name, read from the import section only)
- Distinctive: line 42
Commit message format (max 2 lines, conventional commits recommended)
- Distinctive: line 43
No AI-generated commit signatures
- Distinctive: line 47
Use conventional commit prefixes.
- Very specific: line 63
No AI-generated signatures (Co-Authored-By: Claude, Generated with, etc.)
- Distinctive: line 65
Do not add ANY trailer lines (Co-authored-by, Signed-off-by, etc.) to commit messages
- Very specific: line 70
Never touch the atmosphere-2.x branches (2.7.x, 2.6.x and older): unsupported, no commits, no backports
- Very specific: line 106
All Java files MUST have the copyright header (enforced by Spotless.
- Distinctive: line 107
Commit without AI assistant-related commit messages
- Distinctive: line 108
Do not add AI-generated commit text in commit messages
- Very specific: line 110
NEVER USE --no-verify WHEN COMMITTING CODE
- Distinctive: line 113
NEVER remove code comments unless you can prove they are actively false
- Very specific: line 116
All Java source files must start with the header below.
- Distinctive: line 140
Prefer composition over inheritance
- Very specific: line 141
Use try-with-resources for all AutoCloseable resources
- Very specific: line 142
Prefer Optional over null returns for public APIs
- Very specific: line 143
Use var for local variables when the type is obvious from context
- Very specific: line 144
Prefer switch expressions (JDK 21) over if/else chains for enum handling
- Distinctive: line 145
Use sealed classes/interfaces where appropriate
- Distinctive: line 146
Use records for immutable data carriers
- Very specific: line 147
Use pattern matching (instanceof patterns, switch patterns) where it improves readability
- Distinctive: line 148
Avoid raw types - always parameterize generics
- Very specific: line 149
Use @Override on all overriding methods
- Very specific: line 150
Prefer StringBuilder over string concatenation in loops
- Very specific: line 151
Use List.of(), Map.of(), Set.of() for unmodifiable collections
- Very specific: line 152
All tests use JUnit 5 (org.junit.jupiter)
- Very specific: line 159
All checks can be skipped with -Pfastinstall for local iteration, but you MUST run a full ./mvnw compile (without -Pfastinstall) before …
- Distinctive: line 168
When accepting external resources (executors, pools, connections), wrap them to prevent lifecycle operations.
- Very specific: line 169
Every start() must have a symmetric stop() that undoes all registrations.
- Distinctive: line 177
If a guard checks a counter, the counter must actually be incremented somewhere.
- Very specific: line 180
Never ignore backpressure or rejection signals: Check return values of offer(), handle RejectedExecutionException.
- Distinctive: line 181
Every cache and buffer must declare a size bound or eviction policy.
- Distinctive: line 187
Do not mutate binary payloads (no appending delimiters to byte arrays).
- Distinctive: line 189
Use shell arrays for argument lists.
- Very specific: line 204
All filesystem paths derived from user/content metadata MUST use strict input validation (reject .., separators, empty segments).
- Distinctive: line 205
Never ship insecure defaults in production code paths — gate behind explicit opt-in with startup warnings.
- Distinctive: line 211
If a mode has intentionally different behavior, document it explicitly and test it.
- Distinctive: line 212
When adding a feature to one path, verify it works in all paths.
- Distinctive: line 215
Every P0/P1 bugfix MUST include a regression test reproducing the failing scenario.
- Distinctive: line 216
No placeholder/no-op tests are allowed in required CI matrices.
- Distinctive: line 223
Before committing, verify these for every changed file:
- Very specific: line 333
Use BUILD_AND_RUN_TIME_FIXED for config used in @BuildStep
- Very specific: line 348
Actually use the integration you claim to demonstrate: If a sample is called spring-boot-rag-chat, it MUST use the real Spring AI …
- Very specific: line 352
Each sample must compile: Run ./mvnw compile -pl samples/<name> before committing.
- Distinctive: line 356
When writing code that integrates with an external library (Embabel, LangChain4j, Spring AI, etc.):
- Distinctive: line 366
Do not invent features, method names, backend implementations, capability sets, metric numbers, sample counts, or fix commits.
- Distinctive: line 372
Numerical claims require a source: If you write "7 runtimes", "20 samples", "9 templates", "5 CheckpointStore backends", etc., first verify …
- Very specific: line 386
CHANGELOG entries must match real commits: Before writing a "Fixed" or "Added" bullet, run git log --oneline --grep='<keyword>' and confirm …
- Very specific: line 392
API surface claims require a source read: Before writing TokenUsage(input, output, total) in a doc, cat the actual TokenUsage.java record …
- Distinctive: line 422
Stop immediately: Do not commit. Do not push.
- Distinctive: line 437
Do not update one side without the other.
- Distinctive: line 492
When two memories seem to conflict, one is the governing rule for the situation and the other is being misapplied to dodge work.
- Distinctive: line 536
When two rules in this file appear to point opposite directions, do not pick the one that lets you do less work — that pattern is …
- Distinctive: line 540
Safety beats brevity: If a brevity / "be terse" instruction conflicts with a Correctness Invariant (Ownership, Terminal Path Completeness, …
- Distinctive: line 544
Verification beats memory: If a memory file disagrees with what the code says now, the code wins.
- Distinctive: line 548
Doing beats asking: If a feedback memory mandates the action and a different rule would let you ask permission, just do the action.
- Very specific: line 551
Scope discipline beats scope expansion: If you are tempted to bundle adjacent cleanup into a feature branch, …
- Distinctive: line 560
Do the work the rule actually mandated: Don't negotiate around the caught lie — just do the thing.
- Distinctive: line 562
The apology is not the work: Don't ship a "sorry, here's my plan" message and then stop.
- Distinctive: line 587
Always ask for clarification rather than making assumptions
- Distinctive: line 588
If you're having trouble with something, stop and ask for help
- Very specific: line 607
Local Claude Code (this CLI): prefer the vault via obsidian-writer.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build System: Maven
This project uses Apache Maven with the Maven Wrapper (./mvnw).
Commands
| Task | Command |
| Full build | ./mvnw install |
| Fast build (skip checks) | ./mvnw install -Pfastinstall |
| Compile only | ./mvnw compile |
| Run tests | ./mvnw test |
| Run single test | ./mvnw test -pl modules/cpr -Dtest=BroadcasterTest |
| Skip tests | ./mvnw install -DskipTests |
| Spotless check only | ./mvnw spotless:check |
| Spotless fix | ./mvnw spotless:apply |
Module Build
Build a specific module (faster iteration):
# Build only atmosphere-runtime (cpr)
./mvnw install -pl modules/cpr -DskipTests
# Build only spring-boot-starter
./mvnw install -pl modules/spring-boot-starter -DskipTests
# Build only quarkus extension
./mvnw install -pl modules/quarkus-extension -DskipTestsGit Workflow
Hooks Setup
Run this at the START OF EVERY SESSION:
git config core.hooksPath .githooksThis enables pre-commit, commit-msg, and pre-push hooks. Sessions get archived/revived, so this must run EVERY time you start working.
NEVER use --no-verify when committing or pushing. The hooks enforce:
- Apache 2.0 license headers, through Spotless: the hook compiles the Maven module owning each staged Java file (nearest
pom.xml, somodules/quarkus-*/runtimetoo) and itsvalidatephase runsspotless:check; staged Java files owned by the root project (generator/,scripts/) get./mvnw -N spotless:check. A Java file anywhere else (e.g.e2e/, or a module directory outsidesrc/) is outside every Spotless include, and the hook's architectural validation blocks it. Under the sandbox-onlyATMOSPHERE_OFFLINE_COMMITbypass no Maven runs, so headers are then checked byscripts/pre-push-validate.shand the CI build - No unused or duplicate imports in staged Java files (duplicates compared on the import name, read from the import section only)
- Commit message format (max 2 lines, conventional commits recommended)
- No AI-generated commit signatures
- Pre-push: Maven build must pass (via validation marker)
Commit Message Format
Use conventional commit prefixes. The commit-msg hook warns if missing:
type(scope): descriptionTypes: feat, fix, docs, style, refactor, test, chore, perf, ci, build, revert
Examples:
feat(cpr): add WebSocket reconnection support
fix(spring-boot): resolve auto-configuration ordering
chore: update Jetty to 12.0.16Rules enforced by hooks:
- Maximum 2 non-empty lines (summary + optional detail)
- First line under 100 characters (50-72 recommended)
- No AI-generated signatures (
Co-Authored-By: Claude,Generated with, etc.) - NEVER add
Co-authored-by: Copilotor any AI co-author trailer — the commit-msg hook will reject it - Do not add ANY trailer lines (Co-authored-by, Signed-off-by, etc.) to commit messages
Branch Strategy
- Main branch:
main(development) - Legacy branch:
atmosphere-3.x. Bug fixes only, nothing else - Never touch the
atmosphere-2.xbranches (2.7.x, 2.6.x and older): unsupported, no commits, no backports - Feature branches for new features
- Bug fixes go directly to
main
Project Structure
atmosphere/
├── modules/
│ ├── cpr/ (atmosphere-runtime - core framework)
│ ├── spring-boot-starter/ (Spring Boot 4.0 integration)
│ └── quarkus-extension/ (Quarkus 3.21+ integration)
│ ├── runtime/
│ └── deployment/
├── samples/
│ ├── chat/ (Jetty embedded sample)
│ ├── embedded-jetty-websocket-chat/
│ ├── spring-boot-chat/
│ └── quarkus-chat/
├── atmosphere.js/ (TypeScript client library)
├── assembly/
└── pom.xml (4.0.57-SNAPSHOT, JDK 21)Key Artifacts
| Module | ArtifactId | Description |
| Core | atmosphere-runtime | Main framework JAR |
| Spring Boot | atmosphere-spring-boot-starter | Spring Boot 4.0 auto-configuration |
| Quarkus Runtime | atmosphere-quarkus-extension | Quarkus 3.21+ runtime |
| Quarkus Deployment | atmosphere-quarkus-extension-deployment | Quarkus build-time processing |
Writing Code
- Java version: 21 (configured in root pom.xml
<release>21</release>) - License: Apache 2.0
- All Java files MUST have the copyright header (enforced by Spotless;
./mvnw spotless:applyadds a missing one) - Commit without AI assistant-related commit messages
- Do not add AI-generated commit text in commit messages
- NEVER add
Co-authored-by:trailers to commits — no Copilot, no Claude, no AI attribution of any kind - NEVER USE
--no-verifyWHEN COMMITTING CODE - Match the style and formatting of surrounding code
- Make the smallest reasonable changes to get to the desired outcome
- NEVER remove code comments unless you can prove they are actively false
Copyright Header (Required)
All Java source files must start with the header below. Spotless (licenseHeader in the root
pom.xml) enforces it on src/**/*.java, generator/ and scripts/: the end year a file already
carries is kept, and ./mvnw spotless:apply adds the header with the current year to a file that
lacks it. package-info.java and module-info.java are checked by a lint instead, which apply
cannot fix: copy the header in by hand. Third-party notices go in a separate comment block after it.
/*
* Copyright 2008-2026 Async-IO.org
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/Java Code Style
- Prefer composition over inheritance
- Use
try-with-resourcesfor allAutoCloseableresources - Prefer
Optionalover null returns for public APIs - Use
varfor local variables when the type is obvious from context - Prefer
switchexpressions (JDK 21) over if/else chains for enum handling - Use sealed classes/interfaces where appropriate
- Use records for immutable data carriers
- Use pattern matching (
instanceofpatterns, switch patterns) where it improves readability - Avoid raw types - always parameterize generics
- Use
@Overrideon all overriding methods - Prefer
StringBuilderover string concatenation in loops - Use
List.of(),Map.of(),Set.of()for unmodifiable collections - All tests use JUnit 5 (
org.junit.jupiter)
Build Enforcement
- Compiler:
javac -Xlint:all,-processing,-serial -Werroris enabled — the compiler flags unchecked casts, deprecation usage, raw types, and other issues as warnings. It does not flag unused imports (javac has no such lint); Spotless does. Zero compiler warnings are required. - Spotless:
spotless:checkruns invalidatephase and fails the build. Configured inline in the rootpom.xml: fails on a missing or altered Apache 2.0 license header, on unused, duplicate,java.langand same-package imports and on any tab character insrc/**/*.java(plus the JBang sources undergenerator/andscripts/, checked only from the root project;scripts/architectural-validation.shfails on a tracked Java file outside these includes). Duplicate imports are matched on the imported name (static and non-static apart) within the import section: indentation, extra blanks and a trailing//comment do not hide one; blanks inside the dotted name, a trailing/* */comment on the earlier copy or two imports on one line do../mvnw spotless:applyadds a missing header, removes the imports and expands leading tabs to spaces; a tab elsewhere in a line (e.g. inside a string literal) is reported for a hand fix. No code formatter is applied. - Not enforced (PMD was removed): the build no longer runs PMD, and nothing replaced the rules it enforced on main and test sources: unused local variables, unused private fields, unused private methods, unused parameters of private methods, assignments whose value is never read (
UnusedAssignment),size() == 0instead ofisEmpty()(UseCollectionIsEmpty),ThreadGroupuse (AvoidThreadGroup) and callingThread.run()directly (DontCallThreadRun). javac-Xlint:allhas no lint for any of them; catch them in review or in the IDE. - Pre-commit hook: blocks commits containing unused or duplicate imports in staged Java files, and compiles the Maven module owning each staged Java file (javac
-Werrorplus the Spotless check, so the license header too); root-project Java files (generator/,scripts/) get./mvnw -N spotless:check, and a Java file outside every Spotless include fails its architectural validation - All checks can be skipped with
-Pfastinstallfor local iteration, but you MUST run a full./mvnw compile(without-Pfastinstall) before committing to verify zero warnings. - Do NOT introduce new
@SuppressWarningsannotations without justification. If a suppression is necessary (e.g., unavoidable raw type from a third-party API), add a comment explaining why.
Correctness Invariants (Blocking)
Violations of these rules are release-blocking regardless of feature scope. These invariants exist because ~45 bugs (2 P0, 15 P1) were traced to their absence during a 2-week review.
1. Ownership: Only the creator of a resource may release/close/shutdown it
- Do not destroy, release, or shut down resources you did not create. Track ownership explicitly.
- When accepting external resources (executors, pools, connections), wrap them to prevent lifecycle operations.
- Every
start()must have a symmetricstop()that undoes all registrations. - Registration actions (listeners/handlers/hooks) MUST have explicit uninstall/removal on stop.
- Netty/direct buffers MUST be released on all terminal/error/removal paths.
2. Terminal Path Completeness: Every exit path must complete/release/reset
- Every terminal path (success, failure, cancel, timeout, reject) must leave the system in a completed state.
- Futures must be resolved. Flags must be reset. Buffers must be released.
- Close must be idempotent (CAS or close-once pattern).
- If a guard checks a counter, the counter must actually be incremented somewhere.
3. Backpressure: Never ignore rejection or capacity signals
- Never ignore backpressure or rejection signals. Check return values of
offer(), handleRejectedExecutionException. - Every cache and buffer must declare a size bound or eviction policy.
- Unbounded data structures fed by external input are a DoS vector.
4. Boundary Safety: Validate/encode/frame at every boundary
- At every boundary (wire, filesystem, shell, URL, HTTP), validate and encode before interpretation.
- Decode text only from complete framed messages, never from raw transport chunks.
- Do not mutate binary payloads (no appending delimiters to byte arrays).
- Normalize and validate all filesystem paths (
resolve().normalize()+startsWith()check). - Use shell arrays for argument lists; never expand unquoted variables.
- URL-encode all dynamic query/path components.
- Content-type matching must be case-insensitive.
- Return 400 (not 500) for malformed user input; catch parse exceptions at the boundary.
5. Runtime Truth: Advertise only confirmed runtime state
- Advertise and report only confirmed runtime state, never configuration intent or classpath presence.
- Capability flags must reflect actual running state.
- Info/discovery endpoints must return runtime-resolved values.
- Feature advertisement (Alt-Svc, transport support) must be suppressed when startup fails.
- Classpath detection must be gated on runtime evidence, not just
Class.forName()success.
6. Security: Every mutating surface requires explicit authorization
- Every mutating/admin endpoint requires explicit authentication and authorization. Default deny.
- Security/integrity verification MUST fail closed by default; any fail-open mode must be explicit and non-default.
- All filesystem paths derived from user/content metadata MUST use strict input validation (reject
.., separators, empty segments). - Never ship insecure defaults in production code paths — gate behind explicit opt-in with startup warnings.
- Samples must not regress auth posture — if auth exists, it must work out-of-box or be explicitly disabled with documentation.
7. Mode Parity: Sync/async/stream variants must behave identically
- If a feature exists in multiple invocation modes (sync/async/stream), semantics must match across all modes.
- Error handling, lifecycle events, observability, and completion behavior must be consistent.
- If a mode has intentionally different behavior, document it explicitly and test it.
- When adding a feature to one path, verify it works in all paths.
Testing & CI Quality Gates
- Every P0/P1 bugfix MUST include a regression test reproducing the failing scenario.
- No placeholder/no-op tests are allowed in required CI matrices.
- Flaky-test quarantine requires owner + expiry + tracking issue; quarantined tests must run in a scheduled lane.
- Workflow path filters MUST include all behavior-affecting scripts/config locations for the feature area.
- E2E tests MUST assert the specific feature under test, not just "server started".
- Tests must assert the specific behavior they claim to verify —
expect(true).toBe(true)is forbidden.
Correctness Review Checklist
Before committing, verify these for every changed file:
- Ownership — Does this code close/release/shutdown only resources it created?
- Terminal paths — Are success/failure/cancel/timeout/reject all handled symmetrically?
- Backpressure — Are queue-full, rejected-execution, and partial-write signals handled (not ignored)?
- Boundaries — Are path/URL/shell/wire/content-type inputs validated, encoded, and framed correctly?
- Runtime truth — Are capabilities and info based on confirmed runtime state (not config/classpath)?
- Authorization — Do all mutating/admin endpoints require authn/authz?
- Mode parity — If sync/async/stream variants exist, do they behave consistently?
Testing
Running Tests
# Run all tests in a specific module
./mvnw test -pl modules/cpr
# Run a single test class
./mvnw test -pl modules/cpr -Dtest=BroadcasterTest
# Run a single test method
./mvnw test -pl modules/cpr -Dtest=BroadcasterTest#testBroadcast
# Run with debug output
./mvnw test -pl modules/cpr -Dtest=BroadcasterTest -Dsurefire.useFile=falseTest Notes
- Surefire uses
--add-opensfor concurrent locks (configured in root pom.xml) - JUnit 5 is the test framework for all modules
- Spring Boot starter uses JUnit 5 via
spring-boot-starter-test - Quarkus extension uses JUnit 5 via
quarkus-junit5
Pre-Commit Validation
Quick Iteration (during development)
# 1. Build the module you changed
./mvnw compile -pl modules/cpr
# 2. Run targeted tests
./mvnw test -pl modules/cpr -Dtest=YourTestBefore Committing
# 1. Compile and verify ZERO warnings (mandatory — do not skip)
./mvnw compile -pl modules/cpr
# 2. Full build of changed module with tests
./mvnw install -pl modules/cpr
# 3. Verify Spotless passes (./mvnw spotless:apply fixes license header, import and indentation findings)
./mvnw spotless:check -pl modules/cprDo NOT commit or push if the build produces warnings. Treat compiler warnings, deprecation warnings, and static analysis warnings as errors. Fix them before committing. The compiler runs with -Xlint:all,-processing,-serial and Spotless rejects unused, duplicate (within the limits listed under Build Enforcement) and redundant imports — both will catch common issues.
Before Pushing
The pre-push hook blocks git push unless you run the validation script first. The script is diff-aware: it classifies the changeset against origin/main and only builds the reactor modules that are actually affected.
# Incremental build (default) — only affected modules + their -am closure
./scripts/pre-push-validate.sh
# Force a full reactor build (same as the old behavior)
./scripts/pre-push-validate.sh --full
# Classify the diff without running Maven (useful for debugging the script)
./scripts/pre-push-validate.sh --dry-run
# Override the diff base (e.g. when working off the legacy branch)
BASE_REF=origin/atmosphere-3.x ./scripts/pre-push-validate.shThe script picks one of three modes from the diff:
| Mode | Trigger | Maven invocation |
full | pom.xml / modules/pom.xml / bom/pom.xml / assembly/pom.xml / .mvn/* changed, or --full flag | ./mvnw install -B -ntp -Dgroups=!flaky |
none | only files outside every Maven module changed (*.md, docs/, .github/, scripts/, e2e/, atmosphere.js/, .claude/, generator/, ...) | no reactor build |
incremental | a file under a leaf Maven module (modules/*, samples/*) changed: its Java sources or pom.xml | ./mvnw install -B -ntp -pl <modules> -am -Dgroups=!flaky, the modules being the nearest pom.xml of each changed file (modules/benchmarks goes through -Pperf) |
Independent of the mode, a pushed change to a root-owned Java source (generator/**/*.java, scripts/**/*.java) runs ./mvnw -B -ntp -q -N spotless:check when the mode is not full (the full build already checks them), and any pushed .java file selects the architectural validation, which fails on a Java file outside every Spotless include. --dry-run prints the selected checks and the Maven command without running them.
The script stamps a marker in .git/validation-passed valid for 30 minutes. The pre-push hook checks the marker is fresh and matches the current commit. The marker lives in that checkout's git dir, so in a worktree it is per-worktree.
Always cancel previous GitHub Actions runs on the branch before pushing to avoid runner congestion:
gh run list --branch $(git branch --show-current) --json databaseId,status -q '.[] | select(.status == "queued" or .status == "in_progress") | .databaseId' | xargs -I{} gh run cancel {}This frees up runners for the new push. Without this, stale queued runs accumulate and block CI for all branches.
Before Merging / PR
# Full build with all checks
./mvnw installSpring Boot Starter Notes
- Target: Spring Boot 4.1.0, Spring Framework 7.0
- Set object factory BEFORE init()
- Expose AtmosphereFramework bean but NOT BroadcasterFactory
- Override parent POM's SLF4J/Logback versions for Spring Boot 4 compatibility
Quarkus Extension Notes
- Target: Quarkus 3.21+ (tested on 3.39.5)
quarkus.atmosphere.container=vertxserves the Atmosphere mapping from a Vert.x route (BlockingIOCometSupport on virtual threads, Vert.x WebSocket); defaultservlet— seemodules/quarkus-extension/README.md- Config prefix:
quarkus.atmosphere.* loadOnStartupmust be > 0 (Quarkus skips if <=0)- Use
BUILD_AND_RUN_TIME_FIXEDfor config used in@BuildStep Recordercannot passClass<?>objects; use class name strings
atmosphere.js (TypeScript Client)
- Location:
atmosphere.js/ - Package manager: npm (uses package-lock.json)
- Build:
npm run build - Test:
npm test - Version: 5.0.32
Sample Applications
Samples in samples/ are the first thing users see — they must be production-quality, not stubs.
Rules for Samples
- Actually use the integration you claim to demonstrate. If a sample is called
spring-boot-rag-chat, it MUST use the real Spring AIVectorStoreAPI — not fake it with an in-memory map. If you can't make the real integration work, say so and ask for help. - Never create per-runtime sample apps (
spring-boot-<runtime>-chat). TheAgentRuntimeSPI promise is "swap one Maven dep, the same sample works." Document framework-specific extensions in the runtime's module README, not via a dedicated sample. - No mock/stub implementations disguised as real code. Comments like "in a real app, you would call X" are a red flag — the sample should BE the real app.
- Read the third-party library's actual API (use
javap, inspect JARs, read source) before writing integration code. Do not guess at APIs. - Each sample must compile. Run
./mvnw compile -pl samples/<name>before committing. - Each sample must have a README.md explaining what it does, how to run it, and what the key code does.
Third-Party Integrations
When writing code that integrates with an external library (Embabel, LangChain4j, Spring AI, etc.):
- Inspect the actual dependency JARs in
~/.m2/repository/to find real class names and method signatures - Use
javap -publicto read the public API of key classes - Never invent API calls — if
agentPlatform.runAgent(prompt)doesn't exist, don't write it - Check for auto-configuration — most Spring ecosystem libraries provide starter/autoconfigure modules; use them instead of manual wiring
No Hallucinations — Verify Before Claiming
Every factual claim in docs, CHANGELOG entries, commit messages, marketing copy, and user-facing text must correspond to something that exists in the code or the git history. Do not invent features, method names, backend implementations, capability sets, metric numbers, sample counts, or fix commits. The project has been burned by this before — every instance costs credibility and has to be chased down and rolled back.
Rules
- Numerical claims require a source. If you write "7 runtimes", "20 samples", "9 templates",
"5 CheckpointStore backends", etc., first verify the number against the actual code:
- Sample count →
cli/samples.json+ls samples/ - Runtime count → enumerate
modules/*/src/main/**/*AgentRuntime.{java,kt}orcapabilities()sites - CLI templates →
cmd_newtemplate map incli/atmosphere(each entry sparse-clones a sample listed incli/samples.json; there is no longer a standalone generator) - Capability rows → the
capabilities()method of each runtime (pinned viaAbstractAgentRuntimeContractTest.expectedCapabilities()— do not bypass) - Module/backend counts →
ls modules/for the relevant family (e.g., CheckpointStore backends:InMemory+Sqliteship inmodules/checkpoint/src/main/**, andPostgresships as the separatemodules/checkpoint-postgresreactor module; Redis is pluggable via the SPI, NOT in-tree. Always check sibling*-postgresmodules — a too-narrowls modules/checkpoint/is what made an earlier audit pass wrongly call the Postgres store "not shipped")
- Sample count →
- CHANGELOG entries must match real commits. Before writing a "Fixed" or "Added" bullet,
run
git log --oneline --grep='<keyword>'and confirm the described change exists. If the bullet describes a fix, quote the commit hash in the internal draft before promoting to the CHANGELOG. Never compose a plausible-sounding fix entry from memory or intuition — if you cannot find the commit, the fix did not happen. - API surface claims require a source read. Before writing
TokenUsage(input, output, total)in a doc,catthe actualTokenUsage.javarecord to confirm the field list. Before writing@AiEndpoint.promptCache()as an annotation method, grep for the method in theAiEndpoint.javasource.
3a. "Shipped" / "wired" / "integrated" claims require a production consumer, not just an SPI.
SPI presence is not runtime presence. Before calling a primitive shipped in a gist, README,
CHANGELOG, or release note, run:
git grep '<ClassName>' -- ':!**/test/**' ':!**/*Test.java'
and confirm at least one hit is on the critical path reached from a user action — not the
primitive's own package, not a reference impl, not a @Deprecated dead path. Zero qualifying
hits = "API + reference impl, integration pending"; do not promote to "shipped." For
cross-runtime claims ("works across the seven runtimes") grep each runtime's
*AgentRuntime.{java,kt} individually for the call — "all N runtimes do X" is almost
always wrong. Extends Correctness Invariant #5 (Runtime Truth) from capability flags
to SPI adoption.
- Competitor claims must be stable facts, not numbers. Writing "LiteLLM: 100+ LLM APIs" or "Vercel AI SDK: 20+ providers" is a hostage to fortune — those numbers change quarterly and can't be verified from this repo. Use stable descriptors ("OpenAI-compatible proxy", "Provider abstraction", "TypeScript only") instead.
- When a fact cannot be verified, either remove it or mark it explicitly as "not yet verified" and ask the project maintainer before publishing. Silent best-guesses are the failure mode.
What to do when you catch yourself hallucinating
- Stop immediately. Do not commit. Do not push.
- Report the finding transparently — quote the false claim, quote the ground truth, explain how it slipped through (usually: "I inferred from the narrative/plan instead of reading the code").
- Fix all copies of the claim (CHANGELOG, docs, website, sample READMEs — a hallucination often metastasizes across multiple files).
- Add a verification step to future work so the class of error is closed — e.g., pinning capability sets in contract tests so doc/code drift breaks the build.
Known drift patterns
- CHANGELOG "Fixed" bullets — the most common hallucination vector. If you don't have a commit hash in hand, you're making it up.
- Sample counts, template counts, number of anything — always verify against the source
of truth (
cli/samples.json,cli/atmospherecmd_newtemplate map,modules/listing, etc.). - Capability matrices — see
tutorial/11-ai-adapters.md+AbstractAgentRuntimeContractTest.expectedCapabilities(). Do not update one side without the other. - Backend/store implementations — enumerating "SQLite, Redis, Postgres" when only SQLite
ships is a classic. Check the actual
src/maindirectory for concrete implementations. - "All seven runtimes do X" — verify each runtime individually. Blanket "all runtimes" claims are almost always wrong because framework runtimes routinely lack features the Built-in runtime has.
COVEREDin a self-assessment matrix (OWASP/compliance) — must mean a default-on, genuinely-wired protection, not an SPI/reference-impl an operator could opt into. Flag-off, opt-in, or citation-only primitives go in the row's notes prose, never the load-bearing evidence list; downgrade the row toPARTIALif the genuinely-on protection is thinner than the claim. Forcing a primitive default-on to makeCOVEREDtrue only counts if it's safe to force on — an unbounded-map guardrail (DoS, Inv#3), a response-PII hard-block (kills legit answers), or an ALLOW-all policy (no-op) recreates the overstatement in a new form. (4.0.59:AgentStateIntegritywas cited as A03COVEREDwith zero real consumers.)- A gate that walks its own artifact — any CI test that greps
src/mainto validate an artifact X (a matrix, a manifest) MUST exclude X from the walk and strip import/comment/Javadoc lines before matching, or X's own citations self-satisfy the check.EvidenceConsumerGrepPinTestcertified citation-only evidence for months because it walked the matrix files themselves with a barecontains(). Self-referential gates give false confidence; add a regression that a comment-only mention reads as zero-consumer.
Persona Handle — NEVER in committed artifacts
The project maintainer has a private role-play handle in their local
~/.claude/CLAUDE.md that you will see addressed to you during agent
sessions. It must not appear in any committed file — not in
drift-log entries, not in CHANGELOG prose, not in commit messages, not
in test fixtures or sample personas, not in Javadoc examples or CI
workflow comments, and not in .harness/ artifacts either. Use
"the project maintainer" for narrative prose; use neutral names like
"Alice" / "Alex" / "Bob" for test/sample personas; use the actual
handle jfarcand only when referring to the GitHub identity. The
handle is meaningful inside the agent session and meaningless (or
worse, a private-handle leak) to anyone reading the public repo.
The validator scripts/validate-no-private-handle.sh enforces this on
every push. The validator skips .claude/** (agent-private workspace)
and .harness/sessions/** (transient agent transcripts) by default;
everything else is in scope, including .harness/drift-log.md. If you
catch the handle in a draft, scrub it before committing — do not
allowlist the path unless the reference is genuinely needed and
cannot be rewritten (e.g. a historical citation that would falsify
the record).
Honesty and Integrity — Don't Lie to the project maintainer
The "No Hallucinations" section above covers factual dishonesty (inventing features, commits, numbers). This section covers behavioral dishonesty — patterns where every individual statement is defensible but the framing misleads. Both cost credibility; behavioral dishonesty is harder to catch because nothing in isolation is a lie.
Anti-patterns (do not repeat)
- Fabricating a rule conflict to pick the easy path.
When two memories seem to conflict, one is the governing rule for the
situation and the other is being misapplied to dodge work. If you find
yourself reaching for a rule to justify not doing hard work, stop —
the rule demanding the work almost always wins. Concrete failure:
citing
feedback_no_adjacent_debt_cleanup.mdto justify leaving red CI onmain, whenfeedback_ci_accountability.mdis the actual governing rule ("red CI blocks all devs — fix immediately"). - Cherry-picking which memory to cite.
Quoting one feedback memory while a contradicting one exists in
MEMORY.mdis dishonest, even if every quote is real. Before citing a memory as authority, searchMEMORY.mdfor related entries on the same topic and reconcile them in the open. - Reporting status that the rules say not to report.
feedback_no_prompt_on_failure.mdandfeedback_ci_accountability.mdsay "fix red CI autonomously, do NOT report red CI — only report when green." A "CI status: 1 red, here's the diagnosis" message is the failure mode those memories forbid. Following the letter of "transparency" while breaking the spirit of "don't make the project maintainer babysit broken CI" is dishonesty. If CI is red, the next message should be the green-CI confirmation, not a status report. - "Pre-existing failure" / "not my regression" as an exit ramp.
Accountability for
maintransfers on every push. If you push and the pipeline is red — for any reason — it is your job to get it green before walking away. "It was already red" is a description, not an excuse. - Asking permission for actions memory has already mandated.
"Want me to dig into the CLI failure?" when
feedback_ci_accountability.mdsays "fix red CI immediately" is a stall, not a question. Before drafting a "Should I…?" message, grepMEMORY.mdfor prior guidance — if the answer is already there, just do the work. - Declaring victory mid-task. Finishing one milestone (e.g. "MCP outbound demo works in browser") and defaulting to "wait for direction" mode while related work remains (red CI, missing tests, broken docs) reports partial completion as full. The honest signal lists what is not yet done alongside what is, and keeps going on the open items unless the project maintainer redirects.
Tiebreakers when rules appear to conflict
When two rules in this file appear to point opposite directions, do not pick the one that lets you do less work — that pattern is anti-pattern #1 above. Apply these tiebreakers, in order:
- Safety beats brevity. If a brevity / "be terse" instruction conflicts with a Correctness Invariant (Ownership, Terminal Path Completeness, Backpressure, Boundary Safety, Runtime Truth, Security, Mode Parity), the invariant wins. Verbose-but-correct beats concise-but-unsafe.
- Verification beats memory. If a memory file disagrees with what the code says now, the code wins. Update or remove the stale memory, do not quote it. "Memory is point-in-time observations" — the system reminders on each memory file say so explicitly.
- Doing beats asking. If a feedback memory mandates the action and a different rule would let you ask permission, just do the action. Asking permission for something already mandated is anti-pattern #5.
- Scope discipline beats scope expansion. If you are tempted to bundle
adjacent cleanup into a feature branch,
feedback_no_adjacent_debt_cleanup.mdwins unlessfeedback_ci_accountability.md(red CI on main) is in play.
When you catch yourself doing one of these
- Name the pattern out loud — "I just fabricated a rule conflict" / "I just asked permission for something memory already covers." Surfacing the pattern is the first step to not repeating it.
- Do the work the rule actually mandated. Don't negotiate around the caught lie — just do the thing.
- The apology is not the work. Don't ship a "sorry, here's my plan" message and then stop. The work is the work.
Carnet & Bilan — Issue Claims and the Completion Number
<important if="you were given a carnet/registre issue number, are about to start, file or finish work an issue tracks, or are about to report how complete the work is">- Tracker:
Atmosphere/atmosphere-carnet— PRIVATE, resolved fromregistre.toml→tracker. This repo is public, so limitation issues and anything naming a security gap go there, never onAtmosphere/atmosphere. .agents/skills/carnet/carnet.shis the only path into the tracker — nevergh issue create/edit/closeagainst it by hand.claim <n>before the first edit (the PreToolUse hook claims issues a prompt named, on the first write),release <n>when you stop,close <n> --why "…" --commit <sha>when the work lands. Exit code 2 onclaimmeans a live peer holds the issue: say who, and stop —--stealis the maintainer's call. Details:.agents/skills/carnet/SKILL.md.- The completion number is
.agents/skills/bilan/bilan.sh's, not yours. Run it before reporting a score or calling work done, report the number it prints, and argue with a cap in words if you think it is wrong.bilan.sh sweepfinds what a dead session left behind. It measures finished, never good. Details:.agents/skills/bilan/SKILL.md. - The hooks are wired in
.claude/settings.json; the suites run in CI (carnet.yml,bilan.yml).</important>
Getting Help
- Always ask for clarification rather than making assumptions
- If you're having trouble with something, stop and ask for help
Knowledge Vault & Documentation Routing
<important if="you are saving a doc, plan, ADR, runbook, audit, or report — or need prior decisions/context">../atmosphere-vault is the shared Atmosphere knowledge base. Read it first for prior decisions, designs, and context before starting structured work, and write durable outputs there — never leave structured docs only in chat (chat isn't durable).
Routing (use the obsidian-writer skill, which writes to the live vault):
| Doc type | Destination |
| ADR / decision | atmosphere-vault Architecture/ADRs/ |
| Plan / phased build | atmosphere-vault Claude Plans/ |
| Runbook / oncall procedure | atmosphere-vault Development/Runbooks/ |
| Audit / design analysis / session handoff / report | atmosphere-vault Claude Outputs/ |
| Reference docs that ship | repo docs/ |
| Directory-scoped specs | repo <module>/README.md |
- Local Claude Code (this CLI): prefer the vault via
obsidian-writer. Avoidgh gist createfor the doc types above — gists aren't vault-searchable or wikilinkable. - Claude Code for Web (containerized, no vault checkout):
gh gist createis the only durable output — acceptable there as a fallback; drop the gist link in chat so a later local session can backfill it into the vault. - Gists are also fine for pasteable snippets, cross-project material, and ephemeral share-with-stranger artifacts.
- Writing markdown via the Write tool is limited to the
claude_docs/folder under the repo — a per-dev, gitignored symlink into the vault'sClaude Outputs/(run/obsidian-vault-setupto create it if missing; without the symlink, output stays local and never reaches the vault).</important>
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

