zara-coding: validate repository inspector policy descriptors eagerly #111

Closed
opened 2026-09-08 02:03:00 +00:00 by nsaspy · 0 comments
Owner

Problem

RepositoryInspector.__init__() checks only that allowed_roots and executable are truthy. Malformed root elements or non-text executables can survive construction and later leak incidental Path/subprocess type errors instead of failing at the coding boundary.

Slice

  • deterministic RED coverage for malformed allowed roots and Git executable descriptors;
  • reject invalid descriptors during inspector construction;
  • keep repository confinement and command surface unchanged;
  • exact-head compatibility, registry, plugin and Nix gates before merge.

Dependency-ready correctness slice within #1; no cross-plugin composition or Core authorization bypass.

## Problem `RepositoryInspector.__init__()` checks only that `allowed_roots` and `executable` are truthy. Malformed root elements or non-text executables can survive construction and later leak incidental `Path`/subprocess type errors instead of failing at the coding boundary. ## Slice - deterministic RED coverage for malformed allowed roots and Git executable descriptors; - reject invalid descriptors during inspector construction; - keep repository confinement and command surface unchanged; - exact-head compatibility, registry, plugin and Nix gates before merge. Dependency-ready correctness slice within #1; no cross-plugin composition or Core authorization bypass.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nsaspy/zara-plugins#111
No description provided.