Repository navigation
docs(#934): fix session recording public surface boundary - #951
Conversation
Preview URLPreview removed (PR #951 closed). |
squne121
left a comment
There was a problem hiding this comment.
LOOP_VERDICT_V2
verdict: REQUEST_CHANGES
reviewed_head_sha: "3d73d3372df1bd60ee27521ee087133519fdc2fa"
merge_ready: false
mergeability:
mergeable: "MERGEABLE"
merge_state_status: "BEHIND"
linked_issue: "#934"
allowed_paths_gate:
status: ok
schema_consumer_gate:
status: ok
safety_claim_gate:
status: ok
blockers:
- summary: "PR body が canonical section 名を満たしておらず、現在の本文は
Summary/Checks/Schema Change Applicability/Schema Consumer Inventory/Safety Claim Matrix/Notesを欠落扱いで validator fail する"
severity: high
evidence_refs:- "scripts/pr_body_validator.py on current PR body: LP052 x6"
- "PR #951 current body"
next_action: "PR 本文を canonical heading に修正し、PR body validator と関連 check を再実行する"
- summary: "required CI evidence が green ではなく、
python-testがcheck_session_recording_policy.pyで fail している"
severity: high
evidence_refs:- "CI_VERDICT_SUMMARY_V1 status=pending_or_queued failed_checks=[deploy-pr, PR Body Japanese Check, python-test]"
- "python-test job 81525002364: public_surfaces.github_issue_comment missing or not a mapping"
next_action: "docs/dev/session-recording-policy.md を既存 checker と整合させるか、checker 側の正本を同 issue scope で更新可能か再判定し、green evidence を取り直す"
- summary: "CI が未収束で、
e2eが進行中かつdeploy-prも preview asset live check 404 で fail している"
severity: medium
evidence_refs:- "CI_VERDICT_SUMMARY_V1 pending_checks=[e2e]"
- "deploy-pr job 81525001916: Verify preview assets are live -> curl 404"
next_action: "失敗/保留 check を current head で解消して required CI evidence を確定させる"
required_auto_actions:
- kind: update_pr_body_hygiene
executor: implementation-worker
skill: open-pr.update_pr
blocking_merge_ready: true
mechanical: true - kind: update_branch
executor: implementation-worker
skill: implement-issue.update_branch
blocking_merge_ready: true
mechanical: true
expected_head_sha: "3d73d3372df1bd60ee27521ee087133519fdc2fa"
auto_fix_applied: []
follow_up_issue_requests: []
判定REQUEST_CHANGES です。 ただし、既存レビューの一部は古くなっています。PR #951 は現 head 問題は CI の色ではなく、この PR が固定したい公開境界と、既存の実行可能 surface がまだ矛盾している点です。 良い点PR の方向性は #934 / #928 と整合しています。
Blocker 1:
|
Summary
この節では変更の要点をまとめます。
github_issue_or_pr_commentsubtree に寄せ、manifest 本文禁止・opaque ref only・report/index conditional posting を docs と checker の両方で固定scripts/generate-session-manifest.mjsのgithub-commentsurface を live public posting 用の current CLI surface から外し、historical legacy fixture として降格--allow-local-pathfail-closed / help wording まで含めて更新し、false green で public posting を再開できないようにしたChecks
この節では受け入れ条件と検証結果をまとめます。
manifest bodyとrun report / retro indexの public surface 方針を別物として説明したagent_session_manifest/v1body 禁止と opaque ref のみ許可を明記したagent_run_report/v1/agent_retro_index/v1は 実装: agent_run_report/v1 / agent_retro_index/v1 schema・fixtures・public-safe validator を追加する #935 / 実装: GitHub Issue / PR marker upsert と public-safe posting guard を追加する #937 後のみ conditional public comment 可、実装: #928 導入前に session-recording policy と report公開境界の drift を解消する #934 merge 時点では live public posting 禁止と明記したphase_instance_idをissue-<N>:<main_loop_phase>:<seq>とci:<producer_slug>:<run_id>:<run_attempt>の両形式に更新したprivate artifactを secret-safe ではない retention-limited non-comment surface として再定義したpull_request_target不使用、posting job 限定 write permission を明記したscripts/generate-session-manifest.mjsのgithub-commentsurface を historical fixture 扱いへ降格し、current public posting path として露出しないよう更新したtests/agent-session-manifest.test.tsを legacy fixture 検証と--allow-local-pathfail-closed に更新した.claude/scripts/check_session_recording_policy.pyが canonical subtree を exact assertion し、legacy alias は compatibility-only として fail-closed で検証する検証コマンド結果
rg -n "manifest body|agent_run_report|agent_retro_index|public surface|opaque ref" docs/dev/session-recording-policy.md docs/dev/onboarding/session-recording-tool.md docs/schemas/agent-session-manifest.mdrg -n "body_allowed: false|manifest 本文.*(禁止|出さない)|opaque ref|artifact_digest|validation_verdict" docs/dev/session-recording-policy.md docs/dev/onboarding/session-recording-tool.md docs/schemas/agent-session-manifest.mdrg -n "#935|#936|#937|conditional public comment|live public posting|exact marker upsert guard|dry-run" docs/dev/session-recording-policy.md docs/dev/onboarding/session-recording-tool.md docs/dev/schema-governance.mdrg -n "issue-<N>:<main_loop_phase>:<seq>|ci:<producer_slug>:<run_id>:<run_attempt>|ci:session-manifest:" docs/dev/session-recording-policy.md docs/schemas/agent-session-manifest.mdrg -n "private artifact|retention-limited|non-comment surface|secret-safe|public-safe|non-canonical" docs/dev/session-recording-policy.md docs/dev/onboarding/session-recording-tool.md docs/schemas/agent-session-manifest.mdrg -n "trusted context|pull_request_target|issues: write|pull-requests: write|contents: read" docs/dev/session-recording-policy.md docs/dev/onboarding/session-recording-tool.mdrg -n "security boundary ではない|post-run validator|posting guard|diagnostic|prevention" docs/dev/session-recording-policy.md docs/dev/onboarding/session-recording-tool.mdrg -n "historical|non-current|not live public posting|legacy" docs/dev/onboarding/session-recording-tool.md docs/schemas/agent-session-manifest.md docs/dev/session-recording-policy.mdrg -n "github-comment|historical|legacy|not live public posting" scripts/generate-session-manifest.mjs tests/agent-session-manifest.test.tsrg -n "github-comment|artifact_digest|opaque ref|historical" tests/agent-session-manifest.test.tspython3 .claude/scripts/check_session_recording_policy.py docs/dev/session-recording-policy.mdpnpm test -- --run tests/agent-session-manifest.test.tsAllowed Paths 遵守
docs/dev/session-recording-policy.md、docs/dev/onboarding/session-recording-tool.md、docs/schemas/agent-session-manifest.md、.claude/scripts/check_session_recording_policy.py、scripts/generate-session-manifest.mjs、tests/agent-session-manifest.test.tsのみSchema Change Applicability
この節では schema change 判定の理由を示します。
schema_changeagent_session_manifest/v1の consumer-facing boundary と canonical public-surface key、関連 checker / producer help / tests の contract を current policy に合わせて更新したためSchema Consumer Inventory
この節では consumer 影響範囲と更新要否を整理します。
変更対象 schema:
agent_session_manifest/v1before/after 差分:
Consumer 列挙(rg コマンド例と結果):
Consumer 更新状況:
docs/dev/onboarding/session-recording-tool.mdartifact_urlの non-canonical 性を反映docs/dev/schema-governance.mddocs/dev/session-recording-policy.mddocs/schemas/agent-session-manifest.mdartifact_urlsemantics を追記.claude/scripts/check_session_recording_policy.pyscripts/generate-session-manifest.mjs--allow-local-pathfail-closedtests/agent-session-manifest.test.tsdocs/schemas/agent-session-manifest.schema.jsonCompatibility Decision
この節では互換性判断を整理します。
semantic_changebackward_compatibleno#935,#937Safety Claim Matrix
この節では安全境界の主張と未制御範囲を明示します。
github-commentsurface を current public posting path から外したartifact_urlは retention-limited / auth-dependent / non-canonical locator と明記したNotes
この節では関連 issue などの補足を記します。