문제: `check:remediation-ledger`가 3건 실패한다.
TR-02: tests/unit/presigned-transfer.test.ts does not mention TR-02
TR-03: tests/unit/image-cdn-runtime.test.ts does not mention X-AUDIT-01 or X-AUDIT-02
TR-04: tests/unit/resumable-upload-runtime.test.ts does not mention TR-04
원인은 ID 표시가 지워진 것이 아니다. 2026-09-18 테스트 분할(`5cc41467`,
`ec7f20e2`)이 세 테스트를 표시째 다른 파일로 옮겼고, 원장과 dispositions
JSON은 옛 파일을 가리킨 채 남았다. 지금 위치:
TR-02 → tests/unit/presigned-transfer-delivery.test.ts:220
TR-03 이미지 probe → tests/unit/image-cdn-browser-probe.test.ts:579 (X-AUDIT-02)
TR-04 → tests/unit/resumable-upload-runtime-teardown.test.ts:80
분할 전 파일(`5cc41467^`)에 같은 주석과 테스트가 있었음을 확인했다.
고른 방법: 원장 행이 테스트가 실제로 있는 파일을 가리키게 한다.
`docs/operations/adapter-remediation-dispositions.json`의 evidence 3곳과
`docs/operations/adapter-remediation-ledger.md`의 같은 행 3개를 고치고,
머리말의 "옮긴 suite" 메모에 이번 분할을 더했다. 앞 절의 실행 명령은 그
실행이 쓴 파일 그대로 둔다(그 시점 기록).
버린 대안: 옛 파일에 TR-02·TR-04·X-AUDIT ID를 적기. 그 파일에는 해당
테스트가 없어서, 검사기가 막으려는 "관계없는 suite를 가리켜 증거처럼
보이기"를 그대로 만든다. 검사기와 markers 규칙은 바꾸지 않았다.
위험·한계: 테스트를 다시 쪼개거나 옮기면 같은 식으로 깨진다. 이 검사는
게이트 밖이라 그때도 아무도 모른다. `config/ci/ungated-scripts.json`의
이 검사 사유("Later fixes removed those markers … reports stale claims")는
이제 사실과 다르지만 이 커밋 범위 밖이라 고치지 않았다.
검증:
- RED(`ec7435c`): `node scripts/check-remediation-ledger.ts` 3건 실패, exit 1
- GREEN: "25 dispositions joined …; 0 open; evidence paths verified", exit 0
- 증거 suite 5개 77건 통과(`node scripts/run-vitest.ts run` 해당 파일)
- `verify-documentation-readiness.ts` PASS_SCOPED, `check-ci-contract.ts` PASS,
`check-adapter-inventory.ts` PASS, `tests/unit/ungated-scripts.test.ts` 10건 통과
189 lines
7.6 KiB
JSON
189 lines
7.6 KiB
JSON
{
|
|
"schemaVersion": 1,
|
|
"review": "third-review-2026-08-14",
|
|
"note": "GOV-03. The machine-readable disposition of every finding the third re-review raised. `check:remediation-ledger` joins this file against the prose ledger and refuses a blanket closure claim while any row is not FIXED, so a summary sentence can never outrun the evidence.",
|
|
"dispositions": [
|
|
{
|
|
"id": "NS-01",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "A credential owner's answer is decoded once, inside the auth boundary, through own data descriptors.",
|
|
"evidence": ["tests/integration/http-execution-v3-live-authority.test.ts"]
|
|
},
|
|
{
|
|
"id": "NS-02",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "Contract composition snapshots first and validates the snapshot, so the installed row is the row that was checked.",
|
|
"evidence": ["tests/unit/contract-registry-immutability.test.ts"]
|
|
},
|
|
{
|
|
"id": "NS-03",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "The `responseBody: NONE` probe owns its reader: the operation lifetime reaches it, and the lock is released.",
|
|
"evidence": ["tests/integration/http-execution-v3-live-authority.test.ts"]
|
|
},
|
|
{
|
|
"id": "NS-04",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "A journal transaction that cannot be completed is maintenance debt, not a settled write.",
|
|
"evidence": ["tests/unit/opfs-byte-store.test.ts"]
|
|
},
|
|
{
|
|
"id": "NS-05",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "A bootstrap failure answers with the request kind it belongs to, so the real cause survives the gateway.",
|
|
"evidence": ["tests/unit/opfs-worker-runtime.test.ts"]
|
|
},
|
|
{
|
|
"id": "NS-06",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "A reply is decoded before its pending row is released, and an uncorrelatable reply fails the channel closed.",
|
|
"evidence": ["tests/unit/opfs-worker-runtime.test.ts"]
|
|
},
|
|
{
|
|
"id": "NS-07",
|
|
"previous": "NEW",
|
|
"disposition": "FIXED",
|
|
"summary": "Cursor caps and collaborators are captured at construction, so a later mutation cannot widen a validated cap.",
|
|
"evidence": ["tests/unit/cursor-pagination-runtime.test.ts"]
|
|
},
|
|
{
|
|
"id": "NS-08",
|
|
"previous": "NEW",
|
|
"disposition": "FIXED",
|
|
"summary": "One terminal owner covers the whole public-cache staging body, so nothing writes after the abort.",
|
|
"evidence": ["tests/unit/public-response-cache.test.ts"]
|
|
},
|
|
{
|
|
"id": "RPC-01",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "Only a fulfilled, contract-shaped `waitClosed()` receipt prunes an active stream registration.",
|
|
"evidence": ["tests/unit/browser-rpc/browser-rpc-remediation.test.ts"]
|
|
},
|
|
{
|
|
"id": "RPC-02",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "Iterator cleanup and the lease decoder read foreign state inside their own boundaries.",
|
|
"evidence": ["tests/unit/browser-rpc/browser-rpc-remediation.test.ts"]
|
|
},
|
|
{
|
|
"id": "RPC-03",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "Every registry is snapshotted before any validation runs, and rows with hidden fields are refused.",
|
|
"evidence": ["tests/unit/browser-rpc/browser-rpc-remediation.test.ts"]
|
|
},
|
|
{
|
|
"id": "RPC-04",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "A transport result is an exact union: required own keys, no inherited extras, plain prototype.",
|
|
"evidence": ["tests/unit/browser-rpc/browser-rpc-remediation.test.ts"]
|
|
},
|
|
{
|
|
"id": "RT-01",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "A tracked task is registered before the authority is invoked, closing the reentrant-close window.",
|
|
"evidence": ["tests/unit/realtime/stream-coordinator.test.ts"]
|
|
},
|
|
{
|
|
"id": "RT-02",
|
|
"previous": "NEW",
|
|
"disposition": "FIXED",
|
|
"summary": "A scheduler that cannot install a deadline fails closed inside the realtime result contract.",
|
|
"evidence": ["tests/unit/realtime/stream-coordinator.test.ts"]
|
|
},
|
|
{
|
|
"id": "TR-01",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "The vault snapshots a registration and everything nested in it before validating or storing it.",
|
|
"evidence": ["tests/unit/presigned-transfer.test.ts"]
|
|
},
|
|
{
|
|
"id": "TR-02",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "A source lease that arrives after the delivery ended is closed exactly once by a compensator.",
|
|
"evidence": ["tests/unit/presigned-transfer-delivery.test.ts"]
|
|
},
|
|
{
|
|
"id": "TR-03",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "The shared abort primitive settles once by observation order, and all four consumers use it with bound timer snapshots.",
|
|
"markers": ["X-AUDIT-01", "X-AUDIT-02"],
|
|
"evidence": [
|
|
"tests/unit/abortable-operation.test.ts",
|
|
"tests/unit/image-cdn-browser-probe.test.ts",
|
|
"tests/unit/resumable-upload-fetch-transport.test.ts"
|
|
]
|
|
},
|
|
{
|
|
"id": "TR-04",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "Teardown proves quiescence of the raw provider registry, not only of the wrappers that bound it.",
|
|
"evidence": ["tests/unit/resumable-upload-runtime-teardown.test.ts"]
|
|
},
|
|
{
|
|
"id": "TR-05",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "The control-plane decoder validates an owned snapshot, so a stateful answer cannot swap a checked value.",
|
|
"evidence": ["tests/unit/resumable-upload-http-control-plane.test.ts"]
|
|
},
|
|
{
|
|
"id": "SW-01",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "The activation marker read is bounded in bytes, cancels what it refuses and releases its reader lock.",
|
|
"evidence": ["tests/unit/service-worker-runtime.test.ts"]
|
|
},
|
|
{
|
|
"id": "SW-02",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "The generator and the runtime decoder share one canonical asset-path predicate, and the generator self-validates.",
|
|
"evidence": ["tests/unit/service-worker-web-push-remediation.test.ts"]
|
|
},
|
|
{
|
|
"id": "WP-01",
|
|
"previous": "PARTIAL",
|
|
"disposition": "FIXED",
|
|
"summary": "One observation authority per click; certainty is monotone and the late-effect tail is owned by `waitUntil`.",
|
|
"evidence": ["tests/unit/web-push-worker-runtime.test.ts"]
|
|
},
|
|
{
|
|
"id": "GOV-03",
|
|
"previous": "OPEN",
|
|
"disposition": "FIXED",
|
|
"summary": "This file plus `check:remediation-ledger` bind each row to a disposition and a test path, and block a blanket closure claim while any row is open.",
|
|
"evidence": ["scripts/check-remediation-ledger.ts"]
|
|
},
|
|
{
|
|
"id": "GOV-04",
|
|
"previous": "OPEN",
|
|
"disposition": "FIXED",
|
|
"summary": "The inventory gate requires the exact named consumer set to resolve its import to the shared primitive and prints the set.",
|
|
"evidence": ["scripts/check-adapter-inventory.ts"]
|
|
},
|
|
{
|
|
"id": "GOV-05",
|
|
"previous": "OPEN",
|
|
"disposition": "FIXED",
|
|
"summary": "Duplicate abort mechanics were consolidated onto the shared primitive and the file-transfer budget was reset to cover the remaining correctness code.",
|
|
"markers": [],
|
|
"evidence": ["config/recipes/frontend-capability-recipes.json"]
|
|
}
|
|
]
|
|
}
|