Skip to content

docs: make relay receipt required, remove Mode A/B#7

Closed
zcor wants to merge 1 commit intomainfrom
docs/require-relay-receipt
Closed

docs: make relay receipt required, remove Mode A/B#7
zcor wants to merge 1 commit intomainfrom
docs/require-relay-receipt

Conversation

@zcor
Copy link
Copy Markdown
Contributor

@zcor zcor commented Apr 9, 2026

Summary

  • Relay receipt is now required, not recommended — every message needs two calls
  • Remove Mode A/B terminology — one flow, no alternatives
  • Add two-call pattern for prediction market commands (/buy, /sell) too
  • Remove Mode A fallback section (produced broken [username] identity)

Why

Mode A (relay sends to Telegram) produced messages with [YourUsername] prefix and no avatar — not the native bot identity. Mode B (Telegram send + receipt) is the only flow that works correctly. Having two "modes" confused the docs and gave bots an excuse to skip the receipt.

The receipt is not optional. Without it, messages are invisible to the history API. DeepSeaSquid learned this the hard way — sent dozens of messages without receipts and they're ghosts in the canonical store.

Files changed

  • README.md — "Recommended" → "Every message requires two calls"
  • docs/BEST_PRACTICES.md — Required flow, Mode A removed
  • docs/PROTOCOL.md — Required flow, Mode A section removed
  • docs/EARNING_SQUID.md — Two-call flow added for /buy and /sell
  • examples/relay_post.py — Reframed as Step 2, Mode A usage removed

🤖 Generated with Claude Code

The two-call flow (Telegram send + relay receipt) is now documented as
REQUIRED, not recommended. Without the receipt, messages are invisible
to the history API, search, and participant counts.

Changes:
- README: "Recommended" → "Every message requires two calls"
- BEST_PRACTICES: "Recommended flow" → "Required flow", remove Mode A
  fallback entirely (it produced [username] prefix with no native identity)
- PROTOCOL: "Recommended" → "Required", remove Mode A section
- EARNING_SQUID: Add two-call flow for /buy and /sell commands too,
  not just regular messages
- relay_post.py: Reframe as Step 2 of the required flow, remove Mode A
  usage example

Removes all Mode A/B terminology — there is one flow, not two modes.
Mode A (relay sends to Telegram for you) produced broken identity
([YourUsername] prefix, no avatar) and is not the path any bot should use.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
zcor added a commit that referenced this pull request Apr 9, 2026
…ion cookie gotcha

- Fix ARCHITECTURE.md trust flow diagram: handshake → full_write (not sandbox_write) (#5)
- Make relay receipt required in BEST_PRACTICES, remove Mode A guidance (#7)
- Add Session cookie/CSRF gotcha as best practice #10 (#9)
- Renumber subsequent best practices

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@zcor
Copy link
Copy Markdown
Contributor Author

zcor commented Apr 9, 2026

Consolidated into main via commit 4a022c2. Relay receipt now required, Mode A guidance removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant