Repository navigation
Open
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: "#2568"
goal_ref: "PR #2568実装で構築したTask Context runtime-smoke検証メカニズムを使い、本セッションの時間予算内で完了できなかった実機runtimeシナリオ(AC7 wrong-primary-target advisory、AC8 /clear causal evidence、AC9 Claude-GPT adapter isolated state-root維持、AC1 interactiveの残りシナリオ)を実行し証跡を取得する"
change_kind: verification
dedupe_key: "task-context-v1:runtime-smoke-remaining-live-scenarios"Parent Issue
Outcome
.claude/skills/worktree-agent-runtime-smoke と scripts/task-context/task_context_runtime_smoke_verifier.py(#2568 実装)を用い、以下の実機 runtime シナリオを実行し、bounded/public-safe evidence を本 Issue または該当 PR コメントへ記録する。メカニズム自体(isolation gate、canonical delta contract、evidence assertion 関数、--task-context-scope/--task-context-state-root carrier passthrough)は #2568 で実装済みであり、本 Issue は追加実装ではなく「既存メカニズムを使った残り実機検証トライアル」に限定する。
In Scope
- AC7: synthetic ACTIVE Task fixture 上で wrong-primary-target な UserPromptSubmit を実際に送信し、advisory として観測され、Claude processing が継続し、binding/activity/claim が不変であることを実機で確認する。
- AC8:
/clearscenario で pre/post Claude session ID・old_session_id != new_session_id・isolated DB 上のtask_id/activity_id/binding_id不変を実機で確認する。 - AC9: Claude-GPT adapter(
scripts/claude-gpt/launch.sh)経由で isolated state-root が維持され、launcher が canonical root へ上書きしないことを実機で確認する。 - AC1: interactive lane の statusLine 観測、および Native/Claude-GPT 両 adapter の structured lane state-root carrier inheritance の残りシナリオを実機で確認する。
Out of Scope
task_context_runtime_smoke_verifier.py/run_worktree_agent_runtime_smoke.pyの新規メカニズム追加(実装: worktree-agent-runtime-smokeにrun-scoped isolated Task Context検証を追加する #2568 で完了済み。追加が必要と判明した場合は別途 Stop Condition として扱う)。- Herdr cold restart の検証(実装: Herdr cold restartでTask BindingとNative/Claude-GPT runtime flavorを自動復元する #2569 の scope)。
Acceptance Criteria
- AC1: wrong-primary-target を含む 実装: worktree-agent-runtime-smokeにrun-scoped isolated Task Context検証を追加する #2568 AC7 の実機 evidence が記録されている。
- AC2:
/clearcausal evidence(実装: worktree-agent-runtime-smokeにrun-scoped isolated Task Context検証を追加する #2568 AC8)が実機で記録されている。 - AC3: Claude-GPT adapter での isolated state-root 維持(実装: worktree-agent-runtime-smokeにrun-scoped isolated Task Context検証を追加する #2568 AC9)が実機で記録されている。
Verification Commands
# AC1/AC2/AC3
# 実機 Herdr + Claude/Claude-GPT runtime を用いた scenario 実行(詳細は #2568 実装済みメカニズムと
# .claude/skills/worktree-agent-runtime-smoke/SKILL.md canonical invocation を参照)Runtime Verification Applicability
decision: immediate
applicable_acs: [AC1, AC2, AC3]
reason: "本Issueの目的自体が#2568で実装済みメカニズムを使った実機runtime証跡の取得である"
execution_environment: "Herdr managed operator session + isolated worktree-agent-runtime-smoke run-scoped state root"
skip_conditions: "対象runtime(Native Claude / Claude-GPT + Herdr)を用意できない開発環境ではruntime検証をskipし、その旨を明記する。skip時はruntime AC PASSを主張しない。"
fallback_policy: "static/unit testsのみをruntime PASSの代替にしない。"
artifact_requirements: "bounded evidence(session ID比較、isolated DB before/after diff等)をIssue/PRコメントへpublic-safeな形で添付する。raw prompt/transcript/secretは出さない。"Allowed Paths
- なし(本 Issue は実機検証のみを対象とし、コード変更を伴わない想定。検証中に既存メカニズムの不具合が判明した場合は、実装: worktree-agent-runtime-smokeにrun-scoped isolated Task Context検証を追加する #2568 と同じ Allowed Paths (
.claude/skills/worktree-agent-runtime-smoke/**、scripts/agent-ops/run_worktree_agent_runtime_smoke.py、scripts/agent-ops/tests/**、scripts/task-context/**、tests/task-context/**)に限定して修正する。
Stop Conditions
- 実機検証の結果、実装: worktree-agent-runtime-smokeにrun-scoped isolated Task Context検証を追加する #2568 で実装したメカニズム自体に構造的な欠陥が判明した場合。
- Allowed Paths 外の変更が必要と判明した場合。
- 対象 runtime(Herdr / Claude / Claude-GPT)が一切用意できない場合。
Required Skills
なし
Required Design References
- 実装: worktree-agent-runtime-smokeにrun-scoped isolated Task Context検証を追加する #2568(本 Issue の親。実機検証対象のメカニズムはここで実装済み)
.claude/skills/worktree-agent-runtime-smoke/SKILL.mdscripts/task-context/task_context_runtime_smoke_verifier.py
Delivery Rule
1 Issue = 1 PR(コード変更が必要になった場合のみ)。
Metadata
Metadata
Assignees
Labels
No labels
Activity