Repository Public License
1# Working rules for every contributor agent (read first)23Repository: `~/Desktop/Cluster/apple/ORIXNavigator`. Product: ORIX Navigator, a native browser for macOS, iOS and iPadOS4(SwiftUI + AppKit/UIKit + WKWebView). Package: `Packages/NavigatorKit` (one SwiftPM package, one target per module).5The `CLAUDE.md` in the parent `apple/` folder is about another project (KHAELOR): ignore it entirely.67## Hard rules81. **Stay in your lane.** Edit only the directories named in your brief. Never edit `Package.swift`, another module's9 sources, or existing files of `NavigatorCore`. If you need a new shared type, add a *new* file in10 `Sources/NavigatorCore/` named after your module (`Persistence+Repositories.swift`…) and list it in your report.112. **Read the contracts first:** `Sources/NavigatorCore/*.swift` (models, typed ids, omnibox classifier).123. Swift 6 language mode, strict concurrency, zero warnings in your target. Platforms: macOS 15+, iOS 18+ (the same13 code must compile for both; guard platform code with `#if os(macOS)` / `#if canImport(UIKit)`). Newer APIs (Liquid14 Glass, OS 26+) only behind `if #available` with a native fallback. **No private API. No third-party dependency.**154. Disk and network never on the MainActor; storage and orchestration in actors; UI types `@MainActor`.165. Secrets only in the Keychain. Never in logs, UserDefaults, files or the repository.176. Code, comments, identifiers and docs in English. Comments explain constraints, not the obvious.187. No placeholders, no inert buttons, no fake data, no `TODO` left where a feature is claimed. If something cannot be19 done or verified, say so in your report under "Not verified" — never present it as done.2021## Build and test (one build at a time, never in parallel)22```23cd Packages/NavigatorKit24swift build --disable-keychain --scratch-path build/spm-<you> --target <YourTarget>25swift test --disable-keychain --scratch-path build/spm-<you> --filter <YourTarget>Tests26```27Always pass your own `--scratch-path` (other agents build at the same time). Use Swift Testing (`import Testing`).28Do not start subagents. Do not boot simulators unless your brief says so. Never run `pkill`/`killall` (kill by PID29only what you started). Never drive the mouse or keyboard, never bring a window to the front (`open -g` only): the30owner is using this Mac.3132## Git33Commit early and often, only your own paths: `git add <your paths> && git commit -m "<Module>: …"`. If34`.git/index.lock` exists, wait two seconds and retry. Never `git add -A`, never amend, rebase, stash or reset, never35push. Other agents commit in the same working tree.3637## Final report (short)38Public API summary (main types and signatures other modules will call), tests (count, pass/fail, exact command),39what is **not verified**, any file added outside your directories, and requests for changes to shared contracts.40