Skip to content

chore(openspec): rebind align-ship-cycle row to the landed #504 squash - #512

Merged
monkey1sai merged 1 commit into
mainfrom
chore/rebind-align-ship-cycle-row
Aug 12, 2026
Merged

chore(openspec): rebind align-ship-cycle row to the landed #504 squash#512
monkey1sai merged 1 commit into
mainfrom
chore/rebind-align-ship-cycle-row

Conversation

@monkey1sai

Copy link
Copy Markdown
Owner

Summary

AI Coding Governance

Machine values: Change lane = F / B / G / S; Behavior contract changed = yes / no; Requirement source = issue / docs/plans / superpowers spec / existing contract / not applicable.

Item Result
Change lane F
Behavior contract changed no
Linked issue none(#504 merge 的後續 rebind)
Requirement source existing contract(openspec lifecycle machine-truth 的 subject ancestry 規則;#482/#501 先例)
CODEOWNERS / owner review requested
GitNexus evidence not needed
Browser E2E evidence not user-facing
Agent workflow changed? no
Required checks expected CI / Agent Governance / PR Metadata Contract

Frontend Verification

User-facing changes must pass two independent producers: real frontend/runtime operability evidence and the pinned docs/plans/design-system-reference.manifest.json fidelity gate. Scope is derived from changed paths plus the base/head manifest union; the PR body cannot select an easier screen. mixed and partial_reference_missing permit honest partial work but require Full completion claimed = no. Semantic evidence is produced only by the design-semantic-visual CI Playwright job, never supplied as PR input; PR Metadata Contract validates the live PR metadata, while normal protected CI checks determine mergeability.

Item Result
Frontend route not applicable
Main button(s) tested not applicable
Fixture used not applicable
Backend API called not applicable
Runtime action not applicable
Visible success state not applicable
E2E command not applicable
Screenshot / trace not applicable
Design gate status not applicable
Design screen(s) not applicable
Reference-missing route(s) / surface(s) not applicable
Full completion claimed no
Design reference manifest docs/plans/design-system-reference.manifest.json
Visual fidelity result not applicable
Visual comparison not applicable
Visual artifacts not applicable
Manual test steps not applicable
Known gaps not applicable

Deploy Path Verification

Required for runtime / Docker / Kit / viewer / ports / env / conversion-service changes.

Item Result
Affects runtime / docker / Kit / viewer / ports / env? no
Canonical deploy path updated? not needed
New root script added? no
Deploy dry-run command not applicable
Full deploy tested not available
Verify command not applicable
Frontend URL verified not applicable
Evidence path openspec/lifecycle-ledger.json(單行 diff)

Self-Referential Bootstrap

Required when the PR changes the verification mechanism itself (deploy path / evidence harness / gate script). Rule: docs/agents/self-referential-bootstrap.md. Open ledger debt in scripts/self-referential-bootstrap-ledger.json blocks further mechanism PRs until fixpoint closure.

Item Result
Self-referential bootstrap no
Bootstrap ledger entry not applicable
Bootstrap reason not applicable

Validation

  • node --test scripts/tests/test-openspec-machine-truth.mjs → 24 pass/0 fail。
  • node --test scripts/tests/test-ai-coding-metrics.mjs → 13 pass/0 fail。
  • git diff --cached --check → clean。

Known Risks

  • 無 runtime 影響(ledger 單行 rebind)。

🤖 Generated with Claude Code

Same pattern as #482/#501: the row's subject_commit pointed at the
pre-squash branch commit (bccf251) which is not an ancestor of main after
the #504 squash (881f6da); any PR CI running the machine-truth source
observation against this ledger fails subject_not_ancestor. Rebound to
the landed squash. Local gates: machine-truth 24/0, metrics 13/0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings August 12, 2026 03:35
@monkey1sai
monkey1sai enabled auto-merge (squash) August 12, 2026 03:35
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@monkey1sai, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 23 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 214da42a-b184-4f58-8440-8eac98339db0

📥 Commits

Reviewing files that changed from the base of the PR and between 881f6da and d425ed7.

📒 Files selected for processing (1)
  • openspec/lifecycle-ledger.json

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codex-tri-adversarial-bot codex-tri-adversarial-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Tri-Adversarial Bot

Automated tri-adversarial ship-gate (L0 terra triage / L1 tier-routed lens fanout / L2 refute-by-default / L3 sol apex — Codex models).
Mapped event: COMMENT


Codex Tri-Adversarial ship-gate — PR #512

  • Repo head: chore/rebind-align-ship-cycle-row @ d425ed7
  • Base: main @ 881f6da
  • Files changed: 1
  • Engine: four-model tri-adversarial gate on Codex — L0 triage gpt-5.6-terra/low; L1 lens finders routed gpt-5.6-terra/low → gpt-5.6-luna/medium → gpt-5.5/xhigh (security floor gpt-5.5); L2 refute-by-default gpt-5.5/xhigh, top-tier findings refuted by gpt-5.6-sol/xhigh (every refutation cross-model); L3 apex gpt-5.6-sol/max. 誠實聲明:層級與 Claude 三層 gate 同構(terra≈haiku、luna≈sonnet、gpt-5.5≈opus、sol≈fable),但模型池是 Codex 的,非 Anthropic 的。

Verdict

SHIP

  • 阻擋門檻 severity: critical, high
  • mapped GitHub event: COMMENT
  • ℹ️ 判定為 SHIP,但刻意不送 APPROVE:GitHub App 的 approving review 不計入 required_approving_review_count(2026-07-31 實測)。本報告是證據,approving 那一票請由真人帳號投。

Difficulty & routing

  • overall: high (source: terra-triage)
  • lens tiers: correctness→gpt-5.5, security→gpt-5.5, simplification→gpt-5.6-luna, test-gap→gpt-5.5

Layer stats

  • L1: raw=0 deduped=0 finder_failures=0
  • L2: confirmed=0 refuted=0 unverified=0
  • L3 final: 0

Summary

No findings from L1/L2.

Agent calls

  • 5/5 ok, engine wall-clock 40.8s

VERDICT

SHIP

VERDICT: SHIP

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR is a one-line data correction to the OpenSpec lifecycle ledger. It rebinds the subject_commit for the align-ship-cycle-merge-ancestry archived row from the pre-squash branch commit (bccf251…, which was discarded when PR #504 was squash-merged and is therefore no longer a main ancestor) to the landed squash commit (881f6da…). This follows the established #482/#501 precedent: after a squash merge, the ledger row must point to the reachable landed commit so the OpenSpec machine-truth source-observation check does not fail with subject_not_ancestor.

I verified against the repository that:

  • 881f6daac4c547d3c3fea661f7b6b1e5cdf50ed6 is the current tip of main and is the squash-merge commit for PR #504 — trivially a main ancestor.
  • bccf251319b50a64806592cd0b4709c186e9c1f4 is a branch commit (authored/committed by the branch author, not web-flow) that was squashed away and is not reachable from main.
  • The value is a valid lowercase 40-character SHA, satisfying the ledger schema check in scripts/lib/openspec-machine-truth.mjs (subject_commit must be a lowercase full SHA), and the JSON structure is intact.
  • docs/plans/NOW.md does not mirror this commit or change ID, so no companion update is required (the row status is unchanged: archived → archived).

Changes:

  • Rebind align-ship-cycle-merge-ancestry.subject_commit to the landed #504 squash commit 881f6da….

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@monkey1sai-blip monkey1sai-blip left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by monkey1sai-blip (the reviewer account pinned by the repo's merge governance).

Submitted through scripts/blip_review.py — a scripted approval carrying the operator's authority, pinned to head d425ed700daa7c8222b4914b955c0ce017563d9f. This is the mechanism the GitHub App cannot satisfy: an App's approving review does not count toward required_approving_review_count.

@monkey1sai
monkey1sai merged commit 8da8a88 into main Aug 12, 2026
23 checks passed
@monkey1sai
monkey1sai deleted the chore/rebind-align-ship-cycle-row branch August 12, 2026 03:44
monkey1sai added a commit that referenced this pull request Aug 12, 2026
 squash (#514)

Same pattern as #482/#501/#512: the row's subject_commit pointed at the pre-squash branch commit (1229171) which is not an ancestor of main after the #506 squash (cba6265) and whose branch was auto-deleted; any PR CI running the machine-truth source observation against this ledger fails subject_unavailable. Rebound to the landed squash. Local gates: machine-truth 24/0, metrics 13/0.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
monkey1sai added a commit that referenced this pull request Aug 12, 2026
…nd hifi row to #507 squash

一、撤除 bootstrap 層(依 #520 裁決=docs/agents/self-referential-bootstrap.md §2.1,PR #521):
量測 harness 的報告無任何 gate 機器消費者,不屬 mechanism surface,不入 ledger。
classifier 擴張+open entry gpu-session-baseline-harness+evidence 一併撤除,
scripts/lib/self-referential-bootstrap.ps1、scripts/tests/test-self-referential-bootstrap.ps1、
scripts/self-referential-bootstrap-ledger.json 還原為 origin/main 版本。
機械上這條路也是死路:base-pinned 裁決者以 base 版 classifier 驗證新 entry 宣告的
mechanism paths,同 PR 擴張 classifier 永遠無法讓自己的 entry 合法(實測兩輪
pr-metadata-contract-diagnostic 均以 not classified verification-mechanism paths 拒絕)。

二、rebind migrate-console-to-hifi-design row:#507 squash 後該 row 仍綁 pre-squash
commit af60c29(已被丟棄,CI checkout 抓不到)→ 全部後續 PR 的 machine-truth
test 25 紅。依 #482/#501/#512 慣例 rebind 到 landed squash 4187102。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
monkey1sai added a commit that referenced this pull request Aug 12, 2026
Same pattern as #482/#501/#512/#514: subject_commit pointed at the
pre-squash branch commit (af60c29) which is not an ancestor of main after
the #507 squash (4187102); PR CIs fail subject_not_ancestor until rebound.
Local gates: machine-truth 24/0, metrics 13/0.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
monkey1sai added a commit that referenced this pull request Aug 12, 2026
…baseline 1.1) (#511)

* feat(scripts): add GPU session baseline measurement harness (gpu-session-baseline-and-idle-reclaim 1.1)

Add scripts/measure-session-baseline.ps1 (root CLI) and
scripts/lib/measure-session-baseline.ps1 (testable core) implementing task
1.1 of openspec/changes/gpu-session-baseline-and-idle-reclaim: a read-only
harness that captures nvidia-smi GPU inventory (VRAM/utilization, consumer
RTX classification, MIG availability), a GET-only WebRTC/coordinator health
probe (/health, /api/runtime/status), and the environment fingerprint
required by the gpu-session-baseline spec (GPU model, driver version, Kit
version from kit-sdk.packman.xml, fixture hash+size).

The harness never opens a WebRTC session or creates/joins/closes a review
session, so TTFF and session-creation success rate cannot be honestly
measured locally; those fields are null with measured:false and an explicit
reason unless supplied by a caller (e.g. a future task 1.3 soak run), never
fabricated. Every other unmeasurable signal (no nvidia-smi, no GPU rows,
insufficient OS permission on the compute-apps VRAM column, coordinator
unreachable) degrades the same way instead of throwing or guessing.

Registered in scripts/script-registry.json as a measurement-harness (not
deploy.ps1/verify-all.ps1: it measures, it does not deploy or gate; not
scripts/lib alone: it is the operator-invoked CLI entry; not scripts/tests:
it produces a JSON report, not a pass/fail check).

Add scripts/tests/test-measure-session-baseline.ps1: unit tests for GPU line
parsing/consumer-RTX/MIG classification, fail-safe behavior with nvidia-smi
entirely absent, report schema shape, script-registry.json consistency, and
a real CLI smoke test (both -OutputPath and the default
artifacts/gpu-baseline/<timestamp>.json path). Verified on pwsh 7.5.4 and
Windows PowerShell 5.1 (powershell.exe), invoke-powershell-static.ps1, and
scripts/tests/test-agent-governance-check.ps1 (45/45 green).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore(openspec): tick gpu-session-baseline-and-idle-reclaim task 1.1

Mark tasks.md 1.1 done (measure-session-baseline.ps1 harness landed) and
sync openspec/lifecycle-ledger.json: task_ledger completed 0->1,
current_slice points at the 1.2 env-fingerprint gate as the next slice,
last_verified refreshed, subject_commit rebound to 405e2b6 (the commit that
landed the harness + tests + registry entry), evidence_refs extended to the
new script and test paths.

Verified: node scripts/tests/verify-openspec-repository-lifecycle.mjs
--repo-root . (openspec/changes, lifecycle-ledger.json and
docs/plans/NOW.md agree -- NOW.md's projection is id+status only, and
status stays "active", so it needed no edit); node --test
scripts/tests/test-openspec-machine-truth.mjs (24/24) and
scripts/tests/test-ai-coding-metrics.mjs (13/13); pwsh
scripts/tests/test-agent-governance-check.ps1 (45/45 embedded
repository-lifecycle subtests green).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(scripts): honest gpu-baseline measurements — real binding enum, per-role lease counts, validated inputs, untick 1.1 (review)

* fix(scripts): declare gpu fingerprint scope — multi-GPU host is first_gpu_only, per-GPU fingerprint deferred to 1.2 (review)

* fix(scripts): harden GPU baseline harness per PR #511 review

Addresses the valid findings from the 13 unresolved review threads on
scripts/measure-session-baseline.ps1 (gpu-session-baseline-and-idle-reclaim
task 1.1/1.2), keeping the "measured:false, never fabricate" contract intact:

- Get-SafeProperty: fix a PowerShell pipeline-unroll bug where `return
  $value` on an empty array collapsed to $null, making an observed empty
  kit_instance_bindings/viewer_leases indistinguishable from "unmeasured".
- Get-WebRtcHealthProbe: count non-terminal KitInstanceBinding statuses
  (allocated/starting/ready/draining) instead of a literal status='active'
  that the real coordinator API never emits; count active primary/spectator
  viewer_leases by role (the actual 1-primary-plus-k-spectator cardinality)
  instead of sessions.active_count; clarify that `reachable` reflects only
  coordinator /health liveness, not independent WebRTC/signaling reachability.
- Get-SessionVramWatermark: only claim a clean measured total when exactly
  one Kit GPU process is observed and fully readable; multi-process or
  partially-readable readouts are surfaced only as the informational
  unscoped_total_kit_vram_mb, never as a fabricated measured:true total.
- Get-EnvironmentFingerprint: fail closed (measured:false) on a multi-GPU
  host instead of blindly binding the fingerprint to gpus[0].
- Get-KitVersionFingerprint: carry an explicit source/caveat noting this is
  the checkout's declared dependency version, not a live-process read.
- Get-SessionBaselineReport: range-validate caller-supplied -TtffMs /
  -SessionCreationSuccessRate (reject negative/out-of-range instead of
  recording as measured); resolve host.hostname via the cross-platform Dns
  API with HOSTNAME/COMPUTERNAME fallback so Linux deployment targets don't
  silently null out host identity.
- Root wrapper: derive the default -OutputPath from the report's own
  collision-resistant run_id instead of a bare second-resolution timestamp.
- CI: run test-measure-session-baseline.ps1 (PS7 + Windows PowerShell 5.1)
  as part of the required `powershell-static` job, mirroring the existing
  test-spec-to-done-port-helper.ps1 pattern -- neither `root-contracts`
  (pytest) nor the PSScriptAnalyzer-only `powershell-static` gate command
  previously executed this suite.

The lifecycle-ledger subject-ancestry finding (PRRT_kwDOSPoer86YcZ4d) was
independently verified as already resolved at current HEAD and needed no
change; see PR reply for evidence.

Verified: pwsh + Windows PowerShell 5.1 test-measure-session-baseline.ps1,
invoke-powershell-static.ps1, and node --test test-openspec-machine-truth.mjs
(24/24) all green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(scripts): carry a live-build staleness caveat on kit_version (PR #511 review)

Get-KitVersionFingerprint reads bim-streaming-server/tools/deps/kit-sdk.packman.xml
-- the checkout's DECLARED kit-kernel dependency version -- not a value read
from the live Kit process. If the checkout is updated without a
rebuild/restart, this can be stale relative to the session actually being
measured, and no local mechanism exists to introspect a running Kit.exe's
build identity to close that gap. Surface a `source` ('checkout_packman_declared')
and an explicit `caveat` string alongside the existing value/measured/reason
shape (both on the raw fingerprint and propagated through
Get-EnvironmentFingerprint's kit_version field) so downstream SLO-writers
know what this field does and does not attest to, rather than silently
trusting checkout state as if it were live-process state.

This was the one review thread not already covered by the concurrent fixes
landed in 37e3247/2eee19b on this branch (real KitInstanceBinding status
enum, per-role viewer lease counts, VRAM attribution transparency,
TTFF/success-rate validation, hostname fallback, GPU fingerprint scope
disclosure, collision-resistant default filename, task 1.1 unticked); this
commit reconciles with that work rather than duplicating it.

Verified: pwsh + Windows PowerShell 5.1 test-measure-session-baseline.ps1,
invoke-powershell-static.ps1, and node --test test-openspec-machine-truth.mjs
(24/24) all green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(scripts): fold GPU-attribution gap into complete, fix MIG-gating and test cleanup (PR #511 review round 2)

Three round-2 findings on the GPU baseline harness:

- Get-EnvironmentFingerprint: gpu_fingerprint_scope='first_gpu_only' (a
  multi-GPU host) was disclosure-only -- `complete` was computed from the
  five base fields before the scope was known, so a report that has
  admittedly NOT attributed every relevant GPU could still report
  complete:true and silently suppress the wrapper's "SHALL NOT be used to
  set SLOs or admission parameters" warning. `complete` now also requires
  gpu_fingerprint_scope != 'first_gpu_only'.
- Get-GpuInventorySnapshot: software_queue_required was gated on
  consumer_grade_all AND NOT mig_available_any. On a non-consumer, non-MIG
  fleet (e.g. a lone RTX A6000, which Test-ConsumerRtxGpuName excludes but
  which does not support MIG at all), that reported
  software_queue_required=false with no MIG route in fact available.
  Software queuing is now required whenever MIG is unavailable, regardless
  of consumer/professional classification.
- test-measure-session-baseline.ps1: the default-OutputPath cleanup deleted
  every new file under artifacts/gpu-baseline/, not just the one this test
  produced -- a concurrent harness invocation sharing the checkout would
  have its evidence collaterally deleted. Now deletes only
  "$($defaultReport.run_id).json".

Also strengthened Assert-ReportSchemaShape's `complete` expectation and
added regression tests for the professional/no-MIG inventory shape and the
multi-GPU complete=false path.

Verified: pwsh + Windows PowerShell 5.1 test-measure-session-baseline.ps1,
invoke-powershell-static.ps1, and node --test test-openspec-machine-truth.mjs
(24/24) all green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* revert(ci): defer harness CI wiring until the open mechanism debt closes

ci.yml is a classified verification-mechanism path (design gate
infrastructure, Lane G minimum + self-referential bootstrap scope); wiring
test-measure-session-baseline.ps1 into CI from this measurement-harness PR
would collide with the open mechanism-hardening-2 ledger entry owned by
PR #513. The wiring moves to a follow-up alongside issue #516 (CI coverage
for the streaming pytest suite) after fixpoint closure.

Refs #516

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(scripts): gpu-baseline r2 - bootstrap registration, honest kit-version provenance, MIG-driven queue flag (review r2)

* fix(scripts): honest fixture provenance binding for baseline fingerprint (review r4, operator-delegated adjudication)

* fix(governance): revert harness bootstrap-layer per #520 ruling; rebind hifi row to #507 squash

一、撤除 bootstrap 層(依 #520 裁決=docs/agents/self-referential-bootstrap.md §2.1,PR #521):
量測 harness 的報告無任何 gate 機器消費者,不屬 mechanism surface,不入 ledger。
classifier 擴張+open entry gpu-session-baseline-harness+evidence 一併撤除,
scripts/lib/self-referential-bootstrap.ps1、scripts/tests/test-self-referential-bootstrap.ps1、
scripts/self-referential-bootstrap-ledger.json 還原為 origin/main 版本。
機械上這條路也是死路:base-pinned 裁決者以 base 版 classifier 驗證新 entry 宣告的
mechanism paths,同 PR 擴張 classifier 永遠無法讓自己的 entry 合法(實測兩輪
pr-metadata-contract-diagnostic 均以 not classified verification-mechanism paths 拒絕)。

二、rebind migrate-console-to-hifi-design row:#507 squash 後該 row 仍綁 pre-squash
commit af60c29(已被丟棄,CI checkout 抓不到)→ 全部後續 PR 的 machine-truth
test 25 紅。依 #482/#501/#512 慣例 rebind 到 landed squash 4187102。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(scripts): gpu-baseline r5 — unknown-runtime honesty, session-scoped lease counts, fixture overwrite guard (review r5)

PR #511 review r5, three of four threads:

1. PRRT_kwDOSPoer86YeUls — an unreachable/malformed /api/runtime/status left
   every observed count null, and the fixture-binding defaults coerced those
   nulls to 0, so an UNKNOWN runtime state was published under the
   'no_live_session_observed' (observed-idle) label with complete=true beside
   a declared fixture. Adds a distinct fixture_binding_scope='runtime_state_unknown'
   that withdraws completeness and names the failed probe (GET /api/runtime/status).
   A positive observation still outranks the unknown; an observed 0/0 idle host
   keeps its previous semantics.

2. PRRT_kwDOSPoer86YeUlw — per-role lease counts are summed across every
   sessions.items[] entry while total_kit_vram_mb is one host-wide sample, so a
   host serving 2+ sessions mixed multiple primaries/spectators against a single
   VRAM number. Takes the reviewer's reject option: the aggregate counts are kept
   (they are real observations) but session_scope='multi_session_aggregate' is
   published and the 1-primary+k-spectator watermark interpretation is marked
   measured=false with reason 'non-isolated multi-session snapshot; per-session
   VRAM attribution unavailable in this slice'. Exactly one active session yields
   session_scope='single_session' and keeps current semantics.

3. PRRT_kwDOSPoer86YeUly — -FixturePath and -OutputPath resolving to the same
   file made Set-Content truncate the fixture with the report, destroying the very
   artifact the report fingerprints. Canonicalises both ([System.IO.Path]::GetFullPath,
   case-insensitive only on Windows) and throws before any write.

PRRT_kwDOSPoer86YeUlo (P1, bootstrap mechanism-path regression) is NOT addressed
here and is moot as of 286bbac on this branch: per the #520 ruling the harness is
not a mechanism surface, and the three measure-session-baseline classifier patterns
the thread asked the test to pin were removed. Adding them to $expectedMechanismPaths
now would fail the suite; re-registering them would revert an owner ruling.

Verified on Windows: test-measure-session-baseline.ps1 (all groups pass),
test-self-referential-bootstrap.ps1 (all assertions pass),
Invoke-ScriptAnalyzer -Severity Error on the changed .ps1 files = 0.

* fix(scripts): gpu-baseline r6 — reject malformed runtime counts, require observed primary, finite TTFF (review r6)

- Get-SessionVramWatermark / Get-EnvironmentFingerprint: a non-null-but-
  unparseable observed_active_session_count / observed_kit_instance_binding_count
  (coordinator version skew, e.g. a string) was silently coerced to 0 via a
  try/catch default, relabeling an UNKNOWN runtime state as an OBSERVED zero.
  New ConvertTo-NonNegativeIntOrNull helper returns null instead of 0 on parse
  failure; both call sites now treat that null the same as a missing probe
  (new 'malformed_runtime_observation' session scope; runtime_state_unknown
  fixture-binding scope).
- Get-SessionVramWatermark: exactly one active session was enough to accept
  the "1 primary + k spectator" watermark interpretation even when zero
  primary viewers had joined (idle-but-created or spectator-only session).
  Now requires observed_primary_lease_count == 1.
- New-OptionalMeasurement TTFF validator only checked ">= 0", which
  +Infinity satisfies; now also rejects non-finite values.
- openspec/lifecycle-ledger.json: added scripts/lib/measure-session-baseline.ps1
  to the change's evidence_refs (the entire measurement implementation lives
  there; only the CLI wrapper and test were previously listed).

Addresses the three still-open findings from the chatgpt-codex-connector
review on c759057, plus the infinite-TTFF gap from an earlier round that
was never landed.

Co-authored-by: monkey1sai <26239865+monkey1sai@users.noreply.github.com>

* fix(scripts): gpu-baseline r7 — keep kit process-count fields in every report shape (review r7)

gpu-session-baseline-report/v1 的兩個早退路徑補齊 kit_process_count 與
kit_process_vram_unreadable_count:查詢失敗=null(未知非零)、查詢成功但無
Kit process=0(觀測到的真零),consumer 不再因 host 狀態拿到不同 shape。
測試補四條斷言鎖住兩態。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: monkey1sai <xshiujj@gmail.com>
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
monkey1sai added a commit that referenced this pull request Aug 12, 2026
…quash (#528)

#511 squash-merge 後 gpu-session-baseline-and-idle-reclaim row 仍綁 pre-squash
commit 405e2b6(已被 squash 丟棄)→ machine-truth test 25 對所有後續 PR 假紅。
依 #482/#501/#512/#514/#524 慣例 rebind 至 landed squash 797c5c8。

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants