Calendar and Map are reading views like Timeline, so signed-out visitors
can now open them and see the memos readable to them. Their Space
variants still require sign-in, and composing stays signed-in only.
Navigation:
- Guests get Timeline, Calendar, Map; Attachments stays signed-in only.
The About pill is gone; About lives in the scope menu and the common
sidebar for everyone.
- One NavPill renders every nav control, from a single destination list.
- A memo list without a creator is Explore, so Timeline sends guests
there directly instead of through the Home redirect.
Scope menu:
- One UserMenu for both cases: preferences, then account pages when
signed in. Guests sign in from the sidebar footer only.
- Guests no longer see a Browse control whose only option is Explore.
- Theme and Language are submenus instead of dialogs; a choice applies
at once, saved to the account or kept locally for guests.
- The system theme listener reads the latest preference, so local guest
choices follow OS changes correctly.
Timestamp: the card timestamp was a button that navigated in script, so
it
had no URL preview and could not be opened in a new tab. It is now a
real
link that keeps the origin page and underlines on hover. On the memo's
own
page it renders as plain text, since the link would point at itself.
Action menu: ordered by how often each action is used, showing only what
applies:
- Owner: Open, Edit, Pin | Archive, one task action, Copy > (link,
content),
then More > (Move, Delete) when the memo can move, otherwise Delete.
- Archived: Restore | Delete.
- Comment: Edit | task action, Copy | Delete.
- Viewer: Open, Copy.
Open is a real link (new DropdownMenuLinkItem kit wrapper), hidden on
the
memo's own page. Check all / Uncheck all collapse into one item chosen
by
whether tasks are still open. Move only appears when there is a Space to
move to or leave, and a comment's copied link lands on the comment
inside
its parent memo.
Detail sidebar: remove the back-to-origin row. It duplicated browser
back
and the navigation above it, pushed a new history entry instead of going
back, sat inside the mobile drawer, and labelled most origins as Home.
Returning to the origin after archive or delete is unchanged.
Refs #6359
Use one SVG composition with scene-specific marks for memo, search, and
inbox empty states. Remove the sprite pool and unused placeholder
variants so callers supply the scene and localized message directly.
Cover transaction rollback, stale state, permissions, cache invalidation, batch deletion, and concurrent writes across all three database drivers.
Reject nil attachment bindings and enforce effective lifecycle policies before memo mutations reach the driver.
The MCP catalog survived the recent API changes because it is derived
from OpenAPI, but three things drifted around it, and fixing them
surfaced a fourth.
- mcp: the adapter built each in-process API request with httptest,
whose fixed peer address (192.0.2.1) overrode the caller's resolved
address on the client-address middleware's second pass. Every
anonymous MCP caller shared one rate-limit bucket. The adapter now
presents the address resolved for the /mcp request as the peer.
- mcp: the full SpaceService is curated as space_* tools. Space and
member updates drop path-bound fields and rely on the gateway's
update-mask inference; accepting and declining an invitation no
longer require an empty body for a body: "*" binding whose only
field comes from the path.
- mcp/evals: answers re-pinned to the current seed (four users,
22 top-level memos, 35 reactions, four spaces) and extended with
space questions.
- store/sqlite: transactions begin IMMEDIATE. Token authentication
records the token's last-used time asynchronously on every request,
and the space drivers read before they write in a deferred
transaction; when the background commit landed in between, SQLite
refused the upgrade with SQLITE_BUSY without consulting the busy
timeout. Roughly half of space creates over MCP failed. Taking the
write lock up front keeps the parent-delete serialization the design
relies on, so the SQLite stale-snapshot test now asserts that a
concurrent delete waits for the open transaction instead.
An active application ADMIN now passes every memo-local authorization
check on named operations: authorship, audience, Space membership and
participation, attachment and reaction ownership. Structural validity
still applies, an archived admin holds no privilege, and collection
listings keep the audience predicate so feeds never surface other users'
private memos.
- core/access: admin bypass in the read policy; CanManageMemo and
CanManageAttachment as the shared author-level predicates.
- store: drivers read the actor's role alongside its lifecycle state in
the mutation transaction; validators accept an admin where they
required the author or a member; shared attachment binding and
removal predicates.
- api: handlers use the shared predicates; admins may place memos in
any existing Space and see a memo's Space by name.
- web: one canManageMemo helper replaces the ad hoc creator checks.
- docs: multi-spaces design revised in place; share RPC comments
updated.
Drop the D1 store driver, its migrations, emulator, design doc, filter
dialect, and test-harness wiring. Memos supports SQLite, MySQL, and
PostgreSQL only.
Bound work an anonymous or low-privilege caller can force:
- Bound thumbnail decoding by declared pixel count before decoding and
remember images that cannot be thumbnailed (over the bound or not
decodable), so a small image declaring billions of pixels is served
as-is instead of decoded on every request. Transient storage read
errors are not remembered. The bound lives in internal/imagelimit and
is shared with EXIF stripping.
- Cap request bodies at 16 MiB for procedures that carry no file bytes;
only inline attachment creation, transcription, and chunked uploads
keep their larger caps.
- Digest over-long submitted usernames before using them as sign-in
limiter keys, add header and idle timeouts to the HTTP server, limit
filter expression size, and cap the SQLite regexp cache.
Close correctness gaps:
- Delete the thumbnail the file server actually writes (.v2.jpeg), its
failure marker, and the legacy name when an attachment is removed.
- Decide EXIF stripping from the sniffed content as well as the declared
type, so a mislabeled JPEG keeps no metadata.
- Revoke every other session when a password changes; an admin reset
revokes all of the target's sessions. Prune expired refresh tokens.
- Enforce the 2 MiB avatar limit the web client already applies.
- Keep S3 object keys unique when the path template has no {uuid}.
- Reject negative attachment page tokens.
- Charge memo archive imports against the write and upload budgets,
charge repeated validate-only plans, discard only attachments an
import actually stored, and refuse archives that declare far more
bytes than they hold.
- Load database-stored attachment bytes only after authorization.
- Remove the unused, unguarded linkmeta.GetImage fetcher.
Frontend: send no referrer when loading external images in memos and
link previews, and drop picture/source from the sanitizer so every
remote image goes through the https-only src rule.
Dependencies: grpc 1.83.1 and x/crypto 0.56.0 for reported advisories.
layout
Review follow-up for the D1 driver.
- LATEST.sql kept two index statements in one paragraph; the bridge
sends a
paragraph as one prepared statement, which D1 refuses. Separate them,
and
join buffered scripts in the sql adapter with a blank line so several
migration files commit over the bridge.
- List lookups by id, uid, and username bound one parameter per value
and
failed above D1's 100-parameter limit for pages larger than 100 rows.
Bind
the whole list as one JSON array through json_each instead, which also
replaces the uid resolution threshold and the chunk-and-resort paths.
- Write-policy validation now returns the memo state it read, and every
policy-checked write guards on exactly that state: memo update, memo
mutation, share creation, and attachment creation, update, and
deletion,
including the expected memo content and attachment bindings. Memo,
user,
and space deletion guard their pre-read row sets on count plus highest
id
so a row swapped for a newer one is caught.
- A 429 is no longer retried; the API rate limit that produces it blocks
the
caller for minutes.
- The reference Worker defaults a null result set to an empty array, and
the
comments claiming a batch never reads its own writes are corrected.
The emulator now judges statement boundaries with sqlite3_complete: a
bridge
entry or a parameterized REST entry holding two statements is refused
with
D1's message, and a parameter-free REST entry runs as a script. New
tests
interpose on the transport to change the database between a method's
reads
and its batch, apply the real schema over both transports, pin the
one-statement rule, and list by 250-entry id lists on every driver.
Calendar day cells drop the printed count and carry activity as a
GitHub-style background instead: four primary-tinted levels keyed to the
same all-time ceiling the sidebar heatmap uses, so a day reads alike in
both. Today and the open day share one 22px rounded badge on the
numeral,
primary for today and a quiet foreground wash for the open day, nested
in
a halo when both coincide. The cell type follows the sidebar row
grammar:
13px on 18px lines from the column axis, weight only for the open day,
and a strip of 36px photo marks under the excerpt.
The floating memo panel gets a popover surface and a new float shadow
token in every theme, and its resize trigger becomes a grip pill that
appears only while the pointer is over the edge strip.