Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,5 @@
- 배포 스모크가 `/health`와 `/exchange`의 no-store/nosniff 보안 헤더 및 `/exchange` 401 Bearer challenge까지 검증하도록 `smoke-readiness.sh`와 회귀 테스트를 보강.
- `/exchange` 401 응답에 `WWW-Authenticate: Bearer realm="noema"` challenge를 추가하고 인증 누락은 `invalid_request`, 잘못된 토큰은 `invalid_token`으로 구분.
- `x-request-id`/`x-correlation-id` 및 client IP 계열 헤더를 길이/문자 기준으로 제한해 로그 오염과 rate-limit key 폭주를 방지.
- `KRW 2,000,000,000` 매각 가능성 Goal 등록서, buyer due diligence index, library/submodule 경계 판단서를 추가하고 `npm run acquisition:audit`로 ARR/LOI/이전성/saleable evidence를 실패-폐쇄 방식으로 검증.
- `KRW 2,000,000,000` 매각 가능성 Goal 등록서, buyer due diligence index, library/submodule 경계 판단서를 추가하고 `npm run acquisition:audit`로 ARR/LOI/이전성/saleable evidence를 실패-폐쇄 방식으로 검증.
- Protected #695 normalizes synchronous reader acquisition on the contextual-orchestrator `/healthz` response consumer at exact source `c9d526093e543167645383e937096fd089b337f8`. If a locked or otherwise non-stream-readable response body makes `response.body.getReader()` throw synchronously, Noema fails closed with `contextual-orchestrator health response body is not stream-readable` instead of leaking a runtime-specific stream exception. The existing 65,536-byte ceiling, optional caller-supplied deadline with no invented default timeout, fixed retained buffer, best-effort cancellation, fatal UTF-8, duplicate-key/JSON admission, and reader-lock lifecycle after successful acquisition remain unchanged. Contextual-orchestrator service/provider/model routing, credentials, outbound authority, quarantine/security authority, release/deployment authority, and foreign-domain truth remain with their existing owners; protected source is not an immutable release or deployed availability/p95/recovery evidence. PR #695.
8 changes: 7 additions & 1 deletion docs/product-technical-gap-baseline.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,10 @@ PR 0은 useful work를 닫아 제조하지 않는다. Open lane은 normal merge

## Release boundary

Dated release observation for this repair (2026-09-13 KST)는 GitHub Releases 0건이다. GitHub release collection에 immutable Noema release가 실제 존재하기 전 version/tag/package/SBOM/provenance/reproducibility/rollback completion을 주장하지 않는다. Release-ready exact protected head에서만 publication하고 consumer는 released/versioned contract만 bump한다.
Dated release observation for this repair (2026-09-13 KST)는 GitHub Releases 0건이다. GitHub release collection에 immutable Noema release가 실제 존재하기 전 version/tag/package/SBOM/provenance/reproducibility/rollback completion을 주장하지 않는다. Release-ready exact protected head에서만 publication하고 consumer는 released/versioned contract만 bump한다.

## Protected contextual-orchestrator health reader acquisition — merged PR #695

Protected history includes merged PR #695 exact `c9d526093e543167645383e937096fd089b337f8`. Protected #695 closes the contextual-orchestrator health response reader-acquisition gap: if a locked or otherwise non-stream-readable `/healthz` response body makes `response.body.getReader()` throw synchronously, Noema fails closed with `contextual-orchestrator health response body is not stream-readable` instead of leaking a runtime stream exception. The existing 65,536-byte ceiling, optional caller-supplied deadline with no invented default timeout, fixed retained buffer, best-effort cancellation, fatal UTF-8, duplicate-key/JSON admission, and reader-lock lifecycle after successful acquisition remain unchanged.

#695 remains protected source evidence; immutable release and deployed availability/p95/recovery evidence remain separate. #695 does not transfer contextual-orchestrator service, provider/model routing, credential, outbound, quarantine/security, release/deployment, or foreign domain authority to Noema.
44 changes: 44 additions & 0 deletions test/orchestrator-health-reader-authority.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";

describe("protected orchestrator health reader-acquisition documentation authority", () => {
it("records protected #695 without promoting release or orchestrator authority", () => {
const baseline = readFileSync("docs/product-technical-gap-baseline.md", "utf8");
const changelog = readFileSync("CHANGELOG.md", "utf8");
const source = readFileSync("scripts/lib/orchestrator-gateway.mjs", "utf8");

expect(baseline).toContain(
"merged PR #695 exact `c9d526093e543167645383e937096fd089b337f8`",
);
expect(baseline).toContain(
"Protected #695 closes the contextual-orchestrator health response reader-acquisition gap",
);
expect(baseline).toContain(
"#695 remains protected source evidence; immutable release and deployed availability/p95/recovery evidence remain separate",
);
expect(baseline).toContain(
"#695 does not transfer contextual-orchestrator service, provider/model routing, credential, outbound, quarantine/security, release/deployment, or foreign domain authority to Noema",
);
expect(changelog).toContain(
"Protected #695 normalizes synchronous reader acquisition on the contextual-orchestrator `/healthz` response consumer at exact source `c9d526093e543167645383e937096fd089b337f8`",
);
expect(changelog).toContain("PR #695.");

// Documentation convergence must not rewrite unrelated protected history.
expect(changelog).toContain(
"Distributed `/exchange` rate-limit의 private Durable Object request(256 bytes)와 decision response(4,096 bytes) bounded stream reader",
);
expect(baseline).toContain(
"Cross-service SQL과 mutable sibling PR dependency는 금지한다.\n\nProtected #681 exact",
);
expect(baseline).toContain(
"historical Git lineage에 남아 있다.\n\nProtected source는 durable append-only lifecycle evidence의 prerequisite",
);

expect(source).toContain(
'\"contextual-orchestrator health response body is not stream-readable\"',
);
expect(source).toContain("HEALTH_BODY_LIMIT_BYTES = 65_536");
expect(source).toContain("void reader.cancel().catch(() => undefined);");
});
});
Loading