Skip to content

実装: agent-session-manifest.schema.json の root required に secret_policy を追加する #549

Closed

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: implementation
parent_issue: "none"
goal_ref: "agent-session-manifest.schema.json の root required 配列に secret_policy を追加し、schema validation が secret_policy の存在を強制する状態にする。あわせて fixture / generator 配布物 / GitHub comment artifact が更新後 schema で valid であることをテストで保証する"
change_kind: schema_contract
compatibility: breaking_for_manifests_without_secret_policy

Parent Issue

none(単独改善)

Parent Goal Ref

Current Validated Scope

  • docs/schemas/agent-session-manifest.schema.json の root required 配列に "secret_policy" を追加する(validation contract の変更)
  • tests/agent-session-manifest.test.ts の createBaseManifest() fixture を secret_policy 込みへ更新し、negative test / 配布物 valid test を追加する

Remaining Parent Gaps

なし

Outcome

docs/schemas/agent-session-manifest.schema.json の root required への "secret_policy" 追加と、それに伴う tests/agent-session-manifest.test.ts の fixture 更新・negative test・generator 配布物 valid test が PR としてマージされ、pnpm test -- tests/agent-session-manifest.test.ts が PASS する状態。これにより secret_policy を欠く manifest は schema validation で reject され、generator の JSON 出力および GitHub comment 形式 fenced JSON は更新後 schema で valid のまま維持される。

Background

PR #532(Issue #500)で generate-session-manifest.mjs に secret_policy フィールド出力を追加した。しかし docs/schemas/agent-session-manifest.schema.json の root required 配列に secret_policy が含まれていないため、schema validation が secret_policy の存在を強制しない。JSON Schema では properties に定義しただけでは存在必須にならず、存在必須化には root required への追加が必要である。

secret_policy オブジェクト内の sub-fields(value_exposed, mode, producer_contract, runtime_boundary)は各オブジェクトの required に定義済み(PR #537 で構造確定)。本変更は docs 変更ではなく validation contract(schema_contract)の変更 である点に注意する。現在 createBaseManifest() は secret_policy を含まない base manifest を valid として扱っているため(tests/agent-session-manifest.test.ts 行103-107)、schema だけを変更すると既存の valid fixture が invalid になる。したがって fixture 更新・negative test・配布物 valid test まで含めて閉じる必要がある。

PR #500 の Out of Scope として明示されていたため、本 Issue で後続対応する。

Compatibility Impact

  • breaking_for_manifests_without_secret_policy: 本変更後、root secret_policy を欠く manifest は schema validation で invalid になる。
  • 現行 generator(scripts/generate-session-manifest.mjs 行333-350)は既に secret_policy を静的に出力しており、runtime_boundary.attested=false / evidence_ref=null の静的 producer contract を満たす。よって generator 出力自体は更新後 schema でも valid であり、generator スクリプトの変更は不要(読み取り検証のみ)。
  • 影響を受けるのは secret_policy を持たない fixture / テストであり、本 Issue 内で更新する。

Security Classification

  • 本 Issue は secret value handling を追加しない。既存の secret_policy metadata を構造的に required 化するのみ。
  • manifest 出力に secret value を serialize しない。
  • value_exposed は false を維持する。
  • mode は presence_only を維持する。
  • #550 で整理された通り、secret_policy というフィールド名一致による scope rollup の security escalation は false positive である。本変更は metadata の required 化であり、secret 値の保存・露出を伴わないため security review escalation の対象外。

Source

dedupe_key: "follow-up:squne121/loop-protocol:pr/532:schema-required-secret-policy"
source:
  kind: post_merge_cleanup
  origin_pr: "https://github.com/squne121/loop-protocol/pull/532"
  linked_issue: "https://github.com/squne121/loop-protocol/issues/500"

In Scope

  • docs/schemas/agent-session-manifest.schema.json の root required 配列に "secret_policy" を追加する
  • tests/agent-session-manifest.test.ts の createBaseManifest() fixture を secret_policy 込みへ更新する
  • secret_policy 欠落 manifest が reject される negative test を追加する
  • generator の JSON 出力 / GitHub comment fenced JSON が更新後 schema で valid であることを検証するテストを追加する

Out of Scope

Acceptance Criteria

  • AC1: docs/schemas/agent-session-manifest.schema.json の root required 配列に "secret_policy" が含まれる
  • AC2: root required の既存フィールド(schema, manifest_id, recorded_at, repository, actor, phase, redaction)がすべて維持されている
  • AC3: root secret_policy を欠く manifest が schema validation で reject される(negative test で確認)
  • AC4: canonical base manifest fixture(createBaseManifest())が secret_policy を含み、validation を pass する
  • AC5: generator が生成する manifest JSON 出力が更新後 schema で valid である
  • AC6: generator の GitHub comment 出力から抽出した fenced JSON が更新後 schema で valid である
  • AC7: secret_policy.required が ["value_exposed", "mode", "producer_contract", "runtime_boundary"] のまま変わらない
  • AC8: boundary_enforced が secret_policy 配下のどこにも再導入されていない(legacy shape 拒否テストが維持される)
  • AC9: value_exposed が false、mode が presence_only を維持する
  • AC10: runtime_boundary.attested=false のとき evidence_ref=null が引き続き要求される
  • AC11: manifest 出力に secret value が serialize されない
  • AC12: docs/schemas/agent-session-manifest.md のフィールド定義表に secret_policy がグローバル必須(yes)の行として追加されている
  • AC13: docs/schemas/agent-session-manifest.md の「Phase 別 必須 fields」表のグローバル必須注記に secret_policy が含まれる
  • AC14: docs/schemas/agent-session-manifest.md の GitHub Comment テンプレートと最小有効例の両方に secret_policy block(mode: presence_only)が含まれる(2 箇所以上)
  • AC15: docs/schemas/agent-session-manifest.md の secret_policy セクション見出しから "optional" 表記が除去され、root required 前提(global required)に修正されている

Verification Commands

各 AC は以下の VC と 1 対 1 対応する。rg 系(AC1/AC3/AC4/AC5/AC6)は schema・テストファイルへの追加要素を確認し baseline(実装前)では match せず fail する。invariant / regression 系(AC2/AC7/AC8/AC9/AC10/AC11)は # preflight-scope: runtime_only を付与し、baseline static preflight から除外したうえで実装後に pnpm test の名前付きテストで behavioral に検証する。

# AC1
$ rg -n '^[[:space:]]*"secret_policy",?[[:space:]]*$' docs/schemas/agent-session-manifest.schema.json
# AC2
# preflight-scope: runtime_only
$ pnpm test -- tests/agent-session-manifest.test.ts -t "root required preserves base fields with secret_policy"
# AC3
$ rg -n 'missing root secret_policy is rejected' tests/agent-session-manifest.test.ts
# AC4
$ rg -n 'canonical base manifest includes root secret_policy' tests/agent-session-manifest.test.ts
# AC5
$ rg -n 'generated manifest json validates against schema' tests/agent-session-manifest.test.ts
# AC6
$ rg -n 'generated github-comment artifact validates against schema' tests/agent-session-manifest.test.ts
# AC7
# preflight-scope: runtime_only
$ pnpm test -- tests/agent-session-manifest.test.ts -t "secret_policy required shape unchanged"
# AC8
# preflight-scope: runtime_only
$ pnpm test -- tests/agent-session-manifest.test.ts -t "legacy boundary_enforced shape"
# AC9
# preflight-scope: runtime_only
$ pnpm test -- tests/agent-session-manifest.test.ts -t "secret_policy presence_only invariant"
# AC10
# preflight-scope: runtime_only
$ pnpm test -- tests/agent-session-manifest.test.ts -t "unattested runtime boundary"
# AC11
# preflight-scope: runtime_only
$ pnpm test -- tests/agent-session-manifest.test.ts -t "no secret values serialized"
# AC12
$ rg -n '^\| .secret_policy. \| object \| yes \|' docs/schemas/agent-session-manifest.md
# AC13
$ rg -n 'redaction.*secret_policy' docs/schemas/agent-session-manifest.md
# AC14
# 2 箇所以上(Comment テンプレート + 最小有効例)で match すること
$ rg -c 'mode: presence_only' docs/schemas/agent-session-manifest.md
# AC15
$ rg -n '^## .secret_policy. オブジェクト(.*required' docs/schemas/agent-session-manifest.md

Runtime Verification Applicability

  • decision: not_applicable
  • reason: 本 Issue の AC は (a) schema / テストファイルへの静的検査(rg)と (b) local の pnpm test -- tests/agent-session-manifest.test.ts による unit / schema validation のみで検証できる。実アプリ実行・transport・ブラウザ・CI 生成 artifact など runtime 動作の検証を要する AC を含まないため、<!-- runtime-verification: true --> タグ(SKIP exit 77 / fallback FAIL 実装・証跡保存)は付与しない。
  • deferred_destination: N/A

Allowed Paths

  • docs/schemas/agent-session-manifest.schema.json
  • docs/schemas/agent-session-manifest.md
  • tests/agent-session-manifest.test.ts
  • tests/agent-session-manifest-phase-instance-id.test.ts
  • tests/fixtures/agent-session-manifest/**

Allowed Paths 拡張の限定条件(OWNER 承認 2026-06-01): 上記 3〜4 行目の test ファイル / fixture への拡張は、secret_policy を schema root required に追加したことに伴い既存 fixture(secret_policy 欠落)が invalid 化し test suite が赤くなるのを防ぐための test-only かつ必須の整合変更に限定する。production / src / runtime code への拡張は本 Issue では禁止する。

Stop Conditions

  • Allowed Paths 外の変更が必要と判明した場合(特に scripts/generate-session-manifest.mjs のロジック変更が必要になった場合は、generator が更新後 schema で valid でないことを意味するため停止して報告する)
  • In Scope の固定契約(secret_policy.required のキー集合、runtime_boundary の制約、型定義)の変更が必要になった場合
  • boundary_enforced の再導入が必要と判明した場合(feat(#536): split secret policy runtime and static schema #537 の決定に反するため停止)
  • 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
  • 後続 Phase / 別スコープへの波及が判明した場合
  • nested SubAgent delegation が必要になった場合
  • 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合

Required Skills

  • JSON Schema
  • TypeScript / vitest(fixture 更新・negative test 追加)

Scope Delta(任意)

  • 当初 Issue は change_kind: docs / Allowed Paths を schema 1 ファイルのみとしていたが、OWNER レビュー(issue 実装: agent-session-manifest.schema.json の root required に secret_policy を追加する #549 の REQUEST_CHANGES)に基づき schema_contract へ再分類し、tests/agent-session-manifest.test.ts を Allowed Paths に追加した。これは新規機能領域の追加ではなく、同一変更を安全に閉じるための test/fixture 整合であり、validation contract 変更に内在する必須範囲である。
  • (2026-06-01 追記・OWNER 承認)impl-review-loop 実行中、secret_policy を schema root required 化すると既存 fixture(tests/fixtures/agent-session-manifest/*.json, valid-comment.md)と tests/agent-session-manifest-phase-instance-id.test.ts(createBaseManifest() 利用)が secret_policy 欠落で invalid 化し test suite が赤くなることが判明した。これらの test-only ファイルへの更新は validation contract 変更に内在する必須整合であるため Allowed Paths に追加した。production / src / runtime code には波及しない。なお implementation-worker がこの逸脱を停止報告せず allowed_paths_compliance: true と誤報告した点は別 follow-up Issue(実装: implementation-worker の Allowed Paths を worker-side hook と PR境界 audit で決定論的に enforcement する #557)で是正する。
  • (2026-06-01 追記・OWNER REQUEST_CHANGES 反映・Option 1 承認)PR feat(#549): add secret_policy to root required in agent-session-manifest schema #556 への OWNER レビューで、secret_policy を schema root required 化(breaking change)したにもかかわらず人間向け配布物 docs/schemas/agent-session-manifest.md が同期されておらず、テンプレート / 最小有効例 / required 一覧 / "optional" 表記が新 schema と矛盾する drift が判明した。これは同一 contract の SSOT 整合性修正であり、breaking change と同一 PR で閉じるべき blocker と OWNER が判断したため、docs/schemas/agent-session-manifest.md を Allowed Paths に追加し AC12〜AC15 を追加した。あわせて以下の test 強化(既存 AC の実装品質要件、新 AC ではない)を行う: (Major 3) AC5/AC6 は object literal 検証ではなく実 generator(node scripts/generate-session-manifest.mjs)を subprocess 起動した出力 / 抽出 artifact を schema validation する; (Major 4) AC2/AC7/AC8 は runtime object property check ではなく schema-level の exact assertion(schema.required / schema.properties.secret_policy.required の配列完全一致、boundary_enforced 不在)で検証する; (Major 5) AC11 の no-secret test は token prefix blacklist のみに依存せず、test 名と検証範囲を実態に合わせる。production game code(src/**)への波及はない。

Delivery Rule

Activity

  1. added
    triage-required
    phase/implementation
    enhancement
    agent/implementer
    on May 31, 2026
  2. squne121 commented on Jun 1, 2026

    @squne121
    OwnerAuthor

    判定: REQUEST_CHANGES

    Issue #549 の目的自体は正しいです。現状の agent-session-manifest.schema.json は secret_policy の定義を持っている一方、root required には入っていないため、secret_policy なしの manifest を schema validation が許容します。JSON Schema では properties に定義しただけでは存在必須にならず、存在必須にするには required が必要です。Ajv のFAQも同じ点を明示しています。([GitHub]1)

    ただし、Issue #549 の契約は実装指示として不十分です。このまま実装させると、schema だけを雑に変更し、テスト・配布物・後方互換性・既存 fixture の破壊を見落とす可能性が高いです。

    致命的な問題

    1. change_kind: docs は誤分類

    Issue #549 は change_kind: docs になっていますが、これは docs 変更ではありません。root required を変えるため、validation contract の変更です。現在は createBaseManifest() が secret_policy を含まない base manifest を作り、それを valid として検証するテストがあります。つまり、この変更は既存の valid fixture を invalid に変える可能性があります。([GitHub]2)

    修正案:

    change_kind: schema_contract
    compatibility: breaking_for_manifests_without_secret_policy

    少なくとも「既存 manifest / fixture / downstream consumer に対する互換性影響」を Issue 本文に入れるべきです。

    2. Allowed Paths が狭すぎる

    Issue #549 の Allowed Paths は docs/schemas/agent-session-manifest.schema.json のみですが、これは危険です。schema の root required を変えたら、少なくとも tests/agent-session-manifest.test.ts の fixture と期待値を更新する必要があります。現在のテストには secret_policy なしの base manifest を valid とする構造が残っています。([GitHub]2)

    Allowed Paths は最低限こうするべきです。

    allowed_paths:
      - docs/schemas/agent-session-manifest.schema.json
      - tests/agent-session-manifest.test.ts

    必要なら generator の golden output / fixture も対象に含めます。

    3. Verification Commands が弱すぎる

    Issue #549 の検証は rg -c と Python の membership check だけです。これは「文字列として入っている」ことしか確認できません。schema として compile できるか、secret_policy 欠落 manifest を拒否するか、現行 generator 出力を受理するかを確認していません。([GitHub]2)

    最低限、以下が必要です。

    pnpm test -- tests/agent-session-manifest.test.ts

    追加テストとしては:

    it('rejects manifest without root secret_policy', () => {
      const manifest = createBaseManifest()
      delete manifest.secret_policy
    
      const result = validateManifestAgainstSchema(manifest)
    
      expect(result.valid).toBe(false)
    })

    さらに、createBaseManifest() 自体は secret_policy を含む最新 fixture に更新するべきです。

    4. #537 で確定した意味論を再破壊する余地がある

    #537 では boundary_enforced を削除し、producer_contract と runtime_boundary に分離しています。現在の schema でも secret_policy.required は value_exposed, mode, producer_contract, runtime_boundary で、runtime_boundary.evidence_ref も attested に応じて厳密に制約されています。([GitHub]3)

    Issue #549 の AC は「sub-fields required unchanged」とだけ書いていますが、これでは弱いです。実装者が root required だけでなく周辺を触ってしまった場合に検知しづらい。

    AC に明示すべきです。

    - secret_policy.properties.boundary_enforced MUST NOT be reintroduced.
    - secret_policy.required MUST remain exactly:
      ["value_exposed", "mode", "producer_contract", "runtime_boundary"].
    - runtime_boundary.required MUST continue to include ["attested", "evidence_ref"].
    - attested=true requires non-empty string evidence_ref.
    - attested=false requires evidence_ref=null.
    

    5. 配布物の検証が不足している

    この manifest は単なる schema ファイルではなく、generator により JSON または GitHub comment fenced JSON として出力される配布物です。現在の generator は secret_policy を出力しており、runtime_boundary.attested:false / evidence_ref:null の静的 producer contract になっています。([GitHub]4)

    したがって #549 の完成条件は、schema の required 変更だけでは足りません。

    必要な検証:

    - generator の JSON 出力が更新後 schema で valid。
    - generator の github-comment 出力から fenced JSON を抽出して schema valid。
    - 出力された manifest に secret_policy が root property として存在する。
    - secret_policy は secret value を含まず、presence_only / value_exposed=false を維持する。
    

    特に GitHub comment 形式は配布面です。ここを検証しないと、「schema は強くなったが実際に貼られる artifact が壊れていた」という失敗を見逃します。([GitHub]4)

    6. #550 の false positive 文脈を Issue #549 に反映すべき

    #550 では、secret_policy という語に scope rollup が反応して security escalation したことが false positive と整理されています。#549 は secret value を扱う変更ではなく、manifest の policy/attestation metadata を root required にする変更です。ただし将来 secret_policy の値を保存・検証・露出する変更なら security review 対象になり得る、という整理です。([GitHub]5)

    Issue #549 に次を足すべきです。

    Security classification:
    - This issue does not add secret value handling.
    - It only makes existing secret_policy metadata structurally required.
    - No secret values may be serialized.
    - value_exposed must remain false.
    - mode must remain presence_only.
    

    改善後の Acceptance Criteria 案

    ## Acceptance Criteria
    
    - Root `required` in `docs/schemas/agent-session-manifest.schema.json` includes `secret_policy`.
    - Existing root required fields remain present:
      - `schema`
      - `manifest_id`
      - `recorded_at`
      - `repository`
      - `actor`
      - `phase`
      - `redaction`
    - A manifest missing root `secret_policy` is rejected by schema validation.
    - The canonical base manifest fixture includes `secret_policy` and validates successfully.
    - Generated manifest JSON validates successfully.
    - Generated GitHub comment artifact contains fenced JSON that validates successfully after extraction.
    - `secret_policy.required` remains exactly:
      - `value_exposed`
      - `mode`
      - `producer_contract`
      - `runtime_boundary`
    - `boundary_enforced` is not reintroduced anywhere under `secret_policy`.
    - `value_exposed` remains `false`.
    - `mode` remains `presence_only`.
    - `runtime_boundary.attested=false` continues to require `evidence_ref=null`.
    - No secret values are serialized into manifest output.

    PR に対する敵対的レビューコメント案

    REQUEST_CHANGES
    
    目的は正しいですが、この Issue 契約のまま実装すると schema だけを変更して終わる危険があります。
    
    `secret_policy` は既に schema の `properties` に存在しますが、root `required` に入っていないため、現在は `secret_policy` なしの manifest も valid になり得ます。したがって root required への追加は妥当です。
    
    ただしこれは docs 変更ではなく schema contract 変更です。既存の `createBaseManifest()` は `secret_policy` を含まない valid fixture として使われているため、schema 変更だけではテスト・fixture・配布物検証が破綻します。
    
    修正要求:
    
    1. `change_kind: docs` をやめ、schema contract / validation contract change として扱う。
    2. Allowed Paths に `tests/agent-session-manifest.test.ts` を追加する。
    3. `secret_policy` 欠落 manifest が invalid になる negative test を追加する。
    4. canonical base manifest fixture に `secret_policy` を追加する。
    5. generator の JSON 出力と github-comment 出力が更新後 schema で valid であることを検証する。
    6. #537 で削除した `boundary_enforced` を再導入していないことを明示的にテストする。
    7. `secret_policy.required` / `runtime_boundary.required` の既存 shape が drift していないことを確認する。
    8. この変更は secret value handling ではなく metadata の required 化であり、`value_exposed=false` / `presence_only` を維持することを Security classification に明記する。
    
    この Issue は「root required に 1 行足すだけ」では完了扱いにできません。schema validation boundary、fixture、generator artifact、GitHub comment artifact まで通して閉じる必要があります。

    最終結論

    #549 は やるべき変更です。ただし、現在の Issue 本文は実装者に「schema の required 配列だけ触ればよい」と誤誘導します。
    高品質化するなら、schema contract 変更として再分類し、テスト・fixture・generator 出力・GitHub comment 配布物まで AC に含めるべきです。

  3. squne121 commented on Jun 1, 2026

    @squne121
    OwnerAuthor

    issue-refinement-loop 完了: REQUEST_CHANGES 反映済み → contract-ready

    OWNER レビュー(REQUEST_CHANGES)の 8 要求を本文へ反映しました。codebase-investigator により全 5 クレーム(root required 欠落 / sub-fields required 定義済み / createBaseManifest() の secret_policy 欠落 fixture / generator の静的 secret_policy 出力 / boundary_enforced 削除済み)が VERIFIED であることを確認済みです。

    反映内容

    1. change_kind: docs → schema_contract に再分類し、compatibility: breaking_for_manifests_without_secret_policy を追加。
    2. Allowed Paths に tests/agent-session-manifest.test.ts を追加(schema + test の 2 ファイル)。generator は現行出力が更新後 schema で valid のためロジック変更不要(Out of Scope / Stop Conditions に明記)。
    3. AC を 11 項目に再構成(root required 追加 / 既存 required 維持 / 欠落 manifest reject / fixture 更新 / generator JSON valid / GitHub comment fenced JSON valid / secret_policy.required 不変 / boundary_enforced 非再導入 / value_exposed=false・mode=presence_only / attested=false→evidence_ref=null / secret value 非 serialize)。
    4. Security Classification セクション追加(secret value handling なし・value_exposed=false / presence_only 維持・実装: scope collision 判定を構造化コンテキストで汎用化し、単語一致による誤エスカレーションを抑止する #550 の false positive 文脈)。
    5. Compatibility Impact セクション追加。
    6. VC を AC[N] と 1 対 1 対応に整理。静的 rg(baseline fail)と # preflight-scope: runtime_only の pnpm test(behavioral invariant)に分離。

    決定論レビュー結果(review-issue / contract_readiness)

    • C1–C11 すべて pass、contract_readiness_check.py → status: go。
    • 初回 blocker(VCP_UNEXPECTED_PASS / VCP_COMMAND_NOT_ALLOWED / C4 / C9)および 2 巡目 blocker(C5 / C11 / LP010 / LP016 / RVA001)はすべて解消。
    • Runtime Verification Applicability: not_applicable(runtime 動作検証 AC を含まないため。静的検査 + local pnpm test のみで検証可能)。

    実装着手前に issue-contract-review(status: go 確認済み)を経て impl-review-loop へ進められる状態です。なお Delivery Rule の通り、同一 schema ファイルを扱う #547 のマージ後に実装 PR を作成することを推奨します。

  4. squne121 commented on Jun 1, 2026

    @squne121
    OwnerAuthor

    Contract Snapshot (2026-06-01T13:15:06Z)

    • Outcome: agent-session-manifest.schema.json の root required に secret_policy を追加し、欠落 manifest が schema validation で reject される状態。fixture / generator JSON 出力 / GitHub comment fenced JSON は更新後 schema で valid を維持。
    • Acceptance Criteria: AC1〜AC11(root required 追加 / 既存 required 維持 / negative test / fixture 更新 / generator 出力 valid / GitHub comment artifact valid / secret_policy.required 不変 / boundary_enforced 不再導入 / presence_only 維持 / unattested→evidence_ref=null / secret value 非 serialize)
    • Verification Commands: AC1/AC3/AC4/AC5/AC6 = rg(baseline fail 期待), AC2/AC7〜AC11 = pnpm test -- tests/agent-session-manifest.test.ts -t "<name>"(runtime_only)
    • Allowed Paths: docs/schemas/agent-session-manifest.schema.json, tests/agent-session-manifest.test.ts
    • Worktree: .claude/worktrees/issue-549-agent-session-manifest-schema-json-root
    • Branch: worktree-issue-549-agent-session-manifest-schema-json-root
    • VC preflight: baseline fail = 5, 想定外 pass = 0, 実行不可 = 0, skipped(runtime_only) = 6
    CONTRACT_REVIEW_RESULT_V1:
      status: go
      generated_at: "2026-06-01T13:15:06Z"
      generated_by: issue-contract-review
      issue_url: https://github.com/squne121/loop-protocol/issues/549
      checks:
        template_compliance: pass
        state_label: ok
        allowed_paths_present: pass
        vc_present: pass
        stop_conditions_complete: pass
        vc_preflight:
          passed: true
          vc_failed_as_expected: 5
          vc_passed_unexpectedly: 0
          vc_unrunnable: 0
          vc_expected_pass: 0
          vc_skipped: 6
          classifications:
            - ac: AC1
              command: 'rg -n ''^[[:space:]]*"secret_policy",?[[:space:]]*$'' docs/schemas/agent-session-manifest.schema.json'
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC2
              command: 'pnpm test -- tests/agent-session-manifest.test.ts -t "root required preserves base fields with secret_policy"'
              exit_code: null
              category: preflight_scope_runtime_only
              scope_class: runtime_only
              confidence: low
              decision: go
              verification_owner: impl-review-loop
              deferred_reason: "VC marked runtime_only; verification deferred to post-implementation runtime"
              runtime_verification_required: true
            - ac: AC3
              command: "rg -n 'missing root secret_policy is rejected' tests/agent-session-manifest.test.ts"
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC4
              command: "rg -n 'canonical base manifest includes root secret_policy' tests/agent-session-manifest.test.ts"
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC5
              command: "rg -n 'generated manifest json validates against schema' tests/agent-session-manifest.test.ts"
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC6
              command: "rg -n 'generated github-comment artifact validates against schema' tests/agent-session-manifest.test.ts"
              exit_code: 1
              category: expected_baseline_fail
              scope_class: baseline_fail_expected
              confidence: high
              decision: go
            - ac: AC7
              command: 'pnpm test -- tests/agent-session-manifest.test.ts -t "secret_policy required shape unchanged"'
              exit_code: null
              category: preflight_scope_runtime_only
              scope_class: runtime_only
              confidence: low
              decision: go
              verification_owner: impl-review-loop
              deferred_reason: "VC marked runtime_only; verification deferred to post-implementation runtime"
              runtime_verification_required: true
            - ac: AC8
              command: 'pnpm test -- tests/agent-session-manifest.test.ts -t "legacy boundary_enforced shape"'
              exit_code: null
              category: preflight_scope_runtime_only
              scope_class: runtime_only
              confidence: low
              decision: go
              verification_owner: impl-review-loop
              deferred_reason: "VC marked runtime_only; verification deferred to post-implementation runtime"
              runtime_verification_required: true
            - ac: AC9
              command: 'pnpm test -- tests/agent-session-manifest.test.ts -t "secret_policy presence_only invariant"'
              exit_code: null
              category: preflight_scope_runtime_only
              scope_class: runtime_only
              confidence: low
              decision: go
              verification_owner: impl-review-loop
              deferred_reason: "VC marked runtime_only; verification deferred to post-implementation runtime"
              runtime_verification_required: true
            - ac: AC10
              command: 'pnpm test -- tests/agent-session-manifest.test.ts -t "unattested runtime boundary"'
              exit_code: null
              category: preflight_scope_runtime_only
              scope_class: runtime_only
              confidence: low
              decision: go
              verification_owner: impl-review-loop
              deferred_reason: "VC marked runtime_only; verification deferred to post-implementation runtime"
              runtime_verification_required: true
            - ac: AC11
              command: 'pnpm test -- tests/agent-session-manifest.test.ts -t "no secret values serialized"'
              exit_code: null
              category: preflight_scope_runtime_only
              scope_class: runtime_only
              confidence: low
              decision: go
              verification_owner: impl-review-loop
              deferred_reason: "VC marked runtime_only; verification deferred to post-implementation runtime"
              runtime_verification_required: true
        ac_verifiability: pass
        product_spec_check:
          applicability: not_applicable
          decision: pass
          triggers:
            docs_product_allowed_paths: false
            tasks_md_mentioned: false
            specify_artifact_mentioned: false
            generated_task_mentioned: false
            product_spec_context_present: false
        runtime_verification_applicability: not_applicable
        worktree_branch_collision: clear
      next_action: implement_issue
      blocked_reasons: []
      warnings: []
  5. added 5 commits that reference this issue on Jun 1, 2026
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

    agent/implementerenhancementphase/implementationtriage-required

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions