docs(link): sidecar never reads shard files; everything goes over the bridge #420

Merged
whitlocktech merged 1 commits from docs/sidecar-no-shard-files into main 2026-11-27 02:38:10 -06:00
Member

What & why

Closes the contract question in RunicGateway/servuo-plugins#41.

Decision (approved by the org lead): everything goes over the bridge, and the sidecar never reads shard files. The shard, running as the account ServUO uses, reads its own data and client files (DataPath.cfg, Cliloc.enu, art*.mul, saves) and serves what the website needs as bridge messages. The sidecar reads only its own config and database.

Checked against the code: in link/sidecar the only file reads are its own config (config.rs:123, config.rs:276). /cliloc forwards a cliloc.table command to the shard (web.rs:1435). Nothing needs /opt/servuo, so no permission, group or installer change is needed.

  • link/PLAN.md §2: the rule is added to the non-negotiable architecture rules.
  • installer/INSTALL.md: the prerequisites row and A4 (hand deployment) now say the runicgateway user needs nothing under the shard directory and that drwxr-x--- is fine.

Not done: #41's third point, explaining the Permission denied (os error 13) lines in the sidecar log from before 2026-11-22, is still open. The live shard host isn't reachable from this session right now, so the journal wasn't read. The likely source is the old cliloc import path from #37, but that is unconfirmed.

How it was tested

Docs only. I checked the sidecar source with a grep for file reads (fs::read*, File::open, data paths) to confirm the rule matches today's code.

Checklist

  • I have read CONTRIBUTING.md.
  • The change builds and existing tests/checks pass locally.
  • I have added or updated tests/docs where it makes sense.
  • My commits are reasonably scoped with clear messages.

AI-assisted contributions (required)

  • No AI tools were used to produce this contribution.
  • AI tools were used. Tool(s): Claude Code (Claude Opus 5.5). I have reviewed and understand
    every change, and take responsibility for it. AI-authored commits are
    marked with a Co-Authored-By / Assisted-By trailer.

License

  • I agree that my contribution is licensed under this project's license
    (GNU GPL v3.0 or later), and I have the right to contribute it.

🤖 Generated with Claude Code

https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t

## What & why Closes the contract question in RunicGateway/servuo-plugins#41. **Decision (approved by the org lead): everything goes over the bridge, and the sidecar never reads shard files.** The shard, running as the account ServUO uses, reads its own data and client files (`DataPath.cfg`, `Cliloc.enu`, `art*.mul`, saves) and serves what the website needs as bridge messages. The sidecar reads only its own config and database. Checked against the code: in `link/sidecar` the only file reads are its own config (`config.rs:123`, `config.rs:276`). `/cliloc` forwards a `cliloc.table` command to the shard (`web.rs:1435`). Nothing needs `/opt/servuo`, so no permission, group or installer change is needed. - `link/PLAN.md` §2: the rule is added to the non-negotiable architecture rules. - `installer/INSTALL.md`: the prerequisites row and A4 (hand deployment) now say the `runicgateway` user needs nothing under the shard directory and that `drwxr-x---` is fine. **Not done:** #41's third point, explaining the `Permission denied (os error 13)` lines in the sidecar log from before 2026-11-22, is still open. The live shard host isn't reachable from this session right now, so the journal wasn't read. The likely source is the old cliloc import path from #37, but that is unconfirmed. ## How it was tested Docs only. I checked the sidecar source with a grep for file reads (`fs::read*`, `File::open`, data paths) to confirm the rule matches today's code. ## Checklist - [x] I have read [CONTRIBUTING.md](CONTRIBUTING.md). - [x] The change builds and existing tests/checks pass locally. - [x] I have added or updated tests/docs where it makes sense. - [x] My commits are reasonably scoped with clear messages. ## AI-assisted contributions (required) - [ ] No AI tools were used to produce this contribution. - [x] AI tools were used. Tool(s): `Claude Code (Claude Opus 5.5)`. I have reviewed and understand every change, and take responsibility for it. AI-authored commits are marked with a `Co-Authored-By` / `Assisted-By` trailer. ## License - [x] I agree that my contribution is licensed under this project's license (**GNU GPL v3.0 or later**), and I have the right to contribute it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
wtclaude added 1 commit 2026-11-27 02:17:05 -06:00
Records the contract decided for servuo-plugins#41: the shard reads its own
data and client files and serves them as bridge messages; the sidecar reads
only its own config and database. The sidecar's service user therefore needs
no access to the shard tree, and a private shard root (drwxr-x---) is the
intended state on Linux.

- link/PLAN.md §2: new non-negotiable rule
- installer/INSTALL.md: prereq row + A4 note that runicgateway needs nothing
  under the shard directory

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
whitlocktech merged commit 8cf3f77df6 into main 2026-11-27 02:38:10 -06:00
whitlocktech deleted branch docs/sidecar-no-shard-files 2026-11-27 02:38:10 -06:00
Sign in to join this conversation.
No description provided.