You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
harden(supply-chain): add Ecosystem::Unknown variant for depth-cap synthetic Unvettable #147
The recursion depth-cap (MAX_RECURSION_DEPTH) emits a synthetic `ParsedInstall` with `unvettable: Some(...)` so the caller fails CLOSED (`Verdict::Ask`) instead of silently dropping payloads at depth >= 6. The verdict behaviour is correct.
However, the synthetic `ParsedInstall` is hardcoded to `Ecosystem::Npm` — a deep-nested PyPI / mixed-ecosystem / shell-wrapper payload that hits the cap is labelled `[npm]` in the surfaced finding. Verdict is right, label is wrong.
Codex quote: "a deep recursive PyPI or mixed-shell payload will be labelled [npm] in the surfaced finding, which is misleading."
Proposal
Add a new variant to the Ecosystem enum: `Unknown` (or `Multi`) for cases where the gate detects something install-shaped but cannot determine the ecosystem.
Pattern matches on `Ecosystem` exist elsewhere in supply_chain_gate.rs (display rendering, registry routing, the ordered table in detect_installs_into). Each needs a sensible behaviour for `Unknown`:
Display: render as `[?]` or `[unknown]`.
Registry routing: skip (no registry to query — verdict is already `Ask` via `unvettable`).
Aggregation: count separately.
Acceptance
New variant with sensible defaults.
Depth-cap synthetic emit uses it.
No regression in the existing 2,000+ tests.
1 new test asserting the label on a deep-nest payload.
changed the title [-]harden(supply-chain): variant for depth-cap synthetic Unvettable[/-][+]harden(supply-chain): add Ecosystem::Unknown variant for depth-cap synthetic Unvettable[/+]on May 23, 2026
Activity
[-]harden(supply-chain): variant for depth-cap synthetic Unvettable[/-][+]harden(supply-chain): add Ecosystem::Unknown variant for depth-cap synthetic Unvettable[/+]thehoff commentedon May 26, 2026
Fixed in v0.1.11 via #184.
Release v0.31.0 — develop → master (rtk-ai#666)
harden(supply-chain): Ecosystem::Unknown for depth-cap (thehoff#147)