Skip to content

Add AGENTS.md for coding agents - #21

Merged
JongChern merged 1 commit into
mainfrom
docs/agents-md
Nov 4, 2026
Merged

JongChern merged 1 commit into
mainfrom
docs/agents-md

Conversation

@marknolan

Copy link
Copy Markdown
Member

Adds AGENTS.md, matching the repos that already carry one. CLAUDE.md is a one-line @AGENTS.md import so Claude Code reads the same file without duplicating it.

Docs only; no build or source files are touched.

What it records

CI is the only way to compile this repo. Most of the team is on Windows — no Swift toolchain, no Xcode — so nothing here builds locally. swift.yml runs xcodebuild test -scheme ShimmerBluetoothTests on macos-latest. A PR's first CI run is the first execution of the code, and AGENTS.md says to state that rather than imply a change has been tested.

It also records how to confirm the tests actually ran: the workflow step is named "Build", which is misleading, so look for ** TEST SUCCEEDED ** and per-case passed lines in gh run view <id> --log. A green check alone does not prove execution.

Adding a file needs four hand-written project.pbxproj entries. objectVersion = 56 means classic groups rather than synchronized folders, so a new source file needs PBXBuildFile, PBXFileReference, the PBXGroup child and the target's PBXSourcesBuildPhase. Miss one and CI reports it as an unrelated symbol error.

Shimmer3Protocol cannot be unit tested. Its initialiser takes a concrete BleByteRadio, which needs a live CBPeripheral, so no test can construct it and none does — ShimmerBluetoothTests covers the sensor classes and utilities instead. Anything wired inside Shimmer3Protocol is untestable until that initialiser accepts a ByteCommunication abstraction. Documented so it is a known constraint rather than something each person rediscovers; changing the initialiser would be a real improvement, and is not in this PR.

Which Swift repo is which. Shimmer-Swift-API and ShimmerSwiftAPI are private and stale (2024-05 and 2023-10). This is the live one.

Sibling implementations. This is the fifth native implementation of the wire format. A parsing, protocol, calibration or timestamp fix here almost always applies to the Java, C#, Python and TypeScript APIs — DEV-1023 was the same rule wrong the same way in four of them.

🤖 Generated with Claude Code

Records that CI on macos-latest is the only way to compile this, how to confirm XCTest actually ran, the four pbxproj entries every new file needs, and why Shimmer3Protocol cannot be unit tested.

Docs only. No build or source files are touched.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@JongChern
JongChern merged commit 691b2d0 into main Nov 4, 2026
1 check passed
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