Repository navigation
Conversation
Contributor
|
このPRによるapi.jsonの差分 11287 追加行 / 0 削除行 (420990 bytes) 大きい差分のため、先頭8 KiBのみ表示します。全文とbase/head JSONはartifactに保存しています。 差分の先頭(省略あり)--- base
+++ head
@@ -163881,6 +163881,11293 @@
},
"openapi": "3.1.1",
"paths": {
+ "/email/state": {
+ "post": {
+ "operationId": "post___email___state",
+ "tags": [
+ "email"
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "allOf": [
+ {
+ "type": "object",
+ "properties": {},
+ "required": []
+ },
+ {}
+ ],
+ "type": "object",
+ "properties": {},
+ "required": [],
+ "$schema": "https://json-schema.org/draft/2020-12/schema"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "OK",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "available": {
+ "type": "boolean"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "address": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "usedBytes": {
+ "type": "string",
+ "pattern": "^\\d+$"
+ },
+ "quotaBytes": {
+ "type": "string",
+ "pattern": "^\\d+$"
+ },
+ "forwarding": {
+ "type": "object",
+ "properties": {
+ "address": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "verified": {
+ "type": "boolean"
+ },
+ "enabled": {
+ "type": "boolean"
+ },
+ "keepLocalCopy": {
+ "type": "boolean"
+ },
+ "revision": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "address",
+ "verified",
+ "enabled",
+ "keepLocalCopy",
+ "revision"
+ ],
+ "additionalProperties": false
+ }
+ },
+ "required": [
+ "available",
+ "enabled",
+ "address",
+ "usedBytes",
+ "quotaBytes",
+ "forwarding"
+ ],
+ "additionalProperties": false,
+ "$schema": "https://json-schema.org/draft/2020-12/schema"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "400",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "required": [
+ "error"
+ ],
+ "properties": {
+ "error": {
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "client",
+ "permission",
+ "server"
+ ],
+ "type": "string"
+ },
+ "info": {
+ "type": "object",
+ "propertyNames": {
+ "type": "string"
+ },
+ "additionalProperties": {}
+ },
+ "code": {
+ "const": "ACCESS_DENIED"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "id",
+ "kind"
+ ],
+ "$schema": "https://json-schema.org/draft/2020-12/schema"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "client",
+ "permission",
+ "server"
+ ],
+ "type": "string"
+ },
+ "info": {
+ "type": "object",
+ "propertyNames": {
+ "type": "string"
+ },
+ "additionalProperties": {}
+ },
+ "code": {
+ "const": "INVALID_PARAM"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "id",
+ "kind"
+ ],
+ "$schema": "https://json-schema.org/draft/2020-12/schema"
+ },
+ {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "kind": {
+ "enum": [
+ "client",
+ "permission",
+ "server"
+ ],
+ "type": "string"
+ },
+ "info": {
+ "type": "object",
+ "propertyNames": {
+ "type": "string"
+ },
+ "additionalProperties": {}
+ },
+ "code": {
+ "const": "MAIL_INVALID_INPUT"
+ },
+ "message": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "code",
+ |
Contributor
⚙️ Backend Diagnostics ReportMemory: After GC
Only metrics showing significant changes are displayed. V8 Heap Snapshot Statistics
|
Contributor
🖥 Frontend Diagnostics Report
Only metrics showing significant changes are displayed. Requests by resource type
V8 heap snapshot statistics
📦 Bundle StatsChunk size diff (47 updated, 1 added, 0 removed)
Startup chunk size (0 updated, 0 added, 0 removed)
Startup chunks are the Vite entry for
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Preserve email and auth operation ID assertions and account for all 521 routes.
Owner
Author
メール原文の非公開保管:PostgreSQL 試作と R2 の判断#255 の保管方式について、まず既定の S3 経路を変えずに PostgreSQL 案を検証しました。原文は公開 URL や配信ヘッダーに頼らず、専用の 隔離 PostgreSQL 19.0(人工データ、TCP 無効)で 5 件成功・スキップなし。原文と ready 状態の同一トランザクション、コミット前の別接続からの不可視とコミット後のバイト一致、権限なしロールの読み書き拒否と許可ロールの読み取り、途中失敗時の原文ロールバック、サイズ制限と外部キーによる連動削除を確認しました。今回の証拠は DB の試作に限り、アプリ・メール配送・R2 への接続は未実施です。
|
(cherry picked from commit 1bc05e2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2026-11-21 配送再試行・添付取得・MFM表示のフォローアップ
最新 head:
ae6272b45ae33f59a379115eea91534381b59aaf。この差分は #308 のみで、#306 は変更していません。1bc05e23f961ac01de04e512e40e415226def2e8の修正だけを取り込みました。旧形式のロケール指定と日時フォールバック、単体HTMLでのぼかし解除を検証しています。ローカル検証: backend bundle、メールの実ビルドを使った合成テスト12件、隔離したUnixソケットのPostgreSQL 17での43件(skipなし)、メールAPI 8件とOpenAPI上の添付エラー宣言、standalone MFM 20件、変更ファイルlint(エラーなし)、SPDX、locale safety、差分チェック。最後の型注記のみの差分は生成JavaScriptが同一であることを確認しました。GitHub CIの結果は最新headのChecksを参照してください。
共通API側の別作業はここに含めていません。実MTA/S3/Redisや外部メールクライアントの運用検証、メール送信、マージ、デプロイは行っていません。以下は以前のheadでの経緯です。
Mail browser regression follow-up
Head
df7a37f7db499e17442babc0a983031f0d3b853ffixes two mailbox UI races: a failed enable/disable request now keeps the checkbox aligned with confirmed server state, and back navigation is disabled while a pending read updates the selected message.The actual Vue mail page/component and Japanese locale now run in an isolated Chromium fixture, wired into the feature frontend CI workflow. All 10 browser scenarios passed locally (Chromium 151): signed-out/unavailable/disabled views; pagination/read/unread; native raw/attachment downloads; deletion confirmation; opaque scriptless received HTML with no external requests; MFM preview and same-key send retry; forwarding-link cleanup without automatic confirmation; configuration failure recovery; pending-read navigation; mobile layout. Mobile/desktop screenshots were also inspected. The six existing UI/security regressions, changed-file typed lint, fixture lint, SPDX and locale safety passed. Final-head CI completed: all 18 workflows succeeded, with no failures or pending runs. Feature frontend CI passed all 10 mail browser scenarios on Chromium 156; Lint/typecheck CI passed all 16 jobs; Backend CI passed all five jobs, including all 42 mail PostgreSQL tests with zero skips on both supported Node versions.
API/auth/dialog/router adapters are synthetic. No real email, service configuration, merge or deployment occurred. Full application integration, live relay/S3/Redis interoperability and external email-client rendering remain unverified. The 42-test real PostgreSQL concurrency follow-up below remains intact; no backend or migration changed in this round. Local validation was serialized with the shared lock; the slot is released and only this task's copied dependencies were removed.
CHANGELOG candidate: メール設定の保存失敗時の表示ずれと、既読処理中の一覧への移動による競合を修正。
PostgreSQL concurrency follow-up
Head
7302145d9cdd2744e073f6382ecbd5886bd610a3adds a disposable Unix-socket PostgreSQL runner and runs it in backend CI for both supported Node versions. The concurrency fixture uses a transaction rendezvous and distinctpg_backend_pid()assertions for staging, delivery retry deduplication, double deletion, mailbox/spool quotas, send idempotency and competing submission-worker claims. It also preserves owner-only raw/deletion assertions and uses TypeORM-compatible query results.Local PostgreSQL 17: all 42 mail persistence/submission tests passed, with zero skips; changed-file lint, SPDX and locale safety passed. SMTP and object storage are in-memory doubles, with no external mail delivery. Production implementation, permissions and migrations are unchanged. Validation was serialized with the shared lock and independent dependency copies; the local slot is released. Final-head CI completed: 20 workflows succeeded, Storybook was conditionally skipped, and no runs failed or remain pending. Backend CI passed all five jobs, including this PostgreSQL fixture on both Node versions. Lint/typecheck CI passed all 16 jobs. Live relay/S3/Redis integration, external-service crash recovery and browser validation remain outside this verification. No merge or deployment.
2026-11-16 develop follow-up
Integration head:
d63a917511d0060a9caf36af738c0bc2ec5ad8b3, integrating develop039982e806c3b4b0c9b1095b390b8ec4c9d43553. The previous headcaf55046is the first parent, preserving all #306/#307 history.Actual conflicts were limited to six authentication PostgreSQL test fixtures. The resolution preserves migration timestamp-order/required-policy assertions and policy-suffix down/up coverage, together with develop's no-pending-migrations assertions. Email/markup implementation, authentication contracts and existing migration bodies remain unchanged.
Local validation passed: 115 authentication PostgreSQL/Redis tests, 9 MCP PostgreSQL tests, 44 legacy chat webhook tests, changed-file lint, SPDX and locale safety. Validation used independent dependency copies and the shared serial lock. An initial dependency copy and one fixture setup hit temporary filesystem quota; only this task's partial copies/caches and stopped fixture data were cleaned. The previously blocked fixture then passed. Source dependency metadata remained unchanged; no external symlinks or shared hardlinks were introduced. No new live MTA/S3/browser validation in this integration-only round. Latest-head CI completed: 20 workflows succeeded, Storybook conditionally skipped, no failures or pending runs. Backend CI passed all five jobs; Lint CI passed all 16 jobs. No PR merge or deployment.
Summary
Connect the #254–257 mail foundation and standalone MFM renderer to an opt-in runtime, owner-only APIs, and mailbox UI. Includes the foundation and markup commits from draft PRs #306 and #307; this integration draft should not be merged alongside those without reconciling the overlapping history.
unknownhandling after uncertain SMTP outcomes.Safety and limitations
Disabled by default. No merge, deployment, DNS, live MTA/S3 configuration or real external email delivery was performed. Forwarding requires explicit operator safety contracts (trusted ingress, loop checking and forwarding relay). The HTTP bridge is not an SMTP/LMTP server.
Real PostgreSQL multi-connection mail concurrency is now covered by the follow-up above. Deployed MTA/S3/Redis end-to-end flows remain unverified. PGlite alone does not prove interconnection lock behavior. Received remote/CID images and clickable HTML links remain blocked; attachments download through owner checks. Mail MFM currently uses text fallback for custom emoji rather than resolving/embedding external assets. Major email-client rendering and browser visual/E2E QA remain required. Uncertain submissions are not automatically resent; an administrator must reconcile with relay logs.
Verification
CHANGELOG candidate
Refs #254, #255, #256, #257. Kept draft: operational validation and remaining rendering limitations are explicit above.
Cloudflare R2 compatibility note
The current private-mail storage implementation does not support Cloudflare R2: Cloudflare’s S3 compatibility table lists
GetPublicAccessBlock,GetBucketPolicyStatusandGetBucketAclas unimplemented. These checks are mandatory, so verification fails closed and raw-mail put/get/delete operations remain blocked rather than bypassing privacy checks. This conclusion is based on the current code and official documentation; no live R2 bucket was tested. Supporting R2 requires a dedicated implementation and tests that separately verify its independent r2.dev and custom-domain public-access routes.2026-11-16 develop integration verification
Merged develop
9f85e84ewhile preserving the existing email/markup work and the #306/#307 ancestry. OpenAPI inverse coverage now accounts for all 521 operations (481 legacy, 27 security, 13 mail).caf55046fixes only tests: migration fixtures check all registered migrations in timestamp order and retain required authentication migrations; the canonical CSS parity test uses Vitest's file path to work in both CommonJS and ESM. No authentication implementation or migration body was changed.