Skip to content
Repos

DevPlaceApp

Markdown 2.6 KB41 lines Opens in site

Directory Raw Download

Agent instructions: DevPlaceApp

Three layers (separate files, never merged):

  1. Personal base rules: ~/.claude/CLAUDE.md (operator-owned).
  2. This file: root project rules for the whole repo.
  3. Nested subsystem files next to the code (<dir>/AGENTS.md), linked both ways.

Each rule is tagged [hard] (enforced), [conv] (convention, review gate) or [guide], with its enforcer.

Root rules

  • [hard] Work only in this repository. Read-only references: ../DevPlaceIOS (Swift source), ../aiohttpcpp. Enforcer: review.
  • [hard] Canonical spec is SPEC.md; docs/inventory/*.md are normative sub-specs. Mirrors sync in the same commit. Enforcer: tools/validate.py.
  • [hard] Every behavior change cites a spec ID or ADR; D-ID, PIN or requirement changes need a new ADR. Enforcer: review.
  • [hard] All HTTP(S) and websocket traffic goes through aiohttpcpp (src/net). Enforcer: tools/check-net.sh.
  • [hard] No TODO, FIXME, placeholder bodies, em dashes (U+2014), or emoji in code and docs (emoji data tables excepted). Enforcer: tools/validate.py, tools/check-net.sh.
  • [hard] Zero warnings with -Wall -Wextra; constants live in spec/ headers, never inline. Enforcer: DEVPLACE_WERROR build, review.
  • [hard] Thread rule: SDL and UI state on the main thread only; aiohttp objects on the network thread only; cross via UiQueue. Enforcer: review, NFR-THR-01.
  • [hard] Every cache and queue has a hard cap (SPEC 0.3). Enforcer: review.
  • [hard] Secrets are human-only: the app embeds none; a missing env var logs a warning. Enforcer: review.
  • [hard] Build status lives in BUILD-TRACK.md; update on status change and session end. Enforcer: tools/validate.py.
  • [conv] Object oriented C++: one domain class per header/source pair, view primitives may share a header (D-11). Enforcer: review.
  • [conv] Parallel developers own disjoint directories and build in build-<name> (ADR 0003). Enforcer: review.
  • [conv] Commits: <type>(<scope>): <subject>, Co-Authored-By trailer as configured. Enforcer: git hook.
  • [guide] After behavior changes run make test; after UI changes capture screens with --screenshot and look at them.

Verification (after every change round)

make test                 # unit, api, e2e tiers, serial
python3 tools/validate.py # IDs, changelog, headers, locale, AGENTS coverage
tools/check-net.sh        # network purity grep

Subsystem files

  • src/AGENTS.md: source layout and layering.
  • spec/AGENTS.md: single-source constants.
  • docs/AGENTS.md, research/AGENTS.md, tools/AGENTS.md, tests/AGENTS.md, assets/AGENTS.md: as named.
30.7ms