From b9d463dcc5f720284731b3048e1726f60879e518 Mon Sep 17 00:00:00 2001 From: Nam Rodriguez Date: Thu, 12 Nov 2026 07:31:09 -0500 Subject: [PATCH] Security update runs: planned by rule, verified in the sandbox, never stuck A dependency fix run now plans its bumps by rule (urgent and reachable findings always; the lowest fixed version on each version line for the rest; majors only when an urgent finding needs one or no line fix exists and reachability is unknown; majors for findings that aren't reachable deferred with their reason). The sandbox applies each batch, writes the lockfile with the repository's own package manager and runs its checks; a red batch is halved until the breaking bump is found and deferred, the rest is committed green. The base branch's own failures are noted, never blamed. The coder only changes call sites of an urgent major, once. The bump list is the plan (no documentation tasks), a documentation task the ticket doesn't name never holds any run, a coder turn cut at the output limit before any call is nudged on, and a security run never ends needs_input: it ships what is green with every deferral and its reason. Budget per run (fix_run_budget_cents, default 300), checkpointed and resumable; cost reported per batch under What to check. --- services/common/src/dep_fix.rs | 1684 +++ services/common/src/dep_fix/tests.rs | 1253 +++ services/common/src/lib.rs | 3 + services/common/src/security_fixes.rs | 52 + .../src/security_testdata/dep_fix_replay.json | 9018 +++++++++++++++++ services/common/src/upgrade_notes.rs | 9 + services/worker/src/agent/anthropic.rs | 72 + services/worker/src/passes/dep_fix.rs | 1091 ++ services/worker/src/passes/mod.rs | 221 +- services/worker/src/passes/plan_coverage.rs | 16 + services/worker/src/passes/security_fixes.rs | 113 +- 11 files changed, 13509 insertions(+), 23 deletions(-) create mode 100644 services/common/src/dep_fix.rs create mode 100644 services/common/src/dep_fix/tests.rs create mode 100644 services/common/src/security_testdata/dep_fix_replay.json create mode 100644 services/worker/src/passes/dep_fix.rs diff --git a/services/common/src/dep_fix.rs b/services/common/src/dep_fix.rs new file mode 100644 index 000000000..676d0ba9b --- /dev/null +++ b/services/common/src/dep_fix.rs @@ -0,0 +1,1684 @@ +//! A dependency fix run, decided by rules and proven in the sandbox before +//! anything is pushed. +//! +//! Two bundle runs once went wrong the same way. One planned nine tasks for +//! 64 packages (eight manifests and a README table no one asked for), spent +//! five steps on the README task while the coder ran out of output tokens +//! before writing it, and stopped asking a person; the branch it left had +//! manifests without a lockfile, so seven CI checks failed. The other +//! migrated 24 files for 37 major upgrades of packages that weren't +//! reachable, never ran a check (the sandbox's frozen install refused the +//! manifests before the lockfile was written) and finished red. +//! +//! Now: +//! +//! 1. [`plan`] reads the findings and decides each bump by rule. A P0 or P1 +//! finding, or a reachable one, is always fixed. Every other finding gets +//! the lowest fixed version on its own version line (a patch or minor +//! bump, or an override that keeps the line). A major upgrade goes in only +//! for an urgent finding, or when no fixed version exists on the line, the +//! reachability is not known and the policy fixes majors in the pull +//! request. A major for a finding that is not reachable is deferred with +//! its reason, and the finding stays open. Bumps come out in risk batches: +//! urgent same-line bumps, safe same-line bumps, urgent majors, other +//! majors. +//! 2. [`DepRun`] verifies them: the repository's own checks run once on the +//! base branch (what fails there is noted, never blamed on a bump), then +//! on each batch with its bumps applied and the lockfile written by the +//! repository's own package manager. A red batch is halved until the bump +//! that breaks a check is found; that bump is dropped (or, for a major +//! the run must fix, handed to the coder once with the failing output and +//! its release notes) and the rest is committed green. Only verified sets +//! are committed, one commit per green set, so progress is kept across +//! steps. +//! 3. The state is plain data ([`DepRun`] serializes): a step that runs out +//! of time, or a run that reaches its budget, resumes where it stopped. +//! +//! Nothing here asks a person. A bump that cannot ship is deferred with the +//! reason, and the run ends with a pull request of what is green. +//! +//! The rules are pure; the worker (`passes::dep_fix`) runs the probes. + +use std::collections::BTreeMap; + +use serde::{Deserialize, Serialize}; + +use crate::security_fixes::{ + compare_versions, is_major_bump, version_line, Finding, FindingState, MajorBumps, + SecurityConfig, Tier, Verdict, +}; + +// ── Limits ────────────────────────────────────────────────────────────── + +/// Major upgrades one run attempts; the rest wait for the next run. +pub const MAX_MAJORS_PER_RUN: usize = 6; +/// Bumps one run attempts in all. +pub const MAX_BUMPS_PER_RUN: usize = 120; +/// Sandbox probes one run may start (a probe is one sandbox build). +pub const MAX_PROBES: u32 = 40; +/// Probes started at once. +pub const MAX_PARALLEL_PROBES: usize = 4; +/// Coder attempts at call sites for a major the run must fix. +pub const MAX_CODE_FIXES: u32 = 2; +/// A sandbox build that gives no result is tried this many times in all. +pub const MAX_BROKEN_PROBES: u32 = 2; +/// The default model budget of one dependency fix run, in cents. +pub const DEFAULT_RUN_BUDGET_CENTS: u32 = 300; + +// ── The plan ──────────────────────────────────────────────────────────── + +/// How risky a bump is; batches are verified in this order. +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)] +#[serde(rename_all = "snake_case")] +pub enum Risk { + /// A P0/P1 or reachable finding, fixed on its own version line. + Urgent, + /// Every other finding fixed on its own version line. + Safe, + /// A major upgrade an urgent finding needs. + UrgentMajor, + /// A major upgrade with no fixed version on the line, reachability not + /// known, and the policy fixing majors in the pull request. + Major, +} + +impl Risk { + pub fn label(self) -> &'static str { + match self { + Risk::Urgent => "urgent fixes on their version line", + Risk::Safe => "fixes on their version line", + Risk::UrgentMajor => "major upgrades urgent findings need", + Risk::Major => "major upgrades with no fix on the line", + } + } + pub fn is_major(self) -> bool { + matches!(self, Risk::UrgentMajor | Risk::Major) + } +} + +/// One package bump the run applies: one version line of one package in one +/// lockfile. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] +#[serde(default)] +pub struct PlanBump { + pub package: String, + /// The lowest current version on the line. + pub from: String, + pub to: String, + /// The version line it applies to (`4`, `0.12`): an override selector. + pub line: String, + /// The lockfile (or manifest) the findings name. + pub manifest: String, + pub major: bool, + pub risk: Option, + pub finding_ids: Vec, + /// Why it is in the run, in a few words. + pub why: String, +} + +impl PlanBump { + pub fn key(&self) -> String { + format!( + "{}@{}:{}", + self.package.to_ascii_lowercase(), + self.line, + self.manifest + ) + } + pub fn risk(&self) -> Risk { + self.risk.unwrap_or(Risk::Safe) + } +} + +/// A bump the run leaves out, with why. Its findings stay open. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] +#[serde(default)] +pub struct Deferral { + pub package: String, + pub from: String, + /// The version that would fix it (a major, for most). + pub to: String, + pub manifest: String, + pub finding_ids: Vec, + pub reason: String, + /// It can come back by itself in a later run (a cap, the budget, time): + /// not a decision about the bump. + pub later: bool, +} + +impl Deferral { + /// `` `@x/y` 4.11.3 to 5.5.0 deferred: `` + pub fn line(&self) -> String { + let at = if self.manifest.contains('/') { + format!(" in `{}`", self.manifest) + } else { + String::new() + }; + format!( + "`{}` {} to {}{at} deferred: {}", + self.package, self.from, self.to, self.reason + ) + } +} + +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] +#[serde(default)] +pub struct DepPlan { + pub bumps: Vec, + pub deferred: Vec, +} + +impl DepPlan { + /// The bumps of each risk batch, in verification order (indices into + /// `bumps`). Majors are verified one per batch: one that breaks never + /// holds another back. + pub fn batches(&self) -> Vec<(Risk, Vec)> { + let mut out = vec![]; + for risk in [Risk::Urgent, Risk::Safe] { + let ids: Vec = (0..self.bumps.len()) + .filter(|&i| self.bumps[i].risk() == risk) + .collect(); + if !ids.is_empty() { + out.push((risk, ids)); + } + } + for risk in [Risk::UrgentMajor, Risk::Major] { + for i in 0..self.bumps.len() { + if self.bumps[i].risk() == risk { + out.push((risk, vec![i])); + } + } + } + out + } + + /// The tasks a run of this plan has: one per lockfile, from the bump + /// list. Never documentation. + pub fn tasks_md(&self) -> String { + let mut by: BTreeMap<&str, Vec<&PlanBump>> = BTreeMap::new(); + for b in &self.bumps { + by.entry(b.manifest.as_str()).or_default().push(b); + } + let mut s = String::new(); + for (manifest, bumps) in by { + let names: Vec = bumps + .iter() + .take(6) + .map(|b| format!("`{}` {} to {}", b.package, b.from, b.to)) + .collect(); + let more = bumps.len().saturating_sub(6); + s.push_str(&format!( + "- [ ] `{}`: apply {} bump(s) for this lockfile ({}{}) and write the lockfile with its own package manager\n", + manifest, + bumps.len(), + names.join(", "), + if more > 0 { + format!(", and {more} more") + } else { + String::new() + } + )); + } + s + } +} + +/// A finding that must be fixed in this run, whatever it takes. +pub fn urgent(f: &Finding) -> bool { + matches!(f.tier, Some(Tier::P0) | Some(Tier::P1)) || f.verdict == Verdict::Reachable +} + +fn is_prerelease(v: &str) -> bool { + v.contains('-') || v.chars().any(|c| c.is_ascii_alphabetic()) +} + +/// The fixed versions the sources name for a finding, its own first. +fn fixed_versions(f: &Finding, st: &FindingState) -> Vec { + let mut v: Vec = st.fixed.clone(); + if let Some(x) = &f.fixed_version { + v.push(x.clone()); + } + v.retain(|x| !x.trim().is_empty() && !is_prerelease(x)); + v.sort_by(|a, b| compare_versions(a, b)); + v.dedup(); + v +} + +/// The lowest fixed version above the current one on its own line. +pub fn same_line_fix(f: &Finding, st: &FindingState) -> Option { + fixed_versions(f, st).into_iter().find(|x| { + compare_versions(x, &f.version) == std::cmp::Ordering::Greater + && version_line(x) == version_line(&f.version) + }) +} + +/// The lowest fixed version above the current one on any line. +pub fn lowest_fix(f: &Finding, st: &FindingState) -> Option { + fixed_versions(f, st) + .into_iter() + .find(|x| compare_versions(x, &f.version) == std::cmp::Ordering::Greater) +} + +/// What the plan does with one finding. +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum Choice { + /// Fix it at this version (`risk` says which batch). + Include { to: String, risk: Risk }, + /// Leave it out of this run, with the reason. + Defer { to: String, reason: String }, + /// The policy opens only an issue for its major upgrade (it stands + /// alone, outside the bundle). + IssueOnly, +} + +/// The rule for one finding (see the module notes). +pub fn choose(f: &Finding, st: &FindingState, cfg: &SecurityConfig) -> Option { + let must = urgent(f); + if let Some(to) = same_line_fix(f, st) { + let risk = if must { Risk::Urgent } else { Risk::Safe }; + return Some(Choice::Include { to, risk }); + } + let to = lowest_fix(f, st)?; + if !is_major_bump(&f.version, &to) { + // A fixed version off the line the version scheme still calls + // compatible (rare): fixed like a same-line bump. + let risk = if must { Risk::Urgent } else { Risk::Safe }; + return Some(Choice::Include { to, risk }); + } + if must { + return Some(Choice::Include { + to, + risk: Risk::UrgentMajor, + }); + } + if matches!(f.verdict, Verdict::NotReachable | Verdict::NotLoaded) { + let why = if f.verdict == Verdict::NotLoaded { + "not loaded at runtime" + } else { + "not reachable" + }; + return Some(Choice::Defer { + reason: format!( + "{why}, and only a major version ({} to {}) fixes it, with breaking changes; it opens when it becomes reachable or urgent, or when a person asks for it", + version_line(&f.version), + version_line(&to) + ), + to, + }); + } + if cfg.major_bumps == MajorBumps::IssueOnly { + return Some(Choice::IssueOnly); + } + Some(Choice::Include { + to, + risk: Risk::Major, + }) +} + +/// Why a fixable finding stays out of the bundle, when the rule defers it +/// (the dashboard shows it as the finding's wait reason). +pub fn defer_reason(f: &Finding, st: &FindingState, cfg: &SecurityConfig) -> Option { + if let Some(d) = &st.deferred { + if d.holds(f) { + return Some(d.reason.clone()); + } + } + match choose(f, st, cfg)? { + Choice::Defer { to, reason } => Some(format!( + "`{}` {} to {} deferred: {reason}", + f.package, f.version, to + )), + _ => None, + } +} + +/// A run's own deferral of a finding: a bump that broke the checks and +/// could not be fixed in the run. It holds while the finding reads the same +/// (tier, verdict, fixed version) and for [`RUN_DEFERRAL_DAYS`]; a person +/// asking for the fix lifts it. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] +#[serde(default)] +pub struct RunDeferral { + pub reason: String, + pub at: String, + pub tier: Option, + pub verdict: Verdict, + pub to: String, +} + +pub const RUN_DEFERRAL_DAYS: i64 = 30; + +impl RunDeferral { + pub fn new(f: &Finding, reason: &str, now: chrono::DateTime) -> Self { + RunDeferral { + reason: reason.to_string(), + at: now.to_rfc3339(), + tier: f.tier, + verdict: f.verdict, + to: f.fixed_version.clone().unwrap_or_default(), + } + } + + /// Still holds: the finding reads as it did, and it isn't too old. + pub fn holds(&self, f: &Finding) -> bool { + self.holds_at(f, chrono::Utc::now()) + } + + pub fn holds_at(&self, f: &Finding, now: chrono::DateTime) -> bool { + let fresh = crate::security_fixes::parse_time(&self.at) + .is_some_and(|t| now - t < chrono::Duration::days(RUN_DEFERRAL_DAYS)); + fresh + && self.tier == f.tier + && self.verdict == f.verdict + && self.to == f.fixed_version.clone().unwrap_or_default() + } +} + +/// The lockfile a finding's bump is applied through: its own when it names +/// one; for a manifest, the lockfile beside it (or the root's, for a +/// workspace member); for a finding read from the SBOM alone, the root's +/// when the repository has exactly one JavaScript lockfile there. None when +/// it can't be told. +pub fn lockfile_for(manifest: &str, lockfiles: &[String]) -> Option { + if Manager::of_lockfile(manifest).is_some() { + return Some(manifest.to_string()); + } + let js: Vec<&String> = lockfiles + .iter() + .filter(|l| Manager::of_lockfile(l).is_some()) + .collect(); + let root: Vec<&&String> = js.iter().filter(|l| !l.contains('/')).collect(); + let name = manifest.rsplit('/').next().unwrap_or(manifest); + if name == "package.json" { + let dir = dir_of(manifest); + if let Some(l) = js.iter().find(|l| dir_of(l) == dir) { + return Some((*l).clone()); + } + } + match root.as_slice() { + [one] => Some((**one).clone()), + _ => None, + } +} + +/// [`plan`] for a repository with these lockfiles: each finding's bump goes +/// through the lockfile [`lockfile_for`] names, and one whose lockfile can't +/// be told is deferred with that reason. +pub fn plan_in( + members: &[(&Finding, &FindingState)], + cfg: &SecurityConfig, + lockfiles: &[String], +) -> DepPlan { + let mut placed: Vec<(Finding, FindingState)> = vec![]; + let mut lost: Vec<&Finding> = vec![]; + for (f, st) in members { + match lockfile_for(&f.manifest, lockfiles) { + Some(lock) => { + let mut f = (*f).clone(); + f.manifest = lock; + placed.push((f, (*st).clone())); + } + None => lost.push(f), + } + } + let pairs: Vec<(&Finding, &FindingState)> = placed.iter().map(|(f, s)| (f, s)).collect(); + let mut out = plan(&pairs, cfg); + let mut by: BTreeMap<(String, String), Deferral> = BTreeMap::new(); + for f in lost { + let d = by + .entry((f.package.to_ascii_lowercase(), f.version.clone())) + .or_insert_with(|| Deferral { + package: f.package.clone(), + from: f.version.clone(), + to: f.fixed_version.clone().unwrap_or_default(), + manifest: f.manifest.clone(), + reason: "the lockfile it is installed through can't be told from the repository, so the sandbox can't apply and verify it".into(), + ..Default::default() + }); + d.finding_ids.push(f.id.clone()); + } + out.deferred.extend(by.into_values()); + out +} + +/// The plan for a unit's findings. +pub fn plan(members: &[(&Finding, &FindingState)], cfg: &SecurityConfig) -> DepPlan { + // One group per (package, lockfile, version line of the current version). + #[derive(Default)] + struct Group { + package: String, + manifest: String, + line: String, + from: String, + to: String, + risk: Option, + ids: Vec, + deferred: Vec<(String, String, String)>, // (id, to, reason) + urgent: usize, + n: usize, + } + let mut groups: BTreeMap<(String, String, String), Group> = BTreeMap::new(); + for (f, st) in members { + if f.version.trim().is_empty() { + continue; + } + let key = ( + f.package.to_ascii_lowercase(), + f.manifest.clone(), + version_line(&f.version), + ); + let g = groups.entry(key).or_insert_with(|| Group { + package: f.package.clone(), + manifest: f.manifest.clone(), + line: version_line(&f.version), + from: f.version.clone(), + ..Default::default() + }); + if compare_versions(&f.version, &g.from) == std::cmp::Ordering::Less { + g.from = f.version.clone(); + } + g.n += 1; + let held = st.deferred.as_ref().filter(|d| d.holds(f)); + let choice = match held { + Some(d) => Some(Choice::Defer { + to: f.fixed_version.clone().unwrap_or_default(), + reason: d.reason.clone(), + }), + None => choose(f, st, cfg), + }; + match choice { + Some(Choice::Include { to, risk }) => { + if urgent(f) { + g.urgent += 1; + } + if g.to.is_empty() || compare_versions(&to, &g.to) == std::cmp::Ordering::Greater { + g.to = to; + } + g.risk = Some(match g.risk { + Some(r) => worst(r, risk), + None => risk, + }); + g.ids.push(f.id.clone()); + } + Some(Choice::Defer { to, reason }) => g.deferred.push((f.id.clone(), to, reason)), + // Its own issue (`stands_alone`), never in the bundle. + Some(Choice::IssueOnly) | None => {} + } + } + let mut out = DepPlan::default(); + // A yarn lockfile pins one version of a package for all its parents: + // one line per package (the highest) goes in, the others wait. + let mut yarn_lines: BTreeMap<(String, String), usize> = BTreeMap::new(); + let mut majors = 0usize; + let mut groups: Vec = groups.into_values().collect(); + // Urgent first, so a cap never drops one of them. + groups.sort_by_key(|g| (g.risk.unwrap_or(Risk::Safe), std::cmp::Reverse(g.urgent))); + for g in groups { + if !g.ids.is_empty() { + let major = is_major_bump(&g.from, &g.to); + let risk = g.risk.unwrap_or(Risk::Safe); + let yarn = g.manifest.ends_with("yarn.lock"); + let yarn_taken = yarn + && yarn_lines.contains_key(&(g.package.to_ascii_lowercase(), g.manifest.clone())); + let reason = if yarn_taken { + Some(( + "a yarn lockfile pins one version of a package; another version line of it is fixed in this run, and this one needs its parent upgraded".to_string(), + false, + )) + } else if major && majors >= MAX_MAJORS_PER_RUN && !matches!(risk, Risk::UrgentMajor) { + Some(( + format!("one run takes at most {MAX_MAJORS_PER_RUN} major upgrades; the next run takes it"), + true, + )) + } else if out.bumps.len() >= MAX_BUMPS_PER_RUN + && !matches!(risk, Risk::Urgent | Risk::UrgentMajor) + { + Some(( + format!( + "one run takes at most {MAX_BUMPS_PER_RUN} bumps; the next run takes it" + ), + true, + )) + } else { + None + }; + match reason { + Some((reason, later)) => out.deferred.push(Deferral { + package: g.package.clone(), + from: g.from.clone(), + to: g.to.clone(), + manifest: g.manifest.clone(), + finding_ids: g.ids.clone(), + reason, + later, + }), + None => { + if major { + majors += 1; + } + if yarn { + yarn_lines.insert((g.package.to_ascii_lowercase(), g.manifest.clone()), 1); + } + let why = match risk { + Risk::Urgent => format!("{} urgent finding(s)", g.urgent), + Risk::Safe => "a fix on the same version line".to_string(), + Risk::UrgentMajor => format!( + "{} urgent finding(s) and no fix on the {} line", + g.urgent, g.line + ), + Risk::Major => { + format!("no fix on the {} line and reachability not known", g.line) + } + }; + out.bumps.push(PlanBump { + package: g.package.clone(), + from: g.from.clone(), + to: g.to.clone(), + line: g.line.clone(), + manifest: g.manifest.clone(), + major, + risk: Some(if major && !risk.is_major() { + // Off the line though the scheme called it + // compatible: verified on its own like a major. + Risk::Major + } else { + risk + }), + finding_ids: g.ids.clone(), + why, + }); + } + } + } + if !g.deferred.is_empty() { + // One line per package and line: the highest version it needs. + let mut to = String::new(); + for (_, t, _) in &g.deferred { + if to.is_empty() || compare_versions(t, &to) == std::cmp::Ordering::Greater { + to = t.clone(); + } + } + let reason = g.deferred[0].2.clone(); + out.deferred.push(Deferral { + package: g.package.clone(), + from: g.from.clone(), + to, + manifest: g.manifest.clone(), + finding_ids: g.deferred.iter().map(|(id, _, _)| id.clone()).collect(), + reason, + later: false, + }); + } + } + out.bumps + .sort_by_key(|b| (b.risk(), b.package.to_ascii_lowercase(), b.manifest.clone())); + out.deferred + .sort_by_key(|d| (d.package.to_ascii_lowercase(), d.manifest.clone())); + out +} + +fn worst(a: Risk, b: Risk) -> Risk { + // A group's batch is its riskiest member's, an urgent one winning a tie + // within majors and within same-line fixes. + match (a.is_major() || b.is_major(), a, b) { + (true, Risk::UrgentMajor, _) | (true, _, Risk::UrgentMajor) => Risk::UrgentMajor, + (true, _, _) => Risk::Major, + (false, Risk::Urgent, _) | (false, _, Risk::Urgent) => Risk::Urgent, + _ => Risk::Safe, + } +} + +// ── Applying bumps in the sandbox ─────────────────────────────────────── + +/// The package manager of a lockfile, for its manifest edits. +#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] +#[serde(rename_all = "snake_case")] +pub enum Manager { + Pnpm, + Npm, + Yarn, +} + +impl Manager { + pub fn of_lockfile(path: &str) -> Option { + let name = path.rsplit('/').next().unwrap_or(path); + match name { + "pnpm-lock.yaml" => Some(Manager::Pnpm), + "package-lock.json" | "npm-shrinkwrap.json" => Some(Manager::Npm), + "yarn.lock" => Some(Manager::Yarn), + _ => None, + } + } + pub fn as_str(self) -> &'static str { + match self { + Manager::Pnpm => "pnpm", + Manager::Npm => "npm", + Manager::Yarn => "yarn", + } + } +} + +/// Whether every bump of the plan is in a lockfile the sandbox can edit and +/// write (npm, pnpm, yarn). Other ecosystems keep the coder's flow. +pub fn applies_to(plan: &DepPlan) -> bool { + !plan.bumps.is_empty() + && plan + .bumps + .iter() + .all(|b| Manager::of_lockfile(&b.manifest).is_some()) +} + +/// What the apply script is told for one lockfile. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct ApplySpec { + pub manager: Manager, + /// The lockfile's folder (`""` for the root). + pub root: String, + pub bumps: Vec, +} + +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct ApplyBump { + pub name: String, + pub line: String, + pub to: String, +} + +fn dir_of(path: &str) -> String { + path.rsplit_once('/') + .map(|(d, _)| d.to_string()) + .unwrap_or_default() +} + +/// The apply specs for a set of bumps, one per lockfile. +pub fn specs(bumps: &[&PlanBump]) -> Vec { + let mut by: BTreeMap = BTreeMap::new(); + for b in bumps { + let Some(manager) = Manager::of_lockfile(&b.manifest) else { + continue; + }; + let spec = by.entry(b.manifest.clone()).or_insert_with(|| ApplySpec { + manager, + root: dir_of(&b.manifest), + bumps: vec![], + }); + spec.bumps.push(ApplyBump { + name: b.package.clone(), + line: b.line.clone(), + to: b.to.clone(), + }); + } + by.into_values().collect() +} + +/// The script that edits the manifests: a direct dependency's range is +/// raised where a manifest declares it on the bump's version line (its +/// prefix kept); a transitive one gets an override scoped to its line +/// (`pnpm.overrides["pkg@4"]`, npm `overrides["pkg@4"]`, yarn +/// `resolutions["pkg"]`). Formatting is kept (indent, trailing newline). +/// It prints one `CODERHELM_APPLY ` line saying what it did. +pub const APPLY_JS: &str = r#" +const fs = require('fs'), path = require('path'); +const specs = JSON.parse(Buffer.from(process.argv[2], 'base64').toString('utf8')); +const LOCKS = ['pnpm-lock.yaml', 'package-lock.json', 'npm-shrinkwrap.json', 'yarn.lock']; +const SECTIONS = ['dependencies', 'devDependencies', 'optionalDependencies']; +function lineOf(v) { + const m = String(v).match(/(\d+)(?:\.(\d+))?/); + if (!m) return null; + return m[1] === '0' ? '0.' + (m[2] || '0') : m[1]; +} +function walk(dir, root, out) { + for (const e of fs.readdirSync(dir, { withFileTypes: true })) { + if (e.name === 'node_modules' || e.name === '.git') continue; + const p = path.join(dir, e.name); + if (e.isDirectory()) { + // A folder with its own lockfile is another project. + if (LOCKS.some((l) => fs.existsSync(path.join(p, l)))) continue; + walk(p, root, out); + } else if (e.name === 'package.json') out.push(p); + } + return out; +} +function read(p) { + const text = fs.readFileSync(p, 'utf8'); + const m = text.match(/^([ \t]+)"/m); + return { json: JSON.parse(text), indent: m ? m[1] : ' ', nl: text.endsWith('\n') }; +} +function write(p, f) { + fs.writeFileSync(p, JSON.stringify(f.json, null, f.indent) + (f.nl ? '\n' : '')); +} +const report = []; +for (const spec of specs) { + const root = spec.root || '.'; + const files = walk(root, root, []); + const loaded = new Map(files.map((p) => [p, read(p)])); + const rootPkg = path.join(root, 'package.json'); + const changed = new Set(); + for (const b of spec.bumps) { + let raised = []; + for (const [p, f] of loaded) { + for (const s of SECTIONS) { + const deps = f.json[s]; + if (!deps || typeof deps[b.name] !== 'string') continue; + const cur = deps[b.name]; + if (/^(workspace:|npm:|file:|link:|git|http|catalog:)/.test(cur)) continue; + if (lineOf(cur) !== b.line) continue; + const m = cur.match(/^([~^>=< ]*)/); + const prefix = m ? m[1].trim() : ''; + const next = (prefix.startsWith('>') || prefix.startsWith('<') ? '^' : prefix) + b.to; + if (cur !== next) { deps[b.name] = next; changed.add(p); } + raised.push(path.relative('.', p)); + } + } + if (raised.length) { report.push({ name: b.name, line: b.line, how: 'raised', where: raised }); continue; } + const f = loaded.get(rootPkg) || (fs.existsSync(rootPkg) ? read(rootPkg) : null); + if (!f) { report.push({ name: b.name, line: b.line, how: 'skipped', where: ['no package.json at ' + root] }); continue; } + loaded.set(rootPkg, f); + let table, key; + if (spec.manager === 'pnpm') { + f.json.pnpm = f.json.pnpm || {}; + table = f.json.pnpm.overrides = f.json.pnpm.overrides || {}; + key = b.name + '@' + b.line; + } else if (spec.manager === 'npm') { + table = f.json.overrides = f.json.overrides || {}; + key = b.name + '@' + b.line; + } else { + table = f.json.resolutions = f.json.resolutions || {}; + key = b.name; + } + // An unscoped override already on the same line is raised, not doubled. + if (key !== b.name && typeof table[b.name] === 'string' && lineOf(table[b.name]) === b.line) key = b.name; + const value = '^' + b.to; + if (table[key] !== value) { table[key] = value; changed.add(rootPkg); } + report.push({ name: b.name, line: b.line, how: 'override', where: [path.relative('.', rootPkg) + ' ' + key] }); + } + for (const p of changed) write(p, loaded.get(p)); +} +console.log('CODERHELM_APPLY ' + JSON.stringify(report)); +"#; + +/// Base64 (standard, padded), so the script and its specs pass through the +/// shell untouched. +pub fn b64(bytes: &[u8]) -> String { + use base64::Engine; + base64::engine::general_purpose::STANDARD.encode(bytes) +} + +/// The shell line that applies `specs` (nothing for none). +pub fn apply_command(specs: &[ApplySpec]) -> String { + let json = serde_json::to_string(specs).unwrap_or_else(|_| "[]".into()); + format!( + "echo '{}' | base64 -d > /tmp/coderhelm-apply.js && node /tmp/coderhelm-apply.js '{}'", + b64(APPLY_JS.as_bytes()), + b64(json.as_bytes()) + ) +} + +/// The marker a probe prints after the apply and the lockfile commands. +pub const PROBE_MARK: &str = "CODERHELM_DEP"; + +/// One probe's command: apply the bumps, write each touched lockfile with +/// its own manager's command (`locks`: lockfile, command), then the checks +/// script, always ending with one `CODERHELM_DEP apply= lock=` line. +/// It exits 0 so the build hands back the manifests and lockfiles it wrote +/// whatever the checks say; the verdict is read from the markers. +pub fn probe_command(specs: &[ApplySpec], locks: &[(String, String)], checks: &str) -> String { + let mut s = String::new(); + if specs.is_empty() { + s.push_str("ch_apply=0\n"); + } else { + s.push_str(&format!( + "( {} ) > /tmp/coderhelm-apply.log 2>&1; ch_apply=$?; cat /tmp/coderhelm-apply.log | tail -c 2000\n", + apply_command(specs) + )); + } + let touched: Vec<&(String, String)> = locks + .iter() + .filter(|(lock, _)| specs.iter().any(|sp| dir_of(lock) == sp.root)) + .collect(); + s.push_str("ch_lock=0\n"); + for (lock, cmd) in touched { + s.push_str(&format!( + "if [ $ch_apply -eq 0 ] && [ $ch_lock -eq 0 ]; then ( {cmd} ) > /tmp/coderhelm-lock.log 2>&1 || {{ ch_lock=$?; echo \"--- writing {lock} failed (exit $ch_lock), last output ---\"; tail -c 2500 /tmp/coderhelm-lock.log; }}; fi\n" + )); + } + s.push_str(&format!( + "if [ $ch_apply -eq 0 ] && [ $ch_lock -eq 0 ]; then ( {checks} ); fi\n" + )); + s.push_str(&format!( + "echo \"{PROBE_MARK} apply=$ch_apply lock=$ch_lock\"\ntrue" + )); + s +} + +/// `(apply, lock)` exit codes from a probe's output. +pub fn probe_marks(output: &str) -> Option<(i32, i32)> { + let line = output + .lines() + .rev() + .find(|l| l.trim_start().starts_with(PROBE_MARK))?; + let mut apply = None; + let mut lock = None; + for part in line.split_whitespace() { + if let Some(v) = part.strip_prefix("apply=") { + apply = v.parse().ok(); + } else if let Some(v) = part.strip_prefix("lock=") { + lock = v.parse().ok(); + } + } + Some((apply?, lock?)) +} + +/// The bumps the apply script could not place (`how: skipped`), from its +/// `CODERHELM_APPLY` line. +pub fn apply_skipped(output: &str) -> Vec { + let Some(line) = output + .lines() + .rev() + .find_map(|l| l.trim_start().strip_prefix("CODERHELM_APPLY ")) + else { + return vec![]; + }; + let Ok(v) = serde_json::from_str::(line.trim()) else { + return vec![]; + }; + v.as_array() + .map(|a| { + a.iter() + .filter(|e| e["how"] == "skipped") + .filter_map(|e| e["name"].as_str().map(String::from)) + .collect() + }) + .unwrap_or_default() +} + +/// The files a probe may hand back to commit: manifests and lockfiles, +/// never what a build or test wrote. +pub fn commit_path(path: &str) -> bool { + let name = path.rsplit('/').next().unwrap_or(path); + !path.contains("node_modules/") + && matches!( + name, + "package.json" + | "pnpm-lock.yaml" + | "pnpm-workspace.yaml" + | "package-lock.json" + | "npm-shrinkwrap.json" + | "yarn.lock" + ) +} + +// ── Verifying: the run's state ────────────────────────────────────────── + +/// What one probe came to. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] +#[serde(default)] +pub struct ProbeResult { + /// The sandbox ran it and reported (false: the sandbox broke or had no + /// time; not a verdict). + pub ran: bool, + /// The bumps applied and every lockfile was written. + pub applied: bool, + /// Each check by name and whether it passed. + pub checks: Vec<(String, bool)>, + /// The output's tail, for a reason. + pub tail: String, +} + +impl ProbeResult { + pub fn failing(&self) -> Vec { + let mut v: Vec = self + .checks + .iter() + .filter(|(_, ok)| !ok) + .map(|(n, _)| n.clone()) + .collect(); + if self.ran && !self.applied { + v.push(LOCKFILE_CHECK.to_string()); + } + v + } +} + +/// The check name for "the bumps could not be applied or the lockfile +/// could not be written". +pub const LOCKFILE_CHECK: &str = "lockfile"; +/// The install step's name. +pub const INSTALL_CHECK: &str = "install"; + +/// One set of bumps being verified together. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] +#[serde(default)] +pub struct Group { + pub bumps: Vec, + /// The checks it broke (that pass on the base), once probed red. + pub red: Option>, + pub tail: String, + /// Probed green on the current head, waiting to be committed. + pub green: bool, + /// Its parts each passed alone: when it fails together, they go one by + /// one. + pub parts: Vec>, + /// Sandbox builds of it that gave no result. + pub broken: u32, + /// A part of a set that failed together: never merged again. + pub solo: bool, +} + +/// What a bump came to. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] +#[serde(default)] +pub struct Dropped { + pub bump: usize, + pub checks: Vec, + pub error: String, +} + +/// Tokens, dollars and probes one batch used. +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)] +#[serde(default)] +pub struct BatchUse { + pub label: String, + pub probes: u32, + pub tokens: u64, + pub usd: f64, + pub applied: usize, + pub dropped: usize, +} + +/// What the worker does next. +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum Action { + /// Run the checks once on the base branch, nothing applied. + Base, + /// Probe each of these groups (indices into `groups`) on the current + /// head, at once. + Probe(Vec), + /// Commit the files the green probe of this group wrote. + Commit(usize), + /// Hand this major to the coder: apply it, fix the call sites the + /// failing checks name, then probe the head. + CodeFix { + bump: usize, + failing: Vec, + error: String, + }, + /// Nothing left: open the pull request with what is committed. + Done, +} + +/// How the code-fix attempt ended. +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum CodeFixed { + /// The head with the bump and its call sites passes. + Green { head: String }, + /// It didn't pass; the branch is back where it was. + Failed { checks: Vec, error: String }, +} + +/// One dependency fix run, resumable from its JSON. +#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)] +#[serde(default)] +pub struct DepRun { + pub plan: DepPlan, + /// (risk, bump indices) in order; `batch` is the one being verified. + pub batches: Vec<(Option, Vec)>, + pub batch: usize, + pub groups: Vec, + /// The checks that fail on the base branch: noted, never blamed. + pub base_failing: Option>, + /// The base ran no check at all (install fails, no sandbox result): + /// nothing can be verified locally. + pub unverified: bool, + pub applied: Vec, + pub dropped: Vec, + /// Majors that broke alone and the run must fix: waiting for the coder. + pub code_queue: Vec, + pub code_fixes: u32, + /// Bumps the run took out after planning (dropped, budget, time). + pub deferred: Vec, + pub probes: u32, + pub max_probes: u32, + pub head: String, + /// The checks the last probe ran, by name, with their results. + pub last_checks: Vec<(String, bool)>, + pub budget_usd: f64, + pub spent_usd: f64, + /// The budget stopped the run: what it left is deferred `later`, and + /// [`DepRun::resume_with_budget`] picks it up. + pub budget_stop: bool, + pub uses: Vec, + pub done: bool, +} + +impl DepRun { + pub fn new(plan: DepPlan, head: &str, budget_usd: f64) -> Self { + let batches: Vec<(Option, Vec)> = plan + .batches() + .into_iter() + .map(|(r, ids)| (Some(r), ids)) + .collect(); + let uses = batches + .iter() + .map(|(r, ids)| BatchUse { + label: match (r, ids.as_slice()) { + (Some(r), [one]) if r.is_major() => format!( + "{}: `{}` {} to {}", + r.label(), + plan.bumps[*one].package, + plan.bumps[*one].from, + plan.bumps[*one].to + ), + (Some(r), _) => format!("{} ({})", r.label(), ids.len()), + (None, _) => String::new(), + }, + ..Default::default() + }) + .collect(); + DepRun { + plan, + batches, + head: head.to_string(), + max_probes: MAX_PROBES, + budget_usd, + uses, + ..Default::default() + } + } + + /// A short token that moves whenever the run makes progress (a probe + /// read, a commit, a batch done): steps compare it to tell a stall. + pub fn progress(&self) -> String { + format!( + "dep:{}:{}:{}:{}", + self.batch, + self.applied.len(), + self.probes, + self.dropped.len() + self.deferred.len() + ) + } + + fn base(&self) -> &[String] { + self.base_failing.as_deref().unwrap_or(&[]) + } + + fn use_mut(&mut self) -> Option<&mut BatchUse> { + let i = self.batch; + self.uses.get_mut(i) + } + + /// The next thing to do. + pub fn next_action(&mut self) -> Action { + if self.done { + return Action::Done; + } + if self.base_failing.is_none() { + return Action::Base; + } + loop { + if let Some(i) = self.groups.iter().position(|g| g.green) { + return Action::Commit(i); + } + if self.groups.is_empty() { + if let Some(d) = self.code_queue.first().cloned() { + if self.code_fixes < MAX_CODE_FIXES && !self.over_budget() { + return Action::CodeFix { + bump: d.bump, + failing: d.checks.clone(), + error: d.error.clone(), + }; + } + let why = if self.over_budget() { + self.budget_stop = true; + "the run's budget was reached before its call sites were changed" + } else { + "it breaks the checks and the run's attempts at its call sites are used up" + }; + self.code_queue.remove(0); + self.drop_bump(d, why, self.over_budget()); + self.end_batch_if_settled(); + continue; + } + if self.batch >= self.batches.len() { + self.done = true; + return Action::Done; + } + let ids = self.batches[self.batch].1.clone(); + self.groups.push(Group { + bumps: ids, + ..Default::default() + }); + } + if self.probes >= self.max_probes { + self.give_up_unverified("not verified: the run used all its sandbox probes"); + continue; + } + let unknown: Vec = (0..self.groups.len()) + .filter(|&i| self.groups[i].red.is_none() && !self.groups[i].green) + .take(MAX_PARALLEL_PROBES) + .collect(); + if !unknown.is_empty() { + return Action::Probe(unknown); + } + // Every group is red: split them, or settle a single bump. + let reds = std::mem::take(&mut self.groups); + for g in reds { + let checks = g.red.clone().unwrap_or_default(); + if g.bumps.len() == 1 { + self.settle_single(g.bumps[0], checks, g.tail.clone()); + } else if !g.parts.is_empty() { + for p in g.parts { + self.groups.push(Group { + bumps: p, + solo: true, + ..Default::default() + }); + } + } else { + let mid = g.bumps.len() / 2; + let (a, b) = g.bumps.split_at(mid); + for half in [a, b] { + self.groups.push(Group { + bumps: half.to_vec(), + ..Default::default() + }); + } + } + } + if self.groups.is_empty() { + self.end_batch_if_settled(); + } + } + } + + fn end_batch_if_settled(&mut self) { + if self.groups.is_empty() && self.code_queue.is_empty() { + self.batch += 1; + } + } + + fn settle_single(&mut self, bump: usize, checks: Vec, error: String) { + let b = &self.plan.bumps[bump]; + let d = Dropped { + bump, + checks: checks.clone(), + error, + }; + let only_lock = checks.iter().all(|c| c == LOCKFILE_CHECK); + if b.major && b.risk() == Risk::UrgentMajor && !only_lock { + self.code_queue.push(d); + } else { + let why = if only_lock { + "its version could not be installed (the lockfile could not be written with it)" + .to_string() + } else { + format!("it breaks {} in the sandbox", checks.join(", ")) + }; + self.drop_bump(d, &why, false); + } + } + + fn drop_bump(&mut self, d: Dropped, why: &str, later: bool) { + let b = self.plan.bumps[d.bump].clone(); + let mut reason = why.to_string(); + if !d.error.trim().is_empty() { + reason.push_str(&format!( + " ({})", + crate::truncate_str(first_error_line(&d.error), 160) + )); + } + self.deferred.push(Deferral { + package: b.package, + from: b.from, + to: b.to, + manifest: b.manifest, + finding_ids: b.finding_ids, + reason, + later, + }); + if let Some(u) = self.use_mut() { + u.dropped += 1; + } + self.dropped.push(d); + } + + fn give_up_unverified(&mut self, why: &str) { + let left: Vec = self + .groups + .drain(..) + .flat_map(|g| g.bumps) + .chain( + self.batches + .iter() + .skip(self.batch + 1) + .flat_map(|(_, ids)| ids.clone()), + ) + .collect(); + for i in left { + self.drop_bump( + Dropped { + bump: i, + checks: vec![], + error: String::new(), + }, + why, + true, + ); + } + for d in std::mem::take(&mut self.code_queue) { + self.drop_bump(d, why, true); + } + self.batch = self.batches.len(); + } + + /// The base branch's checks. + pub fn on_base(&mut self, r: &ProbeResult) { + self.probes += 1; + if !r.ran { + self.base_failing = Some(vec![]); + self.unverified = true; + } else { + let failing = r.failing(); + let names: Vec<&String> = r.checks.iter().map(|(n, _)| n).collect(); + // Nothing ran past the install: no check can tell a bump apart. + self.unverified = names.is_empty() + || failing + .iter() + .any(|c| c == INSTALL_CHECK || c == LOCKFILE_CHECK) + || failing.len() == r.checks.len(); + self.base_failing = Some(failing); + self.last_checks = r.checks.clone(); + } + if self.unverified { + // Without a local signal only same-line bumps go, applied as one + // set; CI on the pull request is the check. Majors wait. + let keep: Vec = (0..self.plan.bumps.len()) + .filter(|&i| !self.plan.bumps[i].major) + .collect(); + let majors: Vec = (0..self.plan.bumps.len()) + .filter(|&i| self.plan.bumps[i].major) + .collect(); + for i in majors { + self.drop_bump( + Dropped { + bump: i, + checks: vec![], + error: String::new(), + }, + "a major upgrade, and the sandbox could not run the repository's checks on the base branch to verify it", + true, + ); + } + self.batches = if keep.is_empty() { + vec![] + } else { + vec![(Some(Risk::Safe), keep)] + }; + self.uses = vec![BatchUse { + label: "same-line fixes, applied without a local check".into(), + ..Default::default() + }]; + self.batch = 0; + } + } + + /// The probes of the groups `Action::Probe` named, in any order. + pub fn on_probes(&mut self, results: &[(usize, ProbeResult)]) { + let base = self.base().to_vec(); + for (gi, r) in results { + let Some(g) = self.groups.get_mut(*gi) else { + continue; + }; + if !r.ran { + g.broken += 1; + if g.broken >= MAX_BROKEN_PROBES { + g.red = Some(vec!["sandbox".into()]); + g.tail = "the sandbox gave no result".into(); + // Never blamed on a bump: the whole group waits. + let ids = g.bumps.clone(); + g.bumps.clear(); + for i in ids { + self.deferred.push(Deferral { + package: self.plan.bumps[i].package.clone(), + from: self.plan.bumps[i].from.clone(), + to: self.plan.bumps[i].to.clone(), + manifest: self.plan.bumps[i].manifest.clone(), + finding_ids: self.plan.bumps[i].finding_ids.clone(), + reason: "not verified: the sandbox gave no result twice".into(), + later: true, + }); + } + } + continue; + } + self.probes += 1; + if let Some(u) = self.uses.get_mut(self.batch) { + u.probes += 1; + } + let new: Vec = if self.unverified { + // Only the apply and the lockfile can fail without a base. + r.failing() + .into_iter() + .filter(|c| c == LOCKFILE_CHECK) + .collect() + } else { + r.failing() + .into_iter() + .filter(|c| !base.contains(c)) + .collect() + }; + if new.is_empty() { + g.green = true; + self.last_checks = r.checks.clone(); + } else { + g.red = Some(new); + g.tail = crate::tail_str(&r.tail, 1500).to_string(); + } + } + self.groups.retain(|g| !g.bumps.is_empty()); + if self.groups.is_empty() { + self.end_batch_if_settled(); + return; + } + // Two groups green on the same head are committed as one, after one + // more probe of them together (a part of a set that already failed + // together is committed on its own). + let greens: Vec = (0..self.groups.len()) + .filter(|&i| self.groups[i].green && !self.groups[i].solo) + .collect(); + if greens.len() > 1 { + let mut parts = vec![]; + let mut all = vec![]; + for &i in &greens { + parts.push(self.groups[i].bumps.clone()); + all.extend(self.groups[i].bumps.clone()); + } + let mut keep: Vec = self + .groups + .drain(..) + .enumerate() + .filter(|(i, _)| !greens.contains(i)) + .map(|(_, g)| g) + .collect(); + keep.insert( + 0, + Group { + bumps: all, + parts, + ..Default::default() + }, + ); + self.groups = keep; + } + } + + /// The group `Action::Commit` named is on the branch at `head`. + pub fn on_commit(&mut self, gi: usize, head: &str) { + if gi >= self.groups.len() { + return; + } + let g = self.groups.remove(gi); + if let Some(u) = self.uses.get_mut(self.batch) { + u.applied += g.bumps.len(); + } + self.applied.extend(g.bumps); + self.head = head.to_string(); + // A green probe of the rest was on the old head: probed again. A red + // one stays informative on the new head. + for g in &mut self.groups { + g.green = false; + } + self.end_batch_if_settled(); + } + + /// The group `Action::Commit` named could not be committed (GitHub + /// refused): its bumps wait for a later run. + pub fn on_commit_failed(&mut self, gi: usize, why: &str) { + if gi >= self.groups.len() { + return; + } + let g = self.groups.remove(gi); + for i in g.bumps { + self.drop_bump( + Dropped { + bump: i, + checks: vec![], + error: String::new(), + }, + &format!("its verified change could not be committed ({why})"), + true, + ); + } + self.end_batch_if_settled(); + } + + /// The coder's attempt at `Action::CodeFix` ended. `usd`/`tokens`: what + /// it used. + pub fn on_code_fix(&mut self, bump: usize, r: CodeFixed, tokens: u64, usd: f64) { + self.code_fixes += 1; + self.spent_usd += usd; + if let Some(u) = self.uses.get_mut(self.batch) { + u.tokens += tokens; + u.usd += usd; + } + let Some(pos) = self.code_queue.iter().position(|d| d.bump == bump) else { + return; + }; + let d = self.code_queue.remove(pos); + match r { + CodeFixed::Green { head } => { + if let Some(u) = self.uses.get_mut(self.batch) { + u.applied += 1; + } + self.applied.push(bump); + self.head = head; + } + CodeFixed::Failed { checks, error } => { + let checks = if checks.is_empty() { d.checks } else { checks }; + self.drop_bump( + Dropped { + bump, + checks: checks.clone(), + error, + }, + &format!( + "it breaks {} and the coder's change to its call sites did not make them pass", + checks.join(", ") + ), + false, + ); + } + } + self.end_batch_if_settled(); + } + + /// Model spend outside a code fix (none today; kept for the report). + pub fn over_budget(&self) -> bool { + self.budget_usd > 0.0 && self.spent_usd >= self.budget_usd + } + + /// A run stopped by its budget, retried with more: what the budget left + /// goes back in, the applied bumps stay. + pub fn resume_with_budget(&mut self, budget_usd: f64) { + self.budget_usd = budget_usd; + if !self.budget_stop { + return; + } + self.budget_stop = false; + self.done = false; + let mut back: Vec = vec![]; + for x in self.deferred.iter().filter(|x| x.later) { + if let Some(i) = (0..self.plan.bumps.len()).find(|&i| { + let b = &self.plan.bumps[i]; + b.package == x.package && b.manifest == x.manifest && b.from == x.from + }) { + if !back.contains(&i) && !self.applied.contains(&i) { + back.push(i); + } + } + } + self.deferred.retain(|x| !x.later); + self.dropped.retain(|d| !back.contains(&d.bump)); + for i in back { + self.batches.push((self.plan.bumps[i].risk, vec![i])); + self.uses.push(BatchUse { + label: format!("resumed: `{}`", self.plan.bumps[i].package), + ..Default::default() + }); + } + self.code_fixes = 0; + } + + /// Ends the run where it stands (no step left): what is committed + /// ships, everything not yet verified is deferred `later`. + pub fn finish_now(&mut self, why: &str) { + self.give_up_unverified(why); + self.done = true; + } + + /// Every deferral: the plan's and the run's. + pub fn all_deferred(&self) -> Vec { + let mut v = self.plan.deferred.clone(); + v.extend(self.deferred.clone()); + v + } + + pub fn applied_bumps(&self) -> Vec<&PlanBump> { + self.applied.iter().map(|&i| &self.plan.bumps[i]).collect() + } + + /// The findings the run's pull request fixes. + pub fn fixed_ids(&self) -> Vec { + self.applied_bumps() + .iter() + .flat_map(|b| b.finding_ids.clone()) + .collect() + } + + /// The findings it leaves open, with why. + pub fn deferred_ids(&self) -> Vec<(String, String)> { + self.all_deferred() + .iter() + .flat_map(|d| d.finding_ids.iter().map(move |id| (id.clone(), d.line()))) + .collect() + } + + /// The pull request's account of the run, under "What to check": the + /// bumps applied, the ones deferred with why, the checks run in the + /// sandbox (the base's failures named as such), and what each batch + /// used. + pub fn report_md(&self) -> String { + let mut s = String::from("### Dependency fix run\n\n"); + let applied = self.applied_bumps(); + s.push_str(&format!("**Applied ({}):**\n", applied.len())); + if applied.is_empty() { + s.push_str("- none\n"); + } + for b in applied.iter().take(80) { + s.push_str(&format!( + "- `{}` {} to {} ({}; {})\n", + b.package, + b.from, + b.to, + b.manifest, + if b.major { + "major version" + } else { + "same version line" + } + )); + } + if applied.len() > 80 { + s.push_str(&format!("- and {} more\n", applied.len() - 80)); + } + let deferred = self.all_deferred(); + if !deferred.is_empty() { + s.push_str(&format!( + "\n**Deferred ({}), the findings stay open:**\n", + deferred.len() + )); + for d in deferred.iter().take(60) { + s.push_str(&format!("- {}\n", d.line())); + } + if deferred.len() > 60 { + s.push_str(&format!("- and {} more\n", deferred.len() - 60)); + } + } + s.push_str("\n**Checks run in the sandbox:**\n"); + if self.unverified { + s.push_str("- The sandbox could not run the repository's checks on the base branch, so same-line fixes were applied with the lockfile written by the repository's own package manager and CI on this pull request is the check; major upgrades wait.\n"); + } else { + for (name, ok) in &self.last_checks { + let pre = self.base().contains(name); + s.push_str(&format!( + "- {name}: {}\n", + match (ok, pre) { + (true, _) => "passes with these bumps", + (false, true) => + "fails on the base branch too (not caused by this change; not fixed here)", + (false, false) => "fails", + } + )); + } + } + s.push_str(&format!( + "\n**Cost:** {} sandbox probe(s); model ${:.2}", + self.probes, self.spent_usd + )); + let used: Vec<&BatchUse> = self + .uses + .iter() + .filter(|u| u.probes > 0 || u.tokens > 0) + .collect(); + if !used.is_empty() { + s.push_str(" by batch:\n"); + for u in used { + s.push_str(&format!( + "- {}: {} probe(s), {} applied, {} deferred, {} tokens, ${:.2}\n", + u.label, u.probes, u.applied, u.dropped, u.tokens, u.usd + )); + } + } else { + s.push('\n'); + } + s + } +} + +fn first_error_line(tail: &str) -> &str { + tail.lines() + .map(str::trim) + .find(|l| { + let low = l.to_ascii_lowercase(); + low.contains("error") || low.contains("err_") || low.contains("failed") + }) + .or_else(|| tail.lines().map(str::trim).find(|l| !l.is_empty())) + .unwrap_or("") +} + +// ── Tasks a security ticket is held to ────────────────────────────────── + +/// A planned task path a dependency run is never held to unless the ticket +/// names it: documentation, changelogs, and similar prose. +pub fn is_doc_path(path: &str) -> bool { + let lower = path.to_ascii_lowercase(); + let name = lower.rsplit('/').next().unwrap_or(&lower); + lower.starts_with("docs/") + || lower.contains("/docs/") + || name.ends_with(".md") + || name.ends_with(".mdx") + || name.ends_with(".rst") + || name.ends_with(".adoc") + || name == "changelog" + || name == "license" +} + +/// Whether a task a run's plan holds it to is core to a dependency fix: a +/// manifest, a lockfile, or code (call sites); never documentation the +/// ticket doesn't name. +pub fn core_to_dep_fix(path: &str, ticket_body: &str) -> bool { + !is_doc_path(path) || ticket_body.contains(path) +} + +#[cfg(test)] +mod tests; diff --git a/services/common/src/dep_fix/tests.rs b/services/common/src/dep_fix/tests.rs new file mode 100644 index 000000000..d8eb6ee05 --- /dev/null +++ b/services/common/src/dep_fix/tests.rs @@ -0,0 +1,1253 @@ +use super::*; +use crate::security_fixes::{same_line, Relation, Scope, SecurityConfig, Status}; + +fn finding( + id: &str, + pkg: &str, + version: &str, + fixed: &[&str], + tier: Tier, + verdict: Verdict, +) -> (Finding, FindingState) { + let st = FindingState { + fixed: fixed.iter().map(|s| s.to_string()).collect(), + ..Default::default() + }; + let f = Finding { + id: id.into(), + repo: "acme/shop".into(), + manifest: "pnpm-lock.yaml".into(), + ecosystem: "npm".into(), + package: pkg.into(), + version: version.into(), + fixed_version: lowest_fix( + &Finding { + version: version.into(), + ..Default::default() + }, + &st, + ), + tier: Some(tier), + verdict, + relation: Relation::Transitive, + scope: Scope::Runtime, + status: Status::Open, + ..Default::default() + }; + (f, st) +} + +fn pairs(v: &[(Finding, FindingState)]) -> Vec<(&Finding, &FindingState)> { + v.iter().map(|(f, s)| (f, s)).collect() +} + +fn cfg() -> SecurityConfig { + SecurityConfig::default() +} + +fn bump<'a>(p: &'a DepPlan, pkg: &str) -> &'a PlanBump { + p.bumps.iter().find(|b| b.package == pkg).unwrap() +} + +// ── The plan ──────────────────────────────────────────────────────────── + +#[test] +fn a_p3_major_that_is_not_reachable_is_deferred_with_its_reason() { + let fs = vec![finding( + "a", + "graph-server", + "4.11.3", + &["5.5.0"], + Tier::P3, + Verdict::NotReachable, + )]; + let p = plan(&pairs(&fs), &cfg()); + assert!(p.bumps.is_empty(), "{:?}", p.bumps); + assert_eq!(p.deferred.len(), 1); + let line = p.deferred[0].line(); + assert!( + line.starts_with("`graph-server` 4.11.3 to 5.5.0 deferred: not reachable"), + "{line}" + ); + assert!(line.contains("major version"), "{line}"); + assert!(line.contains("when a person asks"), "{line}"); + // The finding stays out of every bundle, with the reason as its wait. + let (f, st) = &fs[0]; + assert!(crate::security_fixes::deferred(f, st, &cfg()).is_some()); + let mut asked = st.clone(); + asked.requested_by = Some("dev@acme.test".into()); + assert!(crate::security_fixes::deferred(f, &asked, &cfg()).is_none()); +} + +#[test] +fn a_p1_or_reachable_major_is_included() { + let fs = vec![ + finding( + "a", + "uploader", + "1.4.4", + &["2.3.0"], + Tier::P1, + Verdict::Unknown, + ), + finding( + "b", + "router", + "10.4.15", + &["11.1.18"], + Tier::P3, + Verdict::Reachable, + ), + ]; + let p = plan(&pairs(&fs), &cfg()); + assert!(p.deferred.is_empty(), "{:?}", p.deferred); + let u = bump(&p, "uploader"); + assert!(u.major); + assert_eq!(u.risk(), Risk::UrgentMajor); + assert_eq!(bump(&p, "router").risk(), Risk::UrgentMajor); +} + +#[test] +fn the_lowest_fixed_version_on_the_line_is_chosen() { + // Fixed on 4.x at 4.5.4 and 4.5.5 (two advisories), and on 5.x: the line + // keeps 4.x at the higher of the two lowest fixes, never "latest". + let fs = vec![ + finding( + "a", + "xml-reader", + "4.5.3", + &["4.5.4", "5.3.6"], + Tier::P2, + Verdict::NotReachable, + ), + finding( + "b", + "xml-reader", + "4.5.3", + &["4.5.5", "5.5.7"], + Tier::P3, + Verdict::NotReachable, + ), + // Only a major fixes this one: deferred, the others still go. + finding( + "c", + "xml-reader", + "4.5.3", + &["5.12.0"], + Tier::P3, + Verdict::NotReachable, + ), + ]; + let p = plan(&pairs(&fs), &cfg()); + let b = bump(&p, "xml-reader"); + assert_eq!( + (b.from.as_str(), b.to.as_str(), b.major), + ("4.5.3", "4.5.5", false) + ); + assert_eq!(b.finding_ids, vec!["a", "b"]); + assert_eq!(b.risk(), Risk::Safe); + assert_eq!(p.deferred.len(), 1); + assert_eq!(p.deferred[0].finding_ids, vec!["c"]); + assert_eq!(p.deferred[0].to, "5.12.0"); +} + +#[test] +fn each_version_line_of_a_package_is_its_own_bump() { + let fs = vec![ + finding( + "a", + "globber", + "7.2.3", + &["7.2.4", "14.0.2"], + Tier::P2, + Verdict::Unknown, + ), + finding( + "b", + "globber", + "10.4.5", + &["10.5.0", "14.0.2"], + Tier::P2, + Verdict::Unknown, + ), + ]; + let p = plan(&pairs(&fs), &cfg()); + let lines: Vec<(&str, &str, &str)> = p + .bumps + .iter() + .map(|b| (b.line.as_str(), b.from.as_str(), b.to.as_str())) + .collect(); + assert_eq!( + lines, + vec![("10", "10.4.5", "10.5.0"), ("7", "7.2.3", "7.2.4")] + ); + assert!(p.bumps.iter().all(|b| !b.major)); +} + +#[test] +fn no_fix_on_the_line_and_unknown_reachability_follows_the_major_policy() { + let fs = vec![finding( + "a", + "tiny-tmp", + "0.0.33", + &["0.2.6"], + Tier::P2, + Verdict::Unknown, + )]; + let p = plan(&pairs(&fs), &cfg()); + assert_eq!(bump(&p, "tiny-tmp").risk(), Risk::Major); + let mut issue_only = cfg(); + issue_only.major_bumps = MajorBumps::IssueOnly; + let p = plan(&pairs(&fs), &issue_only); + assert!(p.bumps.is_empty() && p.deferred.is_empty()); +} + +#[test] +fn a_run_deferral_holds_until_the_finding_changes() { + let (f, mut st) = finding( + "a", + "pdf-kit", + "2.1.0", + &["2.1.4"], + Tier::P2, + Verdict::Unknown, + ); + let now = chrono::Utc::now(); + st.deferred = Some(RunDeferral::new( + &f, + "it breaks typecheck in the sandbox", + now, + )); + let fs = vec![(f.clone(), st.clone())]; + let p = plan(&pairs(&fs), &cfg()); + assert!(p.bumps.is_empty()); + assert!(p.deferred[0].reason.contains("typecheck")); + // It becomes urgent: the deferral no longer holds. + let mut urgent_f = f.clone(); + urgent_f.tier = Some(Tier::P1); + assert!(!st.deferred.as_ref().unwrap().holds_at(&urgent_f, now)); + // A month on, it is tried again. + assert!(!st + .deferred + .as_ref() + .unwrap() + .holds_at(&f, now + chrono::Duration::days(RUN_DEFERRAL_DAYS + 1))); +} + +#[test] +fn a_yarn_lockfile_takes_one_line_of_a_package() { + let mut fs = vec![ + finding( + "a", + "sock", + "7.5.10", + &["7.5.11"], + Tier::P2, + Verdict::Unknown, + ), + finding( + "b", + "sock", + "8.17.0", + &["8.20.1"], + Tier::P1, + Verdict::Unknown, + ), + ]; + for (f, _) in &mut fs { + f.manifest = "yarn.lock".into(); + } + let p = plan(&pairs(&fs), &cfg()); + assert_eq!(p.bumps.len(), 1); + assert_eq!(p.bumps[0].line, "8"); + assert!(p.deferred[0].reason.contains("yarn lockfile")); +} + +#[test] +fn majors_past_the_cap_wait_for_the_next_run() { + let fs: Vec<_> = (0..(MAX_MAJORS_PER_RUN + 3)) + .map(|i| { + let id = format!("f{i}"); + let pkg = format!("pkg-{i}"); + finding(&id, &pkg, "1.0.0", &["2.0.0"], Tier::P2, Verdict::Unknown) + }) + .collect(); + let p = plan(&pairs(&fs), &cfg()); + assert_eq!(p.bumps.len(), MAX_MAJORS_PER_RUN); + assert_eq!(p.deferred.len(), 3); + assert!(p + .deferred + .iter() + .all(|d| d.later && d.reason.contains("next run"))); +} + +#[test] +fn findings_read_from_the_sbom_go_through_the_root_lockfile() { + let locks = vec![ + "pnpm-lock.yaml".to_string(), + "tools/t2/package-lock.json".to_string(), + ]; + assert_eq!( + lockfile_for("sbom", &locks).as_deref(), + Some("pnpm-lock.yaml") + ); + assert_eq!( + lockfile_for("tools/t2/package.json", &locks).as_deref(), + Some("tools/t2/package-lock.json") + ); + assert_eq!( + lockfile_for("apps/web/package.json", &locks).as_deref(), + Some("pnpm-lock.yaml") + ); + let two = vec!["package-lock.json".to_string(), "yarn.lock".to_string()]; + assert_eq!(lockfile_for("sbom", &two), None); + let (mut f, st) = finding("a", "ms", "2.0.0", &["2.1.3"], Tier::P2, Verdict::Unknown); + f.manifest = "sbom".into(); + let fs = vec![(f, st)]; + let p = plan_in(&pairs(&fs), &cfg(), &two); + assert!(p.bumps.is_empty()); + assert!(p.deferred[0].reason.contains("lockfile")); + let p = plan_in(&pairs(&fs), &cfg(), &locks); + assert_eq!(p.bumps[0].manifest, "pnpm-lock.yaml"); +} + +#[test] +fn a_dependency_plan_has_no_documentation_task() { + let fs = vec![ + finding( + "a", + "lib-a", + "1.2.0", + &["1.2.9"], + Tier::P2, + Verdict::Unknown, + ), + finding( + "b", + "lib-b", + "3.0.0", + &["3.0.4"], + Tier::P1, + Verdict::Unknown, + ), + ]; + let p = plan(&pairs(&fs), &cfg()); + let tasks = p.tasks_md(); + assert_eq!(tasks.lines().count(), 1, "{tasks}"); + assert!( + tasks.starts_with("- [ ] `pnpm-lock.yaml`: apply 2 bump(s)"), + "{tasks}" + ); + assert!(!tasks.to_lowercase().contains("readme")); + assert!(!core_to_dep_fix( + "README.md", + "Fix these security advisories" + )); + assert!(!core_to_dep_fix("docs/deps.md", "")); + assert!(core_to_dep_fix( + "README.md", + "Also update README.md with the table" + )); + assert!(core_to_dep_fix("package.json", "")); + assert!(core_to_dep_fix("src/server.ts", "")); +} + +// ── The apply script (needs node) ─────────────────────────────────────── + +fn node() -> bool { + std::process::Command::new("node") + .arg("--version") + .output() + .is_ok_and(|o| o.status.success()) +} + +fn run_apply(dir: &std::path::Path, specs: &[ApplySpec]) -> String { + let script = dir.join("apply.js"); + std::fs::write(&script, APPLY_JS).unwrap(); + let arg = b64(serde_json::to_string(specs).unwrap().as_bytes()); + let out = std::process::Command::new("node") + .arg(&script) + .arg(arg) + .current_dir(dir) + .output() + .unwrap(); + assert!( + out.status.success(), + "{}", + String::from_utf8_lossy(&out.stderr) + ); + String::from_utf8_lossy(&out.stdout).to_string() +} + +fn tmp(name: &str) -> std::path::PathBuf { + let d = std::env::temp_dir().join(format!("dep-fix-{name}-{}", std::process::id())); + let _ = std::fs::remove_dir_all(&d); + std::fs::create_dir_all(&d).unwrap(); + d +} + +fn json_at(p: &std::path::Path) -> serde_json::Value { + serde_json::from_str(&std::fs::read_to_string(p).unwrap()).unwrap() +} + +fn ab(name: &str, line: &str, to: &str) -> ApplyBump { + ApplyBump { + name: name.into(), + line: line.into(), + to: to.into(), + } +} + +#[test] +fn overrides_for_transitive_packages_in_pnpm_npm_and_yarn() { + if !node() { + eprintln!("node is not installed: the apply script is not run"); + return; + } + for (manager, lock, table, key) in [ + ( + Manager::Pnpm, + "pnpm-lock.yaml", + "/pnpm/overrides", + "tiny-tmp@0.0", + ), + ( + Manager::Npm, + "package-lock.json", + "/overrides", + "tiny-tmp@0.0", + ), + (Manager::Yarn, "yarn.lock", "/resolutions", "tiny-tmp"), + ] { + let d = tmp(manager.as_str()); + std::fs::write( + d.join("package.json"), + "{\n \"name\": \"shop\",\n \"dependencies\": {\n \"zod\": \"^3.24.2\",\n \"local\": \"workspace:*\"\n }\n}\n", + ) + .unwrap(); + std::fs::write(d.join(lock), "").unwrap(); + // A workspace member declares a direct dependency on another line. + std::fs::create_dir_all(d.join("apps/web")).unwrap(); + std::fs::write( + d.join("apps/web/package.json"), + "{\n \"devDependencies\": {\n \"zod\": \"~3.22.0\",\n \"vite\": \"7.1.9\"\n }\n}\n", + ) + .unwrap(); + // A folder with its own lockfile is another project: untouched. + std::fs::create_dir_all(d.join("tools/t1")).unwrap(); + std::fs::write(d.join("tools/t1/package-lock.json"), "").unwrap(); + let other = "{\n \"dependencies\": {\n \"zod\": \"^3.20.0\"\n }\n}\n"; + std::fs::write(d.join("tools/t1/package.json"), other).unwrap(); + let out = run_apply( + &d, + &[ApplySpec { + manager, + root: String::new(), + bumps: vec![ + ab("zod", "3", "3.25.76"), + ab("vite", "7", "7.1.11"), + ab("tiny-tmp", "0.0", "0.0.34"), + ], + }], + ); + assert!(out.contains("CODERHELM_APPLY"), "{out}"); + let root = json_at(&d.join("package.json")); + assert_eq!(root["dependencies"]["zod"], "^3.25.76", "{manager:?}"); + assert_eq!(root["dependencies"]["local"], "workspace:*"); + assert_eq!( + root.pointer(table).unwrap()[key], + "^0.0.34", + "{manager:?} {root}" + ); + let web = json_at(&d.join("apps/web/package.json")); + assert_eq!(web["devDependencies"]["zod"], "~3.25.76"); + assert_eq!(web["devDependencies"]["vite"], "7.1.11"); + assert_eq!( + std::fs::read_to_string(d.join("tools/t1/package.json")).unwrap(), + other + ); + // The indent and the trailing newline are kept. + let text = std::fs::read_to_string(d.join("package.json")).unwrap(); + assert!( + text.contains("\n \"dependencies\"") && text.ends_with("}\n"), + "{text}" + ); + let _ = std::fs::remove_dir_all(&d); + } +} + +#[test] +fn an_override_already_on_the_line_is_raised_not_doubled() { + if !node() { + return; + } + let d = tmp("raise-override"); + std::fs::write( + d.join("package.json"), + "{\n \"pnpm\": {\n \"overrides\": {\n \"sock\": \"^7.5.9\"\n }\n }\n}\n", + ) + .unwrap(); + std::fs::write(d.join("pnpm-lock.yaml"), "").unwrap(); + run_apply( + &d, + &[ApplySpec { + manager: Manager::Pnpm, + root: String::new(), + bumps: vec![ab("sock", "7", "7.5.11")], + }], + ); + let root = json_at(&d.join("package.json")); + assert_eq!( + root["pnpm"]["overrides"], + serde_json::json!({"sock": "^7.5.11"}) + ); + let _ = std::fs::remove_dir_all(&d); +} + +#[test] +fn a_probe_applies_writes_the_lockfile_then_checks_and_always_hands_back() { + let b = PlanBump { + package: "lib-a".into(), + from: "1.0.0".into(), + to: "1.0.3".into(), + line: "1".into(), + manifest: "pnpm-lock.yaml".into(), + ..Default::default() + }; + let sp = specs(&[&b]); + let locks = vec![ + ( + "pnpm-lock.yaml".to_string(), + "pnpm install --lockfile-only --ignore-scripts".to_string(), + ), + ( + "tools/t1/package-lock.json".to_string(), + "cd 'tools/t1' && npm install --package-lock-only".to_string(), + ), + ]; + let cmd = probe_command(&sp, &locks, "pnpm run check-types"); + assert!(cmd.contains("node /tmp/coderhelm-apply.js")); + assert!(cmd.contains("pnpm install --lockfile-only")); + // A lockfile no bump touched is not written. + assert!(!cmd.contains("npm install --package-lock-only")); + let apply_at = cmd.find("coderhelm-apply.js").unwrap(); + let lock_at = cmd.find("--lockfile-only").unwrap(); + let checks_at = cmd.find("check-types").unwrap(); + assert!(apply_at < lock_at && lock_at < checks_at); + assert!(cmd.trim_end().ends_with("true")); + assert_eq!( + probe_marks("x\nCODERHELM_DEP apply=0 lock=1\nCHANGED:"), + Some((0, 1)) + ); + assert_eq!(probe_marks("nothing"), None); + assert_eq!( + apply_skipped("x\nCODERHELM_APPLY [{\"name\":\"a\",\"how\":\"raised\"},{\"name\":\"b\",\"how\":\"skipped\"}]\n"), + vec!["b".to_string()] + ); + assert!(apply_skipped("no line").is_empty()); + assert!(commit_path("apps/web/package.json") && commit_path("pnpm-lock.yaml")); + assert!(!commit_path("apps/web/next-env.d.ts") && !commit_path("node_modules/x/package.json")); +} + +// ── Verifying: a fake sandbox ─────────────────────────────────────────── + +/// A sandbox whose checks fail when any of `breaks` (bump package, check) +/// is applied, and where `base_fails` fail on the base whatever is applied. +struct FakeSandbox { + breaks: Vec<(String, String)>, + base_fails: Vec, + /// Packages whose call sites the coder can fix. + coder_fixes: Vec, + probes: u32, + commits: u32, +} + +const CHECKS: [&str; 4] = ["install", "lint", "typecheck", "tests"]; + +impl FakeSandbox { + fn result(&self, applied: &[&PlanBump]) -> ProbeResult { + let checks = CHECKS + .iter() + .map(|c| { + let broken = self.base_fails.iter().any(|b| b == c) + || applied.iter().any(|b| { + self.breaks.iter().any(|(p, k)| p == &b.package && k == c) + && !self.coder_fixes.contains(&format!("fixed:{}", b.package)) + }); + (c.to_string(), !broken) + }) + .collect(); + ProbeResult { + ran: true, + applied: true, + checks, + tail: "error TS2345: Argument of type 'Opts' is not assignable".into(), + } + } + + /// Drives a run to the end, as the worker does. + fn drive(&mut self, run: &mut DepRun) { + for _ in 0..500 { + match run.next_action() { + Action::Base => { + self.probes += 1; + let r = self.result(&[]); + run.on_base(&r); + } + Action::Probe(groups) => { + let results: Vec<(usize, ProbeResult)> = groups + .iter() + .map(|&g| { + self.probes += 1; + let mut on: Vec<&PlanBump> = run.applied_bumps(); + on.extend(run.groups[g].bumps.iter().map(|&i| &run.plan.bumps[i])); + (g, self.result(&on)) + }) + .collect(); + run.on_probes(&results); + } + Action::Commit(g) => { + self.commits += 1; + let head = format!("sha{}", self.commits); + run.on_commit(g, &head); + } + Action::CodeFix { bump, .. } => { + let pkg = run.plan.bumps[bump].package.clone(); + let r = if self.coder_fixes.contains(&pkg) { + self.coder_fixes.push(format!("fixed:{pkg}")); + CodeFixed::Green { + head: "sha-code".into(), + } + } else { + CodeFixed::Failed { + checks: vec!["typecheck".into()], + error: "error TS2339: Property 'listen' does not exist".into(), + } + }; + run.on_code_fix(bump, r, 40_000, 0.6); + } + Action::Done => return, + } + } + panic!("the run never ended"); + } +} + +fn sandbox(breaks: &[(&str, &str)]) -> FakeSandbox { + FakeSandbox { + breaks: breaks + .iter() + .map(|(p, c)| (p.to_string(), c.to_string())) + .collect(), + base_fails: vec![], + coder_fixes: vec![], + probes: 0, + commits: 0, + } +} + +fn ten_bumps() -> DepPlan { + let fs: Vec<_> = (0..10) + .map(|i| { + let id = format!("f{i}"); + let pkg = format!("lib-{i:02}"); + finding(&id, &pkg, "2.1.0", &["2.1.5"], Tier::P2, Verdict::Unknown) + }) + .collect(); + plan(&pairs(&fs), &cfg()) +} + +#[test] +fn bisect_finds_the_one_bump_of_ten_that_breaks_typecheck() { + let p = ten_bumps(); + assert_eq!(p.batches().len(), 1); + let mut run = DepRun::new(p, "base", 3.0); + let mut sb = sandbox(&[("lib-06", "typecheck")]); + sb.drive(&mut run); + let applied: Vec<&str> = run + .applied_bumps() + .iter() + .map(|b| b.package.as_str()) + .collect(); + assert_eq!(applied.len(), 9, "{applied:?}"); + assert!(!applied.contains(&"lib-06")); + assert_eq!(run.deferred.len(), 1); + assert_eq!(run.deferred[0].package, "lib-06"); + assert!( + run.deferred[0].reason.contains("typecheck"), + "{}", + run.deferred[0].reason + ); + // What ships is green: the last probe passed every check. + assert!( + run.last_checks.iter().all(|(_, ok)| *ok), + "{:?}", + run.last_checks + ); + // Halving, not one probe per bump. + assert!(run.probes <= 10, "{} probes", run.probes); + let report = run.report_md(); + assert!(report.contains("**Applied (9):**"), "{report}"); + assert!( + report.contains("`lib-06` 2.1.0 to 2.1.5 deferred: it breaks typecheck"), + "{report}" + ); + assert!( + report.contains("- typecheck: passes with these bumps"), + "{report}" + ); +} + +#[test] +fn a_check_that_fails_on_the_base_is_noted_not_blamed() { + let mut run = DepRun::new(ten_bumps(), "base", 3.0); + let mut sb = sandbox(&[]); + sb.base_fails = vec!["tests".into()]; + sb.drive(&mut run); + assert_eq!(run.applied.len(), 10); + assert!(run.deferred.is_empty()); + // Everything green but the base's own failure: one probe for the base, + // one for the batch. + assert_eq!(run.probes, 2); + let report = run.report_md(); + assert!( + report.contains( + "- tests: fails on the base branch too (not caused by this change; not fixed here)" + ), + "{report}" + ); +} + +#[test] +fn two_breaking_bumps_are_both_found() { + let mut run = DepRun::new(ten_bumps(), "base", 3.0); + let mut sb = sandbox(&[("lib-01", "tests"), ("lib-08", "lint")]); + sb.drive(&mut run); + let mut gone: Vec<&str> = run.deferred.iter().map(|d| d.package.as_str()).collect(); + gone.sort(); + assert_eq!(gone, vec!["lib-01", "lib-08"]); + assert_eq!(run.applied.len(), 8); + assert!(run.last_checks.iter().all(|(_, ok)| *ok)); +} + +#[test] +fn an_urgent_major_gets_one_coder_pass_and_a_failed_one_is_deferred() { + let fs = vec![ + finding( + "a", + "lib-a", + "1.2.0", + &["1.2.9"], + Tier::P2, + Verdict::Unknown, + ), + finding( + "b", + "gql-kit", + "4.1.0", + &["5.0.2"], + Tier::P1, + Verdict::Reachable, + ), + finding( + "c", + "web-core", + "10.4.0", + &["11.1.0"], + Tier::P0, + Verdict::Unknown, + ), + ]; + let mut run = DepRun::new(plan(&pairs(&fs), &cfg()), "base", 3.0); + let mut sb = sandbox(&[("gql-kit", "typecheck"), ("web-core", "typecheck")]); + sb.coder_fixes = vec!["web-core".into()]; + sb.drive(&mut run); + let applied: Vec<&str> = run + .applied_bumps() + .iter() + .map(|b| b.package.as_str()) + .collect(); + assert!( + applied.contains(&"lib-a") && applied.contains(&"web-core"), + "{applied:?}" + ); + assert_eq!(run.deferred.len(), 1); + assert!(run.deferred[0] + .reason + .contains("coder's change to its call sites did not make them pass")); + assert_eq!(run.code_fixes, 2); + assert!((run.spent_usd - 1.2).abs() < 1e-9); + let report = run.report_md(); + assert!(report.contains("40000 tokens, $0.60"), "{report}"); +} + +#[test] +fn a_budget_stop_leaves_a_checkpointed_resumable_run() { + let fs = vec![ + finding( + "a", + "lib-a", + "1.2.0", + &["1.2.9"], + Tier::P2, + Verdict::Unknown, + ), + finding( + "b", + "gql-kit", + "4.1.0", + &["5.0.2"], + Tier::P1, + Verdict::Unknown, + ), + ]; + let mut run = DepRun::new(plan(&pairs(&fs), &cfg()), "base", 0.5); + run.spent_usd = 0.5; // the triage and earlier steps used it + let mut sb = sandbox(&[("gql-kit", "typecheck")]); + sb.coder_fixes = vec!["gql-kit".into()]; + sb.drive(&mut run); + assert!(run.budget_stop); + // One probe for the base, one per batch: the stopped major is not + // probed again and again. + assert_eq!(run.probes, 3); + assert_eq!(run.applied_bumps().len(), 1); + assert!(run.deferred[0].later && run.deferred[0].reason.contains("budget")); + // The checkpoint is plain JSON; a retry with more budget picks up only + // what the budget left, and keeps what is applied. + let saved = serde_json::to_string(&run).unwrap(); + let mut back: DepRun = serde_json::from_str(&saved).unwrap(); + assert_eq!(back, run); + back.resume_with_budget(3.0); + assert!(!back.done && back.deferred.is_empty()); + let probes_before = back.probes; + sb.drive(&mut back); + let applied: Vec<&str> = back + .applied_bumps() + .iter() + .map(|b| b.package.as_str()) + .collect(); + assert_eq!(applied, vec!["lib-a", "gql-kit"]); + // The base was not probed again. + assert!(back.probes > probes_before); + assert_eq!(sb.probes, run.probes + (back.probes - probes_before)); +} + +#[test] +fn a_stalled_run_finishes_with_what_is_green_and_never_asks() { + // The two stuck runs, together: the plan had a README task that never + // moved, and a bump that broke typecheck on every attempt. The new plan + // has no README task, the bump is deferred with its error, and the run + // ends Done with the rest applied and green. + let mut fs: Vec<_> = (0..6) + .map(|i| { + let id = format!("f{i}"); + let pkg = format!("lib-{i:02}"); + finding(&id, &pkg, "3.0.0", &["3.0.7"], Tier::P2, Verdict::Unknown) + }) + .collect(); + fs.push(finding( + "m", + "server-kit", + "4.0.0", + &["5.1.0"], + Tier::P2, + Verdict::Unknown, + )); + let p = plan(&pairs(&fs), &cfg()); + assert!(!p.tasks_md().to_lowercase().contains("readme")); + let mut run = DepRun::new(p, "base", 3.0); + let mut sb = sandbox(&[("server-kit", "typecheck")]); + sb.drive(&mut run); + assert!(run.done); + assert_eq!(run.applied.len(), 6); + assert_eq!(run.deferred.len(), 1); + assert!(run.deferred[0].reason.contains("typecheck")); + assert!(!run.budget_stop); + assert!(run.last_checks.iter().all(|(_, ok)| *ok)); +} + +#[test] +fn without_a_local_signal_only_same_line_fixes_go_and_majors_wait() { + let fs = vec![ + finding( + "a", + "lib-a", + "1.2.0", + &["1.2.9"], + Tier::P2, + Verdict::Unknown, + ), + finding( + "b", + "gql-kit", + "4.1.0", + &["5.0.2"], + Tier::P1, + Verdict::Unknown, + ), + ]; + let mut run = DepRun::new(plan(&pairs(&fs), &cfg()), "base", 3.0); + let mut sb = sandbox(&[]); + sb.base_fails = vec!["install".into()]; + sb.drive(&mut run); + assert!(run.unverified); + assert_eq!(run.applied_bumps().len(), 1); + assert_eq!(run.applied_bumps()[0].package, "lib-a"); + assert!(run.deferred[0] + .reason + .contains("could not run the repository's checks")); + assert!(run + .report_md() + .contains("CI on this pull request is the check")); +} + +#[test] +fn a_version_that_cannot_be_installed_is_deferred_without_the_coder() { + let fs = vec![ + finding( + "a", + "lib-a", + "1.2.0", + &["1.2.9"], + Tier::P2, + Verdict::Unknown, + ), + finding( + "b", + "gql-kit", + "4.1.0", + &["5.0.2"], + Tier::P1, + Verdict::Unknown, + ), + ]; + let mut run = DepRun::new(plan(&pairs(&fs), &cfg()), "base", 3.0); + assert_eq!(run.next_action(), Action::Base); + run.on_base(&FakeSandbox::result(&sandbox(&[]), &[])); + // Batch 1: lib-a green. + let Action::Probe(g) = run.next_action() else { + panic!() + }; + run.on_probes(&[(g[0], FakeSandbox::result(&sandbox(&[]), &[]))]); + assert_eq!(run.next_action(), Action::Commit(0)); + run.on_commit(0, "sha1"); + // Batch 2: gql-kit can't be resolved. + let Action::Probe(g) = run.next_action() else { + panic!() + }; + run.on_probes(&[( + g[0], + ProbeResult { + ran: true, + applied: false, + checks: vec![], + tail: "ERR_PNPM_NO_MATCHING_VERSION No matching version found for gql-kit@^5.0.2" + .into(), + }, + )]); + assert_eq!(run.next_action(), Action::Done); + assert_eq!(run.code_fixes, 0); + assert!(run.deferred[0].reason.contains("could not be installed")); + assert!(run.deferred[0] + .reason + .contains("ERR_PNPM_NO_MATCHING_VERSION")); +} + +#[test] +fn a_sandbox_without_a_result_never_blames_a_bump() { + let mut run = DepRun::new(ten_bumps(), "base", 3.0); + run.on_base(&FakeSandbox::result(&sandbox(&[]), &[])); + for _ in 0..MAX_BROKEN_PROBES { + let Action::Probe(g) = run.next_action() else { + panic!() + }; + run.on_probes(&[(g[0], ProbeResult::default())]); + } + assert_eq!(run.next_action(), Action::Done); + assert_eq!(run.deferred.len(), 10); + assert!(run + .deferred + .iter() + .all(|d| d.later && d.reason.contains("no result"))); + assert!(run.dropped.is_empty()); +} + +// ── The two stuck runs, replayed (names invented) ─────────────────────── + +#[derive(serde::Deserialize)] +struct Row { + id: String, + package: String, + version: String, + fixed_version: Option, + fixed: Vec, + tier: String, + verdict: Verdict, + relation: Relation, + scope: Scope, + manifest: String, +} + +fn replay(name: &str) -> Vec<(Finding, FindingState)> { + let all: std::collections::BTreeMap> = + serde_json::from_str(include_str!("../security_testdata/dep_fix_replay.json")).unwrap(); + all[name] + .iter() + .map(|r| { + ( + Finding { + id: r.id.clone(), + repo: format!("acme/{name}"), + manifest: r.manifest.clone(), + ecosystem: "npm".into(), + package: r.package.clone(), + version: r.version.clone(), + fixed_version: r.fixed_version.clone(), + tier: Tier::parse(&r.tier), + verdict: r.verdict, + relation: r.relation, + scope: r.scope, + ..Default::default() + }, + FindingState { + fixed: r.fixed.clone(), + ..Default::default() + }, + ) + }) + .collect() +} + +/// The old plan's bumps: one per package, to the highest fixed version any +/// advisory needs (what `add_bump` gave the coder). +fn old_bumps(fs: &[(Finding, FindingState)]) -> Vec<(String, String, String, bool)> { + let mut by: BTreeMap = BTreeMap::new(); + for (f, _) in fs { + let to = f.fixed_version.clone().unwrap_or_default(); + let e = by + .entry(f.package.to_ascii_lowercase()) + .or_insert((f.version.clone(), to.clone())); + if compare_versions(&to, &e.1) == std::cmp::Ordering::Greater { + e.1 = to; + } + } + by.into_iter() + .map(|(p, (from, to))| { + let major = is_major_bump(&from, &to); + (p, from, to, major) + }) + .collect() +} + +fn show(name: &str, locks: &[&str]) -> DepPlan { + let fs = replay(name); + let old = old_bumps(&fs); + let locks: Vec = locks.iter().map(|s| s.to_string()).collect(); + let p = plan_in(&pairs(&fs), &cfg(), &locks); + let mut text = format!( + "\n=== {name}: {} findings\nold plan: {} package bumps, {} major\nnew plan: {} bumps ({} major) in {} batches, {} deferred\n", + fs.len(), + old.len(), + old.iter().filter(|b| b.3).count(), + p.bumps.len(), + p.bumps.iter().filter(|b| b.major).count(), + p.batches().len(), + p.deferred.len() + ); + for (risk, ids) in p.batches() { + text.push_str(&format!( + " batch: {} ({} bumps)\n", + risk.label(), + ids.len() + )); + for &i in ids.iter().take(4) { + let b = &p.bumps[i]; + text.push_str(&format!( + " `{}` {} to {} ({})\n", + b.package, b.from, b.to, b.why + )); + } + } + text.push_str(" deferred:\n"); + for d in p.deferred.iter().take(8) { + text.push_str(&format!(" {}\n", d.line())); + } + text.push_str(" tasks:\n"); + text.push_str(&p.tasks_md()); + println!("{text}"); + p +} + +#[test] +fn the_web_monorepo_run_replayed() { + let p = show( + "web-monorepo", + &[ + "pnpm-lock.yaml", + "tools/t2/package-lock.json", + "tools/t3/package-lock.json", + "tools/t5/pnpm-lock.yaml", + ], + ); + let fs = replay("web-monorepo"); + let old = old_bumps(&fs); + assert!(old.iter().filter(|b| b.3).count() >= 20, "old majors"); + // Far fewer majors, none of them for a finding that isn't reachable. + let majors: Vec<&PlanBump> = p.bumps.iter().filter(|b| b.major).collect(); + assert!(majors.len() <= MAX_MAJORS_PER_RUN, "{}", majors.len()); + let by_id: std::collections::HashMap<&str, &Finding> = + fs.iter().map(|(f, _)| (f.id.as_str(), f)).collect(); + for b in &majors { + assert!(b.finding_ids.iter().any(|id| { + let f = by_id[id.as_str()]; + urgent(f) || f.verdict == Verdict::Unknown + })); + } + for d in p.deferred.iter().filter(|d| !d.later) { + for id in &d.finding_ids { + let f = by_id[id.as_str()]; + assert!(!urgent(f), "an urgent finding was deferred: {}", d.line()); + } + } + // Every P0/P1 or reachable finding is in a bump or deferred only for a + // cap or a lockfile it can't be placed in, never by the rules. + let in_bumps: std::collections::HashSet<&str> = p + .bumps + .iter() + .flat_map(|b| b.finding_ids.iter().map(String::as_str)) + .collect(); + for (f, _) in &fs { + if urgent(f) && !in_bumps.contains(f.id.as_str()) { + let d = p + .deferred + .iter() + .find(|d| d.finding_ids.contains(&f.id)) + .unwrap(); + assert!( + d.later || d.reason.contains("lockfile") || d.reason.contains("yarn"), + "{}", + d.line() + ); + } + } + // The tasks are the lockfiles, never the README. + assert!(!p.tasks_md().to_lowercase().contains("readme")); + assert!(p.tasks_md().lines().count() <= 4); +} + +#[test] +fn the_api_service_run_replayed() { + let p = show("api-service", &["pnpm-lock.yaml"]); + let fs = replay("api-service"); + let old = old_bumps(&fs); + // The old run bumped the server framework, its GraphQL server and + // GraphQL helpers across majors though none was reachable. + assert!(old.iter().filter(|b| b.3).count() >= 15); + let by_id: std::collections::HashMap<&str, &Finding> = + fs.iter().map(|(f, _)| (f.id.as_str(), f)).collect(); + let deferred_majors: Vec<&Deferral> = p + .deferred + .iter() + .filter(|d| d.reason.contains("not reachable")) + .collect(); + assert!(deferred_majors.len() >= 8, "{}", deferred_majors.len()); + for d in &deferred_majors { + assert!(d + .finding_ids + .iter() + .all(|id| by_id[id.as_str()].verdict == Verdict::NotReachable + || by_id[id.as_str()].verdict == Verdict::NotLoaded)); + } + // Every bump in the plan that isn't urgent stays on its line. + for b in p.bumps.iter().filter(|b| matches!(b.risk(), Risk::Safe)) { + assert!( + same_line(&b.from, &b.to), + "{} {} {}", + b.package, + b.from, + b.to + ); + } +} + +// ── Through the bundle planner (these fail on the code before) ────────── + +fn proof_finding( + id: &str, + pkg: &str, + v: &str, + to: &str, + fixed: &[&str], + tier: Tier, + verdict: Verdict, +) -> (Finding, FindingState) { + ( + Finding { + id: id.into(), + repo: "acme/shop".into(), + manifest: "pnpm-lock.yaml".into(), + ecosystem: "npm".into(), + package: pkg.into(), + version: v.into(), + fixed_version: Some(to.into()), + tier: Some(tier), + verdict, + status: Status::Open, + ..Default::default() + }, + FindingState { + fixed: fixed.iter().map(|s| s.to_string()).collect(), + ..Default::default() + }, + ) +} + +#[test] +fn proof_a_bundle_leaves_out_a_major_that_is_not_reachable() { + let fs = vec![ + proof_finding( + "keep", + "lib-a", + "1.2.0", + "1.2.9", + &["1.2.9"], + Tier::P2, + Verdict::Unknown, + ), + proof_finding( + "defer", + "graph-server", + "4.11.3", + "5.5.0", + &["5.5.0"], + Tier::P3, + Verdict::NotReachable, + ), + ]; + let cfg = SecurityConfig::default(); + let units = crate::security_fixes::plan_units(&fs, &cfg, chrono::Utc::now()); + let ids: Vec<&String> = units.iter().flat_map(|u| u.finding_ids.iter()).collect(); + assert!(ids.contains(&&"keep".to_string()), "{ids:?}"); + assert!( + !ids.contains(&&"defer".to_string()), + "a P3 not-reachable major went into a pull request: {ids:?}" + ); +} + +#[test] +fn proof_a_fix_ticket_never_asks_for_documentation() { + let fs = vec![proof_finding( + "keep", + "lib-a", + "1.2.0", + "1.2.9", + &["1.2.9"], + Tier::P2, + Verdict::Unknown, + )]; + let cfg = SecurityConfig::default(); + let units = crate::security_fixes::plan_units(&fs, &cfg, chrono::Utc::now()); + let members: Vec<&Finding> = fs.iter().map(|(f, _)| f).collect(); + let body = crate::security_fixes::ticket_body(&units[0], &members, &cfg); + assert!(body.contains("Never edit documentation"), "{body}"); +} diff --git a/services/common/src/lib.rs b/services/common/src/lib.rs index 164fefb4a..0c1f2477d 100644 --- a/services/common/src/lib.rs +++ b/services/common/src/lib.rs @@ -39,6 +39,9 @@ pub mod commit_ci; /// email), with what happened, for the Deliveries page. pub mod deliveries; pub mod deliveries_rollup; +/// Dependency fix runs: the risk-aware plan, sandbox verification and +/// bisect, resumable state. +pub mod dep_fix; /// The shared dead-letter queue: whose each failed message is, whether the /// worker can read it, and when the cleanup archives it. pub mod dlq; diff --git a/services/common/src/security_fixes.rs b/services/common/src/security_fixes.rs index 083145bfb..5ef7778f1 100644 --- a/services/common/src/security_fixes.rs +++ b/services/common/src/security_fixes.rs @@ -380,6 +380,10 @@ pub struct FindingState { /// Taken out of a bundle because its major version bump failed the /// bundle's CI: it gets a pull request of its own. pub split: bool, + /// A fix run left it out: its bump broke the repository's checks and + /// could not be fixed in the run. Bundles leave it out while it holds + /// (see `dep_fix::RunDeferral`). + pub deferred: Option, } // ── Settings ──────────────────────────────────────────────────────────── @@ -495,8 +499,20 @@ pub struct SecurityConfig { /// Cards posted per day, at most; past it, one digest card says how /// many more are waiting. pub max_cards_per_day: u32, + /// The model budget of one dependency fix run, in cents (the coder's + /// call-site changes; mechanical bumps use no model). Past it the run + /// ships what is green and defers the rest, resumable. + #[serde(default = "default_fix_run_budget")] + pub fix_run_budget_cents: u32, } +fn default_fix_run_budget() -> u32 { + crate::dep_fix::DEFAULT_RUN_BUDGET_CENTS +} + +/// The most a team may set a dependency fix run's budget to, in cents. +pub const MAX_FIX_RUN_BUDGET_CENTS: u32 = 5_000; + pub const MAX_FIX_RUNS_PER_DAY: u32 = 3; pub const MAX_FIX_RUNS_LIMIT: u32 = 20; pub const MAX_FIX_TOKENS_PER_DAY: u64 = 2_000_000; @@ -550,6 +566,7 @@ impl Default for SecurityConfig { max_fix_runs_per_day: MAX_FIX_RUNS_PER_DAY, max_fix_tokens_per_day: MAX_FIX_TOKENS_PER_DAY, max_cards_per_day: MAX_CARDS_PER_DAY, + fix_run_budget_cents: crate::dep_fix::DEFAULT_RUN_BUDGET_CENTS, } } } @@ -601,6 +618,11 @@ impl SecurityConfig { if self.max_cards_per_day > MAX_CARDS_LIMIT { return Err(format!("max_cards_per_day is 0 to {MAX_CARDS_LIMIT}")); } + if self.fix_run_budget_cents > MAX_FIX_RUN_BUDGET_CENTS { + return Err(format!( + "fix_run_budget_cents is 0 to {MAX_FIX_RUN_BUDGET_CENTS}" + )); + } if self.ignore.len() > MAX_IGNORES { return Err(format!("at most {MAX_IGNORES} ignores")); } @@ -2427,6 +2449,10 @@ pub fn plan_units( let eligible: Vec<&(Finding, FindingState)> = findings .iter() .filter(|(f, st)| fixable(f, st, cfg, now)) + // A major the rules defer (not reachable, not urgent) or a bump a run + // found breaking stays open and out of every pull request; a person + // asking for it takes it anyway (`requested_units`). + .filter(|(f, st)| deferred(f, st, cfg).is_none()) .collect(); if cfg.bundle == Bundle::PerPackage { let only: Vec<&Finding> = eligible.iter().map(|(f, _)| f).collect(); @@ -2444,6 +2470,30 @@ pub fn plan_units( units } +/// Why a fixable finding waits outside every pull request (the rules of +/// `dep_fix`): its fix is a major upgrade it doesn't need yet, or a run +/// found its bump breaking. None when it goes in. +pub fn deferred(f: &Finding, st: &FindingState, cfg: &SecurityConfig) -> Option { + if st.requested_by.is_some() { + return None; + } + crate::dep_fix::defer_reason(f, st, cfg) +} + +/// The fixable findings the rules hold back, with why: what the dashboard +/// shows as each one's wait. +pub fn deferred_waits( + findings: &[(Finding, FindingState)], + cfg: &SecurityConfig, + now: DateTime, +) -> Vec<(String, String)> { + findings + .iter() + .filter(|(f, st)| fixable(f, st, cfg, now)) + .filter_map(|(f, st)| deferred(f, st, cfg).map(|r| (f.id.clone(), r))) + .collect() +} + /// A finding a bundle leaves to a pull request (or issue) of its own: its /// major bump was split out after it failed the bundle's CI, or the policy /// opens only an issue for a major bump. @@ -2916,6 +2966,7 @@ pub fn ticket_body_with( s.push_str(" A major version is needed: follow its upgrade guide, change every call site of the APIs it changed, and fix the code it breaks so the build, type check and tests pass.\n"); } s.push_str("4. Before you finish, call run_checks (build, type check, tests). Fix what the upgrade breaks. If a check still fails, never say it passes: write which check fails and why under `### Not fixed` in your description; the pull request then stays a draft.\n"); + s.push_str(" Never edit documentation (README, CHANGELOG, docs) for these bumps unless this ticket asks for it: the pull request's description says what changed.\n"); s.push_str("5. In your description, for each package write `### to ` with the breaking changes you found and how each was handled (file and line), the files you changed for it, and anything a person should look at (behaviour at runtime, configuration, environment).\n"); s.push_str("\n## Advisories\n"); for f in members { @@ -5955,6 +6006,7 @@ mod tests { failing: vec!["test".into()], checks: vec!["build".into(), "test".into()], }, + ..Default::default() }; let pr = pr_body_with( &unit, diff --git a/services/common/src/security_testdata/dep_fix_replay.json b/services/common/src/security_testdata/dep_fix_replay.json new file mode 100644 index 000000000..f976927b1 --- /dev/null +++ b/services/common/src/security_testdata/dep_fix_replay.json @@ -0,0 +1,9018 @@ +{ +"web-monorepo": [ +{ +"id": "web-001", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.27.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-002", +"package": "lib-002", +"version": "2.0.3", +"fixed_version": "2.1.6", +"fixed": [ +"5.0.11", +"3.0.8", +"2.1.6", +"1.1.20" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-003", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.24.0", +"fixed": [ +"6.24.0", +"7.24.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-004", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.4", +"fixed": [ +"5.3.5", +"4.5.4" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-005", +"package": "lib-004", +"version": "9.0.5", +"fixed_version": "11.0.1", +"fixed": [ +"11.0.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-006", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.27.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-007", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "5.12.0", +"fixed": [ +"5.12.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-008", +"package": "lib-005", +"version": "6.1.4", +"fixed_version": "6.1.5", +"fixed": [ +"6.1.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-009", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.24.0", +"fixed": [ +"6.24.0", +"7.24.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-010", +"package": "lib-006", +"version": "10.48.0", +"fixed_version": "10.75.2", +"fixed": [ +"9.47.2", +"10.75.2", +"11.0.0-rc.1" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-011", +"package": "lib-007", +"version": "2.0.19", +"fixed_version": "2.1.13", +"fixed": [ +"2.1.13" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-012", +"package": "lib-008", +"version": "2.3.1", +"fixed_version": "2.3.2", +"fixed": [ +"4.0.4", +"3.0.2", +"2.3.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-013", +"package": "lib-009", +"version": "3.25.76", +"fixed_version": "4.6.6", +"fixed": [ +"4.6.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t4/package.json" +}, +{ +"id": "web-014", +"package": "lib-010", +"version": "2.8.2", +"fixed_version": "2.8.3", +"fixed": [ +"2.8.3", +"1.10.3" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-015", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.2", +"fixed": [ +"1.15.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-016", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.28.0", +"fixed": [ +"6.28.0", +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-017", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "5.3.4", +"fixed": [ +"5.3.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-018", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.15.2", +"fixed": [ +"4.3.2", +"3.15.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-019", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.20.0", +"fixed": [ +"0.34.0", +"1.20.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-020", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.7.4", +"fixed": [ +"10.7.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-021", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.4", +"fixed": [ +"5.3.8", +"4.5.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-022", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.0", +"fixed": [ +"3.4.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-023", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-024", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.4", +"fixed": [ +"5.3.5", +"4.5.4" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-025", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.3.1", +"fixed": [ +"10.3.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-026", +"package": "lib-016", +"version": "4.0.1", +"fixed_version": "4.8.1", +"fixed": [ +"4.8.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-027", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.24.0", +"fixed": [ +"6.24.0", +"7.24.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-028", +"package": "lib-017", +"version": "1.15.4", +"fixed_version": "1.15.6", +"fixed": [ +"2.0.1-rc.15", +"1.15.6" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-029", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.20", +"fixed": [ +"5.0.11", +"3.0.8", +"2.1.6", +"1.1.20" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-030", +"package": "lib-018", +"version": "5.0.5", +"fixed_version": "5.2.0", +"fixed": [ +"5.2.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-031", +"package": "lib-019", +"version": "3.3.11", +"fixed_version": "3.3.16", +"fixed": [ +"3.3.16", +"5.1.16" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-032", +"package": "lib-010", +"version": "1.10.2", +"fixed_version": "1.10.3", +"fixed": [ +"2.8.3", +"1.10.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-033", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.24.0", +"fixed": [ +"6.24.0", +"7.24.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-034", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.20.0", +"fixed": [ +"1.20.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-035", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.12", +"fixed": [ +"2.0.2", +"1.1.12", +"3.0.1", +"4.0.1" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-036", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.7", +"fixed": [ +"8.3.3", +"8.2.4", +"8.1.6", +"7.3.7", +"6.4.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-037", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.18", +"fixed": [ +"1.1.18", +"2.1.4", +"3.0.6", +"5.0.9" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-038", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.0", +"fixed": [ +"1.15.0", +"0.31.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-039", +"package": "lib-021", +"version": "8.4.49", +"fixed_version": "8.5.18", +"fixed": [ +"8.5.18" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-040", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.28.0", +"fixed": [ +"6.28.0", +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-041", +"package": "lib-017", +"version": "1.15.4", +"fixed_version": "1.15.6", +"fixed": [ +"2.0.1-rc.15", +"1.15.6" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-042", +"package": "lib-022", +"version": "2.11.1", +"fixed_version": "2.14.1", +"fixed": [ +"2.14.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-043", +"package": "lib-004", +"version": "9.0.5", +"fixed_version": "9.0.7", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.4" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-044", +"package": "lib-023", +"version": "0.33.0", +"fixed_version": "0.40.0", +"fixed": [ +"0.40.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-045", +"package": "lib-004", +"version": "3.1.2", +"fixed_version": "3.1.3", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.3" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-046", +"package": "lib-019", +"version": "3.3.11", +"fixed_version": "3.3.18", +"fixed": [ +"3.3.18", +"5.1.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-047", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.6", +"fixed": [ +"3.4.6" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-048", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-049", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-050", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.3", +"fixed": [ +"1.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-051", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.18.0", +"fixed": [ +"0.33.0", +"1.18.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-052", +"package": "lib-001", +"version": "7.30.1", +"fixed_version": "8.12.2", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-053", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.28.1", +"fixed": [ +"6.28.1", +"7.29.1", +"8.10.2" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-054", +"package": "lib-024", +"version": "1.30.1", +"fixed_version": "2.8.0", +"fixed": [ +"2.8.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-055", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.2", +"fixed": [ +"8.0.5", +"7.3.2", +"6.4.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-056", +"package": "lib-025", +"version": "2.1.1", +"fixed_version": "3.2.2", +"fixed": [ +"3.2.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-057", +"package": "lib-026", +"version": "4.0.2", +"fixed_version": "4.0.4", +"fixed": [ +"8.0.3", +"5.2.2", +"4.0.4", +"3.5.1" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-058", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-059", +"package": "lib-023", +"version": "0.18.1", +"fixed_version": "0.40.0", +"fixed": [ +"0.40.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-060", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-061", +"package": "lib-027", +"version": "8.3.2", +"fixed_version": "11.1.1", +"fixed": [ +"12.0.1", +"13.0.1", +"11.1.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-062", +"package": "lib-027", +"version": "11.1.0", +"fixed_version": "11.1.1", +"fixed": [ +"11.1.1", +"12.0.1", +"13.0.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-063", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.20.0", +"fixed": [ +"1.20.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-064", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.0", +"fixed": [ +"1.4.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-065", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.7.1", +"fixed": [ +"10.7.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-066", +"package": "lib-028", +"version": "8.20.0", +"fixed_version": "8.21.0", +"fixed": [ +"5.2.5", +"6.2.4", +"7.5.11", +"8.21.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-067", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.21", +"fixed": [ +"5.0.12", +"3.0.9", +"2.1.7", +"1.1.21" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-068", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-069", +"package": "lib-029", +"version": "1.8.3", +"fixed_version": "1.9.0", +"fixed": [ +"1.9.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-070", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.9", +"fixed": [ +"4.7.9" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-071", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.18.0", +"fixed": [ +"0.33.0", +"1.18.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-072", +"package": "lib-031", +"version": "3.5.22", +"fixed_version": "3.5.42", +"fixed": [ +"3.5.42", +"3.6.0-rc.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-073", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.9", +"fixed": [ +"4.7.9" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-074", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.7.1", +"fixed": [ +"10.7.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-075", +"package": "lib-021", +"version": "8.4.49", +"fixed_version": "8.5.12", +"fixed": [ +"8.5.12" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-076", +"package": "lib-032", +"version": "4.28.2", +"fixed_version": "4.28.7", +"fixed": [ +"4.28.7" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-077", +"package": "lib-027", +"version": "8.3.2", +"fixed_version": "11.1.1", +"fixed": [ +"11.1.1", +"12.0.1", +"13.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-078", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.10", +"fixed": [ +"4.7.10" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-079", +"package": "lib-002", +"version": "2.0.3", +"fixed_version": "2.1.3", +"fixed": [ +"5.0.8", +"3.0.3", +"2.1.3", +"1.1.17" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-080", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.4", +"fixed": [ +"5.3.8", +"4.5.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-081", +"package": "lib-019", +"version": "3.3.11", +"fixed_version": "3.3.12", +"fixed": [ +"3.3.12", +"5.1.11" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-082", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.5", +"fixed": [ +"4.5.5", +"5.5.7" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-083", +"package": "lib-033", +"version": "6.1.2", +"fixed_version": "6.1.5", +"fixed": [ +"7.1.6", +"6.1.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-084", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.3.2", +"fixed": [ +"3.3.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-085", +"package": "lib-028", +"version": "7.5.10", +"fixed_version": "7.5.11", +"fixed": [ +"5.2.5", +"6.2.4", +"7.5.11", +"8.21.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-086", +"package": "lib-003", +"version": "5.2.5", +"fixed_version": "5.3.4", +"fixed": [ +"5.3.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-087", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.0", +"fixed": [ +"1.15.0", +"0.31.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-088", +"package": "lib-004", +"version": "9.0.5", +"fixed_version": "9.0.6", +"fixed": [ +"10.2.1", +"9.0.6", +"8.0.5", +"7.4.7", +"6.2.1", +"5.1.7", +"4.2.4", +"3.1.3" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-089", +"package": "lib-034", +"version": "14.1.0", +"fixed_version": "14.2.0", +"fixed": [ +"14.2.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-090", +"package": "lib-035", +"version": "1.8.1", +"fixed_version": "1.8.2", +"fixed": [ +"1.8.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-091", +"package": "lib-019", +"version": "5.1.5", +"fixed_version": "5.1.6", +"fixed": [ +"3.3.18", +"5.1.6" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-092", +"package": "lib-004", +"version": "3.1.2", +"fixed_version": "3.1.4", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.4" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-093", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-094", +"package": "lib-036", +"version": "0.5.16", +"fixed_version": "0.6.1", +"fixed": [ +"0.6.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-095", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.17", +"fixed": [ +"5.0.8", +"3.0.3", +"2.1.3", +"1.1.17" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-096", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.5", +"fixed": [ +"5.5.6", +"4.5.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-097", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.7", +"fixed": [ +"8.3.3", +"8.2.4", +"8.1.6", +"7.3.7", +"6.4.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-098", +"package": "lib-037", +"version": "0.44.1", +"fixed_version": "0.65.0", +"fixed": [ +"0.65.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-099", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.0", +"fixed": [ +"1.4.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-100", +"package": "lib-038", +"version": "3.1.8", +"fixed_version": "3.1.9", +"fixed": [ +"2.4.8", +"3.1.9", +"4.2.3" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-101", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.24.0", +"fixed": [ +"6.24.0", +"7.24.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-102", +"package": "lib-039", +"version": "6.12.6", +"fixed_version": "6.14.0", +"fixed": [ +"8.18.0", +"6.14.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-103", +"package": "lib-038", +"version": "3.1.8", +"fixed_version": "3.1.9", +"fixed": [ +"2.4.8", +"3.1.9", +"4.2.3" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-104", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-105", +"package": "lib-022", +"version": "2.11.1", +"fixed_version": "2.14.2", +"fixed": [ +"2.14.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-106", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.7", +"fixed": [ +"3.4.7" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-107", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.27.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-108", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.10", +"fixed": [ +"4.7.10" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-109", +"package": "lib-003", +"version": "5.2.5", +"fixed_version": "5.5.7", +"fixed": [ +"4.5.5", +"5.5.7" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-110", +"package": "lib-040", +"version": "0.45.2", +"fixed_version": "0.67.0", +"fixed": [ +"0.67.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-111", +"package": "lib-041", +"version": "2.19.0", +"fixed_version": "2.19.1", +"fixed": [ +"2.19.1" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-112", +"package": "lib-042", +"version": "11.1.0", +"fixed_version": "14.0.2", +"fixed": [ +"14.0.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-113", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.27.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P3", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-114", +"package": "lib-043", +"version": "5.0.4", +"fixed_version": "5.0.5", +"fixed": [ +"5.0.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-115", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "5.7.0", +"fixed": [ +"5.7.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-116", +"package": "lib-034", +"version": "14.1.0", +"fixed_version": "14.3.2", +"fixed": [ +"15.0.2", +"14.3.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-117", +"package": "lib-034", +"version": "14.1.0", +"fixed_version": "14.3.3", +"fixed": [ +"14.3.3", +"15.0.3" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-118", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.3.2", +"fixed": [ +"3.3.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-119", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0", +"0.32.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-120", +"package": "lib-007", +"version": "2.0.19", +"fixed_version": "2.1.11", +"fixed": [ +"2.1.11" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-121", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.3.2", +"fixed": [ +"1.3.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-122", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.10", +"fixed": [ +"4.7.10" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-123", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.6", +"fixed": [ +"3.4.6" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-124", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-125", +"package": "lib-036", +"version": "0.5.16", +"fixed_version": "0.6.1", +"fixed": [ +"0.6.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-126", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.2", +"fixed": [ +"1.15.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-127", +"package": "lib-022", +"version": "2.11.1", +"fixed_version": "2.14.2", +"fixed": [ +"2.14.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-128", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.13.5", +"fixed": [ +"1.13.5", +"0.30.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-129", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-130", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.15.1", +"fixed": [ +"4.3.1", +"3.15.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-131", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.3.0", +"fixed": [ +"3.15.0", +"4.3.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-132", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.4", +"fixed": [ +"4.5.4", +"5.3.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-133", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.5", +"fixed": [ +"5.5.6", +"4.5.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-134", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.23.0", +"fixed": [ +"7.18.2", +"6.23.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-135", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.3.2", +"fixed": [ +"1.3.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-136", +"package": "lib-003", +"version": "5.2.5", +"fixed_version": "5.7.0", +"fixed": [ +"5.7.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-137", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.5", +"fixed": [ +"8.0.16", +"7.3.5", +"6.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-138", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.8", +"fixed": [ +"3.4.8" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-139", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.17", +"fixed": [ +"3.4.17" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-140", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.24.0", +"fixed": [ +"6.24.0", +"7.24.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-141", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-142", +"package": "lib-044", +"version": "5.5.9", +"fixed_version": "5.5.11", +"fixed": [ +"5.5.11" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-143", +"package": "lib-024", +"version": "2.0.1", +"fixed_version": "2.8.0", +"fixed": [ +"2.8.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-144", +"package": "lib-036", +"version": "0.5.16", +"fixed_version": "0.6.0", +"fixed": [ +"0.6.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-145", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.9", +"fixed": [ +"4.7.9" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-146", +"package": "lib-032", +"version": "4.28.2", +"fixed_version": "4.28.7", +"fixed": [ +"4.28.7" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-147", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.2.0", +"fixed": [ +"4.2.0", +"3.15.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-148", +"package": "lib-003", +"version": "5.2.5", +"fixed_version": "5.3.8", +"fixed": [ +"5.3.8", +"4.5.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-149", +"package": "lib-033", +"version": "6.1.2", +"fixed_version": "6.1.3", +"fixed": [ +"6.1.3", +"7.1.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-150", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.18.0", +"fixed": [ +"1.18.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-151", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.16", +"fixed": [ +"3.4.16" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-152", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.15.0", +"fixed": [ +"3.15.0", +"4.3.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-153", +"package": "lib-045", +"version": "3.0.12", +"fixed_version": "3.0.28", +"fixed": [ +"3.0.28", +"4.0.33", +"5.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-154", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.15.0", +"fixed": [ +"4.2.0", +"3.15.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-155", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-156", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-157", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.4", +"fixed": [ +"4.5.4", +"5.3.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-158", +"package": "lib-003", +"version": "5.2.5", +"fixed_version": "5.3.6", +"fixed": [ +"4.5.4", +"5.3.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-159", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.18.0", +"fixed": [ +"1.18.0", +"0.33.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-160", +"package": "lib-003", +"version": "5.2.5", +"fixed_version": "5.12.0", +"fixed": [ +"5.12.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-161", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.27.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-162", +"package": "lib-046", +"version": "0.66.0", +"fixed_version": "0.73.0", +"fixed": [ +"0.73.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-163", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-164", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.2.7", +"fixed": [ +"3.2.7" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-165", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0", +"0.32.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-166", +"package": "lib-001", +"version": "6.28.1", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-167", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.28.0", +"fixed": [ +"6.28.0", +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-168", +"package": "lib-047", +"version": "0.3.3", +"fixed_version": "0.3.4", +"fixed": [ +"0.3.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-169", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "4.5.5", +"fixed": [ +"4.5.5", +"5.5.7" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-170", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.0", +"fixed": [ +"3.4.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-171", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.0", +"fixed": [ +"1.4.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-172", +"package": "lib-029", +"version": "1.8.3", +"fixed_version": "1.8.4", +"fixed": [ +"1.8.4" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-173", +"package": "lib-036", +"version": "0.5.16", +"fixed_version": "0.6.1", +"fixed": [ +"0.6.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-174", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.5", +"fixed": [ +"8.0.16", +"7.3.5", +"6.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-175", +"package": "lib-042", +"version": "10.5.0", +"fixed_version": "14.0.2", +"fixed": [ +"14.0.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-176", +"package": "lib-004", +"version": "3.1.2", +"fixed_version": "3.1.3", +"fixed": [ +"10.2.1", +"9.0.6", +"8.0.5", +"7.4.7", +"6.2.1", +"5.1.7", +"4.2.4", +"3.1.3" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-177", +"package": "lib-038", +"version": "3.1.8", +"fixed_version": "3.1.9", +"fixed": [ +"2.4.8", +"3.1.9", +"4.2.3" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-178", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.7", +"fixed": [ +"3.4.7" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-179", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.27.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-180", +"package": "lib-007", +"version": "2.0.19", +"fixed_version": "2.1.11", +"fixed": [ +"2.1.11" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-181", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-182", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.1.1", +"fixed": [ +"10.1.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-183", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-184", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.27.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-185", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.9", +"fixed": [ +"3.4.9" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-186", +"package": "lib-002", +"version": "2.0.3", +"fixed_version": "2.1.5", +"fixed": [ +"5.0.10", +"3.0.7", +"2.1.5", +"1.1.19" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-187", +"package": "lib-004", +"version": "3.1.2", +"fixed_version": "11.0.1", +"fixed": [ +"11.0.1" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "dev", +"manifest": "tools/t5/pnpm-lock.yaml" +}, +{ +"id": "web-188", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-189", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.3.2", +"fixed": [ +"3.3.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-190", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-191", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0", +"0.32.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-192", +"package": "lib-004", +"version": "9.0.5", +"fixed_version": "9.0.7", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.3" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-193", +"package": "lib-018", +"version": "5.0.5", +"fixed_version": "5.2.2", +"fixed": [ +"5.2.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-194", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.9", +"fixed": [ +"4.7.9" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-195", +"package": "lib-018", +"version": "5.0.5", +"fixed_version": "5.3.0", +"fixed": [ +"5.3.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-196", +"package": "lib-048", +"version": "5.0.0", +"fixed_version": "5.0.2", +"fixed": [ +"5.0.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-197", +"package": "lib-049", +"version": "4.17.21", +"fixed_version": "4.18.0", +"fixed": [ +"4.18.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-198", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-199", +"package": "lib-018", +"version": "5.0.5", +"fixed_version": "5.3.1", +"fixed": [ +"5.3.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-200", +"package": "lib-050", +"version": "0.4.1", +"fixed_version": "0.5.0", +"fixed": [ +"0.5.0" +], +"tier": "P2", +"verdict": "reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-201", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.3.2", +"fixed": [ +"3.3.2", +"2.5.9" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-202", +"package": "lib-051", +"version": "0.60.0", +"fixed_version": "0.67.0", +"fixed": [ +"0.67.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-203", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.9", +"fixed": [ +"4.7.9" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-204", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-205", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-206", +"package": "lib-027", +"version": "9.0.1", +"fixed_version": "11.1.1", +"fixed": [ +"12.0.1", +"13.0.1", +"11.1.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-207", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.7", +"fixed": [ +"8.3.3", +"8.2.4", +"8.1.6", +"7.3.7", +"6.4.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-208", +"package": "lib-001", +"version": "7.30.1", +"fixed_version": "8.12.2", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-209", +"package": "lib-037", +"version": "0.58.0", +"fixed_version": "0.65.0", +"fixed": [ +"0.65.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-210", +"package": "lib-034", +"version": "14.1.0", +"fixed_version": "14.3.3", +"fixed": [ +"14.3.3", +"15.0.3" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-211", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-212", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-213", +"package": "lib-019", +"version": "5.1.5", +"fixed_version": "5.1.16", +"fixed": [ +"3.3.16", +"5.1.16" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-214", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "5.12.0", +"fixed": [ +"5.12.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-215", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.0", +"fixed": [ +"3.4.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-216", +"package": "lib-028", +"version": "7.5.10", +"fixed_version": "8.20.1", +"fixed": [ +"8.20.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-217", +"package": "lib-017", +"version": "1.15.4", +"fixed_version": "1.15.5", +"fixed": [ +"1.15.5" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-218", +"package": "lib-052", +"version": "0.0.33", +"fixed_version": "0.2.4", +"fixed": [ +"0.2.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-219", +"package": "lib-021", +"version": "8.4.49", +"fixed_version": "8.5.10", +"fixed": [ +"8.5.10" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-220", +"package": "lib-001", +"version": "6.28.1", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-221", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.27.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P3", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-222", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.0", +"fixed": [ +"3.4.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-223", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.13", +"fixed": [ +"3.4.13" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-224", +"package": "lib-046", +"version": "0.51.1", +"fixed_version": "0.73.0", +"fixed": [ +"0.73.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-225", +"package": "lib-053", +"version": "2.5.4", +"fixed_version": "2.9.14", +"fixed": [ +"2.9.14" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-226", +"package": "lib-008", +"version": "4.0.3", +"fixed_version": "4.0.4", +"fixed": [ +"4.0.4", +"3.0.2", +"2.3.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-227", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-228", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-229", +"package": "lib-054", +"version": "4.0.5", +"fixed_version": "4.0.6", +"fixed": [ +"2.5.6", +"3.0.5", +"4.0.6" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-230", +"package": "lib-055", +"version": "2.7.6", +"fixed_version": "2.9.14", +"fixed": [ +"2.9.14" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "direct", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-231", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.1.1", +"fixed": [ +"4.1.1", +"3.14.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-232", +"package": "lib-019", +"version": "5.1.5", +"fixed_version": "5.1.11", +"fixed": [ +"3.3.12", +"5.1.11" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-233", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.9", +"fixed": [ +"4.7.9" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-234", +"package": "lib-056", +"version": "7.28.5", +"fixed_version": "7.29.4", +"fixed": [ +"7.29.4", +"8.0.0-alpha.13" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-235", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.2", +"fixed": [ +"1.15.2", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-236", +"package": "lib-027", +"version": "13.0.0", +"fixed_version": "13.0.1", +"fixed": [ +"11.1.1", +"12.0.1", +"13.0.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-237", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.9", +"fixed": [ +"4.7.9" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-238", +"package": "lib-057", +"version": "2.9.3", +"fixed_version": "2.9.4", +"fixed": [ +"2.9.4" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-239", +"package": "lib-058", +"version": "1.27.0", +"fixed_version": "1.30.0", +"fixed": [ +"1.30.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-240", +"package": "lib-042", +"version": "13.0.6", +"fixed_version": "14.0.2", +"fixed": [ +"14.0.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-241", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-242", +"package": "lib-036", +"version": "0.5.16", +"fixed_version": "0.6.1", +"fixed": [ +"0.6.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-243", +"package": "lib-022", +"version": "2.11.1", +"fixed_version": "2.14.2", +"fixed": [ +"2.14.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-244", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-245", +"package": "lib-059", +"version": "4.44.1", +"fixed_version": "4.59.0", +"fixed": [ +"2.80.0", +"3.30.0", +"4.59.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-246", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.5.1", +"fixed": [ +"10.5.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-247", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.18.0", +"fixed": [ +"0.33.0", +"1.18.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-248", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.2", +"fixed": [ +"8.0.5", +"7.3.2", +"6.4.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-249", +"package": "lib-042", +"version": "7.2.3", +"fixed_version": "14.0.2", +"fixed": [ +"14.0.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-250", +"package": "lib-003", +"version": "5.2.5", +"fixed_version": "5.3.5", +"fixed": [ +"5.3.5", +"4.5.4" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-251", +"package": "lib-036", +"version": "0.5.16", +"fixed_version": "0.6.1", +"fixed": [ +"0.6.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-252", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.3", +"fixed": [ +"1.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-253", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.28.1", +"fixed": [ +"6.28.1", +"7.29.1", +"8.10.2" +], +"tier": "P3", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-254", +"package": "lib-038", +"version": "3.1.8", +"fixed_version": "3.1.9", +"fixed": [ +"2.4.8", +"3.1.9", +"4.2.3" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-255", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.19", +"fixed": [ +"5.0.10", +"3.0.7", +"2.1.5", +"1.1.19" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-256", +"package": "lib-060", +"version": "0.60.0", +"fixed_version": "0.67.0", +"fixed": [ +"0.67.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-257", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.12", +"fixed": [ +"3.4.12" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-258", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.3.1", +"fixed": [ +"4.3.1", +"3.15.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-259", +"package": "lib-051", +"version": "0.45.1", +"fixed_version": "0.67.0", +"fixed": [ +"0.67.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-260", +"package": "lib-040", +"version": "0.60.0", +"fixed_version": "0.67.0", +"fixed": [ +"0.67.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-261", +"package": "lib-049", +"version": "4.17.21", +"fixed_version": "4.17.23", +"fixed": [ +"4.17.23" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-262", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.17", +"fixed": [ +"3.4.17" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-263", +"package": "lib-021", +"version": "8.4.49", +"fixed_version": "8.5.23", +"fixed": [ +"8.5.23" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-264", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-265", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0", +"0.32.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-266", +"package": "lib-030", +"version": "4.7.8", +"fixed_version": "4.7.9", +"fixed": [ +"4.7.9" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-267", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.28.0", +"fixed": [ +"6.28.0", +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-268", +"package": "lib-002", +"version": "2.0.3", +"fixed_version": "2.1.7", +"fixed": [ +"5.0.12", +"3.0.9", +"2.1.7", +"1.1.21" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-269", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-270", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-271", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.28.0", +"fixed": [ +"6.28.0", +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-272", +"package": "lib-002", +"version": "2.0.3", +"fixed_version": "2.1.4", +"fixed": [ +"1.1.18", +"2.1.4", +"3.0.6", +"5.0.9" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-273", +"package": "lib-001", +"version": "7.30.1", +"fixed_version": "8.12.2", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-274", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.7", +"fixed": [ +"8.3.3", +"8.2.4", +"8.1.6", +"7.3.7", +"6.4.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-275", +"package": "lib-061", +"version": "7.29.0", +"fixed_version": "7.29.6", +"fixed": [ +"8.0.0-rc.6", +"7.29.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-276", +"package": "lib-009", +"version": "4.3.6", +"fixed_version": "4.6.6", +"fixed": [ +"4.6.6" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-277", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.13", +"fixed": [ +"5.0.5", +"3.0.2", +"2.0.3", +"1.1.13" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-278", +"package": "lib-062", +"version": "0.16.6", +"fixed_version": "0.16.8", +"fixed": [ +"0.16.8" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-279", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.3.2", +"fixed": [ +"4.3.2", +"3.15.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-280", +"package": "lib-017", +"version": "1.15.4", +"fixed_version": "1.15.9", +"fixed": [ +"2.0.1-rc.17", +"1.15.9" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-281", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.16", +"fixed": [ +"5.0.7", +"1.1.16", +"2.1.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-282", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.24.0", +"fixed": [ +"6.24.0", +"7.24.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-283", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.20.0", +"fixed": [ +"1.20.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-284", +"package": "lib-001", +"version": "6.28.1", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-285", +"package": "lib-004", +"version": "10.2.6", +"fixed_version": "11.0.1", +"fixed": [ +"11.0.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-286", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-287", +"package": "lib-001", +"version": "6.28.1", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-288", +"package": "lib-060", +"version": "0.46.1", +"fixed_version": "0.67.0", +"fixed": [ +"0.67.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-289", +"package": "lib-063", +"version": "4.17.23", +"fixed_version": "4.18.0", +"fixed": [ +"4.18.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-290", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-291", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.3", +"fixed": [ +"1.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-292", +"package": "lib-018", +"version": "5.0.5", +"fixed_version": "6.2.1", +"fixed": [ +"6.2.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-293", +"package": "lib-048", +"version": "5.0.0", +"fixed_version": "5.0.1", +"fixed": [ +"5.0.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-294", +"package": "lib-025", +"version": "2.1.1", +"fixed_version": "3.2.1", +"fixed": [ +"3.2.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-295", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.3", +"fixed": [ +"1.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-296", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.3.2", +"fixed": [ +"1.3.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-297", +"package": "lib-036", +"version": "0.5.16", +"fixed_version": "0.6.1", +"fixed": [ +"0.6.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-298", +"package": "lib-034", +"version": "14.1.0", +"fixed_version": "14.1.1", +"fixed": [ +"14.1.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-299", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.2", +"fixed": [ +"8.0.5", +"7.3.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-300", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.0", +"fixed": [ +"1.4.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-301", +"package": "lib-052", +"version": "0.0.33", +"fixed_version": "0.2.6", +"fixed": [ +"0.2.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-302", +"package": "lib-064", +"version": "1.15.9", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-303", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.23.0", +"fixed": [ +"7.18.2", +"6.23.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-304", +"package": "lib-034", +"version": "14.1.0", +"fixed_version": "14.3.1", +"fixed": [ +"15.0.1", +"14.3.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-305", +"package": "lib-004", +"version": "3.1.2", +"fixed_version": "11.0.1", +"fixed": [ +"11.0.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-306", +"package": "lib-014", +"version": "3.2.6", +"fixed_version": "3.4.11", +"fixed": [ +"3.4.11" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-307", +"package": "lib-001", +"version": "7.30.1", +"fixed_version": "8.12.2", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-308", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.24.0", +"fixed": [ +"6.24.0", +"7.24.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-309", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.14.2", +"fixed": [ +"4.1.1", +"3.14.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-310", +"package": "lib-050", +"version": "0.4.1", +"fixed_version": "0.5.1", +"fixed": [ +"0.5.1" +], +"tier": "P1", +"verdict": "reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-311", +"package": "lib-028", +"version": "8.20.0", +"fixed_version": "8.20.1", +"fixed": [ +"8.20.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-312", +"package": "lib-001", +"version": "7.30.1", +"fixed_version": "8.12.2", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-313", +"package": "lib-020", +"version": "7.3.1", +"fixed_version": "7.3.7", +"fixed": [ +"8.3.3", +"8.2.4", +"8.1.6", +"7.3.7", +"6.4.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-314", +"package": "lib-008", +"version": "4.0.3", +"fixed_version": "4.0.4", +"fixed": [ +"4.0.4", +"3.0.2", +"2.3.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-315", +"package": "lib-008", +"version": "2.3.1", +"fixed_version": "2.3.2", +"fixed": [ +"4.0.4", +"3.0.2", +"2.3.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-316", +"package": "lib-003", +"version": "4.5.3", +"fixed_version": "5.7.0", +"fixed": [ +"5.7.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-317", +"package": "lib-003", +"version": "5.2.5", +"fixed_version": "5.5.6", +"fixed": [ +"5.5.6", +"4.5.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "tools/t3/package-lock.json" +}, +{ +"id": "web-318", +"package": "lib-055", +"version": "2.7.6", +"fixed_version": "2.9.14", +"fixed": [ +"2.9.14" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "direct", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-319", +"package": "lib-001", +"version": "6.28.1", +"fixed_version": "6.29.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +}, +{ +"id": "web-320", +"package": "lib-017", +"version": "1.15.4", +"fixed_version": "1.15.9", +"fixed": [ +"1.15.9" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-321", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-322", +"package": "lib-009", +"version": "3.25.76", +"fixed_version": "4.6.6", +"fixed": [ +"4.6.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-323", +"package": "lib-011", +"version": "1.12.2", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-324", +"package": "lib-063", +"version": "4.17.23", +"fixed_version": "4.18.1", +"fixed": [ +"4.18.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-325", +"package": "lib-002", +"version": "2.0.3", +"fixed_version": "2.1.2", +"fixed": [ +"5.0.7", +"1.1.16", +"2.1.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "web-326", +"package": "lib-015", +"version": "1.3.1", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "web-327", +"package": "lib-001", +"version": "5.29.0", +"fixed_version": "6.28.0", +"fixed": [ +"6.28.0", +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "runtime", +"manifest": "tools/t2/package-lock.json" +} +], +"api-service": [ +{ +"id": "api-001", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.1", +"fixed": [ +"7.29.1", +"8.10.2" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-002", +"package": "lib-008", +"version": "4.0.1", +"fixed_version": "4.0.4", +"fixed": [ +"4.0.4", +"3.0.2", +"2.3.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-003", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.1.1", +"fixed": [ +"2.1.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-004", +"package": "lib-032", +"version": "4.24.4", +"fixed_version": "4.28.7", +"fixed": [ +"4.28.7" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-005", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.21", +"fixed": [ +"7.5.21" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-006", +"package": "lib-067", +"version": "6.14.0", +"fixed_version": "6.14.2", +"fixed": [ +"6.14.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-007", +"package": "lib-003", +"version": "4.4.1", +"fixed_version": "4.5.5", +"fixed": [ +"4.5.5", +"5.5.7" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-008", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.3.2", +"fixed": [ +"4.3.2", +"3.15.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-009", +"package": "lib-068", +"version": "10.4.15", +"fixed_version": "10.4.16", +"fixed": [ +"11.0.16", +"10.4.16" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-010", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.7.4", +"fixed": [ +"10.7.4" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-011", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.13", +"fixed": [ +"5.0.5", +"3.0.2", +"2.0.3", +"1.1.13" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-012", +"package": "lib-004", +"version": "5.1.6", +"fixed_version": "5.1.8", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.3" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-013", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-014", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.28.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-015", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.3.1", +"fixed": [ +"10.3.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-016", +"package": "lib-069", +"version": "0.1.12", +"fixed_version": "0.1.13", +"fixed": [ +"0.1.13" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-017", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.30.1", +"fixed": [ +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-018", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.5.6", +"fixed": [ +"7.5.6", +"8.0.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-019", +"package": "lib-008", +"version": "2.3.1", +"fixed_version": "2.3.2", +"fixed": [ +"4.0.4", +"3.0.2", +"2.3.2" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-020", +"package": "lib-071", +"version": "2.0.7", +"fixed_version": "2.0.8", +"fixed": [ +"2.0.8", +"3.0.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-021", +"package": "lib-067", +"version": "6.14.0", +"fixed_version": "6.14.1", +"fixed": [ +"6.14.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-022", +"package": "lib-042", +"version": "7.2.3", +"fixed_version": "14.0.2", +"fixed": [ +"14.0.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-023", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-024", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0", +"0.32.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-025", +"package": "lib-072", +"version": "1.20.3", +"fixed_version": "1.20.6", +"fixed": [ +"1.20.6", +"2.3.0" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-026", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.0", +"fixed": [ +"1.15.0", +"0.31.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-027", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.5.1", +"fixed": [ +"10.5.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-028", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-029", +"package": "lib-004", +"version": "3.1.2", +"fixed_version": "3.1.3", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.3" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-030", +"package": "lib-049", +"version": "4.17.21", +"fixed_version": "4.17.23", +"fixed": [ +"4.17.23" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-031", +"package": "lib-072", +"version": "1.20.3", +"fixed_version": "1.20.9", +"fixed": [ +"2.4.0", +"1.20.9" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-032", +"package": "lib-004", +"version": "3.1.2", +"fixed_version": "3.1.4", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.4" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-033", +"package": "lib-054", +"version": "2.5.3", +"fixed_version": "2.5.6", +"fixed": [ +"2.5.6", +"3.0.5", +"4.0.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-034", +"package": "lib-003", +"version": "4.4.1", +"fixed_version": "5.12.0", +"fixed": [ +"5.12.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-035", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.2", +"fixed": [ +"1.15.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-036", +"package": "lib-073", +"version": "0.7.4", +"fixed_version": "0.7.5", +"fixed": [ +"0.7.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-037", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-038", +"package": "lib-074", +"version": "6.0.2", +"fixed_version": "7.1.3", +"fixed": [ +"7.1.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-039", +"package": "lib-075", +"version": "1.14.3", +"fixed_version": "1.14.4", +"fixed": [ +"1.9.16", +"1.10.12", +"1.11.4", +"1.12.7", +"1.13.5", +"1.14.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-040", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-041", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.3.0", +"fixed": [ +"2.3.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-042", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.14.2", +"fixed": [ +"4.1.1", +"3.14.2" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-043", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.18", +"fixed": [ +"7.5.18" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-044", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P3", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-045", +"package": "lib-052", +"version": "0.0.33", +"fixed_version": "0.2.6", +"fixed": [ +"0.2.6" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-046", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.1", +"fixed": [ +"7.29.1", +"8.10.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-047", +"package": "lib-032", +"version": "4.24.4", +"fixed_version": "4.28.7", +"fixed": [ +"4.28.7" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-048", +"package": "lib-074", +"version": "6.0.2", +"fixed_version": "7.0.3", +"fixed": [ +"7.0.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-049", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.18.0", +"fixed": [ +"0.33.0", +"1.18.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-050", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.16", +"fixed": [ +"7.5.16" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-051", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.28.0", +"fixed": [ +"7.28.0", +"8.5.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-052", +"package": "lib-010", +"version": "2.8.2", +"fixed_version": "2.8.3", +"fixed": [ +"2.8.3", +"1.10.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-053", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-054", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.2.0", +"fixed": [ +"2.2.0", +"3.0.0-alpha.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-055", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.1.1", +"fixed": [ +"4.1.1", +"3.14.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-056", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.2.0", +"fixed": [ +"4.2.0", +"3.15.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-057", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.6", +"fixed": [ +"2.4.5", +"3.1.6", +"4.1.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-058", +"package": "lib-004", +"version": "5.1.6", +"fixed_version": "5.1.8", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.4" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-059", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0", +"0.32.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-060", +"package": "lib-028", +"version": "8.18.0", +"fixed_version": "8.20.1", +"fixed": [ +"8.20.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-061", +"package": "lib-009", +"version": "3.24.2", +"fixed_version": "4.6.6", +"fixed": [ +"4.6.6" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-062", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.3.1", +"fixed": [ +"4.3.1", +"3.15.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-063", +"package": "lib-067", +"version": "6.14.0", +"fixed_version": "6.15.2", +"fixed": [ +"6.15.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-064", +"package": "lib-008", +"version": "4.0.1", +"fixed_version": "4.0.4", +"fixed": [ +"4.0.4", +"3.0.2", +"2.3.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-065", +"package": "lib-004", +"version": "3.1.2", +"fixed_version": "11.0.1", +"fixed": [ +"11.0.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-066", +"package": "lib-075", +"version": "1.14.3", +"fixed_version": "1.14.4", +"fixed": [ +"1.9.16", +"1.10.12", +"1.11.4", +"1.12.7", +"1.13.5", +"1.14.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-067", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-068", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-069", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.18.0", +"fixed": [ +"1.18.0", +"0.33.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-070", +"package": "lib-076", +"version": "2.0.7", +"fixed_version": "2.0.8", +"fixed": [ +"2.0.8" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-071", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.30.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-072", +"package": "lib-003", +"version": "4.4.1", +"fixed_version": "4.5.4", +"fixed": [ +"4.5.4", +"5.3.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-073", +"package": "lib-002", +"version": "2.0.1", +"fixed_version": "2.1.5", +"fixed": [ +"5.0.10", +"3.0.7", +"2.1.5", +"1.1.19" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-074", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-075", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.28.0", +"fixed": [ +"7.28.0", +"8.2.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-076", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.1", +"fixed": [ +"7.29.1", +"8.10.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-077", +"package": "lib-028", +"version": "7.5.10", +"fixed_version": "8.20.1", +"fixed": [ +"8.20.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-078", +"package": "lib-077", +"version": "2.10.0", +"fixed_version": "2.10.5", +"fixed": [ +"2.9.6", +"2.10.5", +"2.11.6", +"2.12.3", +"2.13.2" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-079", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.15.0", +"fixed": [ +"3.15.0", +"4.3.0" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-080", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.18.0", +"fixed": [ +"0.33.0", +"1.18.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-081", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.10", +"fixed": [ +"7.5.10" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-082", +"package": "lib-078", +"version": "1.24.1", +"fixed_version": "2.0.1", +"fixed": [ +"2.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-083", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.0", +"fixed": [ +"6.28.0", +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-084", +"package": "lib-004", +"version": "9.0.5", +"fixed_version": "9.0.7", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.4" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-085", +"package": "lib-002", +"version": "2.0.1", +"fixed_version": "2.1.2", +"fixed": [ +"5.0.7", +"1.1.16", +"2.1.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-086", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.4", +"fixed": [ +"7.5.4" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-087", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.15.2", +"fixed": [ +"4.3.2", +"3.15.2" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-088", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.0", +"fixed": [ +"6.28.0", +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-089", +"package": "lib-061", +"version": "7.26.10", +"fixed_version": "7.29.6", +"fixed": [ +"8.0.0-rc.6", +"7.29.6" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-090", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.1", +"fixed": [ +"7.29.1", +"8.10.2" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-091", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.5.6", +"fixed": [ +"7.5.6", +"8.0.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-092", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.0.0", +"fixed": [ +"2.0.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-093", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-094", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-095", +"package": "lib-002", +"version": "2.0.1", +"fixed_version": "2.1.4", +"fixed": [ +"1.1.18", +"2.1.4", +"3.0.6", +"5.0.9" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-096", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.20.0", +"fixed": [ +"1.20.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-097", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-098", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-099", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.0", +"fixed": [ +"1.15.0", +"0.31.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-100", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.30.1", +"fixed": [ +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-101", +"package": "lib-079", +"version": "1.1.0", +"fixed_version": "1.1.1", +"fixed": [ +"1.1.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-102", +"package": "lib-027", +"version": "9.0.1", +"fixed_version": "11.1.1", +"fixed": [ +"11.1.1", +"12.0.1", +"13.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-103", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.0.0", +"fixed": [ +"2.0.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-104", +"package": "lib-025", +"version": "3.1.1", +"fixed_version": "3.2.1", +"fixed": [ +"3.2.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-105", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.5.6", +"fixed": [ +"7.5.6", +"8.0.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-106", +"package": "lib-075", +"version": "1.14.3", +"fixed_version": "1.14.5", +"fixed": [ +"1.13.6", +"1.14.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-107", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.17", +"fixed": [ +"7.5.17" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-108", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.0", +"fixed": [ +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-109", +"package": "lib-080", +"version": "4.5.0", +"fixed_version": "4.18.0", +"fixed": [ +"4.18.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-110", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.3", +"fixed": [ +"1.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-111", +"package": "lib-025", +"version": "3.1.1", +"fixed_version": "3.2.1", +"fixed": [ +"3.2.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-112", +"package": "lib-078", +"version": "1.24.1", +"fixed_version": "2.0.1", +"fixed": [ +"2.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "package.json" +}, +{ +"id": "api-113", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-114", +"package": "lib-054", +"version": "2.5.3", +"fixed_version": "2.5.4", +"fixed": [ +"2.5.4", +"3.0.4", +"4.0.4" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-115", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.18.0", +"fixed": [ +"0.33.0", +"1.18.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-116", +"package": "lib-081", +"version": "0.3.21", +"fixed_version": "0.3.31", +"fixed": [ +"0.3.31", +"1.1.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-117", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.5", +"fixed": [ +"2.4.4", +"3.1.5", +"4.1.2" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-118", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.4", +"fixed": [ +"2.4.3", +"3.1.4", +"4.1.1" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-119", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.0.1", +"fixed": [ +"2.0.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-120", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.18", +"fixed": [ +"1.1.18", +"2.1.4", +"3.0.6", +"5.0.9" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-121", +"package": "lib-082", +"version": "10.4.15", +"fixed_version": "11.1.18", +"fixed": [ +"11.1.18" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "package.json" +}, +{ +"id": "api-122", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.8", +"fixed": [ +"7.5.8" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-123", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.7.1", +"fixed": [ +"10.7.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-124", +"package": "lib-067", +"version": "6.14.0", +"fixed_version": "6.16.1", +"fixed": [ +"6.16.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-125", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.1", +"fixed": [ +"3.1.1", +"2.4.1" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-126", +"package": "lib-028", +"version": "7.5.10", +"fixed_version": "7.5.11", +"fixed": [ +"5.2.5", +"6.2.4", +"7.5.11", +"8.21.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-127", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-128", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-129", +"package": "lib-003", +"version": "4.4.1", +"fixed_version": "4.5.5", +"fixed": [ +"5.5.6", +"4.5.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-130", +"package": "lib-039", +"version": "6.12.6", +"fixed_version": "6.14.0", +"fixed": [ +"8.18.0", +"6.14.0" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-131", +"package": "lib-054", +"version": "4.0.2", +"fixed_version": "4.0.4", +"fixed": [ +"2.5.4", +"3.0.4", +"4.0.4" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-132", +"package": "lib-027", +"version": "11.1.0", +"fixed_version": "11.1.1", +"fixed": [ +"11.1.1", +"12.0.1", +"13.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-133", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-134", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.1", +"fixed": [ +"6.28.1", +"7.29.1", +"8.10.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-135", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.1", +"fixed": [ +"7.29.1", +"8.10.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-136", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-137", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0", +"0.32.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-138", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.3.0", +"fixed": [ +"2.3.0" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-139", +"package": "lib-003", +"version": "5.4.1", +"fixed_version": "5.5.7", +"fixed": [ +"4.5.5", +"5.5.7" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-140", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.7", +"fixed": [ +"2.4.6", +"3.1.7", +"4.1.4" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-141", +"package": "lib-083", +"version": "5.97.1", +"fixed_version": "5.104.0", +"fixed": [ +"5.104.0" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-142", +"package": "lib-067", +"version": "6.14.0", +"fixed_version": "6.16.0", +"fixed": [ +"6.16.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-143", +"package": "lib-084", +"version": "4.0.0", +"fixed_version": "4.0.1", +"fixed": [ +"3.2.3", +"4.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-144", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.18.0", +"fixed": [ +"1.18.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-145", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.9", +"fixed": [ +"2.4.8", +"3.1.9", +"4.2.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-146", +"package": "lib-085", +"version": "10.8.1", +"fixed_version": "12.0.1", +"fixed": [ +"12.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-147", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.0.2", +"fixed": [ +"2.0.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-148", +"package": "lib-086", +"version": "2.1.2", +"fixed_version": "2.1.3", +"fixed": [ +"1.16.5", +"2.1.3", +"3.0.9" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-149", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.5.5", +"fixed": [ +"8.0.1", +"7.5.5", +"6.11.6" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-150", +"package": "lib-071", +"version": "2.0.7", +"fixed_version": "2.0.9", +"fixed": [ +"2.0.9", +"3.0.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-151", +"package": "lib-085", +"version": "9.2.1", +"fixed_version": "12.0.1", +"fixed": [ +"12.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-152", +"package": "lib-003", +"version": "5.4.1", +"fixed_version": "5.5.6", +"fixed": [ +"5.5.6", +"4.5.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-153", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.19", +"fixed": [ +"7.5.19" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-154", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.1", +"fixed": [ +"6.28.1", +"7.29.1", +"8.10.2" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-155", +"package": "lib-009", +"version": "4.3.6", +"fixed_version": "4.6.6", +"fixed": [ +"4.6.6" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-156", +"package": "lib-081", +"version": "0.3.21", +"fixed_version": "0.3.29", +"fixed": [ +"0.3.29" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-157", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.2", +"fixed": [ +"1.15.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-158", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0", +"0.32.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-159", +"package": "lib-082", +"version": "10.4.15", +"fixed_version": "11.1.18", +"fixed": [ +"11.1.18" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-160", +"package": "lib-087", +"version": "2.1.2", +"fixed_version": "2.1.3", +"fixed": [ +"3.5.3", +"2.1.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-161", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.30.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-162", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.20.0", +"fixed": [ +"1.20.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-163", +"package": "lib-081", +"version": "0.3.21", +"fixed_version": "0.3.26", +"fixed": [ +"0.3.26" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-164", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.28.0", +"fixed": [ +"7.28.0", +"8.5.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-165", +"package": "lib-070", +"version": "7.5.6", +"fixed_version": "7.6.5", +"fixed": [ +"7.6.5", +"8.6.6" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-166", +"package": "lib-039", +"version": "8.12.0", +"fixed_version": "8.18.0", +"fixed": [ +"8.18.0", +"6.14.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-167", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.28.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-168", +"package": "lib-042", +"version": "10.4.5", +"fixed_version": "10.5.0", +"fixed": [ +"11.1.0", +"10.5.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-169", +"package": "lib-088", +"version": "4.0.1", +"fixed_version": "4.4.0", +"fixed": [ +"4.4.0" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-170", +"package": "lib-002", +"version": "2.0.1", +"fixed_version": "2.1.6", +"fixed": [ +"5.0.11", +"3.0.8", +"2.1.6", +"1.1.20" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-171", +"package": "lib-071", +"version": "2.0.7", +"fixed_version": "2.0.10", +"fixed": [ +"3.0.6", +"4.1.0", +"2.0.10" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-172", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.16", +"fixed": [ +"5.0.7", +"1.1.16", +"2.1.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-173", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.8", +"fixed": [ +"2.4.7", +"3.1.8", +"4.1.5" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-174", +"package": "lib-089", +"version": "2.0.0", +"fixed_version": "2.0.1", +"fixed": [ +"3.0.1", +"2.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-175", +"package": "lib-002", +"version": "2.0.1", +"fixed_version": "2.0.2", +"fixed": [ +"2.0.2", +"1.1.12", +"3.0.1", +"4.0.1" +], +"tier": "P3", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-176", +"package": "lib-002", +"version": "2.0.1", +"fixed_version": "2.0.3", +"fixed": [ +"5.0.5", +"3.0.2", +"2.0.3", +"1.1.13" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-177", +"package": "lib-004", +"version": "3.1.2", +"fixed_version": "3.1.3", +"fixed": [ +"10.2.1", +"9.0.6", +"8.0.5", +"7.4.7", +"6.2.1", +"5.1.7", +"4.2.4", +"3.1.3" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-178", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.7", +"fixed": [ +"7.5.7" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-179", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.1.0", +"fixed": [ +"2.1.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-180", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-181", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.13.5", +"fixed": [ +"1.13.5", +"0.30.3" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-182", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.5.8", +"fixed": [ +"7.5.8", +"8.2.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-183", +"package": "lib-004", +"version": "5.1.6", +"fixed_version": "5.1.7", +"fixed": [ +"10.2.1", +"9.0.6", +"8.0.5", +"7.4.7", +"6.2.1", +"5.1.7", +"4.2.4", +"3.1.3" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-184", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.30.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-185", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.28.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-186", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.3", +"fixed": [ +"1.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-187", +"package": "lib-028", +"version": "8.18.0", +"fixed_version": "8.21.0", +"fixed": [ +"5.2.5", +"6.2.4", +"7.5.11", +"8.21.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-188", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-189", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.2", +"fixed": [ +"3.1.2", +"2.4.1" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-190", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.12.0", +"fixed": [ +"1.12.0", +"0.30.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-191", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.6.3", +"fixed": [ +"7.6.3", +"8.6.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-192", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.5.6", +"fixed": [ +"7.5.6", +"8.0.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-193", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.30.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-194", +"package": "lib-090", +"version": "1.0.0", +"fixed_version": "1.1.7", +"fixed": [ +"1.1.7" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-195", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-196", +"package": "lib-091", +"version": "4.11.3", +"fixed_version": "5.5.0", +"fixed": [ +"5.5.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "package.json" +}, +{ +"id": "api-197", +"package": "lib-089", +"version": "1.1.2", +"fixed_version": "2.0.1", +"fixed": [ +"3.0.1", +"2.0.1" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-198", +"package": "lib-054", +"version": "4.0.2", +"fixed_version": "4.0.6", +"fixed": [ +"2.5.6", +"3.0.5", +"4.0.6" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-199", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-200", +"package": "lib-025", +"version": "3.1.1", +"fixed_version": "3.2.2", +"fixed": [ +"3.2.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-201", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.20.0", +"fixed": [ +"0.34.0", +"1.20.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-202", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.17", +"fixed": [ +"5.0.8", +"3.0.3", +"2.1.3", +"1.1.17" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-203", +"package": "lib-052", +"version": "0.0.33", +"fixed_version": "0.2.4", +"fixed": [ +"0.2.4" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-204", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.12", +"fixed": [ +"2.0.2", +"1.1.12", +"3.0.1", +"4.0.1" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-205", +"package": "lib-092", +"version": "3.3.3", +"fixed_version": "3.4.0", +"fixed": [ +"3.4.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-206", +"package": "lib-075", +"version": "1.14.3", +"fixed_version": "1.14.5", +"fixed": [ +"1.13.6", +"1.14.5" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-207", +"package": "lib-003", +"version": "4.4.1", +"fixed_version": "4.5.4", +"fixed": [ +"5.3.5", +"4.5.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-208", +"package": "lib-091", +"version": "4.11.3", +"fixed_version": "4.13.0", +"fixed": [ +"4.13.0", +"5.4.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-209", +"package": "lib-024", +"version": "2.0.1", +"fixed_version": "2.8.0", +"fixed": [ +"2.8.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-210", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.30.1", +"fixed": [ +"6.29.1", +"7.30.1", +"8.12.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-211", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.21", +"fixed": [ +"5.0.12", +"3.0.9", +"2.1.7", +"1.1.21" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-212", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.3.0", +"fixed": [ +"2.3.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-213", +"package": "lib-093", +"version": "13.12.0", +"fixed_version": "13.15.22", +"fixed": [ +"13.15.22" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-214", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-215", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.5.6", +"fixed": [ +"7.5.6", +"8.0.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-216", +"package": "lib-042", +"version": "7.2.3", +"fixed_version": "10.5.0", +"fixed": [ +"11.1.0", +"10.5.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-217", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-218", +"package": "lib-064", +"version": "1.15.9", +"fixed_version": "1.16.0", +"fixed": [ +"1.16.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-219", +"package": "lib-086", +"version": "2.1.2", +"fixed_version": "2.1.4", +"fixed": [ +"3.1.1", +"2.1.4", +"1.16.6" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-220", +"package": "lib-003", +"version": "4.4.1", +"fixed_version": "5.7.0", +"fixed": [ +"5.7.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-221", +"package": "lib-091", +"version": "4.11.3", +"fixed_version": "5.5.0", +"fixed": [ +"5.5.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-222", +"package": "lib-002", +"version": "2.0.1", +"fixed_version": "2.1.3", +"fixed": [ +"5.0.8", +"3.0.3", +"2.1.3", +"1.1.17" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-223", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.9", +"fixed": [ +"2.4.8", +"3.1.9", +"4.2.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-224", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.3", +"fixed": [ +"7.5.3" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-225", +"package": "lib-003", +"version": "5.4.1", +"fixed_version": "5.12.0", +"fixed": [ +"5.12.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-226", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.1", +"fixed": [ +"1.15.1", +"0.31.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-227", +"package": "lib-012", +"version": "4.1.0", +"fixed_version": "4.3.0", +"fixed": [ +"3.15.0", +"4.3.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-228", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.6.1", +"fixed": [ +"7.6.1", +"8.4.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-229", +"package": "lib-065", +"version": "1.4.4-lts.1", +"fixed_version": "2.1.0", +"fixed": [ +"2.1.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-230", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.0", +"fixed": [ +"6.28.0", +"7.29.0", +"8.9.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-231", +"package": "lib-092", +"version": "3.3.3", +"fixed_version": "3.4.2", +"fixed": [ +"3.4.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-232", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.19", +"fixed": [ +"5.0.10", +"3.0.7", +"2.1.5", +"1.1.19" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-233", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.15.1", +"fixed": [ +"4.3.1", +"3.15.1" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-234", +"package": "lib-093", +"version": "13.12.0", +"fixed_version": "13.15.20", +"fixed": [ +"13.15.20" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-235", +"package": "lib-049", +"version": "4.17.21", +"fixed_version": "4.18.0", +"fixed": [ +"4.18.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-236", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.28.0", +"fixed": [ +"6.27.0", +"7.28.0", +"8.5.0" +], +"tier": "P3", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-237", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.1", +"fixed": [ +"7.29.1", +"8.10.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-238", +"package": "lib-011", +"version": "1.8.3", +"fixed_version": "1.15.2", +"fixed": [ +"1.15.2", +"0.31.1" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-239", +"package": "lib-004", +"version": "9.0.5", +"fixed_version": "9.0.7", +"fixed": [ +"10.2.3", +"9.0.7", +"8.0.6", +"7.4.8", +"6.2.2", +"5.1.8", +"4.2.5", +"3.1.3" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-240", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.6", +"fixed": [ +"2.4.5", +"3.1.6", +"4.1.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-241", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.30.1", +"fixed": [ +"7.30.1", +"8.12.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-242", +"package": "lib-073", +"version": "0.7.4", +"fixed_version": "0.7.5", +"fixed": [ +"0.7.5" +], +"tier": "P2", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-243", +"package": "lib-004", +"version": "9.0.5", +"fixed_version": "11.0.1", +"fixed": [ +"11.0.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-244", +"package": "lib-004", +"version": "9.0.5", +"fixed_version": "9.0.6", +"fixed": [ +"10.2.1", +"9.0.6", +"8.0.5", +"7.4.7", +"6.2.1", +"5.1.7", +"4.2.4", +"3.1.3" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-245", +"package": "lib-094", +"version": "2.4.11", +"fixed_version": "2.4.12", +"fixed": [ +"2.4.12" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-246", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-247", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.11", +"fixed": [ +"7.5.11" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-248", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-249", +"package": "lib-003", +"version": "5.4.1", +"fixed_version": "5.7.0", +"fixed": [ +"5.7.0" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-250", +"package": "lib-083", +"version": "5.97.1", +"fixed_version": "5.104.1", +"fixed": [ +"5.104.1" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-251", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.1", +"fixed": [ +"7.29.1", +"8.10.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-252", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.3", +"fixed": [ +"4.0.1", +"3.1.3", +"2.4.2" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-253", +"package": "lib-066", +"version": "6.2.1", +"fixed_version": "7.5.18", +"fixed": [ +"7.5.18" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-254", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.3", +"fixed": [ +"1.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-255", +"package": "lib-027", +"version": "8.3.2", +"fixed_version": "11.1.1", +"fixed": [ +"12.0.1", +"13.0.1", +"11.1.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-256", +"package": "lib-008", +"version": "2.3.1", +"fixed_version": "2.3.2", +"fixed": [ +"4.0.4", +"3.0.2", +"2.3.2" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-257", +"package": "lib-009", +"version": "3.24.2", +"fixed_version": "4.6.6", +"fixed": [ +"4.6.6" +], +"tier": "P1", +"verdict": "unknown", +"relation": "direct", +"scope": "runtime", +"manifest": "package.json" +}, +{ +"id": "api-258", +"package": "lib-026", +"version": "4.0.2", +"fixed_version": "4.0.4", +"fixed": [ +"8.0.3", +"5.2.2", +"4.0.4", +"3.5.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-259", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.1", +"fixed": [ +"1.4.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-260", +"package": "lib-015", +"version": "1.4.0", +"fixed_version": "1.4.3", +"fixed": [ +"1.4.3" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-261", +"package": "lib-003", +"version": "4.4.1", +"fixed_version": "4.5.4", +"fixed": [ +"5.3.8", +"4.5.4" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-262", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.5.6", +"fixed": [ +"7.5.6", +"8.0.2" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-263", +"package": "lib-002", +"version": "1.1.11", +"fixed_version": "1.1.20", +"fixed": [ +"5.0.11", +"3.0.8", +"2.1.6", +"1.1.20" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-264", +"package": "lib-001", +"version": "7.25.0", +"fixed_version": "7.29.0", +"fixed": [ +"7.29.0", +"8.9.0" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-265", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.7.1", +"fixed": [ +"10.7.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-266", +"package": "lib-080", +"version": "4.5.0", +"fixed_version": "4.18.0", +"fixed": [ +"4.18.0" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-267", +"package": "lib-074", +"version": "6.0.2", +"fixed_version": "7.0.5", +"fixed": [ +"7.0.5" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-268", +"package": "lib-070", +"version": "7.4.0", +"fixed_version": "7.5.6", +"fixed": [ +"7.5.6", +"8.0.2" +], +"tier": "P1", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-269", +"package": "lib-002", +"version": "2.0.1", +"fixed_version": "2.1.7", +"fixed": [ +"5.0.12", +"3.0.9", +"2.1.7", +"1.1.21" +], +"tier": "P2", +"verdict": "unknown", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-270", +"package": "lib-084", +"version": "3.2.2", +"fixed_version": "3.2.3", +"fixed": [ +"3.2.3", +"4.0.1" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-271", +"package": "lib-013", +"version": "9.0.5", +"fixed_version": "10.1.1", +"fixed": [ +"10.1.1" +], +"tier": "P2", +"verdict": "unknown", +"relation": "transitive", +"scope": "runtime", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-272", +"package": "lib-038", +"version": "3.0.6", +"fixed_version": "3.1.9", +"fixed": [ +"2.4.8", +"3.1.9", +"4.2.3" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +}, +{ +"id": "api-273", +"package": "lib-042", +"version": "10.4.5", +"fixed_version": "14.0.2", +"fixed": [ +"14.0.2" +], +"tier": "P3", +"verdict": "not_reachable", +"relation": "unknown", +"scope": "unknown", +"manifest": "sbom" +}, +{ +"id": "api-274", +"package": "lib-012", +"version": "3.14.1", +"fixed_version": "3.15.0", +"fixed": [ +"4.2.0", +"3.15.0" +], +"tier": "P3", +"verdict": "not_loaded", +"relation": "transitive", +"scope": "dev", +"manifest": "pnpm-lock.yaml" +} +] +} \ No newline at end of file diff --git a/services/common/src/upgrade_notes.rs b/services/common/src/upgrade_notes.rs index d0866e18d..58e621599 100644 --- a/services/common/src/upgrade_notes.rs +++ b/services/common/src/upgrade_notes.rs @@ -943,6 +943,10 @@ pub struct WhatToCheck { /// The files the pull request changes. pub files: Vec, pub ci: CiState, + /// A dependency fix run's account (`dep_fix::DepRun::report_md`): the + /// bumps applied, the ones deferred with why, and the checks run in the + /// sandbox. Empty for a run without one. + pub dep_report: String, } impl WhatToCheck { @@ -1008,6 +1012,10 @@ fn runtime_notes(n: &PackageNotes) -> Vec { /// checks; a pass is said only when CI passed. pub fn what_to_check(bumps: &[Bump], w: &WhatToCheck) -> String { let mut s = String::from("## What to check\n\n"); + if !w.dep_report.trim().is_empty() { + s.push_str(w.dep_report.trim()); + s.push_str("\n\n"); + } for b in bumps { let n = w .notes @@ -1427,6 +1435,7 @@ mod tests { failing: vec!["test".into()], checks: vec!["build".into(), "test".into()], }, + ..Default::default() }; let s = what_to_check(&bumps, &w); assert!(s.starts_with("## What to check")); diff --git a/services/worker/src/agent/anthropic.rs b/services/worker/src/agent/anthropic.rs index 83fc5046a..0c3ffcc3f 100644 --- a/services/worker/src/agent/anthropic.rs +++ b/services/worker/src/agent/anthropic.rs @@ -733,6 +733,8 @@ pub async fn converse_tool_loop( // which the agent must answer from what it already learned. Without it, // everything a planner read was thrown away the moment it ran out. let mut answer_now = false; + // Turns cut at the output limit before any tool call, nudged on. + let mut cut_nudges: u32 = 0; loop { turns += 1; @@ -878,6 +880,38 @@ pub async fn converse_tool_loop( }) .collect(); + if continue_after_cut( + response.stop_reason.as_deref(), + !tool_uses.is_empty(), + !tools.is_empty() && !answer_now, + cut_nudges, + ) { + // A turn spent its whole output thinking and made no call: the + // coder once did that nine times on one README table and the run + // ended without the change. It is told to act in small steps. + cut_nudges += 1; + warn!( + max_tokens, + nudge = cut_nudges, + "A turn reached the output limit before any tool call; asking for small steps" + ); + if let Some(ref mut log) = conversation_log { + log.push(json!({ + "turn": turns, + "call": call, + "role": "system_note", + "kind": "output_limit", + "content": OUTPUT_LIMIT_NOTE, + "stop_reason": response.stop_reason, + })); + } + messages.push(( + "user".to_string(), + vec![json!({"type": "text", "text": OUTPUT_LIMIT_NOTE})], + )); + continue; + } + if tool_uses.is_empty() || response.stop_reason.as_deref() == Some("end_turn") { // An answer cut at the output limit loses whatever it was to // end with (a planner's decision block comes last): say so. @@ -1136,6 +1170,44 @@ fn call_index(log: &[Value]) -> usize { } /// Logs a message the loop put into the conversation itself. +/// Turns cut at the output limit before any tool call that are nudged on +/// before the loop takes the cut as the answer. +const MAX_CUT_NUDGES: u32 = 2; + +const OUTPUT_LIMIT_NOTE: &str = "Your last turn reached the output limit before you made any tool call, so nothing was done. Think briefly and act now: make the change in small edit_file calls (a few lines each), one call per turn if needed. If the task is not needed, say so in one sentence."; + +/// Whether a turn that made no tool call goes on with a nudge: it was cut +/// at the output limit, tools are on, and the nudges aren't used up. +fn continue_after_cut( + stop_reason: Option<&str>, + called_tools: bool, + tools_on: bool, + nudges: u32, +) -> bool { + stop_reason == Some("max_tokens") && !called_tools && tools_on && nudges < MAX_CUT_NUDGES +} + +#[cfg(test)] +mod cut_tests { + use super::*; + + #[test] + fn a_turn_cut_before_any_call_is_nudged_twice_then_ends() { + assert!(continue_after_cut(Some("max_tokens"), false, true, 0)); + assert!(continue_after_cut(Some("max_tokens"), false, true, 1)); + assert!(!continue_after_cut( + Some("max_tokens"), + false, + true, + MAX_CUT_NUDGES + )); + // A call was made, tools are off, or it simply ended: no nudge. + assert!(!continue_after_cut(Some("max_tokens"), true, true, 0)); + assert!(!continue_after_cut(Some("max_tokens"), false, false, 0)); + assert!(!continue_after_cut(Some("end_turn"), false, true, 0)); + } +} + fn log_note( log: Option<&mut Vec>, call: usize, diff --git a/services/worker/src/passes/dep_fix.rs b/services/worker/src/passes/dep_fix.rs new file mode 100644 index 000000000..8adf3580b --- /dev/null +++ b/services/worker/src/passes/dep_fix.rs @@ -0,0 +1,1091 @@ +//! Runs a dependency fix (`common::dep_fix`) for a security ticket: the +//! rules plan the bumps, the sandbox applies them, writes the lockfile with +//! the repository's own package manager and runs its checks; a red set is +//! halved until the breaking bump is found; only green sets are committed. +//! The coder is used only for the call sites of a major the run must fix. +//! +//! The run's state is kept on S3 after every probe, so a step that runs out +//! of time hands off and the next one resumes where it stopped (and its +//! progress token tells the step guard the run is moving). + +use std::collections::HashMap; +use std::time::Instant; + +use common::dep_fix::{self as df, Action, CodeFixed, DepRun, ProbeResult}; +use tracing::{info, warn}; + +use crate::clients::github::{FileOp, GitHubClient}; +use crate::models::{TicketMessage, TokenUsage}; +use crate::WorkerState; + +use super::checks::{self, Step}; +use super::RunUsageValues; +use common::run_status::EndedValues as _; + +/// What a dependency run came to in this step. +pub enum Driven { + /// Every batch is settled: the run goes on to its pull request with + /// what is committed (nothing, when every bump was deferred). + Done(Box), + /// This step's time is up; the state is saved for the next step. + Handoff(Box), +} + +fn key(team_id: &str, ticket_id: &str, run_id: &str) -> String { + format!( + "teams/{team_id}/runs/{}/run_state/{run_id}/dep_fix.json", + ticket_id.to_lowercase() + ) +} + +/// The run's saved state, when an earlier step kept one. +pub async fn load(state: &WorkerState, msg: &TicketMessage, run_id: &str) -> Option { + let text = super::read_s3_text(state, &key(&msg.team_id, &msg.ticket_id, run_id)).await?; + serde_json::from_str(&text).ok() +} + +pub async fn save(state: &WorkerState, msg: &TicketMessage, run_id: &str, run: &DepRun) { + let Ok(json) = serde_json::to_string(run) else { + return; + }; + if let Err(e) = state + .s3 + .put_object() + .bucket(&state.config.bucket_name) + .key(key(&msg.team_id, &msg.ticket_id, run_id)) + .body(json.into_bytes().into()) + .content_type("application/json") + .send() + .await + { + warn!(run_id, error = %e, "dep fix: the run's state could not be saved"); + } +} + +/// The dependency run for this ticket: its saved state, or a new plan from +/// the unit's findings. None when the ticket isn't a security fix, or its +/// bumps aren't in a lockfile the sandbox can edit (the coder's flow then). +pub async fn start( + state: &WorkerState, + msg: &TicketMessage, + github: &GitHubClient, + run_id: &str, +) -> Option { + if !common::security_fixes::is_ticket(&msg.ticket_id) || !sandbox_ready(state) { + return None; + } + if let Some(run) = load(state, msg, run_id).await { + return Some(run); + } + let inputs = super::security_fixes::dep_inputs(state, &msg.team_id, &msg.ticket_id).await?; + let tree: Vec = github + .get_tree(&msg.repo_owner, &msg.repo_name, &msg.base_branch) + .await + .ok()? + .into_iter() + .filter(|e| e.entry_type == "blob") + .map(|e| e.path) + .collect(); + let locks: Vec = common::upgrade_notes::lock_tools(&tree) + .into_iter() + .map(|t| t.lockfile) + .collect(); + let pairs: Vec<( + &common::security_fixes::Finding, + &common::security_fixes::FindingState, + )> = inputs.findings.iter().map(|(f, s)| (f, s)).collect(); + let plan = df::plan_in(&pairs, &inputs.cfg, &locks); + if !plan + .bumps + .iter() + .any(|b| df::Manager::of_lockfile(&b.manifest).is_some()) + { + info!( + run_id, + "dep fix: no bump in a lockfile the sandbox writes; the coder's flow" + ); + return None; + } + let head = github + .get_ref(&msg.repo_owner, &msg.repo_name, &msg.base_branch) + .await + .ok()?; + let budget = inputs.cfg.fix_run_budget_cents as f64 / 100.0; + let run = DepRun::new(plan, &head, budget); + save(state, msg, run_id, &run).await; + Some(run) +} + +fn sandbox_ready(state: &WorkerState) -> bool { + !state.config.sandbox_bucket_name.is_empty() && !state.config.sandbox_project_name.is_empty() +} + +/// The plan a dependency run is held to: one task per lockfile its bumps +/// go through, never a documentation file (see `DepPlan::tasks_md`). +pub fn plan_result(run: &DepRun, only_applied: bool) -> super::plan::PlanResult { + let plan = if only_applied { + df::DepPlan { + bumps: run.applied_bumps().into_iter().cloned().collect(), + deferred: vec![], + } + } else { + run.plan.clone() + }; + super::plan::PlanResult { + proposal: "Apply the security bumps the rules chose, verified in the sandbox with the repository's own checks.".into(), + design: run.report_md(), + tasks: plan.tasks_md(), + spec: String::new(), + repo_tasks: vec![], + fix: None, + } +} + +/// Keeps the plan as this run's own plan files, so a continuation reads +/// the same plan (`load_run_plan`) instead of planning again. +pub async fn save_plan_files( + state: &WorkerState, + msg: &TicketMessage, + run_id: &str, + plan: &super::plan::PlanResult, +) { + let prefix = super::openspec_prefix( + &msg.team_id, + &msg.ticket_id, + &msg.repo_owner, + &msg.repo_name, + ); + let spec = "A dependency fix run: the bumps are applied by rule and verified in the sandbox."; + for (name, content) in [ + ("proposal.md", plan.proposal.as_str()), + ("design.md", plan.design.as_str()), + ("tasks.md", plan.tasks.as_str()), + ("spec.md", spec), + ] { + if let Err(e) = state + .s3 + .put_object() + .bucket(&state.config.bucket_name) + .key(format!("{prefix}/{name}")) + .body(content.as_bytes().to_vec().into()) + .content_type("text/markdown") + .send() + .await + { + warn!(run_id, error = %e, "dep fix: the plan could not be kept"); + return; + } + } + super::plan::mark_plan_run(state, msg, run_id).await; +} + +/// Whether the run is a finished dependency run that changed only +/// manifests and lockfiles (no coder change): no code for the model's test +/// writer or audit to read. +pub async fn mechanical( + state: &WorkerState, + msg: &TicketMessage, + github: &GitHubClient, + run_id: &str, + branch: &str, +) -> bool { + let Some(run) = load(state, msg, run_id).await else { + return false; + }; + if !run.done || run.code_fixes > 0 || run.applied.is_empty() { + return false; + } + let files = github + .compare_changed_files(&msg.repo_owner, &msg.repo_name, &msg.base_branch, branch) + .await + .unwrap_or_default(); + !files.is_empty() && files.iter().all(|f| df::commit_path(f)) +} + +/// A dependency run where nothing could ship safely ends completed, with +/// every deferral and its reason on the run page: never a question, never a +/// failure to retry. +pub async fn complete_without_pr( + state: &WorkerState, + msg: &TicketMessage, + run_id: &str, + usage: &mut TokenUsage, + start: &Instant, + run: &DepRun, +) { + let lines: Vec = run + .all_deferred() + .iter() + .take(20) + .map(|d| format!("- {}", d.line())) + .collect(); + let note = format!( + "Dependency fix: no bump could ship safely, so no pull request was opened. Deferred:\n{}", + lines.join("\n") + ); + super::add_progress_note(state, &msg.team_id, run_id, ¬e).await; + let delta = usage.unrecorded(); + let wrote = state + .dynamo + .update_item() + .table_name(&state.config.runs_table_name) + .key("team_id", super::attr_s(&msg.team_id)) + .key("run_id", super::attr_s(run_id)) + .update_expression( + "SET #status = :s, status_run_id = :sri, \ + tokens_in = if_not_exists(tokens_in, :uzero) + :ti, tokens_out = if_not_exists(tokens_out, :uzero) + :to, \ + cache_read_tokens = if_not_exists(cache_read_tokens, :uzero) + :crt, cache_write_tokens = if_not_exists(cache_write_tokens, :uzero) + :cwt, \ + cost_usd = if_not_exists(cost_usd, :uzero) + :c, duration_s = :d, updated_at = :t, current_pass = :cp", + ) + .expression_attribute_names("#status", "status") + .condition_expression(common::run_status::not_ended("#status")) + .ended_values() + .expression_attribute_values(":s", super::attr_s("completed")) + .expression_attribute_values(":sri", super::attr_s(&format!("completed#{run_id}"))) + .usage_values(&delta) + .expression_attribute_values(":d", super::attr_n(start.elapsed().as_secs())) + .expression_attribute_values(":t", super::attr_s(&chrono::Utc::now().to_rfc3339())) + .expression_attribute_values(":cp", super::attr_s("done")) + .send() + .await + .is_ok(); + if wrote { + usage.mark_recorded(&delta); + super::webhooks::emit_run(state, &msg.team_id, run_id, "completed").await; + } +} + +/// What every probe of this run needs, read once per step. +struct Probe<'a> { + msg: &'a TicketMessage, + github: &'a GitHubClient, + run_id: &'a str, + sandbox: crate::clients::sandbox::SandboxClient<'a>, + steps: Vec, + locks: Vec<(String, String)>, + node: Option, + deadline: Option, + attempt: std::sync::atomic::AtomicUsize, +} + +/// One probe's result and the manifests and lockfiles it wrote. +struct Probed { + result: ProbeResult, + files: Vec<(String, String)>, +} + +impl Probe<'_> { + async fn run(&self, sha: &str, bumps: &[&df::PlanBump], checks_on: bool) -> Probed { + let (owner, name) = (&self.msg.repo_owner, &self.msg.repo_name); + let source = match self + .sandbox + .ensure_source(self.run_id, sha, || { + self.github.download_tarball(owner, name, sha) + }) + .await + { + Ok(s) => s, + Err(e) => { + return Probed { + result: ProbeResult { + tail: format!("the branch could not be snapshotted: {e}"), + ..Default::default() + }, + files: vec![], + } + } + }; + let specs = df::specs(bumps); + let checks = if checks_on { + checks::script(&self.steps) + } else { + "true".to_string() + }; + let cmd = df::probe_command(&specs, &self.locks, &checks); + let n = self + .attempt + .fetch_add(1, std::sync::atomic::Ordering::Relaxed); + let out = self + .sandbox + .run_codegen( + self.run_id, + 500 + n, + &source, + &cmd, + self.node.as_deref(), + &[], + self.deadline, + ) + .await; + let o = match out { + Ok(o) => o, + Err(e) => { + return Probed { + result: ProbeResult { + tail: e.to_string(), + ..Default::default() + }, + files: vec![], + } + } + }; + let marks = df::probe_marks(&o.output); + let ran = o.ran && marks.is_some(); + // A bump the script could not place (no manifest for it) is not + // applied, whatever the checks say. + let applied = + marks.is_some_and(|(a, l)| a == 0 && l == 0) && df::apply_skipped(&o.output).is_empty(); + let codes = checks::step_results(&o.output, self.steps.len()); + let checks: Vec<(String, bool)> = if applied && checks_on { + if codes.iter().all(Option::is_none) { + // The checks never reported (cut short): no verdict. + return Probed { + result: ProbeResult { + tail: common::tail_str(&o.output, 2000).to_string(), + ..Default::default() + }, + files: vec![], + }; + } + self.steps + .iter() + .zip(&codes) + .map(|(s, c)| (s.label(), matches!(c, Some(0)))) + .collect() + } else { + vec![] + }; + Probed { + result: ProbeResult { + ran, + applied, + checks, + tail: common::tail_str(&o.output, 3000).to_string(), + }, + files: o + .changed + .into_iter() + .filter(|(p, _)| df::commit_path(p)) + .collect(), + } + } +} + +/// Everything the driver borrows from the run. +pub struct Work<'a> { + pub state: &'a WorkerState, + pub msg: &'a TicketMessage, + pub github: &'a GitHubClient, + pub run_id: &'a str, + pub branch: &'a str, + pub deadline: Option, + pub rules: &'a [String], + pub repo_instructions: &'a str, + pub provider: &'a crate::agent::provider::ModelProvider, + pub file_cache: &'a crate::passes::FileCache, +} + +/// The steps a probe runs: the repository's install and type-check/build, +/// its CI's lint and format commands, and its unit tests (all of them: a +/// dependency touches every caller). +async fn probe_steps(github: &GitHubClient, msg: &TicketMessage) -> Vec { + let (o, n, base) = (&msg.repo_owner, &msg.repo_name, &msg.base_branch); + let ci = checks::detect_ci(github, o, n, base).await; + let mut steps = vec![]; + if let Some(cmd) = super::detect_check_commands(github, o, n, base).await { + steps.push(Step { + kinds: checks::kinds_of(&cmd), + cmd, + scope: None, + }); + } + steps.extend(checks::mirrored_steps(&ci)); + if let Some(test) = super::detect_ci_test(github, o, n, base).await { + steps.push(Step { + kinds: vec![checks::CheckKind::Tests], + cmd: test, + scope: Some("the repository's unit tests".into()), + }); + } + steps +} + +/// Drives the run until it is done or this step's time is up. +pub async fn drive( + w: &Work<'_>, + mut run: DepRun, + usage: &mut TokenUsage, +) -> Result> { + let state = w.state; + let msg = w.msg; + let (owner, name) = (&msg.repo_owner, &msg.repo_name); + let tree: Vec = w + .github + .get_tree(owner, name, &msg.base_branch) + .await + .map(|t| { + t.into_iter() + .filter(|e| e.entry_type == "blob") + .map(|e| e.path) + .collect() + }) + .unwrap_or_default(); + let tools = common::upgrade_notes::lock_tools(&tree); + let gens = super::generators::lockfile_generators(&tree); + let repo = super::generators::RepoFiles { + tree: tree.clone(), + files: HashMap::new(), + }; + let mut hosts: Vec = gens + .iter() + .flat_map(|g| super::generators::generator_hosts(g, &repo)) + .collect(); + hosts.sort(); + hosts.dedup(); + let sandbox = crate::clients::sandbox::SandboxClient::new( + &state.codebuild, + &state.s3, + &state.logs, + &state.config.sandbox_bucket_name, + &state.config.sandbox_project_name, + ) + .with_egress(crate::agent::policy::sandbox_egress(state, &msg.team_id).await) + .with_generator_hosts(hosts, gens.iter().map(|g| g.command.clone()).collect()); + let probe = Probe { + msg, + github: w.github, + run_id: w.run_id, + sandbox, + steps: probe_steps(w.github, msg).await, + locks: tools + .iter() + .map(|t| (t.lockfile.clone(), t.command.clone())) + .collect(), + node: super::detect_node_version(w.github, owner, name, &msg.base_branch).await, + deadline: w.deadline, + attempt: std::sync::atomic::AtomicUsize::new(run.probes as usize), + }; + // The team's agent permissions hold the sandbox commands like any other. + let gate = crate::agent::policy::gate( + state, + w.provider.scope.ctx(common::agent_policy::Agent::Coder), + w.deadline, + ); + let sample = df::probe_command(&[], &probe.locks, &checks::script(&probe.steps)); + if !matches!( + gate.check_command(&sample, "Verify security bumps in the sandbox") + .await, + common::agent_policy::Outcome::Run { .. } + ) { + run.unverified = true; + } + if run.base_failing.is_none() && run.applied.is_empty() { + clean_slate(w).await; + } + let mut files: HashMap> = HashMap::new(); + loop { + crate::passes::check_cancelled(state, &msg.team_id, w.run_id).await?; + let action = run.next_action(); + if !matches!(action, Action::Done | Action::Commit(_)) + && !probe.sandbox.has_time(w.deadline) + { + save(state, msg, w.run_id, &run).await; + return Ok(Driven::Handoff(Box::new(run))); + } + match action { + Action::Base => { + let base_sha = run.head.clone(); + let p = if run.unverified { + // Not permitted to run checks: only the apply and the + // lockfile run, and CI is the check. + ProbeResult::default() + } else { + probe.run(&base_sha, &[], true).await.result + }; + run.on_base(&p); + let note = match &run.base_failing { + Some(_) if run.unverified => { + "Dependency fix: the sandbox couldn't run the repository's checks on the base branch; same-line fixes go with CI as the check, majors wait".to_string() + } + Some(f) if !f.is_empty() => format!( + "Dependency fix: on the base branch {} already fail{}; noted, never blamed on a bump", + f.join(", "), + if f.len() == 1 { "s" } else { "" } + ), + _ => "Dependency fix: the repository's checks pass on the base branch".into(), + }; + super::add_progress_note(state, &msg.team_id, w.run_id, ¬e).await; + } + Action::Probe(groups) => { + let head = run.head.clone(); + // Each group's bump set as probed: what it wrote is found + // again by it once the probes have moved the groups. + let probed: Vec> = groups + .iter() + .map(|&g| { + let mut ids = run.groups[g].bumps.clone(); + ids.sort(); + ids + }) + .collect(); + let sets: Vec> = groups + .iter() + .map(|&g| { + run.groups[g] + .bumps + .iter() + .map(|&i| &run.plan.bumps[i]) + .collect() + }) + .collect(); + let checks_on = !run.unverified; + let outs = futures::future::join_all( + sets.iter().map(|set| probe.run(&head, set, checks_on)), + ) + .await; + let mut results = vec![]; + let mut keyed: HashMap, Vec<(String, String)>> = HashMap::new(); + for ((g, ids), o) in groups.iter().zip(probed).zip(outs) { + keyed.insert(ids, o.files); + results.push((*g, o.result)); + } + run.on_probes(&results); + info!( + run_id = w.run_id, + groups = results.len(), + probes = run.probes, + "dep fix: probes read" + ); + files.clear(); + for (i, g) in run.groups.iter().enumerate() { + let mut ids = g.bumps.clone(); + ids.sort(); + if let Some(f) = keyed.remove(&ids) { + files.insert(i, f); + } + } + } + Action::Commit(g) => { + let set: Vec = run.groups[g] + .bumps + .iter() + .map(|&i| run.plan.bumps[i].package.clone()) + .collect(); + let captured = files.remove(&g).unwrap_or_default(); + if captured.is_empty() { + // Green and nothing to write: the manifests and the + // lockfile already say these versions. + let head = run.head.clone(); + run.on_commit(g, &head); + continue; + } + let ops: Vec = captured + .into_iter() + .map(|(path, content)| FileOp::Write { path, content }) + .collect(); + let conventions = + super::load_git_conventions(state, &msg.team_id, &msg.ticket_id).await; + let message = conventions.commit_message( + &super::ticket_tokens(msg), + &format!( + "fix(deps): {} security update{} verified in the sandbox", + set.len(), + if set.len() == 1 { "" } else { "s" } + ), + ); + match w + .github + .batch_write(owner, name, w.branch, &message, &ops) + .await + { + Ok(_) => { + let head = w + .github + .get_ref(owner, name, w.branch) + .await + .unwrap_or_default(); + run.on_commit(g, &head); + files.clear(); + super::add_progress_note( + state, + &msg.team_id, + w.run_id, + &format!( + "Dependency fix: committed {} verified bump(s): {}", + set.len(), + common::truncate_str(&set.join(", "), 300) + ), + ) + .await; + } + Err(e) => run.on_commit_failed(g, &e.to_string()), + } + } + Action::CodeFix { + bump, + failing, + error, + } => { + let before = usage.clone(); + let r = code_fix(w, &probe, &run, bump, &failing, &error, usage).await; + let tokens = (usage.input_tokens + usage.output_tokens) + .saturating_sub(before.input_tokens + before.output_tokens); + let usd = (usage.cost_usd - before.cost_usd).max(0.0); + run.on_code_fix(bump, r, tokens, usd); + } + Action::Done => { + save(state, msg, w.run_id, &run).await; + return Ok(Driven::Done(Box::new(run))); + } + } + save(state, msg, w.run_id, &run).await; + } +} + +/// A dependency run starts from the base branch: an earlier attempt's +/// changes on the branch (a migration for majors the rules now defer, a +/// README edit) are put back to the base's files, so only verified sets +/// land on it. The earlier work stays on its own branch. +async fn clean_slate(w: &Work<'_>) { + let (owner, name) = (&w.msg.repo_owner, &w.msg.repo_name); + let Ok(changed) = w + .github + .compare_changed_files(owner, name, &w.msg.base_branch, w.branch) + .await + else { + return; + }; + if changed.is_empty() { + return; + } + let mut ops = vec![]; + for path in &changed { + match w + .github + .read_file(owner, name, path, &w.msg.base_branch) + .await + { + Ok(content) => ops.push(FileOp::Write { + path: path.clone(), + content, + }), + Err(_) => ops.push(FileOp::Delete { path: path.clone() }), + } + } + let message = "Start the dependency fix from the base branch's files"; + match w.github.batch_write(owner, name, w.branch, message, &ops).await { + Ok(_) => { + super::add_progress_note( + w.state, + &w.msg.team_id, + w.run_id, + &format!( + "Dependency fix: the branch held {} file(s) changed by an earlier attempt; put back to the base branch's, so only verified bumps land", + changed.len() + ), + ) + .await + } + Err(e) => warn!(run_id = w.run_id, error = %e, "dep fix: the earlier attempt's changes could not be put back"), + } +} + +/// One coder pass at a major the run must fix: the bump is applied on the +/// branch, the coder changes the call sites the failing checks name, and +/// the head is probed. Red, the branch goes back to where it was. +async fn code_fix( + w: &Work<'_>, + probe: &Probe<'_>, + run: &DepRun, + bump: usize, + failing: &[String], + error: &str, + usage: &mut TokenUsage, +) -> CodeFixed { + let (owner, name) = (&w.msg.repo_owner, &w.msg.repo_name); + let b = &run.plan.bumps[bump]; + let before = run.head.clone(); + let applied = probe.run(&before, &[b], false).await; + if applied.files.is_empty() || !applied.result.applied { + return CodeFixed::Failed { + checks: vec![df::LOCKFILE_CHECK.into()], + error: applied.result.tail, + }; + } + let ops: Vec = applied + .files + .iter() + .map(|(path, content)| FileOp::Write { + path: path.clone(), + content: content.clone(), + }) + .collect(); + let message = format!("fix(deps): {} {} to {}", b.package, b.from, b.to); + if let Err(e) = w + .github + .batch_write(owner, name, w.branch, &message, &ops) + .await + { + return CodeFixed::Failed { + checks: vec![], + error: format!("the bump could not be committed ({e})"), + }; + } + let notes = super::security_fixes::dep_notes(w.state, &w.msg.team_id, &w.msg.ticket_id) + .await + .into_iter() + .find(|n| n.package.eq_ignore_ascii_case(&b.package)); + let plan = code_fix_plan(b, failing, error, notes.as_ref()); + super::add_progress_note( + w.state, + &w.msg.team_id, + w.run_id, + &format!( + "Dependency fix: `{}` {} to {} breaks {}; the coder changes its call sites (one pass)", + b.package, + b.from, + b.to, + failing.join(", ") + ), + ) + .await; + let coded = super::implement::run( + w.state, + w.msg, + w.github, + &plan, + w.branch, + w.rules, + w.repo_instructions, + None, + "simple", + w.provider, + usage, + w.file_cache, + Some(w.run_id), + w.deadline, + false, + ) + .await; + let head = w + .github + .get_ref(owner, name, w.branch) + .await + .unwrap_or_default(); + let verdict = if coded.is_ok() { + let p = probe.run(&head, &[], true).await.result; + let base = run.base_failing.clone().unwrap_or_default(); + let new: Vec = p + .failing() + .into_iter() + .filter(|c| !base.contains(c)) + .collect(); + if p.ran && new.is_empty() { + return CodeFixed::Green { head }; + } + CodeFixed::Failed { + checks: new, + error: p.tail, + } + } else { + CodeFixed::Failed { + checks: failing.to_vec(), + error: coded.err().map(|e| e.to_string()).unwrap_or_default(), + } + }; + // Back to where the branch was: every file the attempt changed. + if let Ok(changed) = w + .github + .compare_changed_files(owner, name, &before, w.branch) + .await + { + let mut ops = vec![]; + for path in changed { + match w.github.read_file(owner, name, &path, &before).await { + Ok(content) => ops.push(FileOp::Write { path, content }), + Err(_) => ops.push(FileOp::Delete { path }), + } + } + if !ops.is_empty() { + let message = format!( + "Revert {} {} to {}: its call sites could not be made to pass", + b.package, b.from, b.to + ); + if let Err(e) = w + .github + .batch_write(owner, name, w.branch, &message, &ops) + .await + { + warn!(run_id = w.run_id, error = %e, "dep fix: the failed attempt could not be reverted"); + } + } + } + verdict +} + +/// The coder's plan for one major's call sites: only the code its failing +/// checks name, never a manifest, a lockfile or a document. +pub fn code_fix_plan( + b: &df::PlanBump, + failing: &[String], + error: &str, + notes: Option<&common::upgrade_notes::PackageNotes>, +) -> super::plan::PlanResult { + let mut files: Vec = error_files(error); + if let Some(n) = notes { + for c in &n.call_sites { + if !files.contains(&c.file) { + files.push(c.file.clone()); + } + } + } + files.retain(|f| !df::commit_path(f) && !df::is_doc_path(f)); + files.truncate(8); + let tasks: String = if files.is_empty() { + format!( + "- [ ] `src`: change the call sites `{}` {} breaks so {} pass\n", + b.package, + b.to, + failing.join(", ") + ) + } else { + files + .iter() + .map(|f| { + format!( + "- [ ] `{f}`: update its use of `{}` for {} so {} pass\n", + b.package, + b.to, + failing.join(", ") + ) + }) + .collect() + }; + let mut design = format!( + "`{}` is now {} (was {}) on this branch, with its lockfile written. These checks fail with it: {}.\n\nThe failing output:\n```\n{}\n```\n\nChange only the code that calls `{}`. Never edit a manifest, a lockfile or documentation. Call run_checks before you finish.\n", + b.package, + b.to, + b.from, + failing.join(", "), + common::tail_str(error, 3000), + b.package + ); + if let Some(n) = notes { + if !n.breaking.is_empty() { + design.push_str("\nBreaking changes from its release notes:\n"); + for l in n.breaking.iter().take(20) { + design.push_str(&format!("- {l}\n")); + } + } + } + super::plan::PlanResult { + proposal: format!( + "Make the repository pass its checks with `{}` {}.", + b.package, b.to + ), + design, + tasks, + spec: String::new(), + repo_tasks: vec![], + fix: None, + } +} + +/// Source files a compiler or test runner's output names (`src/a.ts(3,1)`, +/// `src/a.ts:3:1`). +pub fn error_files(output: &str) -> Vec { + let mut out: Vec = vec![]; + for word in output.split(|c: char| c.is_whitespace() || c == '\'' || c == '"') { + let w = word.trim_start_matches("./"); + let path = w + .split(['(', ':']) + .next() + .unwrap_or("") + .trim_end_matches(['.', ',']); + let code = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".mts", ".vue"] + .iter() + .any(|e| path.ends_with(e)); + if code + && path.contains('/') + && !path.contains("node_modules") + && !out.iter().any(|p| p == path) + { + out.push(path.to_string()); + } + } + out +} + +/// After the run: the findings its pull request fixes stay with the ticket; +/// the deferred ones go back to open with their reason (a run's own +/// deferral holds them out of later bundles), and the unit and its report +/// are saved for the pull request's description. +pub async fn settle(state: &WorkerState, msg: &TicketMessage, run: &DepRun) { + let deferred: Vec<(String, String, bool)> = run + .all_deferred() + .iter() + .flat_map(|d| { + d.finding_ids + .iter() + .map(move |id| (id.clone(), d.line(), d.later)) + }) + .collect(); + // Only the run's own drops hold a finding out of later bundles; the + // rules' deferrals are read again on every tick. + let held: Vec = run + .deferred + .iter() + .filter(|d| !d.later) + .flat_map(|d| d.finding_ids.clone()) + .collect(); + super::security_fixes::settle_dep_run( + state, + &msg.team_id, + &msg.ticket_id, + &run.fixed_ids(), + &deferred, + &held, + &run.report_md(), + ) + .await; +} + +/// What the implement step reports for a dependency run: the files on the +/// branch, the run's report as its notes, the last probe's checks. +pub async fn implement_result( + github: &GitHubClient, + msg: &TicketMessage, + branch: &str, + run: &DepRun, +) -> super::implement::ImplementResult { + let files = github + .compare_changed_files(&msg.repo_owner, &msg.repo_name, &msg.base_branch, branch) + .await + .unwrap_or_default(); + let ci = checks::detect_ci(github, &msg.repo_owner, &msg.repo_name, &msg.base_branch).await; + super::implement::ImplementResult { + files_modified: files, + timed_out: false, + conversation_log: vec![], + writes: Default::default(), + evidence: super::proof::RunEvidence { + notes: run.report_md(), + checks: run + .last_checks + .iter() + .map(|(n, ok)| format!("- {n}: {}", if *ok { "PASS" } else { "FAIL" })) + .collect(), + ci_gates: checks::kinds_from(&ci), + ci_commands: ci, + ..Default::default() + }, + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn task(path: &str, what: &str) -> super::super::plan_coverage::PlanTask { + super::super::plan_coverage::PlanTask { + path: path.into(), + task: what.into(), + is_new: false, + optional: false, + generated: false, + } + } + + #[test] + fn a_documentation_task_the_ticket_does_not_name_never_holds_a_run() { + use super::super::plan_coverage::{drop_non_core, next, Coverage, Next, MAX_ROUNDS}; + // The stuck run: eight manifests done, the README table never written. + let ticket = + "Fix these security advisories in the dependencies. Change only what the fix needs."; + let mut cov = Coverage { + done: vec![ + task("package.json", "raise ranges"), + task("apps/web/package.json", "raise"), + ], + missing: vec![task( + "README.md", + "[modify] In \"Dependency Overrides\": add the rows", + )], + on_base: vec![], + }; + // Before: a required task left, so the run continued in step after + // step until two made no progress and it stopped asking a person. + assert_eq!(next(&cov, MAX_ROUNDS, false), Next::Unfinished); + let dropped = drop_non_core(&mut cov, ticket); + assert_eq!(dropped.len(), 1); + assert_eq!(next(&cov, MAX_ROUNDS, false), Next::OpenWithOptional); + // A core task (code, a manifest) still holds the run, with its reason. + let mut core = Coverage { + done: vec![], + missing: vec![ + task("src/server.ts", "update the call"), + task("package.json", "bump"), + ], + on_base: vec![], + }; + assert!(drop_non_core(&mut core, ticket).is_empty()); + assert_eq!(next(&core, MAX_ROUNDS, false), Next::Unfinished); + // A README the ticket asks for is core. + let mut asked = Coverage { + done: vec![], + missing: vec![task("README.md", "document the flag")], + on_base: vec![], + }; + assert!(drop_non_core(&mut asked, "Add the flag and document it in README.md").is_empty()); + } + + #[test] + fn the_coder_is_told_only_the_call_sites_never_a_manifest_or_a_document() { + let b = df::PlanBump { + package: "gql-kit".into(), + from: "4.1.0".into(), + to: "5.0.2".into(), + line: "4".into(), + manifest: "pnpm-lock.yaml".into(), + major: true, + ..Default::default() + }; + let err = "src/graph/server.ts(14,3): error TS2345: Argument of type 'Opts'\n\ + ./src/graph/plugins.ts:9:1 - error TS2339\n\ + node_modules/gql-kit/dist/index.d.ts:3:1\n\ + README.md:4 and package.json:2"; + assert_eq!( + error_files(err), + vec![ + "src/graph/server.ts".to_string(), + "src/graph/plugins.ts".to_string() + ] + ); + let notes = common::upgrade_notes::PackageNotes { + package: "gql-kit".into(), + breaking: vec!["`startServer` takes an options object".into()], + call_sites: vec![common::upgrade_notes::CallSite { + api: "startServer".into(), + file: "src/main.ts".into(), + line: 3, + text: "startServer(app, 4000)".into(), + }], + ..Default::default() + }; + let p = code_fix_plan(&b, &["typecheck".into()], err, Some(¬es)); + let paths: Vec<&str> = p + .tasks + .lines() + .filter_map(|l| l.split('`').nth(1)) + .collect(); + assert_eq!( + paths, + vec!["src/graph/server.ts", "src/graph/plugins.ts", "src/main.ts"] + ); + assert!(p + .design + .contains("Never edit a manifest, a lockfile or documentation")); + assert!(p.design.contains("`startServer` takes an options object")); + assert!(!p.tasks.to_lowercase().contains("readme")); + } +} diff --git a/services/worker/src/passes/mod.rs b/services/worker/src/passes/mod.rs index 182ff2cd9..675853862 100644 --- a/services/worker/src/passes/mod.rs +++ b/services/worker/src/passes/mod.rs @@ -695,7 +695,12 @@ mod continuation_tests { let check = rp .find("if remaining_secs(start) < MIN_TIME_FOR_IMPLEMENT_SECS {") .expect("a time check before the coder starts"); - let first_run = rp.find("let mut result = implement::run(").unwrap(); + // The coder's first call (a dependency run's driver comes first in + // the same place, and only the coder's call sites use the model). + let first_run = rp + .find("let mut result = if let Some(run) = dep_run.take() {") + .unwrap(); + assert!(rp[first_run..first_run + 4000].contains("implement::run(")); assert!(check < first_run); assert!(rp[check..first_run].contains("try_auto_continue(")); let judged = rp.find("let mut verdict = run_end::judge(").unwrap(); @@ -1065,6 +1070,7 @@ pub mod code_graph; mod completeness; mod covering; mod cross_repo; +pub mod dep_fix; pub mod deploy_stats; pub mod dlq_cleanup; pub mod e2e; @@ -2455,6 +2461,22 @@ async fn run_passes( } } + // A security ticket whose bumps go through a JavaScript lockfile is a + // dependency fix run (`dep_fix`): the rules plan it (no planner, never a + // documentation task), the sandbox verifies every bump with the + // repository's own checks before anything is pushed, and the coder only + // changes the call sites of a major the run must fix. + let mut dep_run = dep_fix::start(state, msg, &github, run_id).await; + let mut dep_mechanical = false; + if let Some(run) = &dep_run { + info!( + run_id, + bumps = run.plan.bumps.len(), + deferred = run.plan.deferred.len(), + "Dependency fix run: planned by the rules" + ); + } + // --- Pass 2: Plan --- check_cancelled(state, &msg.team_id, run_id).await?; // How far planning got: saved from here on, so a step that runs out of @@ -2597,7 +2619,26 @@ async fn run_passes( let context_changed = lookup.hash_changed; let previous_ticket_text = lookup.previous_ticket_text; let mut plan_was_reused = false; - let mut plan_result = if let Some(plan) = own_plan { + let mut plan_result = if let Some(run) = dep_run.as_ref() { + // The bump list is the plan: one task per lockfile, kept as this + // run's own so a continuation reads the same one. It comes first: a + // retry of a run planned the old way never takes up that plan. + let plan = dep_fix::plan_result(run, false); + dep_fix::save_plan_files(state, msg, run_id, &plan).await; + add_progress_note( + state, + &msg.team_id, + run_id, + &format!( + "Dependency fix: {} bump(s) in {} risk batch(es); {} deferred by the rules", + run.plan.bumps.len(), + run.plan.batches().len(), + run.plan.deferred.len() + ), + ) + .await; + plan + } else if let Some(plan) = own_plan { plan_was_reused = true; plan } else if let Some(plan) = lookup.plan { @@ -3591,6 +3632,12 @@ async fn run_passes( .get_ref(&msg.repo_owner, &msg.repo_name, &branch_name) .await .unwrap_or_default(); + // A dependency run moves without a commit while it verifies: its + // probes are progress too. + let at = match &dep_run { + Some(r) => format!("{at}|{}", r.progress()), + None => at, + }; let mark = steps::progress_mark(&head, &at); let stalled = if head.is_empty() { 0 @@ -3599,6 +3646,39 @@ async fn run_passes( }; steps::save_mark(state, &msg.team_id, run_id, &mark, stalled, step).await; stalled_steps = stalled; + if steps::stops_for_stall(stalled) + && common::security_fixes::is_ticket(&msg.ticket_id) + && at.starts_with("implement") + { + // A security fix never ends by handing its unfinished work to a + // person: what is on the branch goes on to its checks and pull + // request (a draft naming the failing check when CI is red), and + // the tasks left are named under Open items. + let task = current_plan_task(&github, msg, &plan_result, &branch_name).await; + add_progress_note( + state, + &msg.team_id, + run_id, + &format!( + "Two steps made no progress on {}: the run goes on with what the branch holds", + task.as_deref().unwrap_or("the planned tasks") + ), + ) + .await; + close_memory(state, agent_memory.take()).await; + return hand_off_at( + state, + msg, + &github, + run_id, + &branch_name, + steps::Gate::Verify, + None, + "The remaining planned tasks made no progress; the run goes on with the work on the branch", + usage, + ) + .await; + } if steps::stops_for_stall(stalled) { let kept = keep_wip_branch(&github, &msg.repo_owner, &msg.repo_name, &branch_name).await; @@ -4854,24 +4934,86 @@ async fn run_passes( }; let pass_start = std::time::Instant::now(); let usage_before = usage.clone(); - let mut result = implement::run( - state, - msg, - &github, - &plan_result, - &branch_name, - &rules, - &repo_instructions, - still_to_do.as_deref(), - &effective_complexity, - &provider, - usage, - &file_cache, - Some(run_id), - implement_deadline, - false, // initial implement — unscoped - ) - .await?; + let mut result = if let Some(run) = dep_run.take() { + let work = dep_fix::Work { + state, + msg, + github: &github, + run_id, + branch: &branch_name, + deadline: implement_deadline, + rules: &rules, + repo_instructions: &repo_instructions, + provider: &provider, + file_cache: &file_cache, + }; + let run = match dep_fix::drive(&work, run, usage).await? { + dep_fix::Driven::Done(run) => run, + dep_fix::Driven::Handoff(mut run) => { + let resume_from = + Some(("implement_started".to_string(), branch_name.clone(), 0u8)); + let handoff = try_auto_continue( + state, + msg, + run_id, + &resume_from, + &["implement_started"], + false, + "The dependency checks continue in a fresh step", + ) + .await; + if handoff.continued() { + close_memory(state, agent_memory.take()).await; + return Ok(()); + } + // No next step: what is verified ships, the rest waits. + run.finish_now("not verified: the run had no step left to verify it"); + dep_fix::save(state, msg, run_id, &run).await; + run + } + }; + dep_fix::settle(state, msg, &run).await; + plan_result = dep_fix::plan_result(&run, true); + dep_mechanical = run.code_fixes == 0; + add_progress_note( + state, + &msg.team_id, + run_id, + &format!( + "Dependency fix: {} bump(s) applied and verified, {} deferred with their reasons", + run.applied.len(), + run.all_deferred().len() + ), + ) + .await; + if run.applied.is_empty() { + // Nothing could ship safely: the run says why and ends, + // never a question. + dep_fix::complete_without_pr(state, msg, run_id, usage, start, &run).await; + close_memory(state, agent_memory.take()).await; + return Ok(()); + } + dep_fix::implement_result(&github, msg, &branch_name, &run).await + } else { + implement::run( + state, + msg, + &github, + &plan_result, + &branch_name, + &rules, + &repo_instructions, + still_to_do.as_deref(), + &effective_complexity, + &provider, + usage, + &file_cache, + Some(run_id), + implement_deadline, + false, // initial implement — unscoped + ) + .await? + }; // The run's own tooling failing is never a question (stop rule 1): // a pass that changed nothing after a command failed for want of a // dependency or tool gets that package's dependencies installed with @@ -5411,7 +5553,25 @@ async fn run_passes( ) .await }; - if let Some(cov) = coverage { + if let Some(mut cov) = coverage { + let dropped = plan_coverage::drop_non_core(&mut cov, &msg.body); + if !dropped.is_empty() { + add_progress_note( + state, + &msg.team_id, + run_id, + &format!( + "Dropped {} planned task(s) not core to the ticket (documentation it doesn't name), named under Open items: {}", + dropped.len(), + dropped + .iter() + .map(|t| format!("`{}`", t.path)) + .collect::>() + .join(", ") + ), + ) + .await; + } run_guard::progress( state, &msg.team_id, @@ -5596,7 +5756,22 @@ async fn run_passes( .await .unwrap_or_default(); let already_tested = !tested_at.is_empty() && ledger.update(|l| l.tested_head == tested_at); - if run_verify && !already_tested && has_time_for_remediation(start) { + // A dependency run that changed only manifests and lockfiles, each set + // verified with the repository's own checks in the sandbox, has no code + // for the model's test writer or audit to read: both are skipped. + let dep_mechanical = dep_mechanical + || (common::security_fixes::is_ticket(&msg.ticket_id) + && dep_fix::mechanical(state, msg, &github, run_id, &branch_name).await); + if dep_mechanical && run_verify { + add_progress_note( + state, + &msg.team_id, + run_id, + "Dependency fix: only manifests and lockfiles changed, each set verified in the sandbox; the model's test writer and audit are skipped", + ) + .await; + } + if run_verify && !already_tested && !dep_mechanical && has_time_for_remediation(start) { update_pass(state, &msg.team_id, run_id, "test").await?; let pass_start = std::time::Instant::now(); let usage_before = usage.clone(); @@ -5681,6 +5856,8 @@ async fn run_passes( step_state.carry.clone().filter(|_| !run_verify) { (c.security, c.security_round) + } else if dep_mechanical { + (security::Verdict::Passed, None) } else { // --- Security Audit (before PR — ensures only security-clean code is published) --- check_cancelled(state, &msg.team_id, run_id).await?; diff --git a/services/worker/src/passes/plan_coverage.rs b/services/worker/src/passes/plan_coverage.rs index 9502089e1..3d9820343 100644 --- a/services/worker/src/passes/plan_coverage.rs +++ b/services/worker/src/passes/plan_coverage.rs @@ -272,6 +272,22 @@ impl Coverage { } } +/// Drops the missing tasks that are not core to the ticket: a +/// documentation file (README, CHANGELOG, docs) the ticket doesn't name. +/// They become optional (named under Open items) and never hold the run; a +/// dependency run once spent five steps on a README table no one asked for +/// and stopped asking a person. Returns the tasks it dropped. +pub fn drop_non_core(cov: &mut Coverage, ticket_body: &str) -> Vec { + let mut dropped = vec![]; + for t in cov.missing.iter_mut() { + if !t.optional && !t.generated && !common::dep_fix::core_to_dep_fix(&t.path, ticket_body) { + t.optional = true; + dropped.push(t.clone()); + } + } + dropped +} + /// One spelling for a path (`..` resolved), the one the diff uses. fn norm(p: &str) -> String { super::generators::normalize_path(p) diff --git a/services/worker/src/passes/security_fixes.rs b/services/worker/src/passes/security_fixes.rs index 668dc6344..5df47e8cd 100644 --- a/services/worker/src/passes/security_fixes.rs +++ b/services/worker/src/passes/security_fixes.rs @@ -2765,6 +2765,13 @@ async fn start_fixes(cx: &Ctx<'_>, findings: &mut [(Finding, FindingState)]) -> let slots = slots(cx); let mut units = sec::plan_units(findings, cx.cfg, now); sec::order_units(&mut units, findings); + // The findings the rules hold out (a major they don't need yet, a bump a + // run found breaking) say why on the dashboard. + for (id, why) in sec::deferred_waits(findings, cx.cfg, now) { + if let Some(i) = findings.iter().position(|(f, _)| f.id == id) { + hold(cx, findings, &[i], &why).await; + } + } let mut busy: HashSet = findings .iter() .filter(|(f, _)| f.status == Status::Fixing) @@ -4132,10 +4139,14 @@ pub async fn pr_body(state: &WorkerState, msg: &TicketMessage, change: &str) -> .await .map(|i| s(&i, "notes")) .unwrap_or_default(); - let check = match github(state, msg.installation_id) { + let mut check = match github(state, msg.installation_id) { Ok(gh) => what_to_check(&gh, &unit, ¬es, None).await, Err(_) => common::upgrade_notes::WhatToCheck::from_notes(¬es), }; + check.dep_report = ticket_item(state, &msg.team_id, &msg.ticket_id) + .await + .map(|i| s(&i, "dep_report")) + .unwrap_or_default(); Some(sec::pr_body_with(&unit, &pairs, change, &check)) } @@ -4330,6 +4341,106 @@ pub async fn on_pr_opened( } } +// ── Dependency fix runs (`passes::dep_fix`) ───────────────────────────── + +/// What a dependency fix run plans from: the ticket's unit, its findings +/// and the team's policy. +pub(crate) struct DepInputs { + pub findings: Vec<(Finding, FindingState)>, + pub cfg: SecurityConfig, +} + +pub(crate) async fn dep_inputs( + state: &WorkerState, + team_id: &str, + ticket: &str, +) -> Option { + let unit = load_unit(state, team_id, ticket).await?; + if unit.ecosystem == common::infra_vuln::records::UNIT_ECOSYSTEM + || unit.ecosystem == common::base_images::ECOSYSTEM + { + return None; + } + let cfg = load_config(state, team_id).await.unwrap_or_default(); + let findings = unit_findings(state, team_id, &unit).await; + (!findings.is_empty()).then_some(DepInputs { findings, cfg }) +} + +/// The upgrade notes read for the ticket before its run. +pub(crate) async fn dep_notes( + state: &WorkerState, + team_id: &str, + ticket: &str, +) -> Vec { + let notes = ticket_item(state, team_id, ticket) + .await + .map(|i| s(&i, "notes")) + .unwrap_or_default(); + serde_json::from_str(¬es).unwrap_or_default() +} + +/// A dependency run's end: its deferred findings go back to open with the +/// reason as their wait and leave the unit (the ones the run itself found +/// breaking, `held`, stay out of later bundles while the deferral holds); +/// the unit keeps what the pull request fixes, and the run's report is kept +/// for the description. +pub(crate) async fn settle_dep_run( + state: &WorkerState, + team_id: &str, + ticket: &str, + fixed: &[String], + deferred: &[(String, String, bool)], + held: &[String], + report: &str, +) { + let Some(unit) = load_unit(state, team_id, ticket).await else { + return; + }; + let mut findings = unit_findings(state, team_id, &unit).await; + let now = Utc::now(); + let gone: Vec = deferred + .iter() + .map(|(id, _, _)| id.clone()) + .filter(|id| !fixed.contains(id)) + .collect(); + for (f, st) in findings.iter_mut() { + let Some((_, why, _)) = deferred.iter().find(|(id, _, _)| id == &f.id) else { + continue; + }; + if fixed.contains(&f.id) { + continue; + } + f.status = Status::Open; + f.waiting = Some(why.clone()); + f.updated_at = now.to_rfc3339(); + st.ticket = None; + st.bundled = false; + if held.contains(&f.id) { + st.deferred = Some(common::dep_fix::RunDeferral::new(f, why, now)); + } + save_finding(state, team_id, f, st).await; + } + if !gone.is_empty() { + let cfg = load_config(state, team_id).await.unwrap_or_default(); + let all: Vec<(Finding, FindingState)> = findings.clone(); + let kept = sec::without(&unit, &gone, &all, &cfg); + if let Err(e) = save_unit(state, team_id, ticket, &kept).await { + warn!(team_id, ticket, error = %e, "security: the unit without its deferred bumps could not be saved"); + } + } + let _ = state + .dynamo + .update_item() + .table_name(&state.config.settings_table_name) + .key("pk", attr_s(team_id)) + .key("sk", attr_s(&sec::ticket_sk(ticket))) + .update_expression("SET dep_report = :r") + .condition_expression("attribute_exists(sk)") + .expression_attribute_values(":r", attr_s(common::truncate_str(report, 20_000))) + .send() + .await; +} + #[cfg(test)] mod tests { use super::*;