Repository navigation
Open
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: python-test CI job で ajv 依存の pytest テストが green になること
change_kind: workflowParent Issue
なし(単独改善)
Parent Goal Ref
- Goal: PR 1586(Issue 1546)で追加された新規テストが CI の python-test job で green になること
- Desired Destination: なし(単独 Issue)
Current Validated Scope
- .github/workflows/ci.yml の python-test job に node_modules セットアップ(pnpm install 相当)を追加する
Remaining Parent Gaps
なし
Outcome
python-test CI job が、ajv や ajv-formats 等の npm devDependencies を要求する node script を subprocess 呼び出しする pytest テストを実行できるよう、必要な node_modules セットアップが .github/workflows/ci.yml の python-test job に追加され、該当テストが実際の CI run 上で green になっている状態。
In Scope
- .github/workflows/ci.yml の python-test job に node_modules セットアップ(pnpm install 相当、既存の setup-node-pnpm action の再利用を優先)を追加する
- 追加によりジョブ実行時間が過度に増加しないか確認する(既存 pnpm cache 機構の再利用を検討する)
Out of Scope
- python-test job 以外の CI job の変更
- テスト側(scripts/agent-guards/tests/test_skill_runtime_exec_session_manifest.py 等)の変更
- ajv 依存を回避する node script 側の設計変更
Acceptance Criteria
- AC1: .github/workflows/ci.yml の python-test job に、既存 typecheck / lint / test / build job と同様の node_modules セットアップステップ(setup-node-pnpm action 呼び出し等)が追加されている
- AC2: 追加後、ajv/ajv-formats を要求する node script を subprocess 呼び出しする既存テスト(例: test_external_session_manifest_peer_write_does_not_stop_preflight)が、実際の CI run 上の python-test job で green になる
Verification Commands
# AC1
$ rg -c setup-node-pnpm .github/workflows/ci.yml# AC2
$ gh run list --repo squne121/loop-protocol --workflow ci.yml --limit 1 --json databaseId,conclusionAllowed Paths
- .github/workflows/ci.yml
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
なし
Required Design References
- .github/workflows/ci.yml の既存 typecheck / lint / test / build job(node_modules セットアップの参考実装)
Scope Delta(任意)
N/A
Notes for Reviewer
- AC2 の VC は python-test job の CI 結果を一般的に確認するための例示コマンドであり、実装時に対象 PR ブランチや対象 run に絞り込む具体的な確認コマンド(例: gh run view や gh pr checks 等、既存の類似 job パターンを参考にする)へ調整してよい
- 独立調査で確認済み: main ブランチの python-test job は setup-node-pnpm 相当のステップを持たず、typecheck/lint/test/build job のみが持つ
- 検証済み失敗 run: 3e4c340(run 29639717051)、a0b36b33(run 29639348429)、907d1f78(run 29639945375)はいずれも同一エラー(ajv and ajv-formats must be installed as devDependencies)で再現
- package.json 側の devDependencies 宣言自体には不備がないことを確認済み
Metadata
Metadata
Assignees
Labels
agent/implementerAI implementer agentenhancementNew feature or requestphase/implementationImplementation phase
Activity