Skip to content

Add Phase 2 package policy editor - #5335

Draft
Benoît Cortier (CBenoit) wants to merge 1 commit into
cbenoit-plan-policy-inspector-uifrom
cbenoit-phase-2-policy-editor
Draft

Add Phase 2 package policy editor#5335
Benoît Cortier (CBenoit) wants to merge 1 commit into
cbenoit-plan-policy-inspector-uifrom
cbenoit-phase-2-policy-editor

Conversation

@CBenoit

Copy link
Copy Markdown
Member

Summary

  • add the Windows-only Agent policy management surface for Active, Missing, and Invalid stores while preserving the Phase 1 read-only inspector and its independence from UseAgentBroker
  • add the complete structured and strict raw draft editor with authoritative Agent validation, localized bounded findings, exact warning acknowledgements, and transactional stale-token handling
  • add the separately elevated, mutually authenticated NativeAOT policy-write helper with bounded one-shot IPC, fail-closed install-path/signer checks, and release packaging/signing/integrity wiring
  • add dirty-lifecycle protection, accessibility/search/localization coverage, and comprehensive editor/management/helper tests

Stack and contract provenance

This PR is stacked on and targets Phase 1: #5292.

Validation

  • PolicyEditor tests: 196 passed
  • AgentBroker policy management/elevation tests: 238 Windows-target and 128 portable-target passed
  • UniGetUI.Windows.slnx x64 build: succeeded
  • forced net10.0 portable Avalonia compile: succeeded
  • win-x64 NativeAOT app and helper publish: succeeded
  • published UniGetUI.exe: 62,398,976 bytes
  • staged Assets\Utilities\UniGetUI.PolicyElevator.exe: 5,754,368 bytes
  • no policy/editor/helper trim or AOT warnings; remaining IL warnings are pre-existing Avalonia DataGrid internals
  • integrity-tree validation covered both executables
  • translation validation and git diff --check: clean

External gates

  • local win-arm64 NativeAOT publication requires the Visual Studio C++ ARM64 build tools that are not installed on this machine; the checked-in ARM64 CI/project configuration remains enabled
  • real UAC cancellation, mutual Authenticode signer binding, and elevated Agent replacement scenarios require app/helper binaries signed together by the release signer and a compatible running Agent

This remains a draft stacked PR. It does not publish, merge, or change readiness of either dependency.

Implement transactional policy management, authoritative validation, the structured/raw editor, and the authenticated elevated write helper with packaging and test coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant