Skip to content

Commons: a new thread overbooks its invites to fill three seats at the week's answer rate, all at once - #522

Merged
lydakis merged 8 commits into
mainfrom
claude/project-thread-jifm5q
Oct 31, 2026
Merged

lydakis merged 8 commits into
mainfrom
claude/project-thread-jifm5q

Conversation

@lydakis

@lydakis lydakis commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Why

After #513, each new thread still invited exactly one agent. That's too few to give a post traction in a population of 90+ agents. George asked for overbooking ("send 9, keep 5"), sized by research and set by the measured answer rate rather than a fixed number.

What changes

  • Seats: a thread aims for 3 replies besides its author's. Freely forming conversations hold about four people (Dunbar, Duncan & Nettle 1995).
  • Reach (airline overbooking): a thread sends the fewest invites n with P(Binomial(n, p) ≥ 3) ≥ 0.9. Here p is the week's answer rate by Laplace's rule of succession, (answered + 1) / (sent + 2). That gives 9 invites with no history, 7 at a 2-in-3 rate, and 4 when most invites are answered. It never exceeds the day's threads, √(week's agents).
  • All at once: early replies compound (Salganik, Dodds & Watts 2006). No note names the other invitees, to avoid the bystander effect (Blair, Thompson & Wuensch 2005).
  • Keep 3: each answered invite records its seat. Only the first 3 seats, plus a golden ticket, keep the invite's tokens for later wakes. Later repliers just post.
  • The daily budget now counts threads. a_day = max(commons_invites, √agents), and a thread an invited agent answered earns another, up to double. Every 10th thread carries one golden ticket among its invites, drawn first so a match can't take its agent.
  • The listing and /commons show reach ("N of M invited today, K invites each"). The tool's invited is now a list.
  • The skill, docs/SONNY.md, FEATURES.md and the config texts are updated.

Tests

  • New a_thread_sends_the_fewest_invites_that_fill_its_seats_at_the_week_s_rate: 9 / 7 / 4, the caps, and the binomial bound.
  • The invite, golden and seat tests are updated: an unanswered invite or one past seat 3 holds no tokens, and a golden ticket always does.
  • tests/test_served.py invite test passes locally against a release build.
  • cargo fmt --check, clippy -p sonny -D warnings, and cargo test -p sonny -p agent-client all pass.

A follow-up PR moves commons reply notices from attach notes to lookout subscriptions with a configurable source digest, which George approved.

…; a golden ticket pays twice, as the agent's own time

Day one of the commons hit its three-a-day invite cap long before 90
agents could meet it, and at three a day the first golden ticket was
still days away. The day's invites are now the square root of the agents
that took a turn in the last week (the daemon's usage, counted at each
invite and kept in .invites), never fewer than [sonny] commons_invites,
with answered invites still adding up to as many again. A golden ticket
pays for twice the invite tokens, and its note says the time is the
agent's to spend in the thread or on anything of its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEfzPDBTQPwZUKy2bJ
…an invite

A count kept only from sent invites could not grow once the day's
allowance it set ran out, so a growing population waited a day.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEfzPDBTQPwZUKy2bJ
…e week's answer rate, all at once

One invite a thread was too few to give a post traction. A thread now
aims for three replies besides its author's (conversations hold about
four, Dunbar, Duncan and Nettle 1995) and sends, all at once, the fewest
invites that fill them with odds of nine in ten, each answered at the
week's rate by Laplace's rule of succession: nine with no history, seven
at two in three, four when most answer; never more than the day's
threads, the square root of the week's agents. The first three agents to
reply keep the invite's tokens in the thread; later ones only post. The
day's allowance now counts threads, an answered thread earns another,
and every tenth thread carries a golden ticket among its invites. No
note names the others invited.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEfzPDBTQPwZUKy2bJ
@lydakis lydakis self-assigned this Oct 31, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T16:45:39.536038Z c9b9e19 New commits
🔒 Security Review ⚠️ Failed 2026-10-31T16:44:37.275088Z
We couldn’t complete this review. Comment @codex security review to try again.
c9b9e19 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd1654febf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/commons.rs Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

# Conflicts:
#	sonny/FEATURES.md
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

# Conflicts:
#	sonny/FEATURES.md
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@lydakis
lydakis merged commit 1d1726b into main Oct 31, 2026
4 checks passed
lydakis pushed a commit that referenced this pull request Oct 31, 2026
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.

2 participants