Repository navigation
Description
This was generated by AI during triage.
What happened
Single-machine thirdshift metrics (Trends in src/logs/metrics.rs:170 and src/console/metrics.html:13) records and displays unavailable_accounts whenever an OS account named in console.other_accounts cannot be read (Unreadable OS accounts: ...).
In Fleet metrics (thirdshift metrics --fleet / --machine and /metrics in Fleet scope), fleet::Summary (src/logs/metrics/fleet.rs:32-38) and MetricsReport drop unavailable_accounts. On lima-thirdshift's Fleet Metrics view, orchestrate (unavailable_accounts: ["conductor", "vsto"]) and test (unavailable_accounts: ["vsto"]) both appeared as status: ok with no indication that configured Other-account Commands on those hosts were unreadable and omitted from the totals.
Agent Brief
Category: bug
Summary: Preserve each machine's unavailable_accounts through Fleet metrics summaries, peer snapshots, pushed reports, JSON/text output, and metrics_fleet.html.
Current behavior:
fleet::Summary (src/logs/metrics/fleet.rs:32-38) deserializes only outcomes, comparison, and where_runs_failed from a machine's Trends, discarding unavailable_accounts.
Desired behavior:
- Include
#[serde(default)] unavailable_accounts: BTreeSet<String>infleet::Summary(andMetricsReportformetrics --push), so both live reads, cached snapshots, and pushed reports carry each machine's unreadable OS accounts while remaining backward-compatible with older peers and saved snapshots that omit the field. - Expose
unavailable_accounts: BTreeSet<String>onfleet::Machineinthirdshift metrics --fleet/--machineJSON output, mention unreadable accounts in textMachineslines when non-empty, and render them insrc/console/metrics_fleet.html'sMachineslist (for example· unreadable accounts: conductor, vsto). - Update
docs/guide.md/site/docs/index.html(npm run docs --prefix site) if the FleetmachinesJSON fields are listed there.
Key interfaces:
src/logs/metrics/fleet.rs:Summary,Machine,MetricsReport, text formattersrc/console/metrics_fleet.html:Machineslist item renderingsrc/logs/metrics/fleet/tests.rs&tests/console.rs
Acceptance criteria:
- When a local, live-remote, cached, or pushed-report Fleet machine has non-empty
unavailable_accounts,fleet::Machine.unavailable_accountscontains them in JSON, textmetrics --fleetnames them on that machine's line, andmetrics_fleet.htmlrenders them in theMachinessection. - Peer responses and saved snapshots without
unavailable_accountsstill deserialize with an empty set. -
cargo testandnpm run docs:check --prefix sitepass.
Activity
Simplify the Triage questionnaire check and name Fleet's text report …