Skip to content

Admin policy file that fails closed, with schema and admin docs - #197

Merged
K-Arthur merged 6 commits into
masterfrom
feat/admin-policy
Oct 30, 2026
Merged

K-Arthur merged 6 commits into
masterfrom
feat/admin-policy

Conversation

@K-Arthur

@K-Arthur K-Arthur commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Rebase PR Admin policy file that fails closed, with schema and admin docs #197 on current master and use the versioned { schemaVersion, policies, recommended } policy envelope.
  • Harden the native loader for size, UTF-8, symlink, schema-version, and read failures. Invalid ordinary settings use defaults; invalid security settings fail closed.
  • Apply the restricted overlay to network features, model downloads, updates, crash uploads, and telemetry while keeping settings writes, local editing, export, and installed-model features available.
  • Gate desktop HTTP(S) requests, update artifacts, and model downloads in Rust. Fix forced AI toggle state and make disabled update checks return quietly.
  • Preserve and expose non-enforced recommended values. Publish the schema, admin docs, CLI validation, tests, and acceptance screenshots.

The referenced revenue/org-kit/policy-file-spec.md and queue item C were not present in this checkout. The policy envelope and behavior here follow the details in the request.

Validation

  • 35 focused JavaScript tests passed, with a final rerun of the banner and settings tests passing 33 tests.
  • openFileDedupe.test.tsx passed five consecutive runs; its file hash matches master.
  • Biome checks, schema JSON parsing, and git diff --check passed.
  • Rust tests could not run because Cargo and rustc are unavailable in this environment. The package validation bootstrap also failed when the ONNX Runtime postinstall could not reach NuGet.
  • The full desktop TypeScript check reported existing errors in compositor, plugin-controller, and model-storage files after the package reinstall; no errors pointed to the edited TypeScript files.

Screenshots

Restricted mode banner

AI toggle locked off

Updates section locked

Updates disabled without an error

Valid and invalid policy states:

Valid policy

Invalid policy

Out of scope

  • A desktop online-fonts switch. All online font requests are still subject to the Rust network policy gate.
  • Windows installer-type detection. The current update authority detection on Windows remains unchanged.

K-Arthur and others added 4 commits October 23, 2026 16:02
assert_eq! on Option<AiMode> requires PartialEq. Keep the existing
Clone, Copy, Debug, Deserialize, and Serialize derives.

Co-authored-by: Kevin Arthur <K-Arthur@users.noreply.github.com>
@K-Arthur
K-Arthur merged commit 4a5f508 into master Oct 30, 2026
93 of 95 checks passed
@K-Arthur
K-Arthur deleted the feat/admin-policy branch October 30, 2026 16:48
K-Arthur added a commit that referenced this pull request Oct 31, 2026
#191 turned on crate-wide unsafe_code = deny for varve-desktop but left
the Windows AttachConsole call from #197 unannotated. Debug smoke builds
on windows-x64 then fail rustc -D unsafe-code before native E2E starts.
This is the same listed FFI exception used elsewhere in the crate.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants