Repository navigation
Conversation
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.
What
各ユーザーの
PersonActor が公開する Proposal を使う、標準無効のローカル sample を追加します。プロフィールと対象 Note の明示 payment link、Proposal の ID/attributedTo/互換 resourceConformsTo/固定価格/受付数量を検証。表示用の対応可否は60秒キャッシュできますが、新規申し込み・承諾前は毎回 nativesignedGetseam(Strict、HTML alternate無効)で Actor と最新 Proposal を再確認します。価格・仕様・受付状態・リンクの変更、取得拒否や失効からキャッシュだけで購入承認しません。OfferAgreement→AcceptAgreement(result: Agreement)→ 検証済み支払い hook → Agreement に結び付くローカルCreate(Document)受領確認までを fixture で実行します。承諾は入金ではありません。同じ既存 ERC20 PaymentIntent の送受信者/ウォレット/Note/サービス/chain/token/recipient/amount と承認済み送信開始・確定状態を固定し、receipt の chain/hash/logIndex/event を照合します。intent/event の再利用を防ぎ、Like・反応数・残高を作りません。受領確認に wallet/tx/居住地情報は含めません。Why
Refs #8。base は #126
feat/peer-payments(2a37bf4a)。現在のスタックは #64 wallet/core → #81 サービス課金・返金・国ポリシー → #126 P2P・海外受取設定です。既存の国ポリシー関数を fixture から実行し、居住地登録必須・サーバー許可・海外受取初期OFFを保持します。Additional info (optional)
安全な prototype の範囲: API/DI/inbox/outbox/設定UIには登録していません。
enabled未指定/false は拒否。signedGet はApRequestService.signedGetの型を参照する依存注入 interface です。実サービスを渡す production caller はなく、構築箇所は fixture/test のみ(mock document map)。公開 Proposal を返す Actor serializer/API・Inbox/Outbox 登録もありません。将来実サービスを注入すれば既存 SSRF/URL/content チェックを通す設計です。実署名・実通信・第三者配送・実送金・mainnet・本番有効化は実行していません。chain 31337 専用です。状態と冪等性は1 harness instance 内のメモリのみです。再起動・複数インスタンス間の永続保証、全課金消費者と共有するDB claim、実履行・outbox、公開Actorへの組込み、リモート本人/居住地対応付け、完全な相互運用は未実装。将来の本番 adapter には管理者限定の標準無効設定と独立レビューが必要です。法的適合性や実金融機能の完成を示すものではありません。
FEDERATED-SAMPLE.md に仕様範囲・再現コマンド・制限を記載。公式 raw FEP-0ea0 / FEP-0837 の DRAFT 本文(2026-10-17取得、hash記録)を確認し、現行 raw の OfferAgreement/AcceptAgreement を使用。sample 独自の versioned resource URN・Note context・ERC20 rail を標準本文と区別しています。活動ごとの Proposal コピーや共通 Service Actor 方式は使いません。
検証: 関連 unit/連合 document fixture 3 files・29 tests PASS、backend 本体型検査 PASS、sample+fixture の絞込み型検査 PASS、既存 ESLint 規則の変更ファイル限定 project で0 errors/0 warnings、SPDX/locale safety/diff check PASS。実multi-server federation test は未実行。共有依存を読取り利用しcache=false、依存install/更新なし。
通常 shipping は pnpm の署名取得失敗で lint 起動不可、通常の広域 typed lint は2GiB heap上限で停止したため、同じ規則を限定 project で検証しました。全backend test型検査は既存 session-http.test.ts の未生成 misskey-js/built/api.js 参照で停止。これらを全体成功とは扱っていません。
Head
e28b51b64の remote CI は6 workflowsすべて completed/success:production build、API report、SPDX、Dockle、maintenance、frontend。CIでは広域 backend 型検査・feature lint・DB/boot/maintenance、frontend型検査・unit/browserも成功。上記ローカル環境の制限は履歴として保持します。レビュー指摘への修正(2026-11-21)
Head
bc8254a。初回承諾では対象Noteと当該Noteの決済リンクも再確認し、ユーザー共通Proposalが有効でも削除済み・リンク撤回済みのNoteは承諾しません。一方、認証済みの同一申込の再試行は現在の受付可否を問い合わせず、既に記録した結果を返します。同一申込の並行受付も重複記録しません。Vitest 5.0.3のローカルfixture 3ファイル・33件、変更TypeScriptのESLintと
git diff --checkが成功。試作は引き続き本番ハンドラーに未登録で、実通信・実署名・実送金は行っていません。今回のheadのGitHub Actionsは結果未確認です。Checklist