Skip to content

Guard direct os.* mutations, and expose enforcement via IsRestricted / Observe.restricted #435

Open

Description

@David-Noble-at-work

Phase 5 of windows-native-permissions.md, and the phase where
the 28 finally moves.

Two halves:

  1. The guard -- a check that fails on a deliberately reintroduced direct os.WriteFile, so the
    migration cannot silently regress.
  2. Observability -- Mode().Perm() reports 0666 on Windows regardless of the DACL, so permission
    assertions cannot be written against it. IsRestricted and Observe.restricted are the portable
    surface the existing permission tests migrate onto.

Exit: the guard is live in make check; the permission tests assert through the new surface; the
windows leg's failure count moves for the first time, and the new number is recorded name-for-name.

Activity

  1. David-Noble-at-work commented on Nov 7, 2026

    @David-Noble-at-work
    ContributorAuthor

    Split on 2026-11-06, on the owner's word, as #91 was. This issue keeps the observability half, IsRestricted and Observe.restricted, the shipped API the permission tests move onto, which is product. The guard, a check in make check that fails on any direct os.* write outside fsroot, is engineering and moved to #1200. Of this issue's exit, the guard being live in make check is now #1200's.

  2. David-Noble-at-work commented on Nov 9, 2026

    @David-Noble-at-work
    ContributorAuthor

    star github triage sweep added this issue to Triage: devlore, for the rule it breaks:

    • no-evidence: no Evidence of completion section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions