Scenario Conformance
本版增加意圖與目標路徑、非 Git Context、混合事件並行序號、唯讀索引、Eval 系統綁定、執行邊界觀測與外部簽章信任測試。既存 Agent Eval 結果會另列 historical_unbound;歷史 rubric PASS 不能解讀為目前版本已重新執行。
tests/evidence/retrieval_relations_extraction_lifecycle.py verifies the legacy Retrieval Intelligence facade against its internal lexical relation implementation, including comment/string masking and secret-path exclusion; the test does not claim compiler-grade graph completeness.
Scenario 178 covers independent-review packet provenance, execution/context/permission evidence, stale-candidate rejection, and fail-closed scheduler/Integration Gate behavior. Its deterministic lifecycle fixtures test evidence contracts; they do not claim to attest a live model runtime.
EARS 需求語法的 validator 契約變更屬於 Scenario Conformance:測試契約更新時同步維護本文件、Technology Guide 與 orchestration/CONFORMANCE.md;修改需求追蹤實作、規劃範本或規範本身則遵守完整 Requirement Planning 文件閉包。
AIPS v0.13 開始把「Acceptance Scenario 有幾份」與「有多少真的有可追溯測試證據」分開。
Coverage 類型
deterministic:可由 deterministic helper / schema / rule test 驗證。lifecycle:需要多步驟執行流程的 executable test。agent_eval:需要 Agent / Model 行為評估。manual:規格存在且可人工檢查,但目前不宣稱 automated evidence。uncovered:尚無可接受 evidence;目前 release policy 不允許 uncovered。
指令
aips conformance check
aips conformance reportRegistry 位於 tests/scenario_coverage.yaml。
v0.13 Baseline
v0.13 發布時採保守分類:既有 001–095 若沒有明確的一對一 executable evidence,就維持 manual。這不是表示它們沒有任何 validator 關聯,而是 AIPS 不把間接相關檢查誇大成 Scenario-level automation。
Coverage percentage 是工程 evidence 指標,不是系統品質分數,也不能取代 risk-based testing。
v0.14 Baseline
v0.14 新增 Scenario 111–115,全部都有直接 executable evidence:2 個 deterministic、3 個 lifecycle。若既有 001–095 不重新分類,release baseline 為 115 個 Scenario、95 manual、20 automated、0 uncovered。
Execution Isolation Conformance
Scenario 275 preserves the same isolation boundary: project governance preferences stay outside the repository and cannot grant runtime execution authority.
Synthetic Qwen Edit Plus reference tests remain separate from independent review and real model quality; local ComfyUI still uses the existing loopback and staged-byte verification boundaries.
Evolution Radar quarterly scheduling is covered by Scenario 155: the workflow waits until day 3 after monthly reports, and missing monthly evidence stays INCOMPLETE_INPUT rather than becoming a zero-yield claim.
Publication lifecycle 驗證設定隔離保留 gh 設定位置、異常 venv 被拒絕、help 無驗證副作用,以及安裝版 CLI 對不同 checkout 的 docs impact 路由。獨立產品 fixture 不含 AIPS scripts,仍能驗證本地 OpenAPI 契約,並保持遠端 reference 阻擋;fixture 通過不代表真實產品 API 驗收完成。
Core Change matrices record independent-review evidence separately from test completion. The Phase 12 installation CLI matrix leaves review_evidence.required: false; the CLI and installation lifecycle checks do not claim independent semantic review or runtime attestation.
Scenario 165 verifies that missing Gate dependencies, Node/VitePress or host capabilities are reported before candidate lifecycle execution, while documentation builds use only the checked-out VitePress bundle and do not install packages.
Publication Preflight lifecycle also checks that both run child processes put the selected Python directory first in PATH, even when the inherited shell path points elsewhere.
Scenario 111/114 覆蓋 risk/data-aware resolver:無啟用 provider 時為 UNSUPPORTED;啟用但證據過期、registry digest 不符或控制缺漏時為 BLOCKED;一般風險選 worktree,高風險不降級。E2B PR 驗證使用合成 canary;live workflow 僅能從 main 手動啟動,需確認 provider 事前書面測試同意,缺少 optional key 時回報 SKIPPED_NOT_CONFIGURED。
Repository validation assigns each lifecycle to one owner module. intelligence_context_lifecycle.py runs through runtime_contracts; conformance_isolation checks its presence without running it again. MCP client configuration for all six advertised clients is exercised by the MCP lifecycle, which also checks the JSON shape and no-automatic-change boundary.
Scenario 178 validates the opt-in independent-review contract, including required-mode fail-closed behavior. The active repository matrix currently disables PR enforcement until a trusted runtime-attestation verifier is available; lifecycle fixtures do not claim live runtime attestation.
The CI lifecycle contract groups PR validation by PR number. New candidate events and Core/Large classification-label changes may replace an in-progress run; unrelated label events neither cancel active validation nor run the expensive Gate. Their skipped Janitor is successful only through the explicit no-op path in the existing repository required aggregate.
Publication lifecycle evidence compares Matrix preview and Gate across DRAFT, blocker, unreconciled diff, stale binding and READY cases; the CI contract also preserves failure for active Janitor failures while skipping the aggregate for superseded canceled runs.
v0.14.1 Legacy Scenario Reconciliation
v0.14.1 重新核對 Scenario 001–095 與目前 canonical contracts,先修正規格漂移,再提升 automation evidence,避免把過時行為固定成自動化測試。
已修正的主要 drift 包含:
Update Preflight:沒有
.ai/的 Project 保持 EPHEMERAL,不再自動 Attach。Project Knowledge:新 reusable understanding 以 Project Intelligence + SOURCE_REGISTRY 為 canonical;
.ai/knowledge/僅保留 migration compatibility。Runtime instruction integration:Codex / Claude 使用 managed composition 保存既有使用者內容,不再因為檔案已存在就一律降為 MANUAL。
Harness lifecycle:ownership 以 managed block / namespaced hook 為單位安全移除;使用者內容與 unrelated settings 必須保留。
Runtime capability:Context Capability 與 Governance Enforcement 維持兩個獨立 truth axes。
新增 direct evidence:
tests/evidence/adapter_composition.pytests/evidence/project_intelligence_lifecycle.pytests/evidence/secret_safety.py
只有這些 evidence 實際覆蓋的 legacy Scenario 才從 manual 提升為 deterministic / lifecycle。
v0.14.1 baseline:
Total 115
Manual 77
Automated 38
Uncovered 0
Automated 33.0%仍為 manual 的 Scenario 不代表失敗;它們通常包含需要 Agent judgment、Human decision、外部環境或跨文件語意評估的行為,目前不會為提高百分比而虛假標記為 automated。
v0.15 Baseline
Canonical Project Identity / Resume Integrity 新增 Scenario 116–120,全部具 executable evidence:
Total 120
Manual 77
Deterministic 15
Lifecycle 28
Agent Eval 0
Automated 43
Uncovered 0
Automated 35.8%Identity/Resume evidence 同時驗證跨 worktree repository identity、dirty workspace STALE、legacy run migration、repository-wide Single Writer 與 Project Intelligence canonical namespace。
v0.16 Agent Eval Conformance
Scenario 266 provides local deterministic safety evidence; it does not substitute for independent review or grant approval.
Content-safety findings are advisory retrieval inputs and do not change Project Intelligence authority or graph completeness.
OpenCode native acceptance verifies one host integration boundary; it is not an Agent task-outcome or production-model quality measure.
創作修正回歸以原始「重出一張哈利」對話、否定/分析指令、重播/並行額度、必要特徵錯置、來源漂移、版本比較與時間/次數停損為準。creative_repair_lifecycle.py 與 native tool fixture 是 synthetic evidence;真實生成及 host acceptance 分列。
Telemetry remains content-free and additive; runtime and outcome fields do not capture model messages.
創作可靠性 Core candidate 保留完整 Gate、媒材拒絕及取消授權回歸。損壞 PNG fixture 必須失敗;合成測試不能替代真實模型與人工品質驗收。
Scenario 230 checks fixed-core size/reduction, task-specific route selection, compact Manifest and hook output, conservative mutation fallback, and fail-closed missing route sources.
恢復生命週期證據涵蓋 worktree 安裝、macOS Bash 3.2 無選項呼叫、不完整 Python 環境、快取權限與索引清理、安裝版分歧拒絕及 CI 取消判讀。這些是 AIPS 工具驗收,不能作為真實 REST 產品驗收,也不能將情境清單數量等同所有端到端測試通過。
Agent Eval may bind a case to repository-relative system dependencies. Reports distinguish CURRENT, STALE, and historical UNBOUND evidence so an old rubric PASS cannot imply that the current system was evaluated.
需要 Agent 語意判斷的 Scenario 不再只能停留在 manual,也不會被硬改成 deterministic test。
流程:
Eval Case
→ 任一 Provider / Runtime 的實際 Agent 執行
→ Observable structured response
→ Recorded Result
→ Case SHA-256 fingerprint binding
→ Deterministic rubric scoring
→ PASS / FAILAIPS Core 不在 CI 裡呼叫特定模型 API。CI 驗證的是已記錄的 observable Result 是否仍綁定目前 Case,以及 rubric 是否通過。
GitHub PR validation 也以精確候選為邊界:同一 PR 的事件共用併發群組;新候選與 Core/Large 分類標籤變更會執行最新分級的 Gate,無關標籤不會取消進行中的 run 並走快速 no-op。被取消的舊 run 不代表 PASS,仍須確認最新候選 SHA 的 required repository aggregate。
完整 repository validation 現會輸出逐項時間 JSON 供分析;測試失敗仍使 Gate 與 required aggregate 失敗。時間報告只含模組/lifecycle 名稱、狀態與毫秒數,不包含測試輸出。
Scenario 128 的 Retrieval lifecycle 也區分唯讀讀取受限與過期索引刷新遭拒寫入;這是可重現的 lifecycle 證據,不代表 Agent Eval 或即時 Runtime 權限證明。
第一批 Agent Eval:
017 Core Change Approval
019 System Self-Improvement
020 Constitutional Change
025 Avoid Duplicate Role
035 Requirement Clarification
041 Multi-Perspective Review
042 Author Fix / Targeted Re-review
094 New Skill Admission另外新增 Scenario 121–125 驗證 Agent Eval framework 自身的 fingerprint、result binding、rubric、privacy/provider-neutral 與 lifecycle。
v0.16 baseline:
Total 125
Manual 69
Deterministic 19
Lifecycle 29
Agent Eval 8
Automated 56
Uncovered 0
Automated 44.8%Agent Eval Result 禁止保存 Chain-of-Thought、private reasoning、scratchpad 與 Secret-like value。Case 修改後舊 Result fingerprint 失效,必須重新執行 Agent,不可只改 fingerprint。
v0.16.1 Focused Harness Evidence Maturity
不改 Harness 行為,只把已能以隔離 runtime fixture 真正重現的 legacy manual Scenario 升級為 lifecycle evidence:
057 Global Harness Automatic Bootstrap
061 EPHEMERAL Project Does Not Auto-Attach
066 Gemini Namespaced Extension
067 Failed Adapter Uninstall Preserves Ownership
072 Gemini BeforeAgent Turn Context
073 Runtime Capability Truth直接 evidence:tests/evidence/harness_runtime_lifecycle.py。
它驗證 managed composition、Gemini official extension link/uninstall、BeforeAgent、user GEMINI/settings preservation、EPHEMERAL resolve、Context Capability / Governance Enforcement truth,以及 uninstall failure → ownership preserved → safe retry。
v0.16.1 baseline:
Total 125
Manual 63
Deterministic 19
Lifecycle 35
Agent Eval 8
Automated 62
Uncovered 0
Automated 49.6%011 / 044 / 069 等仍維持 manual,直到有足夠隔離、完整的一對一 install/preflight evidence;不因鄰近 validator 而直接升級。
v0.16.2 Install / Preflight Evidence Maturity
Claude diagnostics remain in private user state; install and uninstall manage only AIPS-owned hooks and preserve user-owned settings.
Scenario 044 keeps Intelligence and run state in external user storage; publication scan evidence is also private candidate-bound cache data.
Harness 安裝生命週期另由 tests/evidence/install_preflight_lifecycle.py 與 tests/test_harness_enablement.py 驗證:AIPS CLI 安裝預設不註冊 Runtime adapter;明確安裝後才為 ACTIVE,有效停用標記為 OFF,無法驗證的狀態為 UNKNOWN。卸載保留 Harness ownership 目錄與其中未辨識資料。
以完整隔離 fixture 實際執行 AIPS CLI,而不是只檢查 shell 文字:
temporary AIPS Git repo
+ local bare origin
+ temporary product repo + bare origin
+ temporary HOME / XDG_CONFIG_HOME / AIPS_BIN_HOME
→ real aips preflight / attach / detach / uninstall / install新增 direct evidence:tests/evidence/install_preflight_lifecycle.py。
它驗證:
- System repo 必須 clean 且在 main 才可自動 Update Preflight;
- 更新只允許
git pull --ff-only,diverged history 會停止; - MAJOR version upgrade 必須顯式
--allow-major; - 更新後會重新進入 updated CLI;
- EPHEMERAL project 不會被 preflight 自動 Attach;
- target product repository 不會被自動 pull;
- attach/bootstrap 只建立或匯入 external state,不寫入專案;
- attach / status / detach / uninstall 的 idempotent external-state lifecycle;
- default uninstall 保留 Project
.ai/、External Intelligence、system repo 與 venv; - explicit
--remove-cache --remove-venv才移除對應 AIPS-owned state; - regular file / foreign symlink CLI collision 不會被覆寫;
- exact AIPS-owned CLI symlink 可安全重用。
Evidence 過程另外發現 Python import 產生的 __pycache__/*.pyc 會讓 System repo 被誤判 dirty,已透過標準 Python cache ignore 修正。
v0.16.2 baseline:
Total 125
Manual 60
Deterministic 19
Lifecycle 38
Agent Eval 8
Automated 65
Uncovered 0
Automated 52.0%Scenario 011 / 044 / 069 現在有直接 lifecycle evidence,才從 manual 升級;其餘 Scenario 仍依 evidence truthfulness 維持原分類。
v0.16.3 Intelligence Context Evidence Maturity
新增 tests/evidence/intelligence_context_lifecycle.py,以隔離 Git project + XDG config 實際驗證:
SOURCE_REGISTRY.yaml保留 AGENTS / CLAUDE / GEMINI / official docs 為 pointer;content_duplicated: false,不把 authoritative source 複製成 derived Intelligence;- Runtime native visibility 只標記真正由該 Runtime 自動載入的 instruction source;
- Turn Context 不重複注入 current Runtime 已 native-loaded 的 source;
- 非 native authoritative source 仍保留 targeted-load pointer;
- general knowledge / normal chat 可取得 compact Harness Context,但不會建立
.ai/、External Intelligence 或 Change Impact。
因此 Scenario 076 / 086 從 manual 升級為 lifecycle。
這次 audit 同時保留以下 Scenario 為 manual,因為目前 contract 尚未完整 deterministic enforce:
- 064:material instruction conflict surfacing;
- 082:new evidence 與 Project Override 的 contradiction conflict;
- 084:implementation 後 actual diff ↔ declared Change Impact reconciliation;
- 087:component-level monorepo lazy Intelligence selection;
- 088:legacy Project Knowledge migration 的 canonical artifact pointer mapping。
v0.16.3 baseline:
Total 125
Manual 58
Deterministic 19
Lifecycle 40
Agent Eval 8
Automated 67
Uncovered 0
Automated 53.6%v0.16.4 Governance & Security Semantic Evidence Maturity
新增 5 組 provider-neutral Agent Eval,將目前仍需要 Agent semantic judgment 的高價值治理/安全 Scenario 從 manual 升級:
018 Git Publish Approval
084 Change Impact Before Mutation
089 Secret Runtime Acquisition
091 Active Secret Exposure Blocks Release
095 New Skill Cannot Embed Private Configuration這些 Scenario 不適合被簡化成「某個 helper 有跑」:
- 018 同時要求 publication plan、evidence、target 與 explicit approval/reapproval 行為;
- 084 要求 mutation 前 semantic impact + mutation 後 actual diff reconciliation;
- 089 要求安全 credential acquisition priority 與 missing credential fail-closed;
- 091 要求 active production/SAL3-4 exposure 阻擋 Release 並完成 rotation/revocation + exposure assessment;
- 095 要求 Skill admission 時把 private credential/config 移出 reusable Skill。
每組 evidence 都包含 exact Case fingerprint + 本次實際 GPT-5.6 Sol observable Result,CI 使用 deterministic rubric 驗證,不保存 Chain-of-Thought。
v0.16.4 baseline:
Total 125
Manual 53
Deterministic 19
Lifecycle 40
Agent Eval 13
Automated 72
Uncovered 0
Automated 57.6%v0.16.5 Quality & Release Semantic Evidence Maturity
新增 6 組 Agent Eval:
045 Quality Class Baseline
046 Quality Target Derivation
047 Local Complete Before Production
048 Explicit Production Request
049 Observability Before Vendor Selection
050 Audit Log for High-value Actions它們驗證的是 Quality / Delivery decision,不把語意判斷假裝成 static schema test:
- Q2 是 typical production SaaS 的 baseline,但七個 quality dimensions 可獨立調整;
- 使用者不知道 p95 / RTO / RPO 時由 Agent 從 scale / failure impact / sensitivity / delivery / operations 推導 draft targets;
- 未明確要求 Production 時先完成 LOCAL_COMPLETE,再詢問是否繼續;
- 已明確要求 Production 時從一開始納入 infra / deployment / secret / recovery / observability,但仍必須先驗證 LOCAL_COMPLETE;
- Observability provider 未選定前保持 instrumentation provider-neutral;
- balance / points / refunds / role changes 使用獨立 Audit Log contract,不與一般 application logs 混為一談。
v0.16.5 baseline:
Total 125
Manual 47
Deterministic 19
Lifecycle 40
Agent Eval 19
Automated 78
Uncovered 0
Automated 62.4%v0.16.6 Security & Production Readiness Semantic Evidence Maturity
新增 8 組 Agent Eval,涵蓋高風險金融邊界、低風險前端、critical product 的 cosmetic change、Security at Design/Release、Release Readiness、Production Verification、staging N/A 與 deployment access。
v0.16.6 baseline:
Total 125
Manual 39
Deterministic 19
Lifecycle 40
Agent Eval 27
Automated 86
Uncovered 0
Automated 68.8%核心原則維持 risk-proportional assurance:critical financial/stored-value boundary 使用 SAL4 floor;低風險 change 不因 product baseline 過度升級;production promotion 對 recovery、staging、security、health/smoke evidence fail-closed;缺少平台 access 時保留 runnable automation 但不得宣稱已部署成功。
v0.16.7 Core Planning & Change Assurance Semantic Evidence Maturity
新增 9 組 Agent Eval:
005 Existing Product Plan to Delivery
007 Adaptive DDD + Clean Architecture
009 Capability Gap
012 Documentation Impact Gate
013 Reproducible Planning Package
026 Deterministic Automation Before AI Parsing
027 Human / Agent Documentation Separation
092 Core Change Impact-derived Test Matrix
093 Core Change Scope Expansion Recomputes Tests這批 evidence 驗證:
- 既有完整 planning 不重跑 discovery,只做 delivery sequencing;
- 小型 brownfield CRUD change 不為了方法論硬做 DDD / Clean Architecture rewrite;
- specialized capability gap fail-closed,generic role 不可猜;
- Core routing change 必須跑 Documentation Impact Gate 與 SemVer/scenario/diagram validation;
- primary product planning 需要 persistent workspace + reproducible package + Gate 1 / Gate 2;
- 大量 deterministic parsing 先使用 bounded tool/helper,再交給 AI reasoning;
- Human / Agent docs 分 audience 維護;
- Core Change test matrix 由 final Change Boundary 推導;
- material scope expansion 重新計算 tests/review/approval。
v0.16.7 baseline:
Total 125
Manual 30
Deterministic 19
Lifecycle 40
Agent Eval 36
Automated 95
Uncovered 0
Automated 76.0%v0.16.8 Product & Visual Evidence Maturity
Promoted semantic evidence:
001 Product Creation -> Agent Eval
003 Nordic Design Only -> Agent Eval
023 Mixed Reference Direction -> Agent Eval
024 Create and Reuse a Brand System -> Agent Eval
040 Visual Polish Redesign Escalation -> Agent Eval
056 Project Visual Profile Reuse -> LifecycleScenario 056 now has executable design-state evidence through scripts/visual_profile.py and tests/evidence/visual_profile_lifecycle.py. The helper loads PROJECT_VISUAL_PROFILE.yaml first, validates last_verified_commit and watch paths against real Git history plus dirty state, returns REUSE when watched visual sources are unchanged, and returns TARGETED_REFRESH when shared visual sources changed. Missing/unusable baselines fail closed to FULL_DISCOVERY. Subjective visual archetypes remain inferred until approved.
The following visual scenarios intentionally remain manual:
021 Vague Visual Request
022 User-owned Assets for Banner
039 Visual Polish Shared Component First
055 V2 Product Consistency SweepThese scenarios require actual rendered composition, crop/safe-area, responsive/state or before/after visual evidence. The current repository-only validation harness has no verified renderer/screenshot provider, so text-only Agent Eval would not truthfully cover the full acceptance behavior.
v0.16.8 baseline:
Total 125
Manual 24
Deterministic 19
Lifecycle 41
Agent Eval 41
Automated 101
Uncovered 0
Automated 80.8%Architecture Diagram Impact: N/A. This release adds bounded evidence tooling beneath the existing Visual Polish / Project Visual Profile flow and does not change system topology.
v0.16.9 Interaction & Context Evidence Maturity
Promoted evidence:
008 Scoped Instruction Precedence -> Agent Eval
010 Adaptive Subagent Model Routing -> Agent Eval
036 Safe Default / No Unnecessary Question -> Agent Eval
037 External Context Authorization Resume -> Agent Eval
038 External Context Fallback -> Agent Eval
063 Normal Conversation Bypasses Heavy Flow -> Lifecycle
065 Architecture Diagram Impact Required -> Agent EvalScenario 063 reuses the executable tests/evidence/intelligence_context_lifecycle.py fixture: a general-knowledge turn is classified non-mutating, remains EPHEMERAL, and does not create project .ai/, External Project Intelligence, or Change Impact state.
Scenarios 008, 010, 036, 037, 038 and 065 use recorded observable Agent Eval responses bound to exact Case SHA-256 fingerprints and deterministic rubrics. The results contain no Chain-of-Thought/private reasoning/scratchpad or secret values.
The following roadmap targets intentionally remain manual in this release:
064 Runtime + Project Instruction Composition
068 v0.7 -> v0.8 Harness Migration
082 Project Overrides Survive RefreshExisting lifecycle evidence proves important adjacent behavior, but does not yet execute each complete acceptance contract: 064 still lacks direct material-conflict surfacing evidence; 068 lacks one end-to-end legacy-install-to-managed-Harness migration fixture; 082 lacks executable contradictory-discovery/approved-override conflict preservation.
v0.16.9 baseline:
Total 125
Manual 17
Deterministic 19
Lifecycle 42
Agent Eval 47
Automated 108
Uncovered 0
Automated 86.4%Architecture Diagram Impact: N/A. This release changes evidence/conformance metadata only and does not change runtime topology, Role, Skill, Capability, Approval Gate, or architecture behavior.
v0.17.0 Project / Architecture Lifecycle Evidence Maturity
Promoted evidence:
002 Existing REST API Change -> Agent Eval
006 Infrastructure Cost -> Agent Eval
029 Deployment Units vs Repository Strategy -> Agent Eval
043 Review Learning Feedback -> Agent Eval
052 Project Intelligence Discovery -> Agent Eval
088 Legacy Project Knowledge Migration -> LifecycleScenarios 002, 006, 029, 043 and 052 use observable Agent Eval responses bound to exact Case SHA-256 fingerprints and deterministic rubrics. Scenario 006 validates that recommendations require runtime-current price verification and explicitly avoids treating recorded fixture prices as current truth.
Scenario 088 executes a temporary Git project containing legacy .ai/knowledge, bootstraps canonical Project Intelligence, verifies migration provenance and pointer-over-copy authoritative sources, writes new reusable conclusions only to canonical Intelligence, finalizes READY, and confirms legacy knowledge remains byte-for-byte unchanged.
The following roadmap targets intentionally remain manual:
004 API Performance
028 Complete Product to Production
054 Project Intelligence Promotion to Authoritative Source
087 Monorepo Lazy IntelligenceThese scenarios require evidence that the current repository does not yet provide end to end: a reproducible benchmark/profile and measured p95; full staging-to-production lifecycle verification; approval-backed authoritative-source mutation and deduplication; and component-targeted monorepo lazy-loading execution. They remain manual rather than being partially promoted.
v0.17.0 baseline:
Total 125
Manual 11
Deterministic 19
Lifecycle 43
Agent Eval 52
Automated 114
Uncovered 0
Automated 91.2%Architecture Diagram Impact: N/A. This release changes evidence, conformance metadata and validation expectations only; it does not change runtime topology, Role, Skill, Capability, Approval Gate, Constitution, or canonical Project Intelligence behavior.
v0.17.1 Residual Harness Migration Evidence Maturity
Promoted evidence:
068 Legacy Installation to Managed Harness Migration -> LifecycleScenario 068 now executes two temporary Git-system lifecycles. The installed-system path establishes managed Harness state, performs a remote AIPS update through preflight, proves the updated CLI is re-entered, refreshes managed adapter content, preserves pre-existing user instructions, and keeps a colliding foreign Gemini registration as CONFLICT / MANUAL without overwriting it. The plain-checkout path performs the same update/re-exec flow without an installation marker and proves no Global Harness state is registered implicitly.
Residual manual gap classification:
004 measured benchmark/profile evidence required
021 / 022 / 039 / 055 rendered/screenshot visual evidence infrastructure required
028 complete staging-to-production delivery lifecycle required
054 approval-backed authoritative promotion mutation required
064 executable material instruction-conflict surfacing required
082 contradictory discovery vs approved override preservation required
087 component-targeted monorepo lazy-loading execution requiredThese remain manual rather than being promoted by partial or semantic-only evidence.
v0.17.1 baseline:
Total 125
Manual 10
Deterministic 19
Lifecycle 44
Agent Eval 52
Automated 115
Uncovered 0
Automated 92.0%Architecture Diagram Impact: N/A. This release adds executable evidence and conformance metadata only; it does not change runtime topology, Role, Skill, Capability, Approval Gate, Constitution, or managed Harness behavior.
v0.18.0 Project Authority Reconciliation
Promoted evidence:
082 Project Overrides Survive Refresh -> LifecycleScenario 082 now executes a temporary Git project lifecycle: bootstrap Project Intelligence, persist approved overrides, advance repository evidence, bootstrap again, prove overrides survive, add later structured semantic discovery, reconcile it, persist a deterministic contradiction conflict, re-run reconciliation through the public CLI without duplication, and prove a mutating Turn Context surfaces the active authority conflict and fails closed.
The reconciler compares structured discovery assertions (id + value + evidence) with structured approved assertions. It does not parse arbitrary prose to manufacture semantic contradictions. This keeps Scenario 064 manual until direct material instruction-conflict detection has truthful executable evidence.
v0.18.0 baseline:
Total 125
Manual 9
Deterministic 19
Lifecycle 45
Agent Eval 52
Automated 116
Uncovered 0
Automated 92.8%Architecture Diagram Impact: N/A. v0.18.0 implements an already-defined Project Intelligence authority/reconciliation contract and adds no new system topology or governance layer.
v0.18.1 Runtime / Project Instruction Conflict Composition
Promoted evidence:
064 Runtime and Project Instruction Composition -> LifecycleThe lifecycle fixture uses the same Project Authority conflict channel introduced in v0.18.0. It creates runtime-native AGENTS.md and an official ADR, records an unresolved material instruction conflict with source pointers and runtime scope, and resolves Turn Context for Codex. The evidence proves both sources remain present, SOURCE_REGISTRY.yaml resolves their authority/runtime visibility without copying content, derived Project Intelligence remains non-governing, precedence is explicit, runtime scoping prevents conflict leakage to another runtime, read-only work remains soft, and mutating work continues to fail closed through unresolved_authority_conflict. No semantic winner is invented automatically.
Residual manual Scenarios:
004 measured benchmark/profile evidence required
021 / 022 / 039 / 055 rendered/screenshot visual evidence infrastructure required
028 complete staging-to-production delivery lifecycle required
054 approval-backed authoritative promotion mutation required
087 component-targeted monorepo lazy-loading execution requiredv0.18.1 baseline:
Total 125
Manual 8
Deterministic 19
Lifecycle 46
Agent Eval 52
Automated 117
Uncovered 0
Automated 93.6%Architecture Diagram Impact: N/A. This release extends the existing Project Authority/context-resolution contract only; it introduces no runtime topology, Role, Skill, Capability category, Approval Gate or Constitution change.
v0.18.2 Monorepo Lazy Intelligence
Promoted evidence:
087 Monorepo Lazy Intelligence -> LifecycleScenario 087 now executes a temporary Git monorepo with API, Admin and shared-auth areas. Project Intelligence is semantically enriched with explicit component and shared-relationship indexes. Turn Context with --component api resolves the system summary, API topic and shared auth relationship while proving the unrelated Admin topic is not preloaded. Context without an explicit component keeps component topics lazy. An unknown component fails explicitly rather than widening scope.
This release intentionally does not infer component identity from prompt text or folder-name heuristics and does not create a second Intelligence store.
v0.18.2 baseline:
Total 125
Manual 7
Deterministic 19
Lifecycle 47
Agent Eval 52
Automated 118
Uncovered 0
Automated 94.4%Residual manual gaps remain 004, 021, 022, 028, 039, 054 and 055.
Architecture Diagram Impact: N/A. This is an additive Project Intelligence selection contract and lifecycle-evidence change only; runtime topology and governance layers are unchanged.
v0.18.3 Project Intelligence Promotion
Promoted evidence:
054 Project Intelligence Promotion to Authoritative Source -> LifecycleScenario 054 now executes a temporary Git project with a repeatedly confirmed derived invariant. The lifecycle proves recommendation is non-mutating, missing approval fails closed, a matching human/project approval in PROJECT_OVERRIDES.yaml permits creation of a new authoritative project document, SOURCE_REGISTRY.yaml records that source with promotion provenance and pointer-over-copy semantics, the duplicate derived topic file is removed, and Project Intelligence retains only an authoritative pointer. Existing authoritative targets are never overwritten automatically.
v0.18.3 baseline:
Total 125
Manual 6
Deterministic 19
Lifecycle 48
Agent Eval 52
Automated 119
Uncovered 0
Automated 95.2%Residual manual gaps remain 004, 021, 022, 028, 039 and 055.
Architecture Diagram Impact: N/A. This is an additive Project Intelligence / Project Authority lifecycle contract; runtime topology and governance layers are unchanged.
Evolution / Human Documentation Namespace(Scenario 126–127)
目前 acceptance inventory 新增至 127 個 Scenario:
- 126 Evolution Radar Research With Human Decision:使用 lifecycle evidence 驗證 bounded research、Semantic Analysis binding、Human Decision、Human-approved isolated Trial、scope/forbidden-path/no-commit guard、PASS/FAIL/BLOCKED Trial Report 與 Trial→ADOPT evidence binding。
- 127 Human Documentation Namespace:使用 deterministic evidence 驗證永久 Human-only 文件集中於
docs/human/、shared canonical allowlist,以及外部 standalone Human artifact 的 registry +HUMAN_prefix 規則。
這兩項新增 coverage 都遵守既有原則:Scenario 數量只是規格 inventory;只有 direct evidence 真正覆蓋的行為才宣稱 automated coverage。
Retrieval Intelligence(Scenario 128)
Scenario 128 新增 executable lifecycle evidence,驗證 Just-in-Time Retrieval Intelligence 不只是「有索引檔」:
- 會找出目標 implementation 與相關 tests;
- 可帶入符合任務的 Git history / diff evidence;
- 不把 unrelated module 塞進 bounded results;
- Dirty workspace 內容會先增量更新再被檢索;
- Secret / credential path 不會進入 index/output;
- 每筆結果都有 content hash + repository revision provenance;
- Token Budget 受到實際限制;
- 未設定 optional semantic provider 時明確回報
NOT_CONFIGURED,仍保留 local hybrid fallback。
目前 Scenario inventory 為 128,全部具有 deterministic / lifecycle / agent_eval automated evidence,manual 與 uncovered 都是 0。
Retrieval Quality Evaluation(Scenario 129)
Scenario 129 用 temporary Git repository 真正執行 retrieval benchmark,而不是只檢查 YAML 是否存在。
測試會建立多組工程任務與 distractor files,並為每個 case 宣告:
- expected relevant source paths;
- relevant Git-history terms;
- v0.20-style static topic baseline;
- Top-K / Result Limit / Token Budget;
- Precision / Recall / MRR / history / irrelevant-context / direct-source delta 門檻。
CI 重新計算 Precision@K、Recall@K、F1@K、MRR、History Recall、Irrelevant Context Rate 與 token usage;Observed Latency 只記錄、不用來判定 CI PASS/FAIL,避免 shared runner 負載造成誤判。
這個 Scenario 也驗證 benchmark report 沒有權限自動:
- 啟用 Semantic / Embedding provider;
- 修改 ranking weights;
- 選擇 Tree-sitter / LSP / Sourcegraph;
- 變更 architecture 或 publication authority。
目前 Scenario inventory 為 129:20 deterministic + 55 lifecycle + 54 agent_eval,129 / 129 automated、0 manual、0 uncovered。
Scenario 129 Corpus Maturity
Scenario 129 的 evidence corpus 進一步擴展為 9 cases:
- 6 個 required regression cases:Python、Go、TypeScript、SQL、monorepo/shared-module 與 test/history retrieval;
- 3 個 diagnostic stress cases:low lexical overlap / synonymy、cross-file call chain、credential-rotation 語意查詢。
Required case 失敗會照常 block CI;Diagnostic case 若未達 threshold,report 必須保留 FAIL 並彙總 gap dimensions,但不把探索性能力缺口誤當成 repository regression。這讓 CI 可以長期觀察「目前 local hybrid retrieval 做不到什麼」,又不必把 benchmark 門檻調低或假裝所有壓力案例都已解決。
Structural Retrieval Candidate Trial(Scenario 130)
Scenario 130 把 v0.22.1 已發現的 cross-file structural gap 保留成可重播的 controlled candidate comparison。
同一個 temporary repository / 9-case corpus 明確跑:
- baseline:explicit structural OFF;
- candidate:explicit structural ON。
因此即使 Scenario 131 已正式採用 Structural Retrieval,Trial replay 仍能重現 adoption 前的比較,不會因 production default 改變而失去證據。
CI 要求:
- 6 個 required case 不得 regression;
cross-file-call-chainbaseline 必須仍能重現不完整 recall;- structural candidate 必須把該 case 提升到完整 Recall@K;
- candidate ranking evidence 必須明確包含
structural_reference_graph; - PASS 仍標記
automatic_adoption=false,Trial 本身不取得 merge/release authority。
Structural Retrieval Adoption(Scenario 131)
Scenario 131 驗證 Human-approved adoption 後的正式行為:
- 一般
aips intelligence retrieve預設 structural ON; - Turn Context 預設 structural ON;
- evidence 明確顯示
default_enabled=true、enabled=true與 traversal telemetry; --no-structural可明確關閉 structural lane 做 debug / regression;- 關閉 structural 不影響 lexical / symbol / test / Impact Graph / Git history 等其他 lanes;
- 不新增 Tree-sitter、LSP、Sourcegraph 或 remote provider dependency。
目前 Scenario inventory 為 131:20 deterministic + 57 lifecycle + 54 agent_eval,131 / 131 automated、0 manual、0 uncovered。
Semantic Alias Expansion Candidate Trial(Scenario 132)
Scenario 132 保留 deterministic alias expansion 的完整負向 Trial evidence。
同一個 9-case corpus 比較:
- baseline:目前正式 Retrieval(包含 Structural Retrieval);
- candidate:baseline + trial-only
semantic_alias_expansion。
實測結果是 FAIL / HOLD:
- required regressions:
auth-token-expiry、Go receipt reconciliation、TypeScript session refresh; - registration baseline 已 Recall@K=1.0,但 candidate 造成 source-recall regression;
synonym-access-rotation仍無 source-recall improvement;- semantic provider 仍是
NOT_CONFIGURED,沒有假裝跑過 Embedding。
CI 因此不是要求這個 candidate PASS,而是要求能穩定重播上述失敗、回傳 non-zero Trial status + recommendation=HOLD,並證明 automatic_adoption=false / automatic_embedding_provider_enablement=false。
這代表「先試 deterministic alias」研究項目已完成,答案是 不採用。若要研究真正 semantic/embedding retrieval,需另開 Human-reviewed Trial。
目前 Scenario inventory 為 132:20 deterministic + 58 lifecycle + 54 agent_eval,132 / 132 automated、0 manual、0 uncovered。
Remote Embedding Retrieval Trial Readiness(Scenario 133)
Scenario 133 不要求正常 CI 呼叫外部 provider;它 deterministic 驗證「真實 embedding Trial 是否已安全準備好」。
驗證內容包括:
- secret 只透過 protected CI secret reference 注入;
- Trial 只可送 synthetic fixture,不可送 AIPS repository/product source;
- provider endpoint / model / dimensions / request limits 都有 machine contract;
- missing credential 必須回
TRIAL_PENDING; - provider failure 必須回
TRIAL_BLOCKED; - normal Retrieval / Turn Context 仍不啟用 embedding;
- Trial workflow 只綁定專用 feature branch + manual dispatch;
- workflow 會輸出 Human-readable GitHub Job Summary,明確區分 workflow SUCCESS 與 Trial PASS / FAIL / PENDING / BLOCKED;
- Summary 必須提供下一步,但不得輸出 credential 值;
- PASS / FAIL 都只是 evidence,Human Adoption Decision 仍是必要 gate。
目前 Scenario inventory 為 133:21 deterministic + 58 lifecycle + 54 agent_eval,133 / 133 automated、0 manual、0 uncovered。
Provider-Neutral Local-First Embedding Trial(Scenario 134)
Scenario 134 將 Scenario 133 的 remote-only readiness 擴充為 local-first / remote-optional provider-neutral Trial,而且不改 production Retrieval。
Deterministic contract 會驗證:
- provider default 必須是
local; - local runtime dependency 有明確 pin;
- local model =
BAAI/bge-small-en-v1.5、384 dimensions,且 model revision 必須是 exact commit; - local readiness 在沒有
OPENAI_API_KEY時仍為READY、credential_required=false、runner-local inference、inference_source_transfer=false; - 顯式選擇 remote 且沒有 key 時仍為
TRIAL_PENDING; - dedicated workflow 才安裝 semantic Trial dependency,normal PR/main validation 不執行 embedding model;
- Job Summary 對 local blocked 與 remote pending 提供不同且 truthful 的 operator guidance;
- repository source transfer、automatic provider/default enablement、production source transfer 與 adoption_without_human_decision 都維持 false。
目前 Scenario inventory 為 134:22 deterministic + 58 lifecycle + 54 agent_eval,134 / 134 automated、0 manual、0 uncovered。
Deterministic Scheduler + Integration Gate(Scenario 135–136)
Scenario 266 findings remain untrusted content and do not grant Runtime Context or action authority.
Scenario 135 用 lifecycle evidence 驗證多 Agent 工作不需要每一步再交給 LLM 協調:相同 Task Graph + state 必須得到相同 dispatch / fingerprint,dependency、max_parallel 與 Change Boundary lock 都由程式決定;cycle、stale/failed dependency 會 fail closed。
Scenario 136 用 temporary Git repository 真正建立 base/candidate commits,驗證 Integration Gate 綁定 exact base/head、changed-file hash 與 validation profile;HEAD 不符會 BLOCKED,required command 失敗會 FAIL,PASS 仍不取得 merge/release authority。
GitHub Actions 的 repository required check 保持相容,但改成只能在 janitor success 後通過。
目前 Scenario inventory 為 136:22 deterministic + 60 lifecycle + 54 agent_eval,136 / 136 automated、0 manual、0 uncovered。
tests/evidence/validator_registry_lifecycle.py verifies the ordered validator registry, module availability, unique entries, and the established error aggregation contract. tests/validate_repository.py remains the single import owner for those validator modules; dedicated lifecycle evidence continues to run once through its explicit evidence list.
Agent Eval Repeatability(Scenario 137)
單次 Agent Eval PASS 只能證明「這一次」的 observable response 符合 rubric,不能代表相同任務重跑仍穩定。Scenario 137 因此沿用既有 Agent Eval Case / Result 契約,新增多次結果的一致性量測:每一筆都必須綁定同一個 Case fingerprint,先逐筆做 privacy / secret / stale validation 與 deterministic rubric scoring,再計算 repetitions、PASS rate、outcome consistency、unique observable-response fingerprints 與 exact response repeatability。
這個設計刻意把「答案文字是否完全一樣」和「行為是否持續符合契約」分開;不同措辭可以同時 PASS,但差異仍會被 fingerprint telemetry 看見。任何 stale/invalid evidence 都不能靠降低 pass-rate threshold 混過去。
CLI 可用:
aips conformance agent-eval consistency --case <case.yaml> --results-dir <runs/> --min-repetitions 5 --min-pass-rate 1.0目前 Scenario inventory 為 137:22 deterministic + 61 lifecycle + 54 agent_eval,137 / 137 automated、0 manual、0 uncovered。
v0.29 Resource-Scoped Agent Authorization
Scenario 138 新增 lifecycle evidence,驗證 default-DENY Resource Authorization Profile、明確 resource/operation grant、寫入操作 Change Boundary requirement、undeclared resource DENY、protected authority 不可由 profile 取得,以及 runtime_enforced=false 的 truthful reporting。
v0.29 capability candidate baseline:
Total 138
Manual 0
Deterministic 22
Lifecycle 62
Agent Eval 54
Automated 138
Uncovered 0
Automated 100%Scenario 139 — Out-of-Band Agent Anomaly Evidence Evaluation
Scenario 139 新增一條離線、deterministic、evidence-only 的 anomaly benchmark,不把 anomaly detector 接到 production runtime。
固定 synthetic/sanitized corpus 共 11 cases(6 anomaly / 5 non-anomaly),直接重用 Resource Authorization Profile 作為授權真相,量測:
- TP / FP / TN / FN;
- precision / recall;
- false-positive rate / false-negative rate;
- 每個 case 的 detected anomaly types。
目前固定 fixture 的 evidence 為 TP=6、FP=0、TN=5、FN=0、precision=1.0、recall=1.0、FPR=0、FNR=0。這些數字只代表 source-controlled synthetic corpus,不能外推為 production detection accuracy。
Lifecycle 另外驗證 private reasoning / secret-like input 會 BLOCKED,且故意製造錯誤 expected label 時 benchmark 必須 FAIL。
舊版觀測事件未攜帶 kind / selector 時,離線 evaluator 會使用已命中的 Profile Grant 中繼資料補足;事件明確提供的授權上下文會優先接受完整比對。這只維持歷史 evidence 的可分析性,不改變執行期 default-deny 或授權結果。
輸出固定為 POST_EXECUTION_EVIDENCE、runtime_enforced=false、critical_path=false、automatic_remediation=false。PASS 只回傳 HUMAN_REVIEW_TRIAL_EVIDENCE,不代表 ADOPT 或 runtime integration approval。
目前 Scenario inventory 為 139:22 deterministic + 63 lifecycle + 54 agent_eval,139 / 139 automated、0 manual、0 uncovered。
Scenario 140 — Agent Observable-Event Integration Controlled Trial
Scenario 140 把 v0.30.0 的 anomaly evaluator 往前推一層,但仍停留在 replay-only Trial evidence。
Human Decision 綁定 main@e5e47b28a524352f7f549b49a40a294ddb50a364,從 ASSESS 明確 override 到 TRIAL;Decision fingerprint 為 sha256:3b3368af2d560a97e998500f680c48a14c1ed47fb496e54c0eac75cffc70ffb8。
Trial 使用三種代表性 adapter-export dialect,把只允許的欄位正規化成 canonical observable event,再交給既有 Resource Authorization-backed Scenario 139 evaluator。任何未 mapping 的 raw field、private reasoning、secret-like value、stale Decision 都 fail closed。
12-case replay corpus 結果:
- TP=6 / FP=0 / TN=6 / FN=0;
- precision=1.0 / recall=1.0;
- FPR=0 / FNR=0;
- raw payload 不寫入 committed Trial report。
這些數字只代表 replay fixture。Trial 明確記錄 live_capture_verified=false、runtime_enforced=false、critical_path=false、automatic_remediation=false。
Trial status = PASS,但 recommendation 只有 HUMAN_REVIEW_TRIAL_RESULT,仍需另外的 Human Adoption Decision 才能進入正式 runtime integration / adoption review。
目前 Scenario inventory 為 140:22 deterministic + 64 lifecycle + 54 agent_eval,140 / 140 automated、0 manual、0 uncovered。
Scenario 141 — Trial-backed Agent Anomaly Adoption Review
Scenario 141 把 Scenario 140 的 PASS Trial 接到一個新的 current-baseline Human ADOPT Decision,而不是重用 Issue #79 已 stale 的原始 Radar revision。
關鍵 binding:
- current adoption baseline:
main@a92a8d83c4cd6d2a04055312ebfa118d4df39f42/ v0.31.0; - prior TRIAL Decision:
sha256:3b3368af2d560a97e998500f680c48a14c1ed47fb496e54c0eac75cffc70ffb8; - PASS Trial:
sha256:9270bab940c38558575490f4948589cf1ff3b6dc4477daf7eb0ff7caca4e187c; - Human ADOPT Decision:
sha256:c742a082dd00bd9e451810b5ce4640413e420b06acb97311db42112150b13f3e; - deterministic adoption binding:
sha256:1263e376a83926de458605f758b718fa6c7e0e3771d2ae19e6b53434f826ef89。
ADOPT 的範圍只有「採用 live observable-event capture 的設計方向並完成 System Improvement Review」。本版本沒有 live runtime hook、沒有 runtime enforcement、沒有 automatic remediation,也沒有 semantic intent governance。
System Improvement Review 結論為 SUITABLE_WITH_BOUNDS:未來最小實作應延伸既有 Harness adapter,採 opt-in、metadata-only、POST_EXECUTION、out-of-band 設計;預設 disabled。
目前 Scenario inventory 為 141:22 deterministic + 65 lifecycle + 54 agent_eval,141 / 141 automated、0 manual、0 uncovered。
Scenario 142 — Gemini CLI AfterTool Live-Capture Implementation Trial
Scenario 142 選擇 Gemini CLI 作為第一個 concrete runtime,因為目前 AIPS 已有 Gemini CLI extension 與 native hook integration,不另外建立 runtime framework。
本 Trial 新增真正的 AfterTool hook wiring,但 capture 預設仍為 disabled,只在顯式設定:
AIPS_OBSERVABLE_EVENT_CAPTURE=1
AIPS_OBSERVABLE_EVENT_CAPTURE_SINK=/tmp/aips-gemini-events.jsonl時啟動。
v1 scope 僅涵蓋 read_file|write_file|replace,因此可以對 network_used=false 做誠實、deterministic 的 metadata mapping,不處理 shell / MCP / network tools。
Bounded fixture evidence:
- supported cases:6;
- captured:6;
- unexpected event loss:0;
- degraded / skipped cases:4;
- secret/private/raw leakage:0;
- raw payload persisted:false;
- capture subprocess overhead:CI 動態量測,8 samples,p95 必須 ≤ 1500 ms;repo 不提交會誤導的固定 runtime 數字。
Hook 永遠回傳 decision=allow,因此 capture failure 不會 deny 或改寫原 tool result,也不具 enforcement/remediation authority。不過 Gemini CLI 官方 hook execution 是同步的,所以 Trial 明確區分「無 flow-control authority」與「有同步 latency path」:critical_path=false 只指 authorization/result enforcement,並另外記錄 synchronous_hook=true / latency_path=synchronous。
CI 只驗證官方 AfterTool-shaped contract 與 source-controlled hook wiring;沒有執行真實 Gemini CLI binary,所以目前仍:
live_runtime_execution_verified=false、live_capture_verified=false。
目前 Scenario inventory 為 142:22 deterministic + 66 lifecycle + 54 agent_eval,142 / 142 automated、0 manual、0 uncovered。
Scenario 143 — Gemini CLI Exact-Candidate Real-Runtime Verification
Scenario 143 使用固定的官方 Gemini CLI v0.60.0 bundled binary,實際跑完整 CLI → built-in tool → extension → AfterTool hook 路徑。
為了讓結果 deterministic 且不要求第三方 credential,model response 使用 Gemini CLI 官方 --fake-responses 測試介面;因此:
real_cli_binary_executed=truereal_tool_execution_verified=truereal_extension_hook_execution_verified=truelive_runtime_execution_verified=true- Gemini CLI runtime-specific
live_capture_verified=true - 但
fake_model_responses_used=true live_provider_session_verified=falseprovider_model_execution_verified=false
驗證會真的執行 read_file / write_file / replace,確認 workspace mutation、3/3 canonical events、unexpected event loss=0、raw/private/secret leakage=0、disabled capture 不寫 sink,並將 workflow 綁定 exact PR head SHA。
Gemini extension manifest 同步宣告兩個 capture control env vars,避免 Gemini CLI 的 extension environment sanitization 在真實執行時把 opt-in 設定移除。
目前 Scenario inventory 為 143:22 deterministic + 67 lifecycle + 54 agent_eval,143 / 143 automated、0 manual、0 uncovered。
Scenario 144 — Optional External Provider Credentials
Scenario 144 將外部 Agent / Provider credential 的新政策鎖成 deterministic conformance:AIPS 的正常運作不依賴外部 API Key,credential-dependent lane 只有在對應 credential 明確設定時才啟用。
驗證重點:
- 缺少
GEMINI_API_KEY必須是SKIPPED_NOT_CONFIGURED,不能視為 BLOCKED、FAIL 或 PASS; - disabled report 必須保持
provider_verification_enabled=false、required_for_release=false; - 沒有真實 provider evidence 時,
live_provider_session_verified=false、provider_model_execution_verified=false不得被改寫; - 無 credential 時,provider-specific install 與 live provider/model execution 必須 SKIPPED;
- provider workflow 仍不得在
pull_request事件取得 secret; - 不得自動導入 OAuth、Vertex AI、GitHub OIDC / Workload Identity Federation 或其他 replacement login;
- 既有 Gemini CLI credential-free real-runtime / tool / AfterTool 驗證保持獨立可用;
- optional credential 缺失不阻擋 unrelated validation、merge 或 release。
目前 Scenario inventory 為 144:23 deterministic + 67 lifecycle + 54 agent_eval,144 / 144 automated、0 manual、0 uncovered。
Scenario 145 — External Credential Dependency Guard
Scenario 145 把「外部 Agent / Provider Key 不得變成 AIPS baseline / release 必要條件」提升成 deterministic repository contract。
驗證內容:
- workflow / config / script 中出現的外部 credential 必須全部登記在
config/external-credentials.yaml; - 新增未登記 Key 或未 allowlist consumer 會直接讓 repository validation 失敗;
GEMINI_API_KEY、OPENAI_API_KEY都固定為 optional,required_for_baseline=false、required_for_release=false;- credential-consuming workflow 不得在
pull_request/pull_request_targetsurface 取得 external secret; - Retrieval semantic Trial 的 default local path 不再取得
OPENAI_API_KEY,只有明確選remote的 step 才注入; - Guard 只掃 source/config,不讀 secret value,也不執行 provider call;
- PASS 不授權 Human approval、merge、release、publication 或 credential creation。
目前 Scenario inventory 為 145:24 deterministic + 67 lifecycle + 54 agent_eval,145 / 145 automated、0 manual、0 uncovered。
Scenario 146 — Evolution Radar Local Deterministic Pre-analysis
Scenario 146 將 Evolution Radar 的第一層 triage 做成完全 credential-free 的 deterministic lifecycle。
每次 weekly / monthly evidence 完成後,AIPS 會先用 source-controlled 規則分析「既有 title + evidence metadata」:
- topic category hints;
- 既有 AIPS Capability Map hints;
- recurrence bonus;
- title token Jaccard near-duplicate cluster;
- HIGH / MEDIUM / LOW Human review priority。
這個 priority 只是閱讀順序,不是 COVERED / HOLD / ASSESS / TRIAL / ADOPT 判斷。Local pre-analysis 必須維持:
semantic_suitability_inferred=false;recommendation_state_mutated=false;- semantic recommendation =
ANALYSIS_PENDING; - credential required = false;
- additional external network = false。
Lifecycle evidence 會重播相同輸入兩次並要求 artifact 完全一致,也驗證 near-duplicate、Capability Map references、tamper detection 與 Human review Issue embedding。
目前 Scenario inventory 為 146:24 deterministic + 68 lifecycle + 54 agent_eval,146 / 146 automated、0 manual、0 uncovered。
v0.38 Repository Health Scenario
Scenario 147 covers the credential-free Repository Health / Architecture Drift detector as lifecycle evidence. The detector reuses the canonical Scenario Conformance registry/checker rather than introducing a second Scenario evidence model.
The released target for this increment is 147 automated Scenarios: 24 deterministic + 69 lifecycle + 54 agent_eval, with 0 manual and 0 uncovered. Repository Health PASS remains consistency evidence only and grants no code-change, PR, merge, release, publication or automatic-remediation authority.
Scenario 148 — Repository Health Evidence Binding
Scenario 148 將 Repository Health 的 evidence truth 從「少數主要 digest」擴充成完整 deterministic input manifest。Capability targets、core surfaces、documentation bindings、Scenario inventory/evidence references、Scenario checker 與 Integration Gate contract files 都會進入 sorted manifest;存在的檔案記錄 SHA-256,不存在的 bound target 保留 exists=false。
同時 audit 明確區分 Git workspace:
- clean Git →
EXACT_REVISION/revision_reproducible=true; - staged / unstaged / untracked changes →
DIRTY_WORKTREE/revision_reproducible=false; - 非 Git fixture →
NO_GIT。
Dirty workspace 本身不是 architecture drift,因此不會只因 dirty 就改成 DRIFT_DETECTED;但 evidence 不得再被描述成 exact-revision reproducible。相同 revision + workspace state + manifest + drift 會產生相同 evidence fingerprint。
目前 Scenario inventory 為 148:24 deterministic + 70 lifecycle + 54 agent_eval,148 / 148 automated、0 manual、0 uncovered。
Scenario 149 — Repository Health Architecture Surface Inventory
Scenario 149 把 Repository Health 的「重大架構 surface」改成顯式、可驗證的 source-controlled inventory:config/architecture-surfaces.yaml。
目前 27 個 Capability Map ID 必須全部且只被分類一次;每個 major surface 同時綁定 required repository paths、canonical docs 與 validation paths。validation path 必須能追溯到 Scenario Conformance evidence,或是由 tests/validate_repository.py 匯入的 repository validator module。新增 capability 卻沒有分類、required path 消失、canonical doc 與 Capability Map 不一致,或 validation path 未被任何驗證入口綁定,都會產生 architecture_surface_drift。
.github/workflows/validate.yml 同時會產生 repository-health-report.json 並上傳為短期 CI artifact,供 exact-candidate review;artifact 只是 evidence,不具修復、PR、merge、release 或 publication authority。
目前 Scenario inventory 為 149:24 deterministic + 71 lifecycle + 54 agent_eval,149 / 149 automated、0 manual、0 uncovered。
Scenario 150 — Repository Health 定期維護觀測
Scenario 150 驗證獨立的 Repository Health maintenance workflow:每週/手動執行、保存 deterministic JSON evidence、PASS 不建立 Issue、DRIFT_DETECTED 依 evidence fingerprint 去重通知並維持 workflow failure。此流程只有 Detect + Evidence + Human Review,沒有 contents-write、自動修復、implementation PR、merge 或 release authority。
目前 Scenario Conformance baseline 為 150 / 150 automated:24 deterministic、72 lifecycle、54 agent_eval、0 manual、0 uncovered。
Scenario 151 — Evolution Radar 季度決定性檢視
Scenario 151 驗證 quarterly Radar 只聚合上一季三個月份的有效 monthly durable evidence,不重新抓取外部來源。Quarterly artifact 必須綁定 quarter/months、累積 recurrence,並把 recommendation 維持 ANALYSIS_PENDING,不得把 monthly semantic state 自動提升成季度採用結論。
目前 Scenario Conformance baseline 為 151 / 151 automated:24 deterministic、73 lifecycle、54 agent_eval、0 manual、0 uncovered。
Scenario 152 — Technology Intelligence Expansion
Scenario 152 使用 Evolution Radar lifecycle evidence 驗證多社群研究擴充仍然 bounded 且受治理:至少 6 個 configured community sources、5 個成功來源健康門檻、每來源最多 8 筆、全域 raw signals 最多 50,並以 round-robin 保留來源多樣性。
Deterministic pre-analysis 進一步把 Human shortlist 限制為 12、semantic queue 限制為 10、actionable semantic recommendations 限制為 5;community-only evidence 不得直接產生 ADOPT,未進 semantic queue 的 signals 保持 ANALYSIS_PENDING。
目前 Scenario Conformance baseline 為 152 / 152 automated:24 deterministic、74 lifecycle、54 agent_eval、0 manual、0 uncovered。
Scenario 153 — Evolution Evidence Quality and Primary Corroboration
Scenario 153 extends Technology Intelligence with a deterministic evidence-quality contract. Exact source provenance is converted into level 0–4 evidence strength without model inference: single-community discovery = 0, multi-community recurrence = 1, primary source = 2, primary + community = 3, and multiple primary sources = 4.
The minimum advisory ADOPT evidence level is 2. Semantic providers can assess only the evidence metadata produced by deterministic code; they cannot raise evidence strength. Monthly and quarterly rollups preserve the same provenance/quality semantics, and local pre-analysis may use only a bounded evidence-priority bonus.
Current automated inventory after Scenario 153:
- deterministic: 24
- lifecycle: 75
- agent_eval: 54
- manual: 0
- uncovered: 0
- automated: 153 / 153
Evidence strength is advisory input only and grants no Human-decision, implementation, PR, merge, release or publication authority.
Scenario 154 — Provider-neutral Controlled Trial Handoff
Scenario 154 keeps the Human-approved Controlled Trial contract usable when the optional OpenAI executor credential is unavailable. Provider resolution is bounded to auto / openai-codex-action / handoff; auto falls back to credential-free TRIAL_HANDOFF_READY instead of misclassifying a missing optional key as a failed experiment.
The handoff binds the exact baseline, Human Decision fingerprint, Trial fingerprint, approved scope/paths, forbidden paths, diff/file limits, worktree-isolation requirement and repository validation command. An external executor cannot self-assert PASS: AIPS deterministic scope/diff/repository validation remains required before PASS/FAIL Trial evidence exists.
Current automated inventory after Scenario 154:
- deterministic: 24
- lifecycle: 76
- agent_eval: 54
- manual: 0
- uncovered: 0
- automated: 154 / 154
The handoff grants no PR, merge, release, publication or Human-adoption authority.
Scenario 155 — Evolution Effectiveness Metrics and Feedback Loop
Scenario 155 validates a credential-free monthly effectiveness layer over durable weekly Evolution Radar evidence. It aggregates signal/duplicate volume, shortlist and semantic selection, semantic actionable states, Human Decisions, provider-neutral Trial handoffs, Trial outcomes and Trial→ADOPT bindings, then attributes downstream observations back to exact source provenance.
Per-source ratios are deterministic basis-point calculations. Low-yield, high-failure and zero-actionable conditions may emit Human-review flags only after minimum observation thresholds; automatic source weighting, enable/disable and configuration mutation remain forbidden.
Current automated inventory after Scenario 155:
- deterministic: 24
- lifecycle: 77
- agent_eval: 54
- manual: 0
- uncovered: 0
- automated: 155 / 155
The monthly workflow requires no external Agent/provider credential and has only contents: read + issues: write. Effectiveness evidence cannot authorize implementation, PR, merge or release.
Scenario 156 — Human-authorized Exact Branch Cleanup
Scenario 156 validates that normal branch hygiene stays report-only while a separately reviewed one-time manifest may delete only exact EPHEMERAL branch+SHA entries after complete-batch preflight. Any moved ref, non-ephemeral branch or non-integrated branch blocks the batch before deletion. Persistent/unclassified/pending branches remain preserved.
Scenario 157 — Stale Evolution Issue Lifecycle Reconciliation
Scenario 157 binds Issue #79 to the current released truth, preserves COVERED and bounded ADOPT outcomes, keeps provider/model verification false where unproven, and marks semantic-intent governance DEFERRED. The stale Issue becomes ready to close; future positive progression requires fresh current-main evidence and a new Human Decision.
Current automated inventory after Scenario 157:
- deterministic: 24
- lifecycle: 79
- agent_eval: 54
- manual: 0
- uncovered: 0
- automated: 157 / 157
Scenario 158 — Verifiable Governance Audit Chain
Scenario 158 adds deterministic lifecycle evidence for long-lived AIPS governance auditability. Approval, security review, release and production boundary events can be canonicalized into a SHA-256 event hash and previous-chain binding. Editing or reordering evidence fails verification; suffix truncation is detectable when the auditor supplies a previously retained expected chain head/event count or an equivalent external checkpoint anchor.
HMAC-SHA256 authentication and Ed25519 signed checkpoints are optional secure-runtime layers. Their secrets/private keys are not baseline credentials and must not be persisted in Git, prompts, audit events or Actions artifacts. The audit ledger is evidence only and cannot create Human approval, merge, release, publication or production authority.
Current automated inventory after Scenario 158:
- deterministic: 24
- lifecycle: 80
- agent_eval: 54
- manual: 0
- uncovered: 0
- automated: 158 / 158
Scenario 159 — Portable Governance Audit Bundle
Scenario 159 validates offline transfer of v0.48 governance evidence without introducing a remote audit service. A deterministic bundle binds the exact repository revision, AUDIT.jsonl digest/event count/chain head, selected evidence digests and checkpoint public-key fingerprints. An exported ANCHOR binds that manifest and can be retained independently to detect later truncation or replacement.
Signed histories must verify with their public key before bundle creation. HMAC material and signing private keys are never persisted. Bundle verification detects tampered ledger/evidence/public key/anchor and missing files. The bundle remains evidence only and grants no approval, merge, release, publication or production authority.
Current automated inventory after Scenario 159:
- deterministic: 24
- lifecycle: 81
- agent_eval: 54
- manual: 0
- uncovered: 0
- automated: 159 / 159
Scenario 160 — Governance Audit Retention & Verification Policy
Scenario 160 adds deterministic provenance discovery and evidence-lifecycle review over existing portable Governance Audit Bundles. Catalog registration first verifies each bundle, records exact repository revision / chain head / manifest + anchor digests / evidence digests, and maintains a checkpoint key registry.
A checkpoint key ID may appear across multiple bundles only with the same public-key fingerprint; key rotation uses a distinct key ID. SAL 2+ operational defaults require an external retained anchor and SAL 4 registration requires signed checkpoint evidence.
Retention is advisory only. Expired full-bundle thresholds produce REVIEW_DUE plus a minimal digest record for Human review; the helper has no delete/compact operation, automatic_delete=false and deletion_authorized=false. Legal hold overrides time-based review. The configured day counts are operational defaults, not legal or regulatory retention requirements.
Current automated inventory after Scenario 160:
- deterministic: 24
- lifecycle: 82
- agent_eval: 54
- manual: 0
- uncovered: 0
- automated: 160 / 160
Scenario 161 — Parallel Runtime Port Isolation
Scenario 161 validates runtime-resource isolation for parallel AIPS-managed worktrees. Repository-scoped atomic lease coordination prevents duplicate AIPS port assignments, occupied host ports are skipped, Task Graph runtime requirements remain deterministic metadata, and the resulting environment manifest provides canonical AIPS port variables plus explicit aliases such as PORT.
Runtime resources have an independent lifecycle: a dirty worktree remains preserved while a stopped server lease can be released; clean isolation removal releases remaining leases; orphaned leases whose isolation is no longer ACTIVE can be reconciled. Bounded reallocation excludes the failed port for address-in-use recovery. v0.51 supports TCP only and grants no additional network, merge, release, publication or Human authority.
Current automated inventory after Scenario 161:
- deterministic: 24
- lifecycle: 83
- agent_eval: 54
- manual: 0
- uncovered: 0
- automated: 161 / 161
Scenario 162 — MCP 互通閘道
Scenario 162 以官方 MCP Python Client 真正啟動 AIPS 的本機 stdio server,驗證 MCP 2026-07-28、Tools / Resources / Resource Templates / Prompts、Role/Skill 單一真實來源、Scheduler delegation、workspace 路徑隔離,以及 MCP-only 必須誠實回報 ADVISORY。
另外的 exact-candidate workflow 會安裝固定版 Codex CLI 0.155.1,以 codex mcp add / codex mcp list 驗證真實 Host 註冊路徑;不執行 provider inference,也不需要外部 Agent API Key。
目前 Scenario inventory:
- deterministic:24
- lifecycle:84
- agent_eval:54
- manual:0
- uncovered:0
- automated:162 / 162
Scenario 163 — Human Documentation Site & Canonical Placement
Scenario 163 驗證 docs/human 是唯一 Human canonical source,VitePress 只負責 render/search/navigation;current-behavior 文件禁止 vX.Y / Scenario-style append headings,並用 deterministic placement mapping 驗證 subsystem change 是否真正修改對應 topic section。
Installation evidence 同時驗證 macOS/Linux managed installer、Windows WSL PowerShell launcher contract、bootstrap compatibility 與 Linux install/doctor/uninstall lifecycle。
目前 Scenario inventory:
- deterministic:24
- lifecycle:85
- agent_eval:54
- manual:0
- uncovered:0
- automated:163 / 163
Scenario 164 — MCP Tool-Only Host Compatibility
Scenario 164 驗證只支援 MCP Tools 的 Host 仍能透過唯讀 catalog/read/workflow Tools 取得 canonical Roles、Skills、allowlisted protocols 與 Security/Architecture/Code Review、Delivery Plan context,不複製 registry,也不在 Server 內執行第二個模型。
官方 MCP Python Client lifecycle 同時驗證 tool annotations、錯誤 ID fail-closed、workspace confinement、protected authority 維持 false,以及 Cursor/Windsurf/GitHub Copilot CLI/Amp/Codex/generic review-only JSON。MCP 仍為 ADVISORY,native adapters 維持獨立。
目前 Scenario inventory:
- deterministic:24
- lifecycle:87
- agent_eval:54
- manual:0
- uncovered:0
Scenario 165 — CI-Parity Publication Preflight
Scenario 165 的 lifecycle evidence 也驗證 post-merge reconciliation 由 publish_preflight 相容 facade 委派至 publish_post_merge,並保留既有 API 與同步安全條件。
Scenario 165 驗證本機與 GitHub Actions 共用同一個 exact-candidate resolver,統一解析 base/head、PR label change class、canonical Core Change Test Matrix 與文件 diff base。快速 diff/文件檢查會先執行;localhost 或 browser 能力不足會明確標為 ENVIRONMENT_BLOCKED。
The setup-node v7.1.0 workflow update uses the verified immutable commit 949feb2413d6458794dcd2491c4babbbce0c15c1; the candidate Gate confirms the retained Node 24 and npm-cache contract.
Environment readiness follows the candidate's optional toolchain plan: an unselected browser capability is NOT_REQUIRED and contributes no blocker; a selected browser capability still requires a successful localhost and browser probe.
Lifecycle evidence 同時驗證 Git-ignored metadata、遞迴文件影響、安全的 tree-equivalent post-squash reconciliation,以及 Project Intelligence revision refresh 的 fail-closed 條件。發布、reset 與 merge authority 仍由 Human 控制。
目前 Scenario inventory:
- deterministic:24
- lifecycle:87
- agent_eval:54
- manual:0
- uncovered:0
- automated:165 / 165
Scenario 166 — Temporal Project Intelligence
Scenario 166 驗證 Temporal Project Intelligence 的 Git revision 查詢、supersession、unknown-history fail-closed 行為,以及 canonical YAML 到 rebuildable SQLite projection 的設計。Current Snapshot 維持一般任務的快速路徑;歷史查詢只在明確要求時載入。
目前 Scenario inventory:
- deterministic:25
- lifecycle:87
- agent_eval:54
- manual:0
- uncovered:0
- automated:166 / 166
Scenario 167 — Eval-as-CI Trajectory Quality Gate
Scenario 167 驗證 provider-neutral observable trajectory 的 fingerprint、deterministic duplicate-read 判定、task-class budget deviation、critical violation BLOCK、private reasoning / secret rejection,以及 shadow mode 不得授予 Git Publish 權限。它重用既有 Scenario Conformance 與 Agent Eval privacy contract;LLM Judge 維持 optional evidence-only,Human Authority 仍是最高決策者。
目前 Scenario inventory:
- deterministic:25
- lifecycle:88
- agent_eval:54
- manual:0
- uncovered:0
- automated:167 / 167
Runtime Content Safety Conformance
The read-only Parallel Run Dashboard is covered by Scenario 173 and exposes only sanitized run projection evidence; it does not add publication or control authority.
Scenario 174 — EARS Requirement Traceability
Deterministic evidence validates the optional Planning Package requirements registry: supported EARS pattern labels, unique requirement/acceptance IDs, non-empty acceptance outcomes and verification methods, and valid evidence-reference lists. It also checks the CLI JSON PASS/FAIL output and corresponding zero/non-zero exit codes for valid and invalid registries. It does not judge whether natural-language statements are semantically complete or claim that referenced checks ran.
目前 Scenario inventory:
- deterministic:27
- lifecycle:93
- agent_eval:54
- manual:0
- uncovered:0
- automated:174 / 174
Scenario 175 — Risk-adaptive bounded Change Impact
Plan21 Phase 2 consolidates deterministic hash/path/glob helpers behind compatibility facades. Its lifecycle evidence pins covered contracts only; repository-wide caller/consumer graph coverage remains partial.
Python direct-call extraction uses AST call nodes and resolves supported local imports; non-call identifiers remain excluded, while dynamic dispatch and partial repository-wide graph coverage stay explicit limitations.
Validation-only changes may record a bounded Impact Graph limitation when the repository validator and Integration Gate consumers are verified directly; the evidence and approval must remain bound to the candidate.
Lifecycle evidence exercises bounded lexical caller/reference indexing, canonical architecture graph traversal, risk-specific depth and history policy, cycle handling, dynamic-dispatch unknowns, stale/truncated evidence, changed versus unchanged affected paths, and READY evidence validation. Lexical relations remain explicitly inferred; the traversal does not claim compiler-level resolution.
Python caller traversal uses the rebuildable schema-v8 target-path index to select known exact paths before unresolved candidates; known external imports and other paths do not consume the budget. It counts at most min(max_edges × 10, 3,000) candidates; a fetched overflow sentinel is excluded from the counter. Candidate-cap exhaustion fails closed as TRUNCATED/caller_candidate_limit; lifecycle coverage includes migration/rebuild, exact-path lookup, external/ambiguous classification and cap exhaustion.
High-risk traversal v2 preserves separate caller and consumer reports and validates both at IMPLEMENTATION_APPROVED and READY. Scoped unresolved lexical findings remain in their original reports and require exact digest-bound Human dispositions; the gate does not reclassify them as resolved or claim complete repository-wide graph coverage.
The publication lifecycle fixture isolates the Python module availability probe before asserting localhost and browser capability blockers, so environment setup does not alter the blocker contract.
目前 Scenario inventory:
- deterministic:27
- lifecycle:95
- agent_eval:54
- manual:0
- uncovered:0
- automated:176 / 176
Scenarios 168–172 cover the Runtime Content Safety Boundary, including redaction, durable-sink blocking, provenance, coverage registration and failure policy. Findings must never contain detected raw values.
Scenario 176 — Mandatory Candidate Secret Scanning
Lifecycle evidence checks exact final-tree and base..head history scanning, including a secret added and later deleted; strict-mode inline bypass rejection; lockfile detector-aware filtering; redacted findings; fail-closed scan errors; and Integration Gate binding to candidate, policy and scanner hashes. A skipped or stale PASS cannot authorize publication.
目前 Scenario inventory:
- deterministic:27
- lifecycle:95
- agent_eval:54
- manual:0
- uncovered:0
- automated:176 / 176
Scenario 177 — Runtime Policy Enforcement
Runtime Policy 變更沿用 CI-Parity Publication Preflight:此情境的提交前預覽也涵蓋工作樹 H2 placement、Core Matrix 綁定修復提示、GitHub CLI 認證診斷與首次 PR 標籤;最終 PASS 仍須對同一已提交候選通過 Integration Gate。
Lifecycle and deterministic evidence check deny-by-default policy evaluation, exact destination condition matching with fail-closed schema validation, exact action/policy-bound approvals, expiry and drift rejection, verified sandbox requirements, semantic signals that can only deny or escalate, and Claude/Gemini native hook responses. Profile failures expose only sanitized project-relative resolution details; destination denials list only failing fields, with credentials redacted. PreToolUse stays NOT_EXECUTED, while Claude PostToolUseFailure reports only observed native failure evidence. Direct shell-command classification does not claim to intercept scripts, child processes, SDKs or hidden sockets; Codex remains ADVISORY.
目前 Scenario inventory:
- deterministic:27
- lifecycle:96
- agent_eval:54
- manual:0
- uncovered:0
- automated:178 / 178
Scenario 179 — Evidence-backed Change Impact Unknown Dispositions
Shared helper golden contracts cover selected wrapper behavior only; unresolved caller/consumer edges remain explicit partial graph evidence.
Intelligence recovery preserves existing bootstrap metadata and keeps unreviewed source hashes STALE after finalize. Read-only refresh-plan exposes affected sources without approving them. Workflow graph seeds remain discovery evidence with partial coverage; final Impact evidence and Matrix review are still required. Scenario 165 executes the workflow evidence resolver with passing, failed, cancelled, unfinished, skipped and stale candidate cases.
Lifecycle and contract evidence validate structured OPEN / RESOLVED / MITIGATED / ACCEPTED_LIMITATION entries, fail-closed legacy strings, required Human review, in-root current file SHA-256 evidence, traversal digest and seed-scope binding, and rejection of malformed, stale, truncated, or out-of-scope evidence. Existing exact READY diff reconciliation remains required, and scoped coverage does not upgrade global Impact Graph coverage.
Traversal findings name the affected path and allowed final dispositions; they do not assign a decision. High-risk unknown relationships remain blocking until reviewed or incorporated into the approved impact boundary.
發布工具維護仍須把 CLI 目標、驗證環境、檢索快取與文件閉包記入 Change Impact,並以實際 diff 與 lifecycle evidence 核對;測試涵蓋舊 checkout 的安全快轉、矩陣目標路由、網路與認證診斷、唯讀檢索回復指引。
唯讀檢索回復的回歸案例會讓 SQLite 建立連線成功、首次查詢失敗,確認安全快照可讀;另驗證 live WAL 仍阻止複製,來源索引位元組未變。
目前 Scenario inventory:
- deterministic:27
- lifecycle:98
- agent_eval:54
- manual:0
- uncovered:0
- automated:179 / 179
Scenario 180 — External Eval / Red-Team Interoperability
外部工具設定不會在 AIPS 執行;受限的 Promptfoo subset 與 versioned PyRIT bridge 只能產生有 fingerprint 的 SIGNAL / REVIEW evidence。未經 Human 確認的 finding 不能成為 regression。Scenario 180 驗證 parser 邊界、secret/private reasoning 拒絕、來源 freshness、risk profile、CLI 與 canonical deterministic promotion lifecycle。
目前 Scenario inventory:
- deterministic:27
- lifecycle:99
- agent_eval:54
- manual:0
- uncovered:0
- automated:180 / 180
Scenario 181 — OpenTelemetry Telemetry Projection & Export
Plan24 adds bounded runtime, governance, quality and outcome attributes while preserving the content-free allowlist.
Lifecycle evidence checks append-only telemetry recording, allowlist and bounds, deterministic trace/span replay IDs, phase/Gate/model/tool pairing, Gate wait spans, independent-review links, exact pinned GenAI attributes, content/credential exclusion, loopback/HTTPS endpoint validation, disabled-by-default configuration, local OTLP receiver delivery and non-blocking export degradation.
Plan19 extends the allowlist with optional runtime-observed token usage, provenance/confidence and unknown-cost status. Missing values remain absent or unknown and do not trigger price lookup or affect Gate outcomes.
目前 Scenario inventory:
- deterministic:27
- lifecycle:100
- agent_eval:54
- manual:0
- uncovered:0
- automated:181 / 181
Scenario 182 — Deterministic Execution Ownership
Run ownership and resume evidence are bound to the external project identity; governance mode does not bypass scheduler ownership checks.
The shared path/hash extraction preserves scheduler and run projection facade outputs; it does not change ownership, locking or resume behavior.
Lifecycle evidence covers scheduler-serialized ownership claims, active worktree/isolation binding, overlapping boundary rejection, heartbeat expiry, explicit dirty recovery, rename-aware diff reconciliation, out-of-scope blocking and read-only ownership projection. Task Graph v1 and legacy run records remain compatible; unverified runtime enforcement remains ADVISORY.
目前 Scenario inventory:
- deterministic:27
- lifecycle:101
- agent_eval:54
- manual:0
- uncovered:0
- automated:182 / 182
Scenario 183–192 — Planning Package v2
新增 Scenario 241–256 作為人工技能路由案例,仍維持 manual;技能規格、Planning Package 與 executable evidence 各自保持明確邊界。
主要實作保留合格的 Runtime/使用者模型;Skill frontmatter 產生相容 v1 INDEX,決定性 lifecycle 與人工模型政策驗收分開記錄。
Scenarios 183–192 cover optional manifest dependency graphs, stable requirement and acceptance traceability, separate Human approvals at Gate 1 and Gate 2, reuse of product and data-modeling capabilities, cross-artifact UX/visual/domain/API references, legacy package compatibility, on-demand e-commerce guidance, actionable structural diagnostics and an end-to-end planning journey. Structural and lifecycle contracts run locally; Scenario 192 remains manual because a real product-specific planning and approval journey requires human decisions.
Current inventory after Scenario 192: 34 deterministic + 103 lifecycle + 54 agent_eval = 191 / 191 automated; 1 manual; 0 uncovered.
Scenario 193 — Evidence-driven Implementation Resolution
Scenario 193 covers existing/new project implementation planning from REST/OpenAPI, project evidence, Human-confirmed technology and architecture, ownership, quality evidence, and version-aware context. Its 16 representative cases include authority conflicts, generated ownership, not_detected versus none, and unavailable verification. The validator and lifecycle evidence check structure and safe state handling; semantic Agent recommendations remain a Human review responsibility.
Current inventory after Scenario 193: 34 deterministic + 103 lifecycle + 54 agent_eval = 191 automated; 2 manual; 193 total; 0 uncovered.
Scenario 194 — OpenAPI validity, compatibility and evidence provenance
Lifecycle evidence validates supported OpenAPI inputs, rejects remote/path-escaping references, classifies known breaking and non-breaking changes, keeps unclassified schema/security changes UNKNOWN, requires a canonical compatibility baseline, executes project commands without a shell, checks JUnit operation coverage, and binds spec/report digests to the exact Git revision. Stale or unavailable evidence cannot report PASS. JUnit operation-name coverage does not establish assertion quality; semantic test and compatibility review remain Human responsibilities.
Current inventory after Scenario 194: 34 deterministic + 104 lifecycle + 54 agent_eval = 192 automated; 2 manual; 194 total; 0 uncovered.
Scenario 195 — Implementation Resolution deterministic enforcement
Implementation enforcement retains its prefixed canonical digest facade over the shared helper; digest equality remains evidence integrity, not semantic correctness.
Lifecycle evidence checks exact-candidate Profile and language fingerprints, changed-file ownership, generated source/output hashes, fresh project-command evidence, OpenAPI report binding, stable report fingerprints and report/enforce Integration Gate behavior. Negative cases include unknown ownership, modified generated output, missing or stale quality evidence, command timeout, shell refusal, stale OpenAPI evidence and a Profile scope narrower than the Gate. Hash agreement is not generator execution proof or semantic test review.
Current inventory after Scenario 195: 34 deterministic + 105 lifecycle + 54 agent_eval = 193 automated; 2 manual; 195 total; 0 uncovered.
Scenario 196 — Explicit OpenAPI client generator adapter
OpenCode MCP config 同樣遵守 explicit adapter 邊界:只產生設定預覽,固定 workspace,不改寫使用者 JSONC 或模型設定。
The lifecycle fixture verifies that preview and Integration Gate inspection never execute the configured generator. An explicit local run checks current canonical OpenAPI evidence and a pinned repository-local executable, stages inputs, bounds process/output resources, tests deterministic output, and applies only allowlisted files. Phase 3 ownership and input/output hashes are updated with the files; modified prior output is protected and a failed Profile update restores the prior output. Process output is not persisted. This evidence does not establish semantic client correctness or operating-system sandboxing.
Current inventory after Scenario 196: 34 deterministic + 106 lifecycle + 54 agent_eval = 194 automated; 2 manual; 196 total; 0 uncovered.
Scenario 197 — Shared OpenAPI client reference pilot.
The standalone Widgets fixture runs the Phase 2 validation, explicit Phase 4 generation, project-native HTTP client tests, operation coverage, and Phase 3 exact-candidate inspection. Missing or altered run reports fail closed for the opted-in Profile; existing Profiles remain compatible. The fixture proves its own behavior and workflow, not another product's semantics.
Current inventory after Scenario 197: 34 deterministic + 107 lifecycle + 54 agent_eval = 195 automated; 2 manual; 197 total; 0 uncovered.
Scenario 198 — Runtime Context and invariant matrix
The creative CLI uses the resolved AIPS runtime and reports unavailable local providers as BLOCKED_NO_ENGINE without fallback.
Runtime Context retains its existing canonical hash output through the compatibility facade; routing and source selection remain unchanged.
tests/evidence/runtime_context_lifecycle.py 驗證共用驗證環境路徑、interpreter 優先序、credential-free Context 報告與 deterministic invariant matrix。矩陣涵蓋每組維度值對並檢查上限及高風險案例。
Scenario 199 — Branch cleanup proposal evidence
Scenario 257 extends the report with evidence-bound KEEP, SUPERSEDED, REBASE_REQUIRED, and CLEANUP_CANDIDATE dispositions. It remains advisory: branch reports do not mutate GitHub or grant cleanup authorization.
The report remains read-only; no branch deletion is authorized by its recommendation.
Lifecycle evidence checks supported short-lived prefixes, unclassified preservation, current SHA, merged PR status, branch age, target integration and cleanup recommendation. Routine reports remain read-only; deletion still requires a protected-main explicit dispatch and a one-time exact manifest.
Scenario 200 — Demand-driven CI toolchain planning
CI 永遠安裝四份驗證 requirements 在 tested constraints 下的完整 Python 套件,供必要 repository lifecycle fixtures 使用。候選路徑仍選擇 Node、文件建置與 Chromium 執行環境;必要掃描及完整 repository Gate 一律執行。
Lifecycle evidence checks exact-path Node, browser and OpenAPI selection, full provisioning for sensitive paths, the MCP interoperability contract path and unknown paths, and explicit skips for optional OpenAPI evidence. publish_preflight_lifecycle.py remains required in every plan: it exercises action-level OpenAPI help and contract behavior when both validator modules exist, and otherwise verifies top-level routing plus the clear missing-dependency failure without a traceback or output artifact. Secret scanning, preflight, repository validation and the exact-candidate Integration Gate remain mandatory. Without a valid CI plan, local checks retain the full toolchain profile.
Scenario 201 — Monthly maintenance reliability evidence
The repository runner registers Scenario 263 separately; monthly maintenance evidence and its existing gate remain unchanged.
New outcome fields are bounded observations and do not establish an SLO or change a gate.
Maintenance digest wrappers keep byte-compatible canonical output through the shared helper and remain covered by the deterministic lifecycle fixture.
tests/evidence/maintenance_reliability_lifecycle.py verifies monthly validation pass-rate and runtime statistics, nearest-rank percentiles, explicit hotfix labels, repeated paths, failure-category hints, exact merge-SHA linkage and UNKNOWN results when bounded history or required timestamps/file counts are incomplete. The scheduled workflow persists normalized metadata and changed paths, publishes a bounded report and review Issue using Actions/contents/pull-request read and Issue write permissions, and grants no automatic remediation or code-change authority. Failure categories are hints, and exact-SHA correlation is limited to available main-push runs.
The monthly workflow uses the shared Python bootstrap with requirements.txt and constraints/tested.txt. Same-cohort Issue reconciliation queues up to 100 reports without cancelling a running or pending report; no timeout is guessed before a successful run supplies timing evidence.
The central repository evidence runner also honors exact-candidate optional toolchain selection: it skips OpenAPI-dependent lifecycle checks, including implementation enforcement, only when needs_openapi is false, and does not pass the selection variable into isolated lifecycle subprocesses. The required repository aggregate remains in force.
Browser-dependent render validators follow the same exact-plan boundary: needs_browser: false omits only the visual and creative render validators, while an absent or invalid plan loads the full validator registry. Scenario lifecycle evidence confirms both validator selection and the explicit skip timing record.
Current inventory after Scenario 201: 34 deterministic + 111 lifecycle + 54 agent_eval = 199 automated; 2 manual; 201 total; 0 uncovered.
Plan21 Phase 0 adds tests/evidence/plan21_contract_baseline.py to the required repository validation runner. It checks raw and sha256: canonical digest vectors, current CLI stdout/stderr and exit contracts, and caller-specific glob behavior. docs/history/aips-review/PLAN21_VALIDATION_TIMING_BASELINE.yaml records the one-run origin/main baseline (230 scenarios, 86 timing entries, 165,754 ms); it is observational evidence and does not establish a trend or alter the scenario inventory.
Scenarios 202–209 — Plan13 current and provenance evidence
Scenario 266 records content-safety verification while preserving existing maintenance and publication authority boundaries.
必要的 repository lifecycle fixtures 使用 CI 一律提供的完整 Python 驗證套件;此設定不會改變候選路徑對 Node 與 Chromium 執行環境的選擇。
Exact-candidate planning continues to distinguish observed evidence from unknown status. The current quality ratchet also records the Ruff baseline and bounded report-only lifecycle coverage; these measures do not expand the tested module scope or grant release authority.
驗證契約另涵蓋固定安裝全部 Python 驗證 requirements,以及完整、條件安裝、漏裝和無條件 Chromium 下載的正/負案例。隔離的安裝/preflight 與 legacy migration lifecycle 在文件候選中仍需完整 Python 模組;下載 Chromium 和可選 OpenAPI evidence 維持精準計畫選擇。
Plan21 helper consolidation preserves existing source fingerprints and keeps global Impact Graph coverage partial.
Scenario 209 的唯讀 repository governance snapshot lifecycle 證據涵蓋完整回應、UNKNOWN 與穩定 fingerprint。
Publication scanning excludes only validated numeric Git index/mode metadata; paths, added/removed/context lines and unknown headers remain scanned. Branch deletion verifies GitHub RS256 issuer, repository, protected main, workflow SHA, dispatch event and a proposal-bound audience. Runner flags alone grant no authority; tokens remain in memory.
Scenario 207 now verifies caller-declared Python imports, missing-module failure, shell-like input rejection, and dependency consistency through pip check; it also checks same-period Evolution Effectiveness queueing, pending-run retention and disabled cancellation. It also verifies Maintenance Reliability uses the shared bootstrap, Repository Health's provisional ten-minute bound and same-revision serialization, and Validation Observation's retained 15-minute bound without concurrency that could replace pending evidence.
The repository validator also runs tests/evidence/aips_cli_module_extraction_lifecycle.py, which verifies the facade, source-checkout launcher and installed-symlink route from an unrelated working directory.
Scenario 204 的 module-extraction lifecycle 核對 temporal query 與 Evolution pre-analysis 的 facade identity 和 current-mode 輸出,避免內部拆分改變既有 CLI 契約。
Scenarios 211–213 cover GitHub supply-chain checks, evidence-gated validator graduation, and gradual quality ratchets with deterministic property and coverage reports. Graduation reports include confusion counts and precision/recall rates with explicit null denominators; the current cohort must still meet the 30-day and 30-PR thresholds with zero false-negative skips. All remain advisory or fail-closed controls; selective execution is not enabled by their presence.
Scenarios 214–219 — Plan15 operational closure
Scenarios 214–219 cover verified stable-channel installation, tested runtime constraints, touched-code quality ratchets, full-run validation observation, human-labeled Evolution relevance measurement, and validation policy taxonomy drift. The read-only observation collector installs its declared profile under constraints/tested.txt before collecting bounded evidence. Its 15-minute timeout is provisional because only two runs at about 31 seconds are available; no reliable P95 is claimed. Scheduled and manual evidence runs have no concurrency group that could replace pending work. Empty human datasets remain NOT_READY; these controls do not authorize release, selective validation, or automatic policy changes.
Scenario 214 also verifies that a clean main-channel update fast-forwards, while a rejected divergent update leaves the installed commit and VERSION unchanged. The read-only exact-candidate readiness workflow does not publish tags or releases. Scenario 155 also verifies that missing weekly pre-analysis leaves source shortlist yield unavailable and that oversized Issue evidence is digest-checked before Radar and Effectiveness consumers parse it. Plan19's Project Intelligence storage extraction preserves the public facade and object identity; behavior-based Eval freshness reports affected cases without automatically executing them.
Current counts and the Human/Agent history crosswalk are generated in Current Scenario Conformance and Conformance History Index. This document retains versioned baselines as historical records; normative Agent rules remain in orchestration/CONFORMANCE.md. Scenarios 202–209 cover Evolution completeness, validation shadow/replay, compatible module extraction, branch proposal freshness, conformance views, shared workflow bootstrap, version-tag provenance, and GitHub ruleset policy comparison. Scenario 205's current branch cleanup contract also binds apply to the current main baseline and rejects absent refs as replay or partial-state evidence.
Scenario 210 — Python runtime support policy
Lifecycle evidence checks that Python ❤️.12 is rejected for explicit selection, unsupported managed environments are repaired by install/update when a compatible interpreter exists, diagnostics name the requirement, and canonical support facts agree with the scheduled 3.12–3.14 smoke matrix.
- Scenario 208 also blocks readiness when the canonical
## Unreleasedchangelog section is missing, duplicated, malformed, or non-empty.
Scenario 204’s internal-module extraction lifecycle also verifies the retrieval-storage helper is re-exported unchanged by the compatibility facade; focused retrieval and repository validation remain the behavior evidence.
Scenario 218 — Evolution Human Relevance Evaluation
The monthly evaluator deterministically samples up to 20 signal fingerprints and reports shortlist precision/recall, actionable yield, and per-source relevance yield from complete Human labels. Empty or incomplete labels remain NOT_READY; no source policy changes occur automatically.
Scenario 223 — Evolution Radar exclusion attribution
驗證 deterministic pre-analysis 對候選排除原因與計數的可重現性,且不改變人工決策權。
Scenario 220 — Parallel advisory fast feedback
Validation-observation evidence reports only completed exact-candidate outcomes; advisory fast feedback remains separate from required repository and publication checks.
Validation Observation 新增相同候選的完整耗時量測與依 Change Class 分組的 P50/P95。重跑不當作新的 PR;歷史紀錄不完整時不授予 selective execution,完整驗證與 required repository check 維持。
Workflow dependency PRs keep advisory feedback separate from the exact-candidate Gate; only a passing repository aggregate satisfies the required CI evidence.
Scenario 239 extends Project Intelligence evidence with bounded, read-only relation candidates while preserving partial/unknown graph coverage.
Unknown and malformed paths retain complete validation selection.
The required validation workflow exports its fully provisioned Python interpreter as AIPS_VALIDATION_PYTHON before the deterministic Gate; publish_preflight_contracts verifies the handoff and ordering for isolated CLI fixtures.
Current Scenario conformance and current Human-facing command documentation remain separate evidence; the creative execution Scenario is registered and generated in CONFORMANCE_CURRENT.md.
OpenCode native acceptance is recorded separately from setup and provider claims, with the tested version and unsupported effects stated in Scenario 235.
OpenCode 投影檔案檢查是 focused evidence;完整 Integration Gate 仍驗證固定候選,不能由原生檔案存在取代。
Scenario 230 checks fixed-core size/reduction, task-specific route selection, compact Manifest and hook output, conservative mutation fallback, and fail-closed missing route sources.
Scenario 224 驗收主要模型保留與稀疏委派,目前登錄為 manual;Scenario 225 以 lifecycle 驗證 metadata 唯一來源、v1 相容、drift 與失敗路徑。決定性 registry 測試不代表已驗證 Agent 實際模型選擇。
Pull requests run the bounded repository preflight concurrently against the exact candidate. Its findings are reported for early feedback and do not replace or gate the required full repository validation; unrelated label-only events skip the advisory job.
The validation workflow contract also requires distinct concurrency groups for different pull-request actions, preventing opened and classification labeled runs from cancelling one another while preserving same-action supersession and the required repository aggregate.
The installation-entrypoint workflow keeps its Unix, Linux lifecycle and Windows contract checks on pull requests. Per-job limits use a 15× multiplier over P95 from the ten latest successful runs (2026-10-06 02:53–11:34 UTC), rounded upward to five-minute increments; a timeout is a failed job and does not replace the required repository Gate.
Related security and observation contracts are covered by Scenarios 211 and 217: Dependency Review shadow results do not alter the required aggregate, and a completed NOT_READY cohort is distinct from an operational collection failure.
Scenario 221 — Dependency Update Risk Classification
混合候選的逐檔文件豁免(Scenario 221):pure_dependency_update 逐檔檢查完整差異,回報完整 candidate_files 與 verified_files;Documentation Impact、Placement、Sync 只在候選路徑集合完全相符時,才從文件觸發匹配排除 verified pin 檔。整體 PURE_DEPENDENCY_UPDATE 仍要求所有候選檔都通過驗證。混合 semantic hunk、未辨識路徑、路徑或模式變更、未釘選/降版/格式錯誤、規劃路徑及分類或 Git 錯誤均維持原文件規則。完整路徑與 hash、依賴人工審查、secret/content scans、matrix、Integration Gate、Required Checks 與人工合併核准均不變,automatic_merge_authorized 仍為 false。
Dependency inventory remains evidence for Human review and does not merge unrelated PRs.
Dependency updates receive an explicit class, risk and recommended validation plan. Unknown dependencies are high risk and require human review; semantic runtime updates include retrieval regression evaluation and a semantic trial. Classification never authorizes automatic merges or policy changes.
文件同步路徑正規化(Scenario 221):Documentation Sync 只移除開頭一個 ./,不再用 lstrip("./") 逐字元剝除,使 config/documentation-sync.yaml 中的 .github/** 觸發條件真正生效;純依賴升級仍由 evaluate_candidate 先行豁免。
Scenario 222 — Large Document Measurement Only
文件大小報告附上前十二個既有 H2 閱讀入口,並區分文件與 Canonical machine-readable 來源;仍只回報 WARN,不複製 Registry、搬移文件或縮減 Gate。
Documentation amplification is reported as a measurement; no placement rule is removed on count alone.
The measurement-only audit records tracked documentation/evidence byte sizes. Files above 50,000 bytes produce WARN with exit code 0; size results do not block Gate or authorize file moves or archival.
Scenario 226 — Capability Registry Single Source
The lifecycle verifies canonical capability metadata, deterministic generated compatibility views, and drift detection by Repository Health.
Scenario 227 — Codex Native Hook Enforcement Probe
The probe denies only a harmless synthetic local Bash command. Unsupported, malformed, timeout and error paths remain advisory; this evidence does not claim live dispatch enforcement.
Scenario 228 — Progressive Quality Ratchet
新增技能路由案例維持人工 conformance;只有直接證據才可提高自動化成熟度或改變 quality baseline。
Scenario 179 — Evidence-backed Change Impact Unknown Dispositions
Scoped traversal preserves its bounded unknowns and Human disposition evidence; it does not upgrade global graph completeness.
The retrieval lifecycle verifies that a relation-extractor schema upgrade rebuilds unchanged files, removes stale call edges, and uses raw source only for in-memory syntax parsing; indexed output remains redacted. High-risk traversal treats ambiguous lexical targets as candidates, resolves exact canonical nodes when mapped, and retains unmapped architecture seeds as explicit unknowns.
技能與一般方法可重用;專案專屬遊戲規則、遙測與參與者資料留在受治理的專案儲存,不得升格到全域素材。
Ruff 已量測的總基準為 685;Retrieval 模組基準為 4、下一目標為 3。保留 touched-code no-new-findings、既有模組降債規則與 report-only Coverage。
Coverage remains report-only and the selected mypy scope is unchanged. Scenario 228 records a bounded relation-candidate lifecycle baseline (45.5% combined statement-and-branch coverage) without establishing a repository-wide minimum. The quality ratchet also pins the Ruff baseline at 687 findings and per-module budgets; baseline reductions do not widen the validated module scope.
新增 OpenCode 投影與生命週期程式納入 touched-file quality ratchet;既有 lint debt 不因 Host 整合而擴大。
Per-module findings and direct coverage are measured without increasing a repository-wide threshold; debt must not grow in a touched module.
Scenario 229 — Agent Eval Freshness Selection
ComfyUI job-recovery lifecycle fixture(Plan27 lifecycle evidence)現在驗證 queue 讀取、確切 ID 刪除,以及不中斷非 AIPS 擁有的工作;這是恢復安全證據,不是 Agent 任務成果或品質量測。
OpenCode host acceptance does not measure Agent outcome or quality; retain its separate exact-host integration evidence.
Validation Shadow graduation evidence is separate from Agent Eval: report validator-level precision, recall, false-negative rate and confusion counts, keep zero-denominator rates null, and do not treat the report as a task outcome or activation authority.
實際任務 observation 與 deterministic rubric 分開呈現。只有與 Case 相符且 CURRENT 的 result 才納入已記錄的 task_completed、human_corrections、false_positives;缺觀察為 UNKNOWN,runtime attestation 維持 UNVERIFIED。
Plan29 #13 requires comparable real-task runs against a Human-selected fixed cohort before reporting benchmark rates. Baseline/candidate comparisons retain each failed or missing task; absent real observations and trajectory security evidence stay NOT_READY/UNKNOWN. Existing Agent Eval fixture passes do not count as real-task outcomes.
The extracted context helper is added to core-change freshness coverage.
Scenario 230 also confirms that adding a route scenario updates the canonical registry and generated current conformance view without changing manual coverage claims.
Scenario 232 — Project Check and System Preflight
Diagnostic recommendations remain read-only and conditional.
aips project check reports Project mode and Project Intelligence freshness without writes; stale or unavailable Intelligence is visible but does not make a valid path fail. aips system preflight uses the existing update/validation path, while aips preflight remains compatible.
Scenario 233 — Public CLI Help and Error Contracts
The docs-only review command requires explicit opt-in and returns review-only status.
OpenCode Context 超限會回傳穩定的 context_compaction_over_budget reason code 與唯讀復原指令,不改變既有 CLI 命令表面。
Scenario 268 adds explicit creative workflows routes while preserving the existing Skills CLI contract.
Scenario 266 covers versioned injection classification, added-line checks, full-blob secret/PII scanning, and safe recovery diagnostics.
The additive aips publish diagnose --diagnostic-id route preserves the existing CLI help contract and returns only the verified, allowlisted ledger event when a ledger is configured.
Scenario 233 retains public CLI argument and error compatibility; the structured Creative and Runtime errors added in Scenario 262 do not change its command surface.
Scenario 044 verifies attach/detach and preflight leave project files and Git metadata unchanged, preserve legacy .ai/ sources, and keep external Intelligence available for Git and non-Git projects.
The publication Doctor command keeps its structured JSON status and safe reason-code contract while policy visibility now distinguishes permission-hidden state.
The Doctor command adds repository readiness output without changing existing CLI error or permission semantics; Scenario 260 covers its full diagnostics and redaction contract.
The public Project Intelligence facade retains its existing command and symbol contract.
The public command groups return concise help with status 0 and reject unknown subcommands with a useful nonzero result. The compatibility shell facade remains thin; internal library modules keep their current role.
Scenario 233 also covers aips skills list: localized/grouped text and JSON output, exact capability and trigger filters, invalid arguments, empty results, and read-only behavior over canonical Skill metadata. Skill install/removal lifecycle preserves pre-existing, unowned and digest-mismatched Host files. --include-upstream lists the 38 vendored Matt Pocock sources with disposition and local path, while the default list stays canonical-only. Scenario 259 additionally verifies pinned upstream inventory and filtering without installing or changing the canonical-only default.
tests/evidence/skills_cli_lifecycle.py extends the install contract with --upstream --all, all non-canonical upstream eligibility, canonical duplicate skips, source-filtered status/uninstall, and preservation of other source kinds and modified files.
tests/evidence/skills_cli_lifecycle.py and tests/validation/skill_native_projection_contracts.py cover native Skill install, repeat install, cross-Host ownership, conflicts, workspace isolation, digest-protected removal, Portable Command projection and legacy migration for Codex, Claude Code and Gemini CLI. These checks validate generated files and ownership behavior; real Host discovery and invocation remain unverified until exercised in each installed Host.
Scenario 269 adds the aips intelligence gc [--yes] help line and command without changing existing CLI argument or error contracts.
Scenario 234 — Local Character Artwork Provenance and Composition
Creative image validation shares the bounded AVIF container check; provenance and visual review remain separate evidence.
Creative preset guidance and ComfyUI discovery remain static and local; Scenario 262 separately verifies Resource Authorization, request constraints and provider-error handling.
OpenCode host acceptance verifies adapter integration only. It does not verify local image generation, visual quality or user acceptance.
The lifecycle uses synthetic SVG/PNG fixtures to verify confined paths, active-content rejection, file dimensions and hashes, verified local-provider/license provenance, stable UTF-8 Traditional Chinese labels, non-overwriting deterministic sheet composition, and optional Creative Evidence manifest-digest binding. It does not invoke a model, download weights, attest identity consistency, or claim hardware performance; those require the user's local runtime and independent visual review.
Scenario 269 keeps the creative Git write denial unchanged; only ordinary Turn Context refresh and index guidance becomes task-scoped.
Scenario 235 — OpenCode Native Context and Action Guard
Claude PermissionDenied semantics are runtime-specific and are not attributed to OpenCode.
When the compact projection exceeds 12,000 bytes, Scenario 235 also requires stable context_compaction_over_budget diagnostics, bounded section-size trace metadata, read-only recovery guidance, and denial of supported native file writes before manifest policy evaluation. Section values, prompts, paths, and raw CLI output stay excluded.
Dynamic ComfyUI workflow validation does not bypass native prompt admission or the explicit Creative execution guard. Qwen Image Edit Plus dual-reference coverage binds identity and product images to separate contiguous ports, limits the encoder to three images, and preserves the Qwen Image 2.1 object-map contract.
Scenario 267 adds a READY+STALE local-write case and retains denial evidence for UNKNOWN freshness, non-READY Intelligence, authority conflicts, path escapes, creative Git writes and external actions.
Media-content denials remain in the commit safety scanner and do not expand the OpenCode action guard's enforcement claim.
原生驗收僅對指定 OpenCode 版本、平台與來源摘要成立;任意 Shell、MCP/自訂工具及 guard 外寫入標為 UNSUPPORTED,不代表生產模型品質或整體強制治理。
Native acceptance is bound to the observed Host version, platform and source digests. Doctor distinguishes missing, stale, invalid, failed and recorded evidence; the current loopback scope does not imply L3, session cancellation, arbitrary MCP or production-model verification.
AIPS-managed native Skill file installation is a separate lifecycle from OpenCode's permission guard. Passing projection and uninstall contracts does not upgrade Scenario 235 runtime-hook acceptance or governance enforcement.
Harness Skill removal is ownership-bound: lifecycle handling removes only recorded AIPS projections whose content still matches the generated digest, while pre-existing, unowned and modified Host Skills remain intact and report conflicts.
創作提示 hook 每次只根據目前使用者回覆建立 grant;Context 注入或 transcript 截斷不得授權創作工具,native acceptance 只證明實際 hook 行為,不代表模型推論或視覺品質驗收。
Plan24 acceptance was exercised against OpenCode v2.0.24 with a loopback mock: Context delivery and native file Allow/Deny hooks passed. Creative generation was not run; model inference and visual quality remain separate evidence.
The V2 creative tool additionally requires a create/modify intent and a successful preflight before execution; this boundary is covered by Scenario 236.
This Scenario is the canonical evidence pointer for OpenCode V2 context routing, action readiness, plugin lifecycle, and explicit unsupported boundaries.
The lifecycle covers separate prompt dimensions, Chinese creative-asset routing, Project Intelligence readiness, session-root binding, direct native path/symlink decisions, Shell argument effects, V2 plugin ownership, private EPHEMERAL asset metadata cache, bounded privacy trace, performance measurement, and version-aware install/repair/removal. OpenCode v2.0.24 acceptance uses a loopback mock model to verify actual Context delivery, a new EPHEMERAL creative asset native write Allow, and an existing-asset edit Deny with incomplete Project Intelligence. No provider credentials are needed. Linux/WSL, V1, production-provider behavior, MCP/custom-tool writes, arbitrary Shell effects and writes outside OpenCode remain unverified or out of scope; overall governance stays ADVISORY.
Scenario 269 makes Turn Context refresh and Retrieval index instructions task-scoped; the READY+STALE allow case and the OpenCode guard denials from Scenario 267 are unchanged.
Scenario 238 — Creative Task Authorization and Multi-item Execution
OpenCode 原生檔案寫入也會在 Context 投影超限時 fail-closed;此拒絕不建立 Creative grant。
Creative task grants authorize only their bounded workflow; Git PR merge confirmation is a separate publication action covered by Scenario 240.
Native OpenCode V2 prompt admission issues a fresh in-memory grant bound to the active session, workspace, actions and bounded output count. A short style selection can derive a new grant only from root-bound, expiring structured continuation state; cancellation, unrelated work, scope expansion and output-cap exhaustion revoke it. Raw prior prompts and transcript context cannot restore authority. Read-only discovery and preflight remain available without a grant.
The synthetic multi-item lifecycle verifies per-item preflight, continue-on-failure, hash-verified resume and recovery after an output succeeds before its checkpoint. Version-only local engine discovery never starts generation. Native OpenCode acceptance verifies grant admission and revocation without invoking image generation; no real model quality or visual acceptance is claimed.
Scenario 258 — Creative Quality Cross-profile Evidence
The Distilled and multi-reference lifecycle fixtures add interface evidence only; they remain separate from independent visual review, user acceptance and real model quality evidence.
Benchmark v2 records the registered three-archetype by six-case coverage matrix, confines and hash-binds completed raster outputs, and reports model, check and compiler failures separately. The lifecycle also checks legacy v1 readability, Human review and user-acceptance separation, and bounded privacy-safe failure evidence. Synthetic fixtures establish schema and path contracts only; real inference, visual quality and acceptance remain unverified until observed independently.
The Skill integration adds a separate manual Scenario 259; it does not change creative quality evidence or imply writing model quality.
Plan36 publication diagnostics preserve this topic's existing behavior and authority boundaries.
Scenario 236 — Local Creative Bundle Execution
Creative bundle actions use the same deny-by-default Resource Authorization contract; Scenario 177 covers the bounded diagnostics shared by runtime adapters.
Qwen Image Edit Plus maps ordered identity/product references to separate image1 and image2 ports (up to image3), rejects gaps, wrong encoder input, and excess images, and preserves the Qwen Image 2.1 object-map contract. This is synthetic workflow evidence, not real model inference.
FLUX 3 Klein lifecycle adds live TextGenerate Dynamic Combo schema and final payload checks before submission; unsupported options fail without posting, and the evidence does not establish Apple Silicon MPS inference.
Scenario 268 extends this lifecycle with opt-in schema-validated local ComfyUI API workflows; it preserves the existing explicit execution and human visual-review boundaries.
ComfyUI lifecycle evidence now covers the declarative profile registry, the shared FLUX 3 Klein Base/Distilled topology, exact local component inventory checks, bounded per-profile sampler settings, safe same-family profile extension, and rejection of unregistered topology families.
Scenario 236 retains the local-only generation workflow and Human review boundary; Scenario 262 adds read-only model inventory, strict HTTP request validation and bounded diagnostic recovery without running inference.
Scenario 240 的 tests/test_publication_planning.py 覆蓋 worktree 綁定、精確 SHA/ref、舊指紋拒絕、Host denial、PR 重用與 squash merge 恢復;fixture 不等於真實 Host 或 REST 驗收。
The existing OpenCode integration lifecycle also verifies hash-bound asset import, source drift rejection, destination conflicts, and the source-checkout CLI route.
The cross-profile quality evidence extension is covered by Scenario 258; this creative execution scenario continues to distinguish generated artifacts, image checks, Human review and user acceptance.
Scenario 259 — Matt Pocock Skill Integration and Explorer
網站展示檢查涵蓋 VitePress 導覽與直接路由、目錄資料載入、搜尋與複合篩選、載入/空結果/錯誤狀態,以及舊靜態 HTML 網址。這些檢查只驗證文件介面,不代表 Skill 自動路由、安裝、Host 呼叫或方法品質通過。
Skill installation evidence remains separate from the Claude PermissionDenied observer and docs-only review contracts.
Skill discovery and reuse do not grant Runtime Policy permissions; the action still requires its trusted Resource Authorization Profile.
Skill Explorer evidence remains independent from publication content-safety checks and does not change skill admission.
The Skill Explorer remains an explicit capability-selection surface; optional project governance does not auto-install or activate Skills.
Creative ComfyUI workflow support does not add a Skill or change Skill catalog, installation, or routing behavior.
OpenCode Context guard runs before Skill execution and leaves the catalog, installation and routing behavior unchanged.
Publication CLI error serialization remains a separate contract and grants Skills no new Git or publication authority; see Scenario 261.
Publication recipe diagnostics grant Skills no new Git or publication authority; see Scenario 261.
Plan53 reuses the existing publication authority and scanner. It adds no Skill or Skill Explorer permission and grants no Git operation authority.
The separate creative workflows CLI does not add to or change the Skills catalog and Skill Explorer behavior.
Scenario 236 的 ComfyUI model registry 不介入 Skill Explorer、Skill 執行或路由。
Project-local workspace excludes are covered separately by Scenario 044 and do not change upstream Skill inventory, routing or installation.
Scenario 267 changes no Skill discovery or installation behavior; its lifecycle exercises Project Intelligence freshness and the OpenCode direct-write guard.
Content-safety controls remain separate from skill discovery, installation, and author trust decisions.
Scenario 261 adds publication command-form validation and redacted scanner failure recovery independently of Skill discovery, routing, or inventory behavior.
Scenario 265 adds no Skill Explorer or install behavior; it reuses the existing media scanner.
Publication diagnostics do not alter Scenario 259's upstream Skill inventory, filtering, or canonical-only default.
Runtime host-specific enforcement limits remain documented separately; Skill discovery does not infer native hook support. See Scenario 261 for Claude Code version-bound publication guard evidence.
The shared OpenCode lifecycle runner also owns a separate Scenario 264 creative-import case; its result does not change Skill Explorer installation or Host acceptance.
Commit-safety CLI coverage is separate from the pinned upstream Skill inventory and cannot change Skill discovery or routing.
Scenario 261 publication diagnostics do not change the pinned upstream Skill inventory, installation eligibility, or the canonical-only default listing.
Scenario 259 retains the pinned upstream inventory, disposition and projection ownership checks; this Creative Runtime change does not alter Skill inventory or installation behavior.
The read-only Skill Explorer and upstream Skill routing are unchanged by the publication diagnostics release.
The publication recovery contract remains a native, non-authorizing diagnostic path and does not change canonical Skill discovery or routing behavior.
Scenario 259 also checks aips skills list --include-upstream inventory and filtering without changing the canonical-only default; installation and removal remain separate explicit operations.
The generated Skill Explorer presents all 49 canonical AIPS Skills and the 38 vendored upstream Skills pinned to the reviewed commit, with local source paths and SHA-256 digests. Overlapping pending skills are experimental/optional; distinct repo/tool workflows auto-route on matching requests. $grill-with-docs is a separate explicit-only Skill whose native projection preserves allow_implicit_invocation: false. Writing workflow Skills remain explicit-request-only. Other MCP Hosts load Skills from canonical Resources on demand; native projections are AIPS-owned and removal preserves pre-existing, unowned or modified files. Deterministic inventory and output contracts are checked by tests/validation/skill_catalog_contracts.py; semantic routing acceptance remains manual.
The native lifecycle fixture additionally checks --upstream --all, selected upstream IDs, installability regardless of AIPS disposition, canonical duplicate skips, explicit Codex/Claude invocation metadata, Gemini consent behavior, native paths, repeated install, per-Host references, source-scoped status/uninstall, Portable Command independence, digest drift and preservation of modified or pre-existing files. It confirms local file behavior, not discovery by a live Agent process.
創作修正回歸以原始「重出一張哈利」對話、否定/分析指令、重播/並行額度、必要特徵錯置、來源漂移、版本比較與時間/次數停損為準。creative_repair_lifecycle.py 與 native tool fixture 是 synthetic evidence;真實生成及 host acceptance 分列。
Publication regression 增加 signed/unsigned、expiry、scope drift、8-way atomic consumption、shell AST/Hook deny 與 staged content 測試;由 governance validator 執行 tests/test_publication_authority.py。Fixture evidence 不證明 production issuer 或 universal subprocess enforcement。
已接受的 ComfyUI 工作逾時或輪詢失敗時,測試 exact-ID queued cleanup、只對 AIPS 擁有且正在執行的 prompt_id 送出指定 interrupt、不中斷他人工作、queue 無法讀取時不 interrupt、重啟後依本機 ledger 辨識擁有權(aips creative recover)與禁止自動重送;未知的 running completion 保持未驗證。
Scenario 236 covers bounded creative discover, preflight, execute, review, and trace command contracts. Discovery probes installed MFLUX command/version status and only the fixed loopback ComfyUI service, separates command/runtime/model/preflight/inference evidence, and never starts a workflow. Static Apple Silicon FP8 warnings remain advisory; unavailable-engine recovery retains provider-specific reason codes without local path disclosure. Only explicit execution starts a configured local engine.
Scenario 234/236 cover profile-driven bounded prompt compilation and fingerprints, evidence-backed advisory model recommendations, and opt-in local Ollama vision review over loopback. Scenario 238 verifies visual review requires explicit current-user intent. Review assistance writes a separate authority: NONE report and cannot mark Human review or user acceptance complete.
The Phase 1 module-extraction lifecycle verifies exact prompt and recommendation outputs, facade object identity, and invalid-prompt error behavior; it does not claim real image generation or visual-quality evidence.
Scenario 236's native-context checks are complemented by Scenario 238: the active prompt hook grants scoped actions and output count, and a later prompt or unrelated assistant Context cannot restore a revoked grant.
Scenario 238 covers the per-item job result lifecycle, verified resume, orphaned-success recovery and fixed local version probes. Native OpenCode acceptance does not execute image generation or claim visual quality.
Scenario 239 verifies read-only Impact Graph relationship candidates, source-line provenance, budget truncation, unresolved dynamic relations and unchanged canonical graph state.
Z-Image Turbo 測試涵蓋專用 MFLUX generate 命令與固定 ComfyUI split-loader 拓樸、模型清單核對及 prompt PNG metadata 清理;明確步數、拒絕 edit/非 Turbo 變體/通用 FLUX 命令,既有離線、create-only 與人工 PENDING 契約保持適用。
Scenario 236 新增 Bundle 設定競爭/來源保留、native Context envelope、使用者授權撤銷、唯讀預檢、媒材不符與損壞 PNG 檢查。實際 tool callback 使用無憑證 fixture;這不等於真實模型品質或使用者接受。
Scenario 236 covers versioned no-overwrite Profile/Bundle preparation, fixed MFLUX model/operation CLI mapping, single-reference FLUX.1 edit, bounded multi-reference FLUX.2/Qwen edit, loopback ComfyUI with one-to-eight ordered staged-byte-verified references, Base and Distilled profile settings, create-only EPHEMERAL output, provenance, finite retry, privacy-bounded trace, and separate human visual review.
The synthetic lifecycle uses fake MFLUX and loopback ComfyUI only. It verifies concurrent preparation allocates distinct versions, unconfigured engines remain blocked, preflight does not run a generator, explicit execution stays inside non-Git EPHEMERAL scope, MFLUX commands match the fixed capability registry, batch references remain bounded, model/runtime/license and profile hashes are bound to output provenance, ComfyUI is loopback-only with built-in nodes, Z-Image Turbo and shared FLUX 3 Klein topology checks match local inventories, prompt-bearing PNG text metadata is removed, dynamic edits bind one to eight ordered hash-matched staged inputs, retries are finite, no output is overwritten, review starts PENDING, and traces reject prompts, image data, secrets and paths. Real model execution, device performance and visual quality require a user-configured local engine and independent human inspection; no model is installed or downloaded by validation.
FLUX 3 Klein coverage also validates the live TextGenerate Dynamic Combo schema and final serialized payload shape before submission, rejects incompatible options without a POST, and checks that synthetic node/exception diagnostics omit prompts, paths, credentials and tracebacks. The lifecycle is adapter evidence only; MPS inference remains unverified.
Release history 更新(純依賴升級文件豁免,Scenario 221)已審查本區段:Skill 整合、Explorer 與重用行為不變。
Scenario 269 changes no Skill discovery or installation behavior; its lifecycle exercises Turn Context preparation and aips intelligence gc.
Scenario 237 — Read-only Project Diagnostics and Recovery Guidance
The opt-in docs-only report derives from Git status and never marks Change Impact reconciled.
Scenario 044 verifies no-write attach/detach behavior, external Intelligence persistence and preservation of legacy .ai/ data.
Scenario 267's direct-write lifecycle complements diagnostics: stale READY freshness remains visible while independent native guard denials remain covered.
Scenario 263 applies the same read-only principle to commit content: Hook and CLI use one scanner, redact findings, and do not mutate Git.
Publication diagnostics observe policy on the remote default branch independently from the candidate; structured HTTP evidence is sanitized, and transient recovery is read-only.
Scenario 261 — Publication Diagnostics and Safe Recovery
Plan40 also verifies explicit reason-code coverage, INTERNAL_DIAGNOSTIC_GAP for unknown classifications, safe common bindings across Prepare and Hook, separate planning/authorization/Host/execution lifecycle states, and optional hash-chain-verified Diagnostic ID lookup. Evidence includes the publication authority, planning, diagnostics, Hook and governance-audit tests; lookup and trace failures do not change authorization.
Plan44 also verifies stable detail codes for unsupported command forms and a separate Claude PostToolUseFailure path that reports observed native execution failure and exit code without raw host text. PreToolUse denial remains NOT_EXECUTED; no retry or authority is added.
Scenario 240 — Personal Publication Default and High-Assurance Opt-In
A native Claude Auto Mode denial remains separate from AIPS publication authorization.
Content-safety PASS is candidate evidence only and does not authorize PR merge or change publication mode.
AVIF metadata inspection is a local content-safety check and does not change personal publication mode or grant requirements.
Merge readiness now consumes fresh Required Checks policy from the same target-branch observer as Doctor; native confirmation and exact candidate binding remain required.
Scenario 240 的 tests/test_publication_planning.py 覆蓋 worktree 綁定、精確 SHA/ref、舊指紋拒絕、Host denial、PR 重用與 squash merge 恢復;fixture 不等於真實 Host 或 REST 驗收。
Personal mode allows an Agent to publish a validated engineering branch and create a PR to the live remote default branch without a separate grant. An explicitly requested PR merge requires exact candidate/head and live default-base binding, a mergeable open PR, and a non-empty set of passing required checks. Ordinary Claude Code and Gemini CLI merges require native per-call confirmation. When the current task explicitly authorizes merging, Claude Code may enable GitHub auto-merge with --auto through the same checked guard without a second Claude prompt; Gemini retains ask_user, and GitHub checks/repository policy remain in force. Codex remains ADVISORY and cannot guarantee interception of direct merge commands. A protected administrator trust-root selects high assurance; missing, invalid, or unavailable signed authorization blocks without fallback. Direct protected-branch push, tag/release, delete, bypass flags, unsafe commands, and content-scan failures remain denied.
Scenario 097's publication command lifecycle also covers substitution position, recursive unquoted-heredoc classification, quoted/escaped literal preservation, and stable denial codes for dynamic command identity.
Scenario 240 adds the publication-mode contract while retaining these diagnostics as read-only and non-authorizing. Its current acceptance includes feat/ branches, safe staged-content failure codes, and exact-head --auto only after non-empty required checks pass. Scenario 240 also covers real M4A structure validation, metadata secret scanning, spoof rejection and the 8 MiB limit while preserving existing media-format behavior.
Recovery Plan 延伸既有 reason code/next action,標示順序、相依與 derived-state-write 授權需求。診斷不執行計畫,UNKNOWN 狀態先提供唯讀檢查;Project Intelligence 與 run state 一律維持外部儲存。
Scenario 239 adds a separate read-only relationship-candidate lifecycle; diagnostics and candidate reports both leave Project Intelligence canonical state unchanged.
診斷結果仍是唯讀建議;創作引擎診斷不得觸發安裝、下載、生成或授權延續,這些動作維持各自明確入口。
The diagnostics lifecycle covers missing, stale, partial and blocked Intelligence states. Suggested recovery remains observational; bootstrap, refresh and finalization require their existing explicit actions.
aips project diagnose aggregates existing aips doctor, Project Intelligence status, Harness resolution and MCP static inspection. It reports stable reason codes with safe next actions and verification commands while keeping bootstrap, refresh, indexing and attach as explicit user actions. Doctor and child-process output is not copied into the report. Lifecycle evidence verifies text/YAML/JSON output, missing/partial/stale/blocked guidance, bounded failures, privacy and no-write behavior. Harness and MCP Host execution remain UNVERIFIED unless separately evidenced.
Plan36 publication diagnostics preserve this topic's existing behavior and authority boundaries.
The synthetic scanner fixture in tests/test_publication_authority.py places each hex digit exactly twice in a per-run shuffle, so its Shannon entropy is always 4.0 and clears the generic-secret-assignment floor of 3.25; the earlier raw uuid4 hex fell below that floor in about 0.7% of runs and made the guard test flaky. Scanner rules and thresholds are unchanged.
Scenario 231 — Advisory Security Inventory and Secret-Scanner Shadow
The mandatory candidate secret scan remains independent of optional toolchain provisioning.
The scheduled/manual workflow runs a pinned OSV dependency inventory and compares the existing project secret scanner with a full-history Gitleaks shadow. Its failures and parity differences are advisory; the required candidate secret scan and repository Gate remain the release controls. CodeQL configuration is read from GitHub's default setup.
Declared behavior dependencies select potentially stale Eval cases for review. The report does not execute cases or alter results; scenarios 192, 193 and 224 remain manual.
Current totals are published in CONFORMANCE_CURRENT.md.
Scenario 260 — Publication diagnostics and Doctor
Scenario 221 dependency filtering changes Documentation Impact, Placement and Sync trigger matching only for exact-candidate verified pin paths; Scenario 260 publication diagnostics still bind every result, scan and authorization decision to the complete candidate diff.
文件網站 build 通過只表示 VitePress 產物可建立,不代表 GitHub Pages 已部署、PR 檢查通過或取得 merge 授權。
PreToolUse, PermissionDenied, and PostToolUseFailure remain distinct sources in publication diagnostics.
Runtime Policy diagnostic details do not create publication authority; the protected publication path retains its Human approval and required-check gates.
A literal git -C <path> push resolves the actual target worktree before candidate and scan checks; invocation cwd does not substitute for the explicit target, and invalid/dynamic paths fail closed.
Native Git publication also accepts git push -u/--set-upstream origin <current-branch>; the guard resolves it to the observed full HEAD SHA and full branch ref. Bare branch names, HEAD, and other branches remain blocked, and diagnosis grants no authority.
Publication lifecycle evidence covers a dirty selected worktree with an immutable candidate: planning and publish ship remain bound to the committed SHA, preserve local files, and do not classify that state as an AIPS publication blocker. Remote errors and repository protection evidence remain independently enforced.
Scenario 261 covers structured JSON errors from failed prepare and diagnose calls, with safe recovery guidance and no implied retry or publication authority.
A validated workflow action pin remains bound to the PR head; diagnostics and individual advisory jobs do not replace the required repository result for merge readiness.
Scenario 261 also covers quoted-heredoc PR text, dynamic-argument denials with PUBLICATION_ARGUMENT_DYNAMIC, PR-bound scan evidence and the 30-minute evidence lifetime.
Scenario 261 now also covers the bounded Hook deadline, safe upstream flags, exact short-lived scan evidence, and the distinction between ordinary Doctor visibility and strict Required Checks enforcement.
Scenario 263 records WebM metadata scanning, resource bounds, malformed-input failure behavior and final-tree/history regression coverage.
Scenario 260 publication coverage includes exact-candidate and full-history secret scanning, strict failure on incomplete scans, and continued provider-token/private-key detection.
Scenario 097/260 also cover the opt-in merge gate: without AIPS_ENFORCE_REQUIRED_CHECKS=1, AIPS does not block on Required Checks evidence; Doctor remains read-only and GitHub native protections remain effective.
Scenario 260/261 verifies immediate Claude Hook denial without an inline Doctor call, the manual read-only recovery command, and safe Prepare timeout fields.
Scenario 261 verifies unsupported personal publication command forms are rejected before candidate scanning and that scanner policy, Git-object and file-read failures remain blocked with redacted diagnostics.
Scenario 261 extends this publication-diagnostic contract with literal command validation before scanning and stable redacted failure classification; denied commands remain NOT_EXECUTED.
Scenario 260 also preserves personal publication authority: safe detail guidance does not approve or execute a merge.
Claude Code 的版本相容案例驗證 v2.1.295+ 僅在 publication PreToolUse 使用 onFailure: block,舊版/未知版本保留設定並警示;敏感例外訊息不得進入 hook payload。
Publication preflight now uses the shared bounded font metadata scanner for candidate previews; safe diagnostics preserve the existing Required Checks and publication approval boundaries.
Scenario 263 adds content-safety diagnostics as a separate surface; publication Doctor, exact PR binding, and Required Checks remain authoritative for merge.
Plan40 adds explicit error-cause coverage, safe Prepare/Hook bindings, independent lifecycle states, and optional verified Diagnostic ID lookup while preserving personal-mode confirmation and Harness/CLI authority boundaries.
Runtime Hook recovery remains non-authorizing; Scenario 262 diagnostics do not alter candidate validation, native Host confirmation or publication authority.
Scenario 260 verifies that native Hook denials expose only safe diagnostic metadata and that the candidate branch is separate from target policy.
Scenario 260 also checks that Doctor observes target-branch policy independently of the candidate branch, classifies 401/403 and contextual 404 evidence, and includes safe structured Claude Hook denial metadata without command input. Scenario 261 keeps transient recovery read-only and non-authorizing.
The publication diagnostic contract distinguishes missing/stale pinned merge SHA, forbidden flags, verified Required Checks configuration, unavailable policy evidence, and non-authorizing Host recovery guidance.
Scenario 260 verifies stable, redacted diagnostics for publication blockers, read-only gh pr merge diagnosis, first-time repository Doctor observations, Required Checks states, unavailable policy evidence, and consistent Claude Code/OpenCode/Codex guidance. The doctor never changes repository settings, executes merge, or consumes a grant. Scenario 261 adds grouped dirty-path evidence and phase attribution through push, PR, checks, and merge recovery; diagnostics remain non-authorizing.
Scenario 099 also covers the publication guard read-only allow list and stable command-classification reason codes through tests/test_publication_authority.py; untracked-only worktrees are reported without blocking.
Publication diagnostics keep reporting CONTENT_PII_BLOCKED for real addresses; Git remote git userinfo no longer produces that code under pii.email.v2 (Scenario 266).
Dependabot commits: the GitHub App bot noreply author and Dependabot's exact final Signed-off-by trailer are Git identity metadata decided by config/git-publication.yaml, not PII exceptions; pii.email.v2 and every other address stay blocking, and the bot identity grants no authority.
文件同步路徑正規化(Scenario 221):Documentation Sync 只移除開頭一個 ./,不再用 lstrip("./") 逐字元剝除,使 config/documentation-sync.yaml 中的 .github/** 觸發條件真正生效;純依賴升級仍由 evaluate_candidate 先行豁免。
Scenario 262 — ComfyUI Resource Authorization and Diagnostics
Profile resolution exposes only a project-relative path; destination mismatch reports only the failing fields, with secrets redacted and default deny preserved.
Resource profiles and grants remain independently validated; optional project modes do not authorize ComfyUI endpoints or submissions.
Runtime Policy destination conditions additionally require exact host, port, method, and path matches; invalid or unknown conditions fail closed without replacing Resource Authorization.
Scenario 236 adds the Qwen Image Edit Plus per-port mapping under the same fixed loopback destination and existing resource authorization boundary.
Scenario 236 now exercises Base and Distilled on the same reviewed Klein topology and ordered one-to-eight local reference bindings. Resource grants, fixed loopback destinations and diagnostics remain unchanged; staged references are hash-checked before submission.
固定 FLUX 3 Klein workflow 在提交前核對 live TextGenerate schema 與最終序列化 payload;錯誤摘要有界且遮蔽敏感欄位,這不構成模型推論或 MPS 成功證據。
Scenario 268 separately covers bounded schema-validated workflows and keeps real inference UNVERIFIED.
Scenario 236 的 profile registry 只映射已審核的 workflow family;ComfyUI 資源探測仍限於 loopback 固定 API。
ComfyUI authorization remains separate from AVIF metadata and Creative raster validity checks.
Commit Content Safety remains separate from ComfyUI Resource Authorization profiles and grants.
Publication Diagnostic IDs remain separate from ComfyUI discovery, Resource Authorization profiles, and Creative execution grants.
Scenario 262 covers fail-closed Resource Authorization Profile/grant matching, Hook binding to observed URLs, fixed loopback ComfyUI model discovery and safe HTTP recovery, shared creative presets, and static-only MPS compatibility evidence.
Scenario 268 — Model-agnostic ComfyUI Workflows
Qwen Image Edit Plus is an additional built-in encoder mapping only; it adds no node class, topology family, endpoint, or automatic submission.
Scenario 268 verifies opt-in local API workflow import, scan and inspection; bounded graph/schema validation; runtime core-node allowlisting; installed loader model checks; explicit prompt/seed/dimension/output/reference bindings; create-only generation output; and no automatic resubmission after an uncertain POST. Synthetic loopback evidence does not verify real model inference, hardware compatibility or image quality. Scenario 271 extends this topology work with audited template data, a generic validator, pre-refactor equivalence for every registered profile, and the user-local profile draft and approve gate.
Scenario 263 — Commit Safety Diagnostics
Commit diagnostics expose allowlisted AST and segment evidence; one literal repo-local cd is scanned at its canonical working directory.
Content-safety findings and Runtime Policy diagnostics remain separate evidence; a diagnostic never grants permission to retry or publish.
Moving legacy governance records to an external backup does not alter staged-content scanning or permit skipped safety checks.
The candidate scanner recognizes only the approved generated-password and parameterized SQL expression shapes as non-literal values. High-entropy literal assignments remain detectable; JSON text is bounded at 8,000,000 bytes and other text at 2,000,000 bytes, with oversized inputs blocked. WebM has no path exceptions: bounded EBML parsing scans declared text metadata, skips media payloads, and blocks malformed or over-limit input under a 32 MiB default.
The candidate/history publication scanner separately classifies policy, Git-object and file-read failures; Scenario 261 verifies those failures remain blocked without exposing paths or exception text.
The native publication failure observer reports only an allowlisted category and parsed exit code; raw Host output remains outside durable findings.
共享 hook 的非預期授權例外會 fail closed,並限制輸出為診斷 ID、穩定原因與 allowlist 例外類別。
The native commit Hook and read-only aips safety diagnose commit use the same staged-content scanner. Strict ignore-marker handling, bounded PNG/JPEG/WebP/AVIF/M4A/MP3/TTF/OTF/WOFF/WOFF2 metadata scans, pre-read Git blob limits, fail-closed unknown binary and scanner errors, redacted structured recovery, and unchanged HEAD/index are verified by tests/test_safety_diagnostics.py and tests/test_font_metadata.py. This diagnostic surface does not grant commit or publication authority. Scenario 265 covers static AVIF EXIF/XMP extents, metadata redaction and candidate/history/Creative consumers; it does not claim AV1 decode or visual-quality assurance.
Scenario 264 — Hash-bound Creative Git Asset Import
The existing publication authority remains independent of Resource Authorization diagnostics and continues to require its exact candidate evidence.
Scenario 267 keeps this creative Git workspace denial unchanged; the advisory applies only to ordinary local L2 source writes.
The lifecycle verifies default Git destination rejection, explicit exact-root opt-in, hash revalidation, create-only writes, and unchanged Git index bytes. The source remains a non-Git EPHEMERAL workspace; import does not stage or commit.
Scenario 266 — Content Safety Injection Context and Recovery
Untrusted content remains non-authoritative; Runtime Policy diagnostics are bounded evidence and do not authorize an action or fallback.
Project governance settings are treated as untrusted data; content-safety findings and publication approval remain separate decisions.
A CLI JSON error response contains only allowlisted diagnostics; scan failures continue to block publication and never produce successful scan evidence.
PR-bound scan evidence comes only from the same exact-candidate Prepare scan; a push-bound record never satisfies a PR creation.
Publication scan evidence records a prior full Secret Scan only. Expiry or candidate/policy drift denies reuse; the final Gate continues to scan the complete candidate and history.
Imported ComfyUI workflow JSON remains project content subject to existing content-safety and Change Boundary review; validation does not promote it to trusted instructions.
Scenario 266 content-safety decisions remain unchanged by the personal PR merge setting AIPS_ENFORCE_REQUIRED_CHECKS.
Publication timeout diagnostics preserve this content-safety boundary: raw command and exception text are omitted, as verified alongside the independent publication contract in Scenario 260/261.
The fixed benign/malicious corpus verifies that common JavaScript data references pass, strong injection rules still block, ambiguous findings require review, and removed or unchanged staged lines do not block an unrelated edit. Publication-candidate injection checks inspect added diff lines while Secret/PII scanning retains the complete diff. Full staged Secret/PII coverage, exact expiring exceptions, safe reason/phase/fingerprint/recovery output, Hook parity and unchanged Git index/HEAD are covered by tests/test_content_safety.py and tests/test_safety_diagnostics.py.
Scenario 169 covers commit-form scanning of not-yet-staged content and unchanged commit-time REVIEW blocking.
The pii.email.v2 corpus proves Git remote git userinfo (scp-like, ssh://, quoted prefixes and template paths) passes while true addresses, personal remote users, confusables and adjacent addresses block, with redaction parity and rejected pii.* exceptions.
Dependabot commits: the GitHub App bot noreply author and Dependabot's exact final Signed-off-by trailer are Git identity metadata decided by config/git-publication.yaml, not PII exceptions; pii.email.v2 and every other address stay blocking, and the bot identity grants no authority.
Scenario 269 refreshes only the CLI help golden vectors for aips intelligence gc; content-safety detection, sink policy and commit scanning are unchanged.
Scenario 272 covers the profile switch mechanism: default-strict loading, fail-closed diagnostics, a TTY and typed-phrase gate for aips profile set, and agent-write denial; no relaxation is enabled.
Scenario 274 covers the profile-gated relaxations claude_coauthor_trailer (exact Claude co-author trailer in the final trailer block of the publication gate PII scan) and post_merge_refresh (one detached aips intelligence refresh per store per HEAD); both default to off.
Scenario 275 — Optional Project Governance Modes
Docs-only classification does not change the project's governance mode or waive required checks.
Optional governance modes do not alter Runtime Policy default deny or permit fallback when the trusted Profile is missing or invalid.
Scenario 275 verifies the default off, private external repository-identity storage, explicit enforce scopes, advisory-only observe/assist Hook responses, fail-closed corrupt configuration, and the precedence of global runtime/high-assurance policy. Project settings do not grant or deny native Host permission or weaken GitHub protections.