Identity tier derivation compares claim schemes case-sensitively

オープン 初心者向け
#247 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend, testing

調査の方向性

reference-implementations/dacs-directory/src/catalog/identityVerification.tsとDACS-1スキームの大文字と小文字の規則を読み、その後reference-implementations/dacs-directory/test/vet-claim-rules.test.tsを確認してください。大文字と小文字が混在するスキームが小文字表記と同じティアになることを確認するテストを追加し、保存済み結果とのスキーム比較で大文字と小文字を一貫してどう扱うかを決めてください。このテストが通り、承認された修正がphase0-completionに向けて準備できたら完了です。

索引モデルが issue の本文から書いたものです。

説明

contributors-section

Where: reference-implementations/dacs-directory/src/catalog/identityVerification.ts:35 (on phase0-completion at the linked commit)

What goes wrong: claimParts (reference-implementations/dacs-directory/src/catalog/identityVerification.ts:35-43) keeps the scheme exactly as written. The institutional-scheme set check (line 89, set defined at line 15) and the recipe lookup (line 62) compare it exactly. DACS-1 reads schemes case-insensitively, so a fully verified claim written as LEI:... does not get the institutional tier that a lei claim gets.

Suggested fix: Lowercase the scheme when it is used for the institutional-set check and the recipe lookup (simplest: lowercase it in claimParts). Line 56 compares the stored result's scheme with the claim's scheme exactly; decide whether that comparison should also be case-insensitive and keep it consistent. Add a test with a mixed-case scheme (for example in reference-implementations/dacs-directory/test/vet-claim-rules.test.ts) asserting the same tier as the lowercase form.

Size: Small

This comes from a code review, not from a failing run, so please confirm it before starting. Send the fix as a pull request to phase0-completion. It merges once tests pass and a maintainer has approved it.

主要言語
TypeScript
スター
0
フォーク
3
平均マージ
20時間 26分
マージ済み PR(30日)
119

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DACS-Agent-commerce/Community のほかの issue

DACS-Agent-commerce/Community の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。