Skip to content

fix: baseline_vc_preflight の通常実行を shared VC parser に統一する - #2796

Merged
squne121 merged 4 commits into
mainfrom
worktree-issue-2788-vc-shared-parser
Sep 27, 2026
Merged

squne121 merged 4 commits into
mainfrom
worktree-issue-2788-vc-shared-parser

Conversation

@squne121

@squne121 squne121 commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • baseline_vc_preflight.py の通常実行・compute_canonical_vc_plan()・_distinct_command_texts_from_body() を、--static-only が既に使っていた shared authority(vc_contract_syntax.parse_verification_commands_section() / VcParseResult.commands)に一本化した。新しい独立 parser は追加していない
  • 変換の唯一の入口として _command_entries_from_shared_parser() を追加し、VcCommandEntry を legacy 9-tuple 形状(ac_label, command, line_no, preflight_scope, vc_regex_intent, baseline_expect, vc_role, annotation_line_no, annotation_raw)へ純粋にデータ整形する
  • vc_contract_syntax.py:detect_compound_command()(shlex ベースの quote-aware compound 判定、baseline_vc_preflight.py から移設)と extract_vc_regex_intent_annotation()(同じく移設)を新設し、非 quote-aware だった _COMPOUND_SHELL_RE を置き換えた。rg -n "foo|bar" PATH のような quoted regex alternation はもう compound_shell と誤判定されない
  • VcCommandEntry に vc_regex_intent / annotation_source_line / annotation_source_raw を追加し、実装: VC コマンドの正規表現メタ文字を shell pipe と誤判定しない検証を追加する #589 の vc-regex-intent: literal-pipe-ok semantics と 実装: baseline-expect VC annotation と deterministic repair pass で issue-refinement-loop 反復失敗を防ぐ #889 AC11 の annotation provenance を losslessly 保持したまま shared adapter 経由で通常実行へ流す
  • grouped AC marker(# AC2, AC3)は _ac_refs_to_scalar_label() で set 順序に依存しない決定的な scalar ac ラベル(例: "AC2,AC3")へ写像し、1 source command = 1 canonical plan occurrence = 1 subprocess launch の不変条件を維持する
  • 説明用の non-$ 行(non_dollar_command)は shared parser の .commands に一切現れないため、compute_canonical_vc_plan() からは新しい例外型を投げずに自然に除外される(fail-closed by omission)。通常実行では同じ行を明示的な extraction_error(status: blocked)として --static-only と一貫した形で拒否する
  • colon_marker / suffixed_marker / compound_shell / inline_backtick / preceding_marker_with_inline_suffix は、コマンド行自体は引き続き抽出される既存挙動(legacy parse_commands_from_block() の意図)を維持し、per-command 分類(例: compound_command_disallowed)に委ねている
  • compute_duplicate_diagnostic_report() は診断専用表示のため、意図的に legacy parser のまま変更していない(Issue 実装: baseline_vc_preflight の通常実行を shared VC parser に統一し説明用 bash 行の誤実行候補化を防ぐ #2788 Out of Scope として明記)

Checks

  • pnpm typecheck
  • pnpm lint
  • pnpm test
  • pnpm build
  • 上記コマンドをすべてローカルで実行し、成功したことを確認してからチェックしてください

Schema Change Applicability

  • decision: not_schema_change
  • reason: baseline_vc_preflight/v1 の最終出力 JSON トップレベル schema・既存 errors[] エントリ形状(kind/rule/message/minimal_context/fix_hint)は変更していない(rule に新しい値 VC004_NON_DOLLAR_COMMAND が追加で出現し得るのみ)。VcCommandEntry への vc_regex_intent / annotation_source_line / annotation_source_raw 追加は、外部に公開される wire format ではない内部 Python dataclass への additive フィールド追加であり、既存 attribute へのアクセスはすべて後方互換。

Schema Consumer Inventory

N/A
reason: schema change ではないため対象 schema なし。

Safety Claim Matrix

Claim Implemented? Not controlled Evidence Follow-up
baseline_vc_preflight.py の通常実行・compute_canonical_vc_plan()・_distinct_command_texts_from_body() の 3 経路が同一の shared parser 由来のコマンド集合を返し、説明用 non-$ 行がどの経路でも subprocess 起動前の候補に昇格しないことを固定した yes N/A uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q -> 28 passed(fix_delta 追加分含む。詳細は「Fix Delta」節) N/A
vc_contract_syntax.py の quote-aware compound 判定への統一後も、既存の compound / regex-literal-pipe / grouped AC / annotation provenance semantics(#589 / #889 / #814)が回帰していないことを固定した yes N/A uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py -q -> 143 passed, 1 skipped / uv run --locked pytest .claude/skills/issue-contract-review/tests/ -q -> 598 passed N/A
fix_delta P1-A: detect_compound_command() が 2>&1 / &>out 等の punctuation-run 系 Bash redirect/pipe 演算子(正確な演算子文字列は上記 Fix Delta 節を参照)を compound として検出し、quoted regex alternation の回帰契約(上記 Fix Delta 節参照)は引き続き non-compound のままであることを固定した yes N/A uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q -k "punctuation_run or quoted_regex_alternation_still_not_compound" -> 6 passed N/A
fix_delta P1-B: 説明用 non-$ 行と正常な $ command を同一 bash fence に含む body で、compute_canonical_vc_plan() と _distinct_command_texts_from_body() が通常実行と同じ「ゼロ occurrence / 空 command set」の whole-body reject-by-omission に収束することを固定した(以前は正常な $ command から occurrence/budget candidate を生成してしまい drift していた) yes N/A uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q -k "canonical_plan or distinct_command_texts" -> 3 passed N/A
fix_delta P2: results[].line と annotation_source.line が同一の座標系(block-relative、legacy parse_commands_from_block() と同じ)を指すことを、複数 bash fence + fence 前 prose + baseline-expect annotation を含む fixture で exact assertion により固定した yes N/A uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q -k block_relative -> 2 passed N/A
本 PR が変更した shared parser(vc_contract_syntax.py)を独立に import する他 skill(review-issue(VC grammar parity)、create-issue(validate_issue_body.py)、impl-review-loop(adjudicate_vc_result.py 実 E2E 回帰)、issue-refinement-loop(budget wiring))が回帰していないことを確認した yes 網羅的な repo 全体 consumer 走査ではなく、grep で発見した直接 import 元に対する回帰実行に限定している uv run --locked pytest .claude/skills/review-issue/tests/test_vc_grammar_parity.py .claude/skills/create-issue/scripts/tests/ .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py .claude/skills/issue-refinement-loop/tests/test_review_budget_wiring.py .claude/skills/issue-refinement-loop/tests/test_reviewer_transport_deadline_matches_vc_worst_case.py -q -> 全て PASS(内訳は「検証コマンド結果」参照) #2794(既知の別 Issue、guard-issue-body.py::_strip_fenced_code_blocks() の orphan backtick/fence pairing。本 PR のスコープ外で既存トラック済み)
.claude/skills/issue-contract-review/scripts/tests/ と .claude/skills/issue-contract-review/tests/ 配下の既存 regression fixture 2 件(test_baseline_vc_preflight.py の1テスト、test_vc_quality_guards.py の make_body() ヘルパー)が legacy な非 $ コマンド許容に暗黙依存していたため、canonical $ 形式へ最小修正した。AC/VC の弱体化や削除ではなく、Issue の Outcome($ 必須の統一 grammar)に整合させる修正である yes N/A 同上 test_baseline_vc_preflight.py -q / test_vc_quality_guards.py を含む tests/ -q の全 PASS N/A

記載ルール確認:

Notes

修正差分(Fix Delta、OWNER レビュー対応、2026-09-27、commit 162ec1b)

PR review コメント(https://github.com/squne121/loop-protocol/pull/2796#issuecomment-5853307697)で指摘された 3 件の技術的推奨事項を実装した。いずれも既存の Allowed Paths(.claude/skills/issue-contract-review/scripts/vc_contract_syntax.py / baseline_vc_preflight.py / scripts/tests/)内で解消し、Allowed Paths の拡張はしていない。

  • P1-A(punctuation-run false negative): detect_compound_command() を、有限の演算子文字列集合との完全一致判定から、「shlex トークンが compound 演算子文字(; & | < >)のみで構成されているか」という一般化された判定へ変更した。これにより 2>&1 / &>out / |& tee x / >| out / <> file のような、punctuation_chars=True トークナイザが1トークンへ結合するがどの完全一致演算子文字列とも一致しなかった Bash 正式構文が compound として検出されるようになった。rg -n "foo|bar" PATH(実装: VC コマンドの正規表現メタ文字を shell pipe と誤判定しない検証を追加する #589 quoted regex alternation の回帰契約)は、トークンが英数字と | の混在(foo|bar)であり "compound 文字のみ" ではないため、引き続き non-compound のまま維持される。
  • P1-B(canonical plan / normal execution drift): compute_canonical_vc_plan() と _distinct_command_texts_from_body() は、shared parser の parse result に non_dollar_command エラーが1件でも含まれる場合、command_tuples 全体を空にするよう変更した。修正前は、説明用 non-$ 行と正常な $ command が同一 body に混在する場合、通常実行はゼロ subprocess 候補で whole-body reject するのに対し、compute_canonical_vc_plan() は正常な $ command から occurrence/budget candidate を生成してしまい、AC2/AC3/AC12 の「3経路が同じ command set を持つ」契約からの drift になっていた。新しい例外型は追加せず、既存の fail-closed-by-omission 設計(このプランを直接呼ぶ contract_readiness_check.py / run_contract_review_once.py / run_root_review_pipeline.py は Allowed Paths 外)をそのまま維持している。
  • P2(line 座標系の不整合): VcCommandEntry に additive な内部 provenance フィールド block_line_number(bash fence 内での block-relative 1-based 行番号、legacy parse_commands_from_block() と同じ座標系)を追加し、_command_entries_from_shared_parser() の legacy 9-tuple 変換をこちらから line_no を取るよう変更した。修正前は results[].line が section-relative(VcCommandEntry.line_number)になっていたのに対し、annotation_source.line は既に block-relative のままだったため、同一 result item 内で2つの line フィールドが異なる座標系を指す semantic drift になっていた。VcCommandEntry.line_number 自体の既存 semantics(section-relative)は破壊的に変更していない(他 consumer への影響を避けるため)。

追加テスト(test_baseline_vc_preflight_shared_command_parser.py、20件 -> 28件):

  • P1-A: table-driven regression(2>&1 / &>out / |& tee x / >| out / <> file を compound=True として固定、rg -n "foo|bar" PATH を non-compound として固定する negative control)
  • P1-B: test_explanatory_non_dollar_line_excluded_from_canonical_plan を exact command_occurrence_count == 0 / command_occurrences == [] / command_budgets == [] へ修正(旧テストは == 1 という誤った期待値を固定していた)、test_compute_canonical_vc_plan_never_raises_on_non_canonical_body を weak >= 0 から exact == 0 へ強化、test_explanatory_non_dollar_line_excluded_from_distinct_command_texts を _distinct_command_texts_from_body() も空リストを返すことを固定するよう修正
  • P2: 複数 bash fence + fence 前 prose + baseline-expect annotation を含む fixture で results[].line / annotation_source.line / annotation_source.raw を exact assertion で固定

受け入れ条件の達成状況

  • AC1: 通常実行が vc_contract_syntax.parse_verification_commands_section() 由来の VcParseResult.commands を source of truth とする薄い shared adapter(_command_entries_from_shared_parser())から runnable command を取得し、legacy parse_commands_from_block() 独自 grammar で command set を決めない — test_shared_adapter_is_the_single_conversion_point 等で確認済み
  • AC2: compute_canonical_vc_plan() が AC1 と同一の command source を使用し、normal execution と command occurrence / budget candidate の集合が drift しない — test_compute_canonical_vc_plan_uses_shared_adapter_command_source で確認済み
  • AC3: 説明用 non-$ 行を含む fixture で、static-only / canonical plan / normal execution のいずれもその行を runnable command として扱わず、subprocess 起動前に non-canonical input として一貫して拒否する — test_explanatory_non_dollar_line_rejected_by_static_only / _by_normal_execution / _excluded_from_canonical_plan で確認済み
  • AC4: canonical $ command fixture では従来どおり command が抽出され、plan count と通常実行対象が一致する — test_canonical_body_extracted_and_executed_consistently で確認済み
  • AC5: bare # ACN、grouped marker、inline AC suffix、preflight-scope、baseline-expect、vc-role、vc-regex-intent: literal-pipe-ok、annotation_source.line/raw の既存 shared parser semantics を回帰させない — 既存 test_baseline_vc_preflight.py(143件+1 skip)/ .claude/skills/issue-contract-review/tests/(598件)が全て PASS、加えて test_annotation_source_line_and_raw_preserved_through_shared_parser で確認済み
  • AC6: 同一 body に対する static-only / canonical plan / normal execution の parser authority 一致を pytest で固定した — test_distinct_command_texts_matches_normal_execution_command_set 等で確認済み
  • AC7: baseline_vc_preflight.py に新しい第三の command grammar parser を追加していない — test_shared_adapter_is_the_single_conversion_point の docstring 根拠、および実装コードレビューで確認可能(parse_commands_from_block() は compute_duplicate_diagnostic_report() 専用のまま)
  • AC8: 既存 baseline VC preflight / VC syntax regression suite が PASS する — test_baseline_vc_preflight.py(143件+1 skip)/ .claude/skills/issue-contract-review/tests/(598件)
  • AC9: rg -n "foo|bar" PATH のような quoted regex alternation を含む VC command が compound_shell / compound_command_disallowed として誤判定されない — test_quoted_regex_alternation_not_compound_shell_in_shared_parser / test_unquoted_pipe_is_still_compound_shell_in_shared_parser / test_detect_compound_command_is_the_single_shared_primitive で確認済み
  • AC10: rg -n "foo\|bar" PATH はアノテーションなしでは regex_literal_pipe_suspected、# vc-regex-intent: literal-pipe-ok 付きでは shared-parser 統一後の通常実行でも実行可能 — test_regex_literal_pipe_suspected_without_annotation / test_regex_literal_pipe_ok_annotation_permits_execution_after_migration で確認済み
  • AC11: grouped AC は1つの source command に対して1つの canonical plan occurrence / 1回の subprocess launch のみを生成し、ac_refs representation は set の iteration order に依存しない — test_grouped_ac_produces_exactly_one_result / test_grouped_ac_scalar_label_is_deterministic_regardless_of_set_order で確認済み
  • AC12: _distinct_command_texts_from_body() が AC1/AC2 で統一した command source と一致する command set を返す — test_distinct_command_texts_matches_normal_execution_command_set / test_explanatory_non_dollar_line_excluded_from_distinct_command_texts で確認済み
  • AC13: compute_canonical_vc_plan() の non-canonical parse-error rejection が既存 direct caller に未処理 Python exception を伝播させない。Allowed Paths は変更していない — test_compute_canonical_vc_plan_never_raises_on_non_canonical_body / test_compute_canonical_vc_plan_fully_non_canonical_body_zero_occurrences で確認済み

検証コマンド結果

head 162ec1b92d3730fd987d4ac018c4d9df8104702a(fix_delta commit、本 PR の最新 commit)で再検証済みであり、以下のとおり全て成功(PASS)した。

  • AC1-AC4, AC6, AC7, AC9-AC13 の VC(uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -q)を実行し、回帰テスト 28 件(fix_delta P1-A/P1-B/P2 追加分 8 件を含む)がすべて成功した(AC1-AC4, AC6, AC7, AC9-AC13 の根拠)
  • AC5 の VC(uv run --locked pytest .claude/skills/issue-contract-review/tests/ -q)を実行し、既存の VC grammar 回帰テスト 598 件がすべて成功した(AC5 の根拠。main 側の他 PR マージにより 実装: VC コマンドの正規表現メタ文字を shell pipe と誤判定しない検証を追加する #589 検証時点の 589 件から増加)
  • AC8 の VC(uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py -q)を実行し、既存の baseline preflight 回帰テスト 143 件がすべて成功し、1 件は環境依存でスキップされた(AC8 の根拠)

既存 non-regression suite(VC 対象外、追加安全確認。fix_delta 適用後の head で再実行済み):

  • uv run --locked pytest .claude/skills/issue-contract-review/scripts/tests/ -q -> 488 passed, 1 skipped
  • uv run --locked pytest .claude/skills/review-issue/tests/test_vc_grammar_parity.py .claude/skills/create-issue/scripts/tests/ .claude/skills/impl-review-loop/tests/test_adjudicate_vc_result_non_regression_gate.py .claude/skills/impl-review-loop/tests/test_materialize_test_verdict_artifact.py .claude/skills/issue-refinement-loop/tests/test_review_budget_wiring.py .claude/skills/issue-refinement-loop/tests/test_reviewer_transport_deadline_matches_vc_worst_case.py -q -> 539 passed
  • uv run pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py -q -> 24 passed
  • uv run ruff check .claude/skills/issue-contract-review/scripts/vc_contract_syntax.py .claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py .claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py -> no issues
  • pnpm typecheck / pnpm lint / pnpm build / pnpm test: 本 fix_delta の変更対象は Python スクリプトのみ(.claude/skills/issue-contract-review/scripts/**)のため影響なしと判断し、fix_delta commit では再実行していない(元 commit 1d7d786d 時点では全て成功済み。上記「Checks」参照)

Allowed Paths 遵守

git diff --name-only main...HEAD で確認した変更ファイルは全て Issue #2788 の Allowed Paths に収まる:

変更ファイル Allowed Paths 対応
.claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py .claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py
.claude/skills/issue-contract-review/scripts/vc_contract_syntax.py .claude/skills/issue-contract-review/scripts/vc_contract_syntax.py
.claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight.py .claude/skills/issue-contract-review/scripts/tests/
.claude/skills/issue-contract-review/scripts/tests/test_baseline_vc_preflight_shared_command_parser.py(新規) .claude/skills/issue-contract-review/scripts/tests/
.claude/skills/issue-contract-review/tests/test_vc_quality_guards.py .claude/skills/issue-contract-review/tests/

tests/fixtures/issue-body/ は Allowed Paths に含まれていたが、既存 fixture(review-issue の VC grammar parity テストが共有参照)で必要な回帰は inline body で構成できたため、新規追加していない。

IMPLEMENTATION_SCOPE_COVERAGE_V1:
  schema_version: "IMPLEMENTATION_SCOPE_COVERAGE_V1"
  issue_number: 2788
  issue_body_sha256: "sha256:f0542e403cdcc7126b3fcdd233b9871771843f85ece3f1ae3454da9a58cde64d"
  normalized_scope_manifest_sha256: "sha256:22a9b1e12a747cd4a1b02d5570ee9165c8d8af9ee22598f784dcc2fadd3cf060"
  pr_head_sha: "1d7d786d0155766fc9314d936b055d48dfca4bf9"
  scope_manifest: {"acceptance_criteria": ["_distinct_command_texts_from_body()(history snapshot command population)が、AC1/AC2 で統一した command source と一致する command set を返す", "bare # ACN、grouped marker、inline AC suffix、preflight-scope、baseline-expect、vc-role、vc-regex-intent: literal-pipe-ok、および result JSON の annotation_source.line / annotation_source.raw provenance の既存 shared parser semantics を回帰させない", "baseline_vc_preflight.py に新しい第三の command grammar parser を追加しない", "baseline_vc_preflight.py の通常実行が vc_contract_syntax.parse_verification_commands_section() または同じ VcParseResult.commands を source of truth とする薄い shared adapter から runnable command を取得し、legacy parse_commands_from_block() 独自 grammar で command set を決めない", "bash fence 内の説明用 non-$ 行を含む fixture で、static-only / canonical plan / normal execution のいずれもその行を runnable command として扱わず、subprocess 起動前に non-canonical input として一貫して拒否する", "canonical $ command fixture では従来どおり command が抽出され、plan count と通常実行対象が一致する", "compute_canonical_vc_plan() が AC1 と同一の command source を使用し、normal execution と command occurrence / budget candidate の集合が drift しない", "compute_canonical_vc_plan() の non-canonical parse-error rejection は、既存 direct caller(contract_readiness_check.py / run_contract_review_once.py / run_root_review_pipeline.py)に未処理 Python exception を伝播させない。Allowed Paths を変更せずに実現できない場合は、その旨と必要な Allowed Paths 拡張を PR で明示する", "grouped AC(# AC2, AC3 等)は1つの source command に対して1つの canonical plan occurrence / 1回の subprocess launch のみを生成し、AC association を理由に同じ command を複数回実行しない。ac_refs representation は set の iteration order に依存しない deterministic な形式である", "rg -n \"foo\\|bar\" PATH は annotation なしの場合 regex_literal_pipe_suspected として従来どおり扱われ、# vc-regex-intent: literal-pipe-ok annotation 付きの場合は shared-parser 統一後の normal execution でも実行可能である", "rg -n \"foo|bar\" PATH のような quoted regex alternation を含む VC command が、vc_contract_syntax.py / baseline_vc_preflight.detect_compound_command() のいずれでも compound_shell / compound_command_disallowed として誤判定されない(quote-aware primitive への統一により、独立した新しい regex ベース判定を追加しない)", "同一 body に対する static-only / canonical plan / normal execution の parser authority 一致を pytest で固定する", "既存 baseline VC preflight / VC syntax regression suite が PASS する"], "allowed_paths": [".claude/skills/issue-contract-review/scripts/baseline_vc_preflight.py", ".claude/skills/issue-contract-review/scripts/tests/", ".claude/skills/issue-contract-review/scripts/vc_contract_syntax.py", ".claude/skills/issue-contract-review/tests/", "tests/fixtures/issue-body/"], "change_kind": "fix", "goal_ref": "baseline_vc_preflight の通常実行・canonical VC plan・static-only が同一の shared VC command grammar を消費し、説明用 bash fence 内の非 $ 行を実コマンド候補へ昇格させない", "in_scope": ["_distinct_command_texts_from_body()(history snapshot command population)を、上記で統一した command source と一致させる", "baseline_vc_preflight.py 通常実行の command extraction を shared VC parser の command entries に統一する", "canonical $ command、AC marker、grouped AC marker、inline AC suffix、preflight-scope、baseline-expect、vc-role の既存 shared semantics を維持する", "compute_canonical_vc_plan() の command source を通常実行と同じ shared VC parser authority に統一する", "compute_canonical_vc_plan() の non-canonical parse-error rejection は、既存 direct caller(contract_readiness_check.py / run_contract_review_once.py / run_root_review_pipeline.py)に未処理 exception を伝播させない設計とする。可能な限り、body を shared parser で一度 parse し、parse error がある場合は plan producer 自体を呼ばない構造を優先し、Allowed Paths の拡張を避ける", "grouped AC(ac_refs)は additive な representation として保持し、既存 scalar ac representation との backward-compat を deterministic に定義する。1 source command = 1 canonical plan occurrence = 1 subprocess launch を崩さない", "legacy parser helper を即時削除するかは、実 consumer が残る場合は別途判断する。ただし本 Issue の3経路が legacy grammar を authority として使い続けないことは必須", "shared VcCommandEntry に vc-regex-intent の値、および annotation_source(line/raw)provenance を追加し、既存 #589 / #889 semantics を losslessly 保持する", "shared parser が返す non-canonical parse errors を、subprocess 起動前に deterministic に blocked / extraction error として扱う", "vc_contract_syntax.py の _COMPOUND_SHELL_RE ベースの compound 判定を、shlex ベースの quote-aware primitive へ委譲する形に統一し、baseline_vc_preflight.detect_compound_command() と同一の判定ロジックを共有する(新しい独立 regex 判定を追加しない)", "説明用 non-$ 行を含む bash fence と canonical $ command の regression fixture/test を追加し、static-only / canonical plan / normal execution の3経路が同じ command set / reject semantics を持つことを固定する"], "schema_version": "IMPLEMENTATION_SCOPE_MANIFEST_V1"}

PR #2786 OWNER review で判明した authority drift を解消する。従来
baseline_vc_preflight.py の通常実行・compute_canonical_vc_plan()・
_distinct_command_texts_from_body() は legacy な
extract_fenced_bash_blocks() + parse_commands_from_block() grammar を
使い、--static-only のみが vc_contract_syntax.parse_verification_commands_section()
を使っていたため、説明用の非 $ 行が通常実行では実コマンド候補に昇格し
得た。3経路すべてを同一の shared parser authority に統一し、新しい
独立 parser は追加していない。

- vc_contract_syntax.py: detect_compound_command()(shlex ベースの
  quote-aware compound 判定)と extract_vc_regex_intent_annotation() を
  baseline_vc_preflight.py から移設し、非 quote-aware だった
  _COMPOUND_SHELL_RE を置き換え。VcCommandEntry に vc_regex_intent /
  annotation_source_line / annotation_source_raw を追加し #589/#889 の
  provenance を losslessly 保持。
- baseline_vc_preflight.py: _command_entries_from_shared_parser() を
  唯一の変換点として追加し、通常実行 / compute_canonical_vc_plan() /
  _distinct_command_texts_from_body() をこれに統一。grouped AC
  (# AC2, AC3)は set 順序に依存しない決定的な scalar ac ラベルへ
  写像し、1 source command = 1 subprocess launch を維持。非 $
  行のみを含む body は canonical plan からは自然に除外され(新規
  exception 型を投げずに fail-closed)、通常実行では新しい
  extraction_error として明示的に拒否する。
- 既存 test fixture(test_baseline_vc_preflight.py の1件、
  test_vc_quality_guards.py の make_body ヘルパー)が legacy な非 $
  コマンド許容に依存していた箇所を canonical `$ ` 形式へ更新。
- test_baseline_vc_preflight_shared_command_parser.py を新規追加し
  AC1-AC4/AC6-AC7/AC9-AC13 を固定。

compute_duplicate_diagnostic_report() は診断専用表示のため legacy
parser のままとした(Issue の Out of Scope 明示事項)。

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Preview URL

✅ verified live assets: https://squne121.github.io/loop-protocol/pr-2796/

The preview will be removed when this PR is closed.

@squne121

Copy link
Copy Markdown
Owner Author

pr-review-judge 判定

Mergeability

mergeable=MERGEABLE, merge_state_status=BEHIND, isDraft=true, reviewed_head_sha=1d7d786d0155766fc9314d936b055d48dfca4bf9

Evidence Check

Blockers

(なし)

Warnings

  • レビュー中の一時的な調査用 worktree/branch(pr2796-review 等)がレビュー環境のスクラッチ領域にのみ残存。本リポジトリの作業ツリー・main への影響なし。
verdict: APPROVE
reviewed_head_sha: "1d7d786d0155766fc9314d936b055d48dfca4bf9"
blockers: []
warnings:
  - "reviewer session left a leftover local worktree/branch ref (pr2796-review) under its scratchpad dir; main repo tree is clean, no PR/main impact"

@squne121

Copy link
Copy Markdown
Owner Author

pr-review-judge 再判定(update_branch 後の head)

Mergeability

mergeable=MERGEABLE, merge_state_status=CLEAN, isDraft=true, reviewed_head_sha=e8d6b279565f16826794f43b3a34d2b46d859bd9

Evidence Check

  • 前回 head(1d7d786d)での APPROVE 後、merge_state_status: BEHIND を検出し、implementation-worker へ mechanical update_branch(merge-only)を委譲。新 head e8d6b279565f16826794f43b3a34d2b46d859bd9 を確認
  • diff-vs-main の内容を byte 比較し、update_branch による新規実装変更がないことを確認(5ファイルの patch 内容は旧 head と同一、blob hash/行番号オフセットのみが上流コミットの影響で変化)
  • Allowed Paths Gate を新 head で再実行: status: ok, violations: []
  • Closes #2788 を PR body で再確認
  • required CI(build/typecheck/test/lint/validate-generated-artifact, python-test-core含む)を新 head で再確認し全て PASS
  • Issue 実装: baseline_vc_preflight の通常実行を shared VC parser に統一し説明用 bash 行の誤実行候補化を防ぐ #2788 の13 AC全てを独立 test-runner で新 head 再検証し全PASS

Blockers

(なし)

Warnings

(なし)

verdict: APPROVE
reviewed_head_sha: "e8d6b279565f16826794f43b3a34d2b46d859bd9"
blockers: []
warnings: []

@squne121

Copy link
Copy Markdown
Owner Author

判定

REQUEST_CHANGES 相当です。
PR #2796 の方向性そのものは妥当ですが、現 head e8d6b279565f16826794f43b3a34d2b46d859bd9 には、マージ前に直した方がよい P1 が2件、P2 が1件あります。

[PR #2796](https://github.com/squne121/loop-protocol/pull/2796?utm_source=chatgpt.com)
[Issue #2788](https://github.com/squne121/loop-protocol/issues/2788?utm_source=chatgpt.com)

現 head は Draft / mergeable で、GitHub Actions の build、test、typecheck、lint、python-test 等はすべて成功しています。ただし、今回見つかった問題はいずれも既存テスト matrix の空白なので、CI green とは矛盾しません。[current-head CI run](https://github.com/squne121/loop-protocol/actions/runs/36296314897?utm_source=chatgpt.com)

Findings

  1. P1 / BLOCKER — detect_compound_command() が複合 punctuation token を見逃すため、shared parser が従来より permissive になっています。

    PR は vc_contract_syntax.py の _COMPOUND_SHELL_RE を削除し、shlex.shlex(..., punctuation_chars=True) の token を次の有限集合と完全一致させています。

    operators = {"&&", "||", "|", ";", "&", "<<", "<", ">", ">>", "<<<"}
    return any(t in operators for t in tokens)

    問題は punctuation_chars=True の仕様です。Python 公式仕様では ();<>|& の連続列を1 tokenとして返すと明記されており、semantic validity までは検証しません。:chatgpt-content-reference{index="3"}

    現実に同じロジックでは、例えば echo hi 2>&1 → ['echo','hi','2','>&','1']、echo hi &>out → ['echo','hi','&>','out']、echo hi |& tee x → ['echo','hi','|&','tee','x'] となり、すべて False になります。>|、<>、;&、;;& も同様です。一方 Bash では |& は正式な pipeline operator、&> / >& / 2>&1 / >| / <> は正式な redirection 構文です。:chatgpt-content-reference{index="4"}

    これはセキュリティ強化の話というより VC grammar の correctness regression です。旧 _COMPOUND_SHELL_RE ならこれらは検出できていました。また関数の docstring 自身も「redirect を fail-closed で compound とする」と宣言しているので、実装と契約が食い違っています。

    修正は新しい harness や shell parser を増やす必要はありません。shlex で quote-awareness を得た後、「token が punctuation だけで構成され、かつ ;&|<> のいずれかを含む」なら compound とする程度で十分です。これなら "foo|bar" は通常の word token なので通り、>& / &> / |& 等は止まります。回帰テストには最低 2>&1, &>, |&, >|, <> と quoted "foo|bar" の negative control を追加すべきです。

  2. P1 / BLOCKER — non-$ を含む body について canonical plan と normal execution がまだ drift しており、AC2/AC3 を満たしていません。

    _main_impl() は shared parse result に non_dollar_command が1件でもあれば、results=[] の blocked として subprocess を1件も起動せず終了します。ここは正しいです。

    ところが compute_canonical_vc_plan() は同じ parse_result を受け取っているのに error を無視し、.commands に残っている正常な $ command について occurrence と timeout budget を生成します。

    さらに新規テスト自身がこの挙動を固定しています。

    plan = bvp.compute_canonical_vc_plan(EXPLANATORY_NON_DOLLAR_BODY)
    assert plan["command_occurrence_count"] == 1

    つまり例えば、

    説明用の non-$ 行
    $ echo canonical_command
    

    という body では、normal execution は 0 execution candidates、canonical plan は 1 command/budget candidate です。

    これは 実装: baseline_vc_preflight の通常実行を shared VC parser に統一し説明用 bash 行の誤実行候補化を防ぐ #2788 AC2 の「normal execution と command occurrence / budget candidate の集合が drift しない」、AC3 の「static-only / canonical plan / normal execution が non-canonical input を subprocess 起動前に一貫して拒否する」と衝突します。特に canonical plan は contract_readiness_check.py、run_contract_review_once.py、run_root_review_pipeline.py でも first-class producer として利用されるため、「実行はしないから問題ない」では済みません。

    最小修正は、compute_canonical_vc_plan() 内でも shared parse result に non_dollar_command があれば command_tuples を空にして occurrence / budget candidate を生成しないことです。新例外を追加する必要はありません。これなら AC13 の「Allowed Paths 外 caller に新しい未処理例外を漏らさない」も維持できます。

    この論点は refinement 前の OWNER review が懸念していた canonical-plan rejection API そのものです。[#2788 OWNER adversarial review](実装: baseline_vc_preflight の通常実行を shared VC parser に統一し説明用 bash 行の誤実行候補化を防ぐ #2788)

  3. P2 / MAJOR — normal result の line だけ座標系が silently 変わっています。

    legacy parse_commands_from_block() の line_number は明示的に bash block 内の行番号です。一方、shared VcCommandEntry.line_number は Verification Commands section 内の1-based行番号です。

    _command_entries_from_shared_parser() は、

    entry.line_number

    をそのまま legacy 9-tuple の line_number に差し込み、最終的に baseline_vc_preflight/v1 の

    {
      "line": ...
    }

    へ出しています。

    したがって parser migration 前後で results[].line の意味が変わります。さらに annotation_source.line は bash_block_lines に対して計算しているため block-relative のままです。結果として同じ result item 内で、line は section-relative、annotation_source.line は block-relative という二種類の座標系が混在します。

    実装: baseline_vc_preflight の通常実行を shared VC parser に統一し説明用 bash 行の誤実行候補化を防ぐ #2788 の最初の OWNER review でもこの差異は明示的に指摘されていましたが、新テストは annotation_source.line is not None までしか確認せず、exact provenance を固定していません。

    shared parser の既存 line_number semantics を変えると別 consumer を壊す可能性があるため、VcCommandEntry に内部用の block_line_number を additive に持たせ、legacy adapter ではそれを results[].line に使うのが最も局所的です。少なくとも複数 fence / fence 前 prose を含む fixture で migration 前の exact line semantics を固定した方がよいです。

関連履歴との整合

今回の方向は、#589 の「quoted regex alternation と shell pipe の区別」、#814 の grouped AC、#889 の annotation provenance、#993 / PR #1002 の shared VC parser 導入を引き継ぐものです。つまり parser authority を1本化する方針自体は正しいです。[Issue #589](https://github.com/squne121/loop-protocol/issues/589?utm_source=chatgpt.com) [Issue #889](https://github.com/squne121/loop-protocol/issues/889?utm_source=chatgpt.com) [PR #1002](https://github.com/squne121/loop-protocol/pull/1002?utm_source=chatgpt.com)

一方、その過去経緯から最も警戒すべきなのが「authority を統一した結果、旧 consumer の意味論を落とす」ことです。今回の P1-1 と P2 はまさにその型です。#2794 の Markdown fence pairing 問題は独立問題として既に切り出されているため、この PR に取り込む必要はありません。[Issue #2794](https://github.com/squne121/loop-protocol/issues/2794?utm_source=chatgpt.com)

grouped AC の "AC2,AC3" scalar 化についても確認しました。現行 adjudicate_vc_result.py 等は ac を「非空文字列」として扱い (ac, command_hash) で束縛しているため、現時点で blocker と断定できる破損は確認できませんでした。ただし値域は実質拡張されているので、余力があれば grouped AC を baseline → current adjudication まで通す統合テストを1本追加する価値はあります。

また、この修正のために新しい security layer や shell sandbox を追加する必要はないと考えます。Python も subprocess では argv sequence の利用を一般に推奨し、shell=False がデフォルトです。既存の argv 実行方針を維持して、shared grammar と focused regression tests の精度を上げる方が、個人開発のワークフローを邪魔せず実効性があります。:chatgpt-content-reference{index="10"}

マージ前の最小 fix_delta は、P1-1 の punctuation-run detector 修正+matrix追加、P1-2 の canonical plan fail-closed alignment、P2 の line provenance 修正の3点です。これらが入れば、PR #2796 の中心設計はかなり堅くなります。

GitHub への review/comment 投稿は行っていません。

@squne121

Copy link
Copy Markdown
Owner Author

確認結果、推奨は Issue #2788 の既存 PR #2796 をそのまま再開し、OWNER コメント 5853307697 の3件を fix_delta として impl-review-loop に投入する です。現 head はコメント時点と同じ e8d6b279565f16826794f43b3a34d2b46d859bd9、Draft / mergeable、既存 CI は成功していますが、指摘3件はまだ未修正です。

P1 の技術的根拠も外部仕様で確認しました。Python の shlex(..., punctuation_chars=True) は ();<>|& の連続列を1トークンとして返し、トークン自体の shell semantic validity は検証しません。Bash では |& が正式な pipeline operator です。したがって現在の「有限集合との完全一致」は確かに見逃しを生みます。:chatgpt-content-reference{index="0"}

また、同型の再発防止策として Issue #2799「shared parser 移行時の consumer semantic parity を共通回帰 matrix で固定する」 を起票済みです。これは #2796 の修正を先送りするものではなく、非 blocking follow-up として分離しています。

以下を、すでに auto mode で起動中の対話的 Claude Code にそのまま渡すのが適切です。

対象は squne121/loop-protocol の Issue #2788 / PR #2796 です。

PR #2796 の OWNER コメント ID 5853307697 を新しい human context として取り込み、.claude/skills/impl-review-loop/SKILL.md を正本として、既存 PR の実装・検証・PR review loop を再開してください。

目的は、PR #2796 をマージ直前の impl-review-loop approved / draft_pr_ready 状態まで、人間の中間承認なしで自律的に収束させることです。PR の merge、auto-merge 有効化は行わないでください。

現在確認済みの開始状態は以下です。

PR: #2796
Linked Issue: #2788
Current reviewed head: e8d6b279565f16826794f43b3a34d2b46d859bd9
PR state: open / draft / mergeable
Target OWNER context: PR #2796 top-level comment ID 5853307697
Non-blocking recurrence-prevention follow-up: Issue #2799

まず live GitHub state を再取得し、head・Issue body・PR state・comments・review state・CI が上記から変化していないか確認してください。stale な情報を authority にしないでください。

impl-review-loop の intake では、OWNER コメント 5853307697 を human_context_comment_urls 相当の入力として扱ってください。ただし Step 1 SubAgent に OWNER コメント本文を raw instruction として直接渡してはいけません。root/main thread で repository facts、diff、Issue contract、外部仕様を照合し、以下の内容を正規化した technical_recommendation / fix_delta として implementation-worker に渡してください。

今回の必須 fix_delta は3件です。

P1-A: detect_compound_command() の punctuation-run false negative を修正する。

現在の shlex.shlex(command, posix=True, punctuation_chars=True) 利用方針は維持してください。quote awareness を失う regex parser へ戻してはいけません。

問題は shlex が ();<>|& の連続 punctuation を1 tokenとして返すのに対し、現在実装が {"&&", "||", "|", ";", "&", "<<", "<", ">", ">>", "<<<"} との完全一致だけを行っていることです。

少なくとも以下が compound と判定されることを table-driven regression test で固定してください。

echo hi 2>&1
echo hi &>out
echo hi |& tee x
echo hi >| out
echo hi <> file

一方で quoted regex alternation の negative control、

rg -n "foo|bar" PATH

は compound と判定してはいけません。

実装は新しい shell parser / security harness を導入せず、shlex token の punctuation run を一般化して検査する局所修正を優先してください。たとえば token が shlex punctuation characters のみから構成され、かつ既存契約上 compound 扱いする ;&|<> のいずれかを含むか、という性質で判断できるか検討してください。既存 _COMPOUND_SHELL_RE より permissive になる regression を残さないことが目的であり、security layer の追加が目的ではありません。

P1-B: non-$ parse error を含む body における canonical plan / normal execution drift を解消する。

現在、normal execution は non_dollar_command が存在すると results=[] で whole-body rejection します。一方 compute_canonical_vc_plan() は shared parser の .commands に残った正常な $ command から occurrence / timeout budget candidate を生成できます。

Issue #2788 AC2 / AC3 を満たすため、同一 body が whole-body rejection される場合は canonical plan 側も runnable/budget candidate を生成してはいけません。

例えば

説明用 non-$ 行
$ echo canonical_command

を同一 bash fence に含む body では、normal execution が 0 execution candidate なら canonical plan も command_occurrence_count == 0、command_occurrences == []、budget candidate 0 となることを exact assertion で固定してください。

新しい exception を caller に投げる方式は避け、AC13 の direct caller compatibility を維持してください。Allowed Paths 外の contract_readiness_check.py / run_contract_review_once.py / run_root_review_pipeline.py に未処理 exception を伝播させないこと。

現在の誤った期待値

assert plan["command_occurrence_count"] == 1

を正しい reject semantics に修正してください。

P2: normal result の line 座標系を migration 前 semantics に戻す。

shared VcCommandEntry.line_number は Verification Commands section-relative ですが、legacy normal result の results[].line は bash block-relative です。現在の adapter は前者をそのまま legacy tuple に渡しているため semantic drift が発生しています。

shared parser の既存 line_number の意味を破壊的に変更するのではなく、必要なら VcCommandEntry に additive な内部 provenance(例: block_line_number)を追加し、normal-execution legacy adapter の results[].line には migration 前と同じ block-relative 値を渡す局所修正を優先してください。

fence 前 prose、複数 bash fence、baseline-expect annotation を含む fixture を追加し、

results[].line
annotation_source.line
annotation_source.raw

を is not None のような弱い assertion ではなく exact expected value で固定してください。同一 result item 内で意図せず異なる座標系が混在しないことを確認してください。

上記3件は PR #2796 / Issue #2788 の現在スコープ内です。Issue #2799 に先送りしてはいけません。#2799 は将来の parser migration に対する reusable compatibility matrix を作る non-blocking follow-up です。この PR では、現在の3 blocker を最小差分で直してください。

grouped AC の "AC2,AC3" scalar representation については現在 blocker と断定されていません。ただし変更範囲内で低コストに可能なら、baseline result → current adjudication まで 1 source command = 1 occurrence の統合 regression を1本追加して構いません。これを理由にスコープを広げないでください。

外部仕様確認が必要な P1-A については、impl-review-loop の外部仕様調査ルールに従って必要なら gemini-cli-headless-delegation を利用してください。最低限、Python shlex の punctuation_chars=True が punctuation run を単一 token として返し semantic validity を検証しないこと、および Bash の |& / redirection syntax と実装 assumptions が一致することを確認してください。

ここからは .claude/skills/impl-review-loop/SKILL.md と各 steps/*.md を正本として実行してください。max_iterations は今回 8 とし、通常の implementation → verification → PR review → judgment の loop を収束するまで継続してください。

各 iteration では root/main thread 自身が implementation や review judgment を代行せず、正規の SubAgent を使用してください。Step 1 は implementation-worker、Step 2 は test-runner、Step 4 は pr-reviewer に委譲してください。

重要: SubAgent は fire-and-forget にしないでください。各 SubAgent を起動したら、その SubAgent の作業が完了し canonical output contract を返すまで必ず待ってください。複数 SubAgent を並列起動する場合も、依存する次 Step へ進む前に対象 SubAgent 全員の完了を待ち、結果を収集・検証してください。未完了の child task を残したまま「完了」と判断しないでください。

REQUEST_CHANGES が返った場合は、その reviewer の current-head blockers を次 iteration の serialized fix_delta に変換して Step 1 に戻してください。stale-head review は authority とせず current head で再レビューしてください。branch behind は skill の route_to_update_branch に従って更新後、Step 2 と Step 4 を再実行してください。

Step 2 では Issue #2788 の Verification Commands と今回変更した focused regression を current head で実行し、VC adjudication を current head / current Issue body / current command hashes に bind してください。既存 CI green を新 head の証拠として再利用しないでください。

focused regression が PASS した後、必要な既存 regression suites と repository required checks を実行してください。少なくとも今回変更した shared command parser tests、baseline VC preflight tests、issue-contract-review tests、および変更の影響を受ける直接 consumer の non-regression tests を再実行してください。repository の通常 required CI も current head で green になるまで確認してください。

PR body の Acceptance Criteria、Safety Claim Matrix、verification results、head SHA、scope coverage 等が変更後の実態と不一致なら更新してください。「canonical plan と normal execution が一致する」等の claim は、新しい exact regression evidence が取れてからのみ維持してください。

Allowed Paths は live Issue #2788 を authority としてください。既存 PR 内で修正可能なら scope を広げないでください。どうしても Allowed Paths 外変更が不可避な場合は勝手に拡張せず、まず本当に必要か設計を再検討してください。

通常の file edit、test、commit、push、PR body/comment 更新、review loop 継続について人間の承認を求めないでください。auto mode の既存 authorization を利用して自律的に進めてください。

ただし destructive operation、credential / secret の取得・表示・変更、実 Git conflict など skill が定義する genuine hard stop は無視しないでください。単なる advisory artifact 欠落、session manifest、launch ledger、recoverable agent discovery failure、CI の一時的不安定性などを理由に不要な human escalation を行わず、skill の recovery routing を実行してください。

追加で「再発しやすい独立問題」を発見した場合は、まず open Issues を dedupe 検索してください。Issue #2799 が同じ consumer-semantic-parity class を既にカバーしている場合は新規 Issue を増やさず #2799 に集約してください。#2799 ではカバーされない独立した再発性の高い問題だけ、新しい bounded GitHub Issue として起票してください。その follow-up は原則として PR #2796 の merge blocker にせず、今回の #2788 AC を満たすために必要なものだけ current PR で修正してください。

終了条件は impl-review-loop の current-head reviewer verdict が APPROVE、blockers が空、current-head Verification / required CI が成功し、live mergeability が skill の approved route 条件を満たした時点です。

そこまで到達したら PR は merge せず停止してください。最終報告には current head SHA、実施した修正、主要テスト結果、required CI 状態、reviewer verdict、残存 warning、Issue #2799 など non-blocking follow-up を含め、ユーザーが merge 判断だけ行えばよい状態にしてください。

特に今回は、コメントをそのまま implementation-worker に投げるのではなく、root が3件を正規化して fix_delta にする点と、各 SubAgent の完了を待ってから次 Step に進む点を明示しています。これは現在の impl-review-loop 契約に合っています。

… detection, canonical-plan non-dollar rejection, line coordinate parity)

- P1-A: detect_compound_command() now flags any shlex token composed
  entirely of compound-operator characters (;&|<>), not just an exact
  match against a finite operator string set. Fixes false negatives for
  `2>&1`, `&>out`, `|& tee x`, `>| out`, `<> file` while preserving the
  #589 quoted-regex-alternation negative control (`rg -n "foo|bar" PATH`).
- P1-B: compute_canonical_vc_plan() and _distinct_command_texts_from_body()
  now discard their command population entirely when the shared parser's
  VcParseResult.static_errors contains a non_dollar_command error, so both
  converge on the SAME whole-body reject-by-omission outcome normal
  execution already applies for a mixed body (explanatory non-$ line +
  otherwise well-formed $ command) -- closing the AC2/AC3/AC12 drift OWNER
  review flagged.
- P2: VcCommandEntry gains an additive block_line_number provenance field
  (block-relative, matching legacy parse_commands_from_block() semantics);
  _command_entries_from_shared_parser() now sources the legacy tuple's
  line_no from block_line_number instead of the section-relative
  line_number, so results[].line and annotation_source.line share the
  same coordinate system again.
- Adds table-driven regression tests for all three (fix_delta P1-A/P1-B/P2)
  and corrects two pre-existing test assertions that encoded the P1-B drift
  bug as expected behavior.

Ref: #2796 (comment)

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@squne121
squne121 marked this pull request as ready for review September 27, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

実装: baseline_vc_preflight の通常実行を shared VC parser に統一し説明用 bash 行の誤実行候補化を防ぐ

1 participant