- Upgrade `y-octo` to `0.4.2` (`y-octo-core 0.1.1`) in `packages/backend`
and add `y-octo-core` to `server-sync` and `server-domain` for write-boundary
v1 scanning.
- Reject new zero-length struct updates in `server-sync::storage::validate_doc_update`
and `server-domain::workspaces::create_workspace_with_init` via
`y_octo_core::decoder_v1::decode_update_v1` while keeping persisted
historical zero-length reads intact.
- Align workspace lifecycle root-doc decoding to `WORKSPACE_LIFECYCLE_MIGRATION_READ_LIMITS`
(`max_structs = 16_000_000`), propagate `ReadError::ResourceLimit` before
committing `storage_reconciliation_checkpoints`, and preserve the
`[affine-doc:resource_limit]` marker in `server-domain::doc_sharing`.
- Keep `ReadError::IncompleteSnapshot` fallback to `Doc::try_from_binary_v1`
in `server-sync` and `server-domain` while enforcing `ReadLimits`.
- Add regression tests for cross-frame zero-length poisoning, workspace init
zero-length rejection, legacy zero-length recovery, multi-client clock gaps,
alias `ResourceLimit` markers, and lifecycle `ResourceLimit` rollback plus retry.
- Implement admin user CRUD, feature updates, batch import, enable, and recreate-for-ban transaction semantics in UserService.
- Derive ServerConfigType oauthProviders and OAuth/Captcha feature flags dynamically from app_configs and resolve availableUpgrade on demand via safe_fetch.
- Add appConfigMetadata and dry-run validateAppConfig with secret redaction and env-only key rejection.
- Add workspaceRolePermissions and DocType analytics/lastAccessedMembers with Doc.Read and Doc.Analytics permission checks.
- Wire WorkspaceService to EventBusPublisher for single notification.count.changed emission on invite, accept, and approve flows and add integration tests.
Add public-repo API parity to `affine-server` and run the core cloud
Playwright suite against the Rust all-in-one server.
- Add HS256 Bearer access tokens, native session exchange, refresh,
revoke, and list REST endpoints, login preflight, profile updates,
WebP avatar transcoding and safe removal, and a distributed-locked
expired-session cleanup worker with background lease renewal.
- Unify workspace and per-document ACL evaluation (`acl.rs`), split
REST and GraphQL modules, and add workspace member management,
ownership transfer with readonly and quota invalidation guards, atomic
invite links, `createWorkspace(init)` transactional root snapshots,
`DocType`, `DocPermissions`, `createBlobUpload`, `calendarProviders`,
and SocketIO realtime workspace access and config rooms.
- Extract reachable blob keys with `y-octo` bounded BFS under
`REPEATABLE READ` snapshots with pre-merge budgets and bounded caching,
check per-doc ACL and reserved doc isolation on source-scoped blob
routes, paginate `readable-blob-manifest/v1` with SQL cursor pushdown,
and reject legacy blob reads with `403 UNSUPPORTED_CLIENT_VERSION`.
- Keep fresh DB bootstrap on the default v1 sync protocol until
activated, and accept both absent (v1) and active (v2) lifecycle
checkpoints on existing databases.
- Add `AFFINE_E2E_RUST_SERVER=1` Playwright support and a
`cloud-e2e-rust-server` CI job, extend the live parity scenario to
23 steps, and lower `waitForTimeout` usage from 336 to 312 (ratchet
from 324 to 316).
Add `BillingSubject` to `AccessGrant` in `server-types` and re-export it from `server-spi`.
Remove the direct `entitlements` SQL query from `UserType::quota` in `server-http`.
Resolve personal storage quota from `AccessGrant.billing_subject` alone.
Add `RequestSource`, async `RateLimitPolicy`, and `CommunityRateLimitPolicy` to `server-spi` and `ServerExtension`.
Remove duplicate `AuthMailQuotaPolicy` from `server-domain`, add pure-Rust `contains_url_or_domain`, and add batch `invite_members_with_source`.
Wire `RateLimitPolicy` with on-demand `RequestSource` into `AuthService`, `WorkspaceService`, `server-http`, and `affine-server`.
Add `InvalidationHintV1::QuotaEntitlement` and `serve_with_extension_and_init` for startup hooks before serving requests.
Upgrade `RedisMutex` in `server-worker` with cached connections, lock-free connect, cancel-safe Lua lock retry, pre-commit fencing, and cancel-safe release.
Wire `server-sync` userspace writes (`MutexLock:userspace:<user_id>:<doc_id>`) to `RedisMutex` on `SessionRedis` with millisecond timestamps, upfront DB permits, lease renewal, and pre-commit fence rollback.
Handle empty-table insert conflicts via `ON CONFLICT DO NOTHING` with a `FOR UPDATE` merge fallback.
Update `packages/backend/AGENTS.md` and ignore pre-signed native license JSON in `.prettierignore` and `.oxlintrc.json`.
Extend `scripts/ci/check-l0-tier-a.mjs` to block non-test `entitlements` SQL queries in `server-http` and check documented Rust types.
Replace 22 active `waitForTimeout` calls in 12 local E2E specs with state assertions and lower `scripts/ci/l0-ratchet.json` from 358 to 336.
Add server-domain, server-mail, server-blob, and server-sync under packages/backend with y-octo 0.4.0.
Wire auth, blob, mail worker, and Socket.IO routes into server-http and affine-server.
Extend the parity harness and CSF frame audit checks.
Fix mail error redaction, expired terminal error codes, database clock reads in blob checks, and permission docs.
Add the STE writing skill and update AGENTS.md rules.