laws with no subject in a CLI or library are selected for every TypeScript project (missing requires)

オープン
#428 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
tooling

調査の方向性

Start by reading owning-law.ts around owningLawSatisfied and concernIsWaived, then inspect the named law files: cdn-caching-strategy.ts, performance-laws.ts, deployment-laws.ts, and security-laws.ts. Trace how requires and stack checks select laws, and review the related tests for those gates. Done means laws and individual clauses produce no findings when their required project capabilities are absent, including the owning-law case.

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

説明

bug

Found in the 8.0.0 self-audit triage: RoC 7.29.1 (npm, 5fc54afe) on a clean clone of develop at 2d2fa9a, with typescript resolvable (verdict compliance, 0 failed / 46 warnings). The bucket method and per-law tables are kept by QA; counts are from that run.

What happens

These laws declare no requires (some not even a stack) and judge any TypeScript repository as if it served a web app or ran a service. On RoC (a CLI/npm package, no deploy target, no server, no web surface, no user data) they produce findings that cannot be fixed honestly:

law finding note
CDN and Caching Strategy 5 hasJsTsSources = "serves web assets" (cdn-caching-strategy.ts:35); own detectionLimit "N/A for a pure backend" is false
Performance Monitoring Standards 3 any non-browser project = backend service needing APM (performance-laws.ts:220)
Incident Response Protocol 3 own detectionLimit admits "no gating"
Launch Readiness Checklist 1 no deploy target (deployment-laws.ts:85-118)
Environment Parity Standards 3 project-level no environments; .env.example reported twice
API Security (authentication) 1 no auth subject (security-laws.ts:307-341)
Authentication Security — passes today only because of its own patterns (see M3)
NX Commands Only Policy 1 no nx.json / nx dependency, gated only by stack typescript
Security Vulnerability Response (privacy clause) 1 no user data
Pre-Deployment Checklist (production logging clause) 1 no production

Suggested direction

Shared, exported requirements such as "runs a service" (REQUIRES_NODE_HTTP_SERVER exists in next-server-laws.ts:33 but is not exported, REQUIRES_SERVERLESS_DEPLOY, firebase/wrangler configs, Dockerfile/Procfile), "web surface" (html/css/web framework deps) and "deploy target", applied to the laws above, plus clause-level gating where one law mixes service and repository concerns. Also: owningLawSatisfied (owning-law.ts:53-79) runs the owning law even when its stack/requires is unmet — unmet should count as satisfied, as concernIsWaived already does.

主要言語
TypeScript
スター
0
フォーク
0
平均マージ
38分
マージ済み PR(30日)
96

環境構築

はじめの一歩

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

Rule-Of-Code/RoC のほかの issue

Rule-Of-Code/RoC の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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