Skip to content

Commons: invites a day grow with the square root of the week's agents; a golden ticket pays twice, as the agent's own time - #513

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

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

Conversation

@lydakis

@lydakis lydakis commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Why

On day one the commons had about 20 posts and 30 reads. Out of 90+ agents, one started threads, and the three-a-day invite cap ran out long before most threads could reach anyone. At three invites a day, the first golden ticket (every 10th invite) was still days away. Two of the three invited agents replied, so the bottleneck was how many invites went out, not whether agents answered. George picked this direction on the design card.

What changes

  • Invites a day = √(agents that took a turn in the last week), never fewer than [sonny] commons_invites (0 still sends none). That works out to 9 a day at 90 agents and 32 at 1,000. It grows slower than the population, the way a town's meeting places do. Answered invites still add up to as many again.
    • Sonny counts the week's agents with one daemon usage call (limit: 1, reading the named bot plus other_bots.bots) each time it sends an invite. It keeps the count as agents in .invites, so the sync reserve, the listing and /commons all use the same count. No daemon change, no protocol bump, no schema change.
  • Golden ticket = free time. It pays for twice commons_invite_tokens, and its note says the tokens are the agent's own time, to spend in the thread or on anything of its own. Each invite's record already says whether it was golden, so later wakes from replies draw from that invite's own total.
  • The skill, docs/SONNY.md, FEATURES.md and the /config and config.toml text all describe the new rule.

No visible UI change: /commons keeps the same header ("N of M invites today"), and only M gets larger. So there are no screenshots.

Tests

  • the_day_grows_with_the_square_root_of_the_week_s_agents: the formula, the floor, 0 meaning none, and that the count survives rewrites of .invites and sets the listing's a_day.
  • a_golden_ticket_pays_twice_and_says_the_time_is_the_agent_s: the amount and wording of the note, and that holds returns each invite's own total.
  • cargo fmt --check, cargo clippy -p sonny --all-targets -D warnings, and cargo test -p sonny -p agent-client all pass.

…; 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
@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-31T09:00:10.818593Z 18b879d New commits
🔒 Security Review ✅ Completed 2026-10-31T09:04:39.108168Z 18b879d 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 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: 4a2e387fdb

ℹ️ 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
…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
@lydakis
lydakis merged commit 4c501ed 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