feat(sidecar): protocol 14 — the Economics forwards (PLAN_REDESIGNS §11.2) #25
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/protocol-14-economics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
The sidecar half of
PLAN_REDESIGNS.md§11.2.2 (spec:docs/rust-link/PROTOCOL.md§20.3).This PR adds three thin forwards, built like
/kits/uses:POST /economics/pay,POST /economics/balancesandPOST /economics/adjust. Each body is stamped with its own command (economics.pay/.balances/.adjust), so naming another command in the body can't turn a payment into an adjustment.The plugin remembers a payment's key, and this process keeps nothing. The tally's
balanceand theeconomics.wipedevent ride the feed like any other frame.PROTOCOL_VERSIONstays 14 (D332).How it was tested
cargo fmt,cargo clippy --locked --all-targets -- -D warnings: clean.cargo test --locked: 69 passed. One test is new:protocol_14_economics_bodies_pass_through.Checklist
AI-assisted contributions (required)
Claude Code (Claude Opus 5.5). I have reviewed and understandevery change, and take responsibility for it. AI-authored commits are
marked with a
Co-Authored-By/Assisted-Bytrailer.License
(GNU GPL v3.0 or later), and I have the right to contribute it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY