Skip to content

[finding] metadata-manager.ts:311 cites retired captureBefore as the witness for a live single-connection-pool hazard — needs a REPLACEMENT example, not deletion #7708

Description

@os-help

Split from #6978 item 2 (its item 1 landed via PR #7081; the remainder is cross-lane — this file is domain:metadata per the anchoring rule). Filed unassigned as a recording — not a claim.

Symptom

packages/metadata/src/metadata-manager.ts:311 cites captureBefore as the live example for a single-connection-pool stall hazard. #6656 retired captureBefore (merged 2026-08-09) and PR #7081 deleted its last consumer limb, so the cited witness no longer exists.

(Line number from the #6978 census of 2026-08-09; re-anchor by grepping captureBefore before editing.)

⚠️ Fix shape — this is NOT a mechanical comment deletion

The hazard claim is independent and still stands on DatabaseLoader._find() — only the cited example is gone. Deleting the sentence would quietly retire a live policy note. The fix is a replacement witness: re-anchor the comment on DatabaseLoader._find() (or another current caller that demonstrates the stall shape), keeping the policy statement intact. Whoever picks this up should verify the hazard's continued reality against the current pool implementation rather than trusting this card.

Evidence base

#6656 (retirement), #6978 (census + the explicit "replacement witness, not deletion" warning recorded twice), PR #7081.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions