Skip to content

実装: Latitude distribution real registry/provenance/hash machine 検証 #1351

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "#1261"
goal_ref: "#1261 で実装した LATITUDE_DISTRIBUTION_GATE_V1 の presence-only 分類を、real npm registry signature / provenance attestation の machine 検証と実 sha256 計算に強化する"
change_kind: additive

Parent Issue

#1261

Outcome

latitude:real-pilot:preflight の host mode 実行時に、registry_signature_verified /
provenance_verified / tarball_sha256 / installed_entrypoint_sha256 / preload_sha256 /
hook_command_sha256 が real な npm registry / インストール済みファイルから machine-verified
される状態(現状は #1261 で fail-closed の unknown / None のまま維持されている)。

Background

#1261 は latitude:real-pilot:preflight の strict predicate を distribution evidence /
argv exposure / remote cleanup の direct field assertion に強化したが、host mode の
distribution checker は repo-local lockfile / node_modules / npm cache / npm global list
からの resolution_source presence-only 分類のみを実装し、以下は意図的に未実装のまま
fail-closed(unknown / None)にしている:

  • npm registry の real signature 検証(npm audit signatures 相当)
  • provenance attestation の real 検証
  • installed entrypoint / preload / normalized hook command の実 sha256 計算
  • provider-side retention / delete の real machine verification(remote_cleanup_state: machine_verified を実現する経路)

In Scope

  • npm audit signatures(または同等の API)を使った real registry signature 検証
  • isolated install tree からの entrypoint / preload ファイルの実 sha256 計算
  • normalized hook command の実 sha256 計算
  • provider-side retention / delete verification の machine-verified 経路の調査・実装

Out of Scope

  • real cloud credits 消費
  • provider console / remote delete の実行
  • secret rotation の代行

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合
  • 外部サービス利用・権限昇格が必要になった場合

Required Skills

  • npm provenance / integrity verification
  • fail-closed policy design

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions