- Read
docs/architecture.mdanddocs/development.mdbefore changing platform integration. - Documentation describes the current behaviour and the verified external facts it relies on, with their sources. It is not a log: no dates, incidents, outcomes, review rounds or TODO lists. Update the relevant section when behaviour changes and delete what no longer applies.
README.mdis for users: what PlexFreq does, installation, settings, troubleshooting and a feature comparison with Plexamp. Keep technical detail indocs/.- Unfinished work is fixed, not documented. The only known gaps are missing Plexamp features, listed in the README comparison table.
- Research documented APIs/other implementations before choosing integration approaches. Develop local tests before live Plex or phone experiments.
- Rust owns Plex/media HTTP, credentials, models/queue policy, worker lifetime, audio/DSP/transport, MPRIS and network facts. C++ is a thin Qt model/C-ABI/ translation/window adapter; QML is presentation/navigation.
- Sailfish target is Qt5.6 + Silica, desktop Qt6 + Controls2. Shared QML must remain QtQuick2.6 compatible. Never introduce desktop imports into Silica.
- Use aarch64-unknown-linux-gnu, not musl, when linking Rust with Sailfish Qt.
Compile C dependencies through
tools/sdk-cc.shagainst the actual sysroot. - No phone root, privileged helper or modifications to system media services. Sailfish integration/permission validation requires a normally installed app launched under Sailjail; unpacked terminal execution is not a substitute. Release assets are the Sailfish aarch64 RPM and Linux amd64 desktop tar.gz. The desktop archive runs unpacked using compatible host Qt6/audio libraries.
- Checks:
./tools/check.sh; SDK packaging:./tools/build-sailfish.sh. A successful package build is not a hardware runtime test. - Keep session fixtures in temporary directories. Never put actual tokens in fixtures, command-line arguments, logs or source files. Framework media URLs may appear in diagnostics; don't treat their output as redacted.
- The repository may have no Git metadata. Do not initialize, commit or publish unless requested.
- Every plan must receive an independent adversarial review before execution, and every material implementation step/change set must receive one before being marked complete, except under the prototype tier below. Use a separate reviewer/subagent with a fresh context; self-review is supplemental, not independent review.
- Review correctness, missing assumptions, failure modes, security, source/rule fidelity, deployability (Sailfish Qt5.6/Silica, Harbour, desktop Qt6), suitable existing libraries, duplicate logic, maintainability and production practices. Prefer a read-only reviewer; the implementer owns fixes.
- Record the reviewed scope, findings, severity, disposition and verification in
the gitignored
review-notes/folder (and summarize them in the commit message when committing), never indocs/. Review findings are not proof of correctness. - Reviewer setup (adopted from ../mimik, user decisions 2026-10-16, 2026-11-07 and
2026-11-22):
- External reviewers run through the
external-agentsskill (https://github.com/nappa85/external-agents at commit 0778f04, a git clone in/media/data/mimik/external-agents-gitlinked as~/.claude/skills/external-agents; keep it updated from upstream. It installs its pinned opencode in~/.opencode/bin, which must come first on PATH) with the panel? opencode:opencode/deepseek-v4.1-flash-free(EXTERNAL_REVIEWERSor--reviewers), next to a fresh Opus subagent (never Sonnet), in parallel. Opus is the main reviewer; DeepSeek v4.1 Flash is the optional external one. If a slot has no available reviewer, proceed with the others and record it. - The skill snapshots the tracked and untracked non-ignored files without VCS data.
.gitignorekeeps build output, packages, logs, Plex session/queue/resume/listen/ history files and credentials out of it (tools/test_review_snapshot.py). Free tiers may log prompts, so send only repository source and docs. - Adjudicate Blocking findings against the code before acting on them.
- External reviewers run through the
- Resolve blocking findings before completion. If independence is unavailable or a blocker cannot be fixed, explicitly record it and keep the work blocked; do not call it production-ready or silently waive it. Review of review records themselves does not recurse.
- Disposable experiments (inspection scripts, benchmarks and prototypes under
tools/or ignoredbuild//target/paths that never ship in the RPM or desktop archive) may use a lighter process: a self-check plus a short results note inreview-notes/with exact scope, denominators and limitations. - Independent review is still required before experiment results drive a product or architecture decision, and before any prototype code moves into the shipped app.
- Security and data rules still apply in full: no tokens read back or sent to reviewers, phone access stays read-only unless requested, and checks are never reported as passed when not run. Shipped code keeps every gate.