feat(doctor): integrate aggregate workstation polish validation#121
Conversation
…validation Agent-Logs-Url: https://github.com/SociOS-Linux/source-os/sessions/71b4a177-85da-4206-9974-e112f9b64e55 Co-authored-by: mdheller <21163552+mdheller@users.noreply.github.com>
|
Replay review: This PR remains conceptually relevant, but it is non-mergeable against current Preserve the useful idea: Recommended action:
After the replay PR is opened, this PR can be closed as superseded. |
|
@copilot Fix conflicts |
Co-authored-by: mdheller <21163552+mdheller@users.noreply.github.com>
Conflicts resolved in 0c4c1c9. Both branches had independently added |
doctor.shhad no visibility into the Mac-on-Linux polish layer — missing keyboard policy issues and absent mac-polish helpers were silent. This adds consumption ofbin/check-workstation-polish.shwith warning-only (never hard-failure) signal reporting.Changes
profiles/linux-dev/workstation-v0/doctor.shcheck_workstation_polish()— resolves and runsbin/check-workstation-polish.sh, parses its key=value output, records three doctor results:mac-polish-helper—okifcheck-mac-polish.shis present,warnif missingkeyboard-policy-helper—okifcheck-keyboard-policy.shis present,warnif missingkeyboard-policy—okifpolicy_ok=yes,warn(value:invalid) otherwisewarn, nevererror;failflag is never set by this pathmain()aftercheck_lampstand_unit, before the GNOME blockgrep -Fqxfor presence/missing checks, consistent with existing codebase styleShape preserved
Existing JSON contract unchanged:
{ "kind": "sourceos.doctor", "profile": "linux-dev/workstation-v0", "ok": false, "summary": { "ok": 11, "warn": 7, "error": 25, "info": 2 }, "results": [ { "level": "ok", "name": "mac-polish-helper", "message": "present" }, { "level": "ok", "name": "keyboard-policy-helper","message": "present" }, { "level": "warn", "name": "keyboard-policy", "message": "invalid" } ] }