1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00
Files
BakaShrot/CLAUDE.md
T
aziascreations a5a2f65442 Fixed two peers sending the same attachment at once, Noted the stream limits, Removed the PureBasic-era leftovers
- An attachment is received from one peer at a time: the others are
  refused NotReady and ask again at their next sync; one cut short lets
  the next one take it over
- A 'replicating' row with all its bytes but never checked is asked
  again from part 0, and a peer asking from the wrong part resets it
- Noted the stream limit (1,048,575 topic/node pairs, 2^43-1 message ids
  each) in the example config and known-issues.md
- Removed NoDefaultTopic (code 6, retired), Writer::vacuum, the v8
  detection and the old ini key tests
- Cleared the PureBasic-era notes from the docs, revamp.md keeping only
  the old open items still unfixed; noted the GUI explorer (egui)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:23:33 +01:00

41 lines
1.9 KiB
Markdown

# BakaShrot - start here
A message store with replication: servers take messages per topic/node
from authenticated clients, store them in SQLite, and replicate them
between peers by name. Clients: a C DLL, CLI tools, a Python module. An
**internal tool on trusted machines**.
- `revamp.md`: what's decided, what's proposed and open, the plan and its
status. Read it first.
- The implementation is the Cargo workspace at the root (`readme.md`:
layout, scripts, conventions; `docs/`: designs, `protocol.md` first,
`known-issues.md` for what's left).
## Toolchain
- Rust via rustup, in `%USERPROFILE%\.cargo\bin`, which **isn't on every
shell's PATH**: prepend it (`export PATH="$HOME/.cargo/bin:$PATH"` in
bash; the `.ps1` scripts and `release.py` do it themselves). The toolchain is pinned
(`rust-toolchain.toml`, 1.100.0, MSVC; Visual Studio 18 has the
linker).
- `test.ps1` runs what CI runs; it must pass before a step is done
(`build.ps1`, `release.ps1`, `clean.ps1`, `bench.ps1` beside it, see `readme.md`).
Run them by absolute path (`-File <repo>\test.ps1`): a relative one
fails when the shell's folder differs.
## Working rules
- **Commit only when the owner asks**, on a branch, not `master`.
- **Follow the plan's order** (`revamp.md`, "Plan"); a step is done when its
tests pass and its docs are updated, then its status goes in the table.
- **Decisions go in `revamp.md`**: moved to "Decided" only when the owner
decides, with the date.
- **Use existing crates** rather than reimplementing (MessagePack is `rmp-serde`).
- **Line endings:** LF everywhere, `.ps1` CRLF (`.gitattributes`); edits
must keep them.
- **Bash tool heredocs collapse `\\`:** write edit scripts to files, or use
the Edit tool.
- **Run exes from a build folder** (`target\`):
the antivirus blocks them in temp folders.
- **Generated keys and certificates never go in git** (`target/`).