Repository navigation
Add test rules learned from the Touch ID work to AGENTS.md - #14
Open
scottjones wants to merge 3 commits into
Open
scottjones wants to merge 3 commits into
scottjones wants to merge 3 commits into
Conversation
Reviews of the Touch ID branches kept finding the same kinds of slip: a test that passed only because the Mac running it had Omarchy installed, a detection path that could hide the one before it, an integration test that skipped silently in CI, a green run that never reached the code, a udev add rule that missed the upgrade installing it, and a once-only invitation that could fire before its dependencies shipped. AGENTS.md now says so. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Collaborator
|
@scottjones good idea to write these down; lines 26 and 28 are precise and fit the file. A few wording fixes so agents don't over-apply them:
|
Wording from Marcelo's review, so agents don't over-apply them: the hook rule covers only an add that must reach a device already present, and the hook never fails the transaction; the once-only rule is about invitations, not first boot; tests may read /sys fixtures, never the host's; and the pin rule doesn't touch the skip when OMARCHY_TEST_RUNTIME is unset. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
@maralcbr thanks, applied all four in |
Collaborator
|
Thanks @scottjones, the rules capture real lessons from the Touch ID work. One change before merge:
Smaller things:
With the line 25 fix in, this is good to merge from my side. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Tests section and two rules to
AGENTS.md, from mistakes the reviews of the Touch ID branches (#12, omacom/omarchy-mac#694, omacom/omarchy-pkgs#806) kept catching: tests that passed only because the Mac running them had Omarchy installed, a detection path that could hide the old one, an integration test skipping silently in CI, a green CI run that never reached the code, a udevaddrule missing the upgrade that installs it, and a once-only invitation that could fire before its dependencies shipped.Evidence
Documentation only;
check-scopeandcheck-architecture-gatespass locally.Merge Danger
Door: two-way
Blast Radius: docs
🤖 Generated with Claude Code