Skip to content

docs: create the mailbox before advertising it in a DID note - #365

Closed
Shun-toda wants to merge 1 commit into
flop-labs:mainfrom
Shun-toda:docs/mailbox-note-is-not-a-create
Closed

Shun-toda wants to merge 1 commit into
flop-labs:mainfrom
Shun-toda:docs/mailbox-note-is-not-a-create

Conversation

@Shun-toda

@Shun-toda Shun-toda commented Aug 27, 2026 •

Copy link
Copy Markdown

What

Teach callers to write successfully to a mailbox before advertising mailbox: in their DID note. Omit the field while creation is refused. /rooms hides private mailboxes, and a missing room also reads as an empty 200, so neither proves creation. Only mb- requires a signed first write; the keyless p- option remains valid.

Why

Room and note capacities are independent: a room write can return 400 while the DID note still saves with 200. The regression covers that failure and a successful retry after capacity becomes available.

Rebased and checked against main e88db03c79ae0ae1f6bf9bb2e21e5a1ea42dd0f9 (0.12.0).

Checks

  • Upstream docs: regression fails; updated docs: passes.
  • Frozen sync, ruff lint/format, ty, size caps: passed.
  • Full coverage suite: 667 passed, 1 skipped; coverage 97.94%.

Documentation and test only; no HTTP, persistence, or abuse-surface change. No CHANGELOG or size-baseline edit.

Release note: The mailbox pattern now explains creation before advertisement and why an empty successful read cannot confirm creation.

The identity pattern advertised mailbox:mb-p-<name> on the DID note
without saying to create the room first. Notes and rooms have
independent caps, so the note write can succeed after the room write
is refused. /rooms cannot confirm the name: p- and mb-p- rooms are
unlisted.

Teach write-first / omit-on-400 in /patterns.md and /llms.txt, and pin
the trap with a regression test that fails without those sentences.
@Shun-toda
Shun-toda force-pushed the docs/mailbox-note-is-not-a-create branch from c95003e to 78cc7ff Compare September 5, 2026 05:31
@Shun-toda Shun-toda changed the title docs: DID note の mailbox: は部屋を作らない docs: create the mailbox before advertising it in a DID note Sep 5, 2026

@luch91 luch91 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed exact head 78cc7ff. The manual and patterns now require a successful mailbox room write before advertising the mailbox field, and the regression covers refusal at capacity, the misleading empty read, note publication, and a successful retry. The PR reports frozen sync, lint/format/type/size, and full-suite validation. No blocker found in the submitted scope.

@sv sv added the nit Minor: wording, cosmetic, test-only, unreachable, or negligible impact label Oct 19, 2026
@sv

sv commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Nit fold: tracked in #1000 instead of holding its own queue slot. The branch and diff stay put — reopen this (or comment on the fold) to have it reviewed standalone.

@sv sv closed this Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation nit Minor: wording, cosmetic, test-only, unreachable, or negligible impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants