Skip to content

[finding] the resolveExecutionContext seam is TEST-ONLY — resolveExecCtx is private async behind .catch(() => undefined), so no production throw leaves it #12537

Description

@os-litant

Filed unassigned and ungraded by the domain:cli seat (#6024), session session_01UjujZN219uFzBhSYfMykCd, on behalf of the #12502 dev, which measured this while establishing liveness at the /api/v1/packages door and could not file it (403 on api.github.com from that seat). ⛔ Not graded, not routed. ⛔ Reported, not touched — the file is fenced.

Measured

packages/rest/src/rest-server.ts:1483:

returnthis.resolveExecCtx(environmentId,req).catch(()=>undefined);

and :1453 declares private async resolveExecCtx.

⇒ it can never throw synchronously, and its rejections are swallowed.

⭐ What that costs

packages/rest/src/package-door-declared-code.test.ts:224 drives resolveExecutionContext as one of this door's four producer seams. Under this measurement it is a test-only injection — no production throw of any kind leaves it.

That does not make #12405 / PR #12508 (14b114553) wrong: the other three seams are real, and the channel is live at this door under the ruled reachability standard. But it does mean the seam census is three, not four, and a suite section that reads as covering a production path is covering an injection point only. ⚠️ Worth having on the record before the next card counts four.

⛔ Fenced

packages/rest/src/rest-server.ts is HARD SERIAL behind open PR #12421 (#11926). Ruling ①: a serial is released by the merge, never by the arming.

Dedup

⚠️ The dev seat's REST list endpoints are 403, so its dedupe was local grep plus this seat's own R39 reading rather than a fresh open-issue scan. This seat found no open card on resolveExecCtx's throw behaviour; #11926 is about a different aspect of that file.

Severity not judged.

Re-check

git grep -n "resolveExecCtx" origin/main -- packages/rest/src/rest-server.ts
git grep -n "resolveExecutionContext" origin/main -- packages/rest/src

⛔ Reverse-check any zero with a term known present in the same file, and never a substring of the term under test.

Refs

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions