phasegate 0.152.1 → 0.152.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.152.2] - 2026-05-12
11
+
12
+ ### Fixed
13
+
14
+ - **WI status evidence closure / WI-119 / WI-120 / WI-121 / WI-127 / WI-128** — adds missing implementation/test traceability annotations and applies derived WI statuses so the remaining G1/G5 backlog items no longer report stale or reflected-only status.
15
+
10
16
  ## [0.152.1] - 2026-05-12
11
17
 
12
18
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phasegate",
3
- "version": "0.152.1",
3
+ "version": "0.152.2",
4
4
  "packageManager": "pnpm@10.30.1",
5
5
  "description": "Phasegate — AI-agnostic quality defense toolkit. Enforces structural integrity between design intent and code.",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  // @unit ci-governance
2
2
  // @layer infrastructure
3
- // @work-item-id WI-124
3
+ // @work-item-id WI-124 / WI-128
4
4
 
5
5
  import type { ValidatorIdRegistryPort } from '../../domain/ports/validator-id-registry-port.js';
6
6
  import { buildDefaultRegistry } from '../../../validator-system/composition-root.js';
@@ -1,5 +1,6 @@
1
1
  // @unit harness-api
2
2
  // @layer infrastructure
3
+ // @work-item-id WI-127
3
4
  // Note: import.meta.url を使わず、呼び出し元 (main.ts) がパスを解決して渡す設計。
4
5
 
5
6
  import { promises as fs } from "node:fs";
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @layer infrastructure
3
3
  * @unit validator-system
4
+ * @work-item-id WI-121
4
5
  *
5
6
  * AstPerformanceScannerAdapter — PerformanceScannerPort実装
6
7
  * TypeScript Compiler API によるループ内 await 検出 + ファイルサイズチェック(L3-002)
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @layer infrastructure
3
3
  * @unit validator-system
4
+ * @work-item-id WI-120
4
5
  *
5
6
  * FileSystemSecurityPatternScannerAdapter — SecurityPatternScannerPort実装
6
7
  */
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @layer infrastructure
3
3
  * @unit validator-system
4
+ * @work-item-id WI-119
4
5
  *
5
6
  * ImportGraphSourceAnalysisAdapter — SourceAnalysisPort実装
6
7
  */
@@ -19,9 +20,11 @@ const EXPORT_LIST_PATTERN = /export\s+(?:type\s+)?\{([^}]+)\}/g;
19
20
 
20
21
  export class ImportGraphSourceAnalysisAdapter implements SourceAnalysisPort {
21
22
  private readonly root: string;
23
+ private readonly includeExcludedFiles: boolean;
22
24
 
23
- constructor(root: string = HARNESS_ROOT) {
25
+ constructor(root: string = HARNESS_ROOT, options: { includeExcludedFiles?: boolean } = {}) {
24
26
  this.root = root;
27
+ this.includeExcludedFiles = options.includeExcludedFiles ?? false;
25
28
  }
26
29
 
27
30
  async getImportGraph(): Promise<ImportGraphData> {
@@ -34,7 +37,7 @@ export class ImportGraphSourceAnalysisAdapter implements SourceAnalysisPort {
34
37
  try {
35
38
  const content = await readFile(filePath, 'utf8');
36
39
  const exports = extractExports(content);
37
- const excludedReason = classifyDeadCodeExclusion(filePath);
40
+ const excludedReason = this.includeExcludedFiles ? undefined : classifyDeadCodeExclusion(filePath);
38
41
  nodes.push({
39
42
  filePath,
40
43
  exports,