eMule Workspace Policy¶
This document is the mandatory, product-neutral policy entrypoint for the
canonical eMuleBB workspace. Read it once before making workspace decisions,
then load only the repo-local AGENTS.md and policy annexes selected by
Task routing. The
Agent Checklist is an optional execution and
handoff checklist, not a second mandatory policy read.
Authority And Startup¶
Directive precedence is:
- system and developer instructions from the active session
- workspace-root
AGENTS.md - this core policy
- every applicable policy annex
- repo-local
AGENTS.mdlocal deltas - README, backlog, release, and handoff documents
If two applicable annexes appear to conflict, stop and correct the central policy rather than choosing one silently.
- Infer the active project from the operator's wording and named paths before
exploring. Explicit product names always win. When product intent remains
genuinely ambiguous, default to
emulebb-rustand add harness support only when the task needs it. - Check
git status --short --branchonly in the active repo and support repos that will be read for current-state decisions or edited. - Read the nearest repo-local
AGENTS.mdafter this core. Do not sweeprepos,workspaces, or dormant products after the focus is known. - A parent acting as PM or engineering coordinator also reads the PM Coordination Policy before assigning work. It owns the coordination mandate, decision boundaries and closure check.
- Treat historical notes under
docs\historyas provenance, not current authority. Revalidate backlog and release documents against currentmain, dependency pins, and policy before implementation.
Project Focus¶
emulebb rust,rust, oremulebb-rustselectsrepos\emulebb-rust, including its embedded SPA WebUI. Addrepos\emulebb-build-testsfor harness/live/profile work,repos\emulebb-tooling\docs\products\emulebb-rustfor product docs, orrepos\emulebb-buildfor orchestration only when required.emulebb mfc,mfc, or an MFC source path selectsworkspaces\workspace\app\emulebb-main.repos\emulebbis its branch store, not its normal edit location. Add build, harness, or tooling support only when required.repos\ed2k-serveris a transitional stock-upstream integration dependency, not an eMuleBB product or parallel server-development lane. Do not change its code unless stock upstream blocks a current approved workspace workflow; use the blocker and upstream-exit rules in the Workspace Operations Policy.- Broad workspace scans are allowed only for an explicitly workspace-wide request, unclear dependency topology, required orchestration, or genuinely cross-product behavior.
Workspace And Environment Boundaries¶
- Canonical sources live only below
EMULEBB_WORKSPACE_ROOT\reposandEMULEBB_WORKSPACE_ROOT\workspaces. Maintained docs and scripts express paths throughEMULEBB_WORKSPACE_ROOT, never machine-specific absolute paths. - Generated build, test, package, profile, release, and runtime output belongs
below
EMULEBB_WORKSPACE_OUTPUT_ROOT, which must be outside the source workspace. Do not create build output or scratch/lab trees below a repo or elsewhere underEMULEBB_WORKSPACE_ROOT. - An explicitly selected persisted-profile diagnostic soak may use an
operator-owned profile root outside
EMULEBB_WORKSPACE_OUTPUT_ROOTonly when the Harness And Live Policy authorizes that lane. The profile path must come from ignored local input or an explicit runtime argument, must never enter tracked files, and remains operator state that workspace cleanup must not move or delete. Campaign manifests, summaries, archived diagnostic segments, and retained evidence still belong belowEMULEBB_WORKSPACE_OUTPUT_ROOT. - Environment variables are inherited operator state. Agents must not assign,
repair, shadow, or guess
EMULEBB_WORKSPACE_ROOT,EMULEBB_WORKSPACE_OUTPUT_ROOT,CARGO_TARGET_DIR, orX_LOCAL_IPinline. Stop and report a missing or invalid variable when the selected operation requires it. - A persisted Python Windows-to-WSL launcher may translate already-valid
operator paths for its child and derive a WSL-specific Cargo target below the
translated output root. It must not mutate the parent environment, persist
duplicate WSL configuration, or invent missing source values, and it must
record the translation. Loopback-contained WSL control traffic does not
require
X_LOCAL_IP. repos\emulebb-buildowns materialization and supported build, validation, test, live-test, packaging, and release orchestration. Interactive operations usepython -m emule_workspaceand its single workspace lock; do not start competing orchestration runs.
Detailed layout, environment-knob, setup, and automation rules are in the Workspace Operations Policy.
Common Engineering Rules¶
- Prefer compatibility-preserving hardening, fixes, and maintainability work. Protocol or other major behavioral changes require explicit justification and tracking. Put changes at the earliest layer where they are true.
- Before writing custom parsing, encoding, path, filesystem, crypto, protocol, date/time, compression, or structured-data logic, look for a standard library, platform API, project helper, or pinned dependency.
- Non-obvious defensive fixes need a concise
WHY:comment naming the failure mode, preserved invariant, and why the repair belongs on that path. - Reusable code needs succinct API documentation where behavior is not obvious; trivial private glue may remain undocumented.
- Start each work chunk from a clean worktree in every repository that the chunk will modify. If a required repository already has uncommitted files, stop and report them instead of layering new work onto the dirty tree.
Privacy And Artifact Hygiene¶
These rules bind source, tests, fixtures, docs, comments, commits, issues, and retained evidence:
- Regardless of the language used in operator instructions, agents always work and respond in English. Code, identifiers, comments, documentation, tests, fixtures, diagnostics, logs, commits, and issue or pull-request text remain English-only; do not mirror the operator's language.
- Never commit credentials, cookies, private host/IP values, account data, personal information, or machine-specific absolute paths. Use documented variables and obvious synthetic placeholders.
- Never commit real movie, series, episode, album, artist, game, or release
titles. Use neutral names such as
Sample TitleorAlpha Beta. Generic encoding tags such asWEBRip,x264, or1080pare allowed where technically required. - Scrub operator screenshots, live logs, searches, and captures before they enter tracked files or messages.
- Tracked prose, identifiers carrying prose, comments, diagnostics, logs, fixtures, commits, and issue/PR text are English-only. Deliberate localization resources and unchanged upstream text are the only exceptions.
- Honor repo
.editorconfigand.gitattributes. Active workspace-owned text uses LF; do not leave mixed-EOL edits.
Task Routing¶
After this core and the nearest AGENTS.md, read only the matching annexes:
- Rust product, daemon, embedded WebUI, REST, metadata, Cargo, or protocol work: Rust Product Policy.
- Harness code, baseline/tracing work, local or public live tests, soak/profile operation, VPN/bind behavior, or retained live evidence: Harness And Live Policy.
emulebb-main, MFC maintenance, C++ app builds, resources/localization, or MFC releases: MFC Product Policy.- Materialization, topology, shared orchestration, packaging, managed forks, workspace docs/policy, normalization, or automation runtime: Workspace Operations Policy.
- Commits, pushes, branches, pull requests, merges, cleanup, or release tags: Delivery Policy.
A Rust live/soak task requires both the Rust and harness/live annexes. A tooling change that alters generated workspace behavior requires the operations annex. Reading an annex does not authorize unrelated repo exploration or edits.
Validation And Documentation¶
- Every development change gets scoped validation plus the smallest relevant build/test set. Broad build-system, dependency, compiler, and integration changes require the relevant full matrix.
- Product code changes follow their product annex. Policy/docs-only changes may use the documented lighter validation path when they do not alter a build contract.
- Active Markdown belongs under
repos\emulebb-tooling\docs.DOCS-POLICY.mdowns taxonomy, naming, navigation, and readability. Workspace-wide rules belong in this core or its routed annexes; repo-localAGENTS.mdfiles remain thin local deltas. - The owning product repository issue and org Project #3 (
eMuleBB Roadmap) are the default workflow authority for externally actionable work. Local Markdown owns durable specifications and evidence. MFC Project #2 and the linked MFC issue set are archive/provenance unless bounded maintenance is explicitly approved. - Refresh handoff notes only when ending a session or when explicitly asked.